]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add type::name / type::set_name
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d0e39ea2
SM
12020-05-16 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbtypes.h (struct type) <name, set_name>: New methods.
4 (TYPE_CODE): Use type::name. Change all call sites used to set
5 the name to use type::set_name instead.
6
2dab0c7b
TT
72020-05-16 Tom Tromey <tom@tromey.com>
8
9 * top.c (quit_force): Update.
10 * infrun.c (handle_no_resumed): Update.
11 * top.h (all_uis): New function.
12 (ALL_UIS): Remove.
13
59f7bd8d
SM
142020-05-16 Simon Marchi <simon.marchi@efficios.com>
15
16 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
17
9bf058f0
PA
182020-05-16 Pedro Alves <palves@redhat.com>
19
20 * ia64-linux-nat.c
21 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
22 Declare method.
23 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
24
8f86ae1a
SM
252020-05-15 Simon Marchi <simon.marchi@efficios.com>
26
27 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
28 (sparc64_adi_info): Likewise.
29
d6bc0792
TT
302020-05-15 Tom Tromey <tom@tromey.com>
31
32 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
33 block_objfile.
34 (lookup_objfile_from_block): Remove.
35 (lookup_symbol_in_block, lookup_symbol_in_static_block)
36 (lookup_global_symbol): Use block_objfile.
37 * symtab.h (lookup_objfile_from_block): Don't declare.
38 * printcmd.c (clear_dangling_display_expressions): Use
39 block_objfile.
40 * parse.c (operator_check_standard): Use block_objfile.
41
8c14c3a3
TT
422020-05-15 Tom Tromey <tom@tromey.com>
43
44 * language.c (language_alloc_type_symbol): Set
45 SYMBOL_SECTION.
46 * symtab.c (initialize_objfile_symbol): Remove.
47 (allocate_symbol): Remove.
48 (allocate_template_symbol): Remove.
49 * dwarf2/read.c (fixup_go_packaging): Use "new".
50 (new_symbol): Use "new".
51 (read_variable): Don't call initialize_objfile_symbol. Use
52 "new".
53 (read_func_scope): Use "new".
54 * xcoffread.c (process_xcoff_symbol): Don't call
55 initialize_objfile_symbol.
56 (SYMBOL_DUP): Remove.
57 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
58 "new".
59 * symtab.h (allocate_symbol, initialize_objfile_symbol)
60 (allocate_template_symbol): Don't declare.
61 (struct symbol): Add copy constructor. Change defaults.
62 * jit.c (finalize_symtab): Use "new".
63 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
64 Use "new".
65 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
66 (common_block_end): Use "new".
67 * mdebugread.c (parse_symbol): Use "new".
68 (new_symbol): Likewise.
69
5b4a1a8d
PW
702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
71
72 * NEWS: Mention changes to help and apropos.
73
57b4f16e
PW
742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
75
76 * command.h (enum command_class): Improve comments, document
77 that class_alias is for user-defined aliases, give the class
78 name for each class, remove unused class_xdb.
79 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
80 * breakpoint.c (_initialize_breakpoint): Replace class_alias
81 by a precise class.
82 * infcmd.c (_initialize_infcmd): Likewise.
83 * reverse.c (_initialize_reverse): Likewise.
84 * stack.c (_initialize_stack): Likewise.
85 * symfile.c (_initialize_symfile): Likewise.
86 * tracepoint.c (_initialize_tracepoint): Likewise.
87
7c05caf7
PW
882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
89
90 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
91 when their aliased command is traversed.
92 (help_cmd): Add fput_command_names_styled call to
93 output command name and aliases when command has an alias.
94
3b3aaacb
PW
952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
96
97 * cli/cli-decode.h (help_cmd_list): Remove declaration.
98 * cli/cli-decode.c (help_cmd_list): Declare as static,
99 remove prefix argument, use bool for recurse arg, rework to show the aliases of
100 a command together with the command.
101 (fput_command_name_styled, fput_command_names_styled): New functions.
102 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
103 fput_command_name_styled.
104 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
105 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
106
7aa1b46f
PW
1072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
108
109 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
110 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
111 * command.h (cmd_show_list): Likewise.
112 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
113 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
114
89bcba74
PW
1152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
116
117 * unittests/command-def-selftests.c (traverse_command_structure):
118 Verify all commands of a list have the same prefix command and
119 that only the top cmdlist commands have a null prefix.
120
3f4d92eb
PW
1212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
122
123 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
124 as prefix, not one of its aliases.
125 (set_cmd_prefix): Remove.
126 (do_add_cmd): Centralize the setting of the prefix of a command, when
127 command is defined after its full chain of prefix commands.
128 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
129 (add_setshow_cmd_full): Likewise.
130 (update_prefix_field_of_prefixed_commands): New function.
131 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
132 update_prefix_field_of_prefixed_commands.
133 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
134 addresses of remote_set_cmdlist and remote_show_cmdlist given
135 as argument, not the address of an argument.
136 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
137 * gdb/remote.c (_initialize_remote): Likewise.
138
0605465f
PW
1392020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
140
141 * cli/cli-cmds.c (alias_command): Check for an existing alias
142 using lookup_cmd_composition, as valid_command_p is too strict
143 and forbids aliases that are the prefix of an existing alias
144 or command.
145 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
146 command is properly recognised as a valid command.
147
58e6ac70
PW
1482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
149
150 * unittests/help-doc-selftests.c: Rename to
151 unittests/command-def-selftests.c
152 * unittests/command-def-selftests.c (help_doc_tests): Update some
153 comments.
154 (command_structure_tests, traverse_command_structure): New namespace
155 and function.
156 (command_structure_invariants_tests): New function.
157 (_initialize_command_def_selftests) Renamed from
158 _initialize_help_doc_selftests, register command_structure_invariants
159 selftest.
160
a7b9ceb8
PW
1612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
162
163 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
164 an alias of 'show'.
165
b2188a06
JB
1662020-05-15 Joel Brobecker <brobecker@adacore.com>
167
168 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
169 ada_is_fixed_point_type. Update all callers.
170 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
171 all callers.
172 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
173 Update all callers.
174 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
175 print_fixed_point_type. Update all callers.
176 * ada-valprint.c (ada_value_print_num): Replace call to
177 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
178
a51951c2
KB
1792020-05-14 Kevin Buettner <kevinb@redhat.com>
180
181 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
182 processors.
183 (cpu_supports_bts): Add CV_AMD case.
184
29d6859f
LM
1852020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
186 Simon Marchi <simon.marchi@efficios.com>
187
188 * infrun.c (stop_all_threads): Collect multiple wait events at
189 each pass.
190
78134374
SM
1912020-05-14 Simon Marchi <simon.marchi@efficios.com>
192
193 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
194 type::code instead.
195
67607e24
SM
1962020-05-14 Simon Marchi <simon.marchi@efficios.com>
197
198 * gdbtypes.h (struct type) <code, set_code>: New methods.
199 (TYPE_CODE): Use type::code. Change all call sites used to set
200 the code to use type::set_code instead.
201
a05575d3
TBA
2022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
203 Tom de Vries <tdevries@suse.de>
204 Pedro Alves <palves@redhat.com>
205
206 PR threads/25478
207 * infrun.c (stop_all_threads): Do NOT ignore
208 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
209 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
210 received.
211 (handle_no_resumed): Remove code handling a live inferior with no
212 threads.
213 * remote.c (has_single_non_exited_thread): New.
214 (remote_target::update_thread_list): Do not delete a thread if is
215 the last thread of the process.
216 * thread.c (thread_select): Call delete_exited_threads instead of
217 prune_threads.
218
6ad82919
TBA
2192020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
220
221 * infrun.c (stop_all_threads): Enable/disable thread events of all
222 targets. Move a debug message denoting the end of the function
223 into the SCOPED_EXIT block.
224
d890404b
TBA
2252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
226
227 * process-stratum-target.h: Include <set>.
228 (all_non_exited_process_targets, switch_to_target_no_thread): New
229 function declarations.
230 * process-stratum-target.c (all_non_exited_process_targets)
231 (switch_to_target_no_thread): New function implementations.
232
293b3ebc
TBA
2332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
234
235 * infrun.c (handle_inferior_event): Extract out a piece of code
236 into...
237 (mark_non_executing_threads): ...this new function.
238
7ca9b62a
TBA
2392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
240
241 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
242 use.
243
fc75c28b
TBA
2442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
245
246 * regcache.c (regcache_read_pc_protected): New function
247 implementation that returns 0 if the PC cannot read via
248 'regcache_read_pc'.
249 * infrun.c (proceed): Call 'regcache_read_pc_protected'
250 instead of 'regcache_read_pc'.
251 (keep_going_pass_signal): Ditto.
252
a89febbd
TT
2532020-05-13 Tom Tromey <tromey@adacore.com>
254
255 * ada-lang.c (align_value): Remove.
256 (ada_template_to_fixed_record_type_1): Use align_up.
257
f7e23710
TBA
2582020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
259
260 * async-event.c: Update the copyright year.
261 * async-event.h: Update the copyright year.
262
02ff80c2
SM
2632020-05-12 Simon Marchi <simon.marchi@efficios.com>
264
265 * objfiles.h (is_addr_in_objfile,
266 shared_objfile_contains_address_p): Return bool.
267 * objfile.c (is_addr_in_objfile,
268 shared_objfile_contains_address_p): Return bool.
269
4fd6c7e8
TT
2702020-05-11 Tom Tromey <tromey@adacore.com>
271
272 * cli/cli-cmds.c (info_command): Restore.
273 (_initialize_cli_cmds): Use add_prefix_command for "info".
274 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
275
5eb68a39
TT
2762020-05-11 Tom Tromey <tromey@adacore.com>
277
278 * ada-lang.c (ada_value_primitive_field): Now public.
279 * ada-lang.h (ada_value_primitive_field): Declare.
280 * ada-valprint.c (print_field_values): Use
281 ada_value_primitive_field for wrapper fields.
282
7666722f
TV
2832020-05-11 Tom de Vries <tdevries@suse.de>
284
285 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
286 MODULE_DOMAIN.
287
3ee6bb11
TV
2882020-05-11 Tom de Vries <tdevries@suse.de>
289
290 PR symtab/25941
291 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
292 with length 0, if not gdb-produced.
293 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
294
43434996
TV
2952020-05-09 Tom de Vries <tdevries@suse.de>
296
297 PR gdb/25955
298 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
299 calculation.
300
2f78cffc
TT
3012020-05-09 Tom Tromey <tom@tromey.com>
302
303 * top.c (server_command): Now bool.
304 * top.h (server_command): Now bool.
305
4f7bc5ed
TT
3062020-05-08 Tom Tromey <tromey@adacore.com>
307
308 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
309 already being processed.
310
8be4b118
TT
3112020-05-08 Tom Tromey <tom@tromey.com>
312
313 * printcmd.c (struct display) <next>: Remove.
314 <display>: New constructor.
315 <exp_string>: Now a std::string.
316 <enabled_p>: Now a bool.
317 (display_number): Move definition earlier.
318 (displays): Rename from display_chain. Now a std::vector.
319 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
320 (display_command): Update.
321 (do_one_display, disable_display)
322 (enable_disable_display_command, do_enable_disable_display):
323 Update.
324 (free_display): Remove.
325 (clear_displays): Rewrite.
326 (delete_display): Update.
327 (map_display_numbers): Use function_view. Remove "data"
328 parameter. Update.
329 (do_delete_display): Remove.
330 (undisplay_command): Update.
331 (do_one_display, do_displays, disable_display)
332 (info_display_command): Update.
333 (do_enable_disable_display): Remove.
334 (enable_disable_display_command)
335 (clear_dangling_display_expressions): Update.
336
94c93c35
TT
3372020-05-08 Tom Tromey <tom@tromey.com>
338
339 * symtab.c (set_symbol_cache_size)
340 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
341 (maintenance_print_symbol_cache_statistics): Update.
342 * symmisc.c (print_symbol_bcache_statistics)
343 (print_objfile_statistics, maintenance_print_objfiles)
344 (maintenance_info_symtabs, maintenance_check_symtabs)
345 (maintenance_expand_symtabs, maintenance_info_line_tables):
346 Update.
347 * symfile-debug.c (set_debug_symfile): Update.
348 * source.c (forget_cached_source_info): Update.
349 * python/python.c (gdbpy_progspaces): Update.
350 * psymtab.c (maintenance_info_psymtabs): Update.
351 * probe.c (parse_probes): Update.
352 * linespec.c (iterate_over_all_matching_symtabs)
353 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
354 * guile/scm-progspace.c (gdbscm_progspaces): Update.
355 * exec.c (exec_target::close): Update.
356 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
357 * breakpoint.c (print_one_breakpoint_location)
358 (create_longjmp_master_breakpoint)
359 (create_std_terminate_master_breakpoint): Update.
360 * progspace.c (program_spaces): Now a std::vector.
361 (maybe_new_address_space): Update.
362 (add_program_space): Remove.
363 (program_space::program_space): Update.
364 (remove_program_space): Update.
365 (number_of_program_spaces): Remove.
366 (print_program_space, update_address_spaces): Update.
367 * progspace.h (program_spaces): Change type.
368 (ALL_PSPACES): Remove.
369 (number_of_program_spaces): Don't declare.
370 (struct program_space) <next>: Remove.
371
a1fd1ac9
TT
3722020-05-08 Tom Tromey <tom@tromey.com>
373
374 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
375 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
376 (enable_break): Update.
377 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
378 (frv_fdpic_find_canonical_descriptor): Update.
379 (frv_fetch_objfile_link_map): Update.
380 * progspace.c (program_space::free_all_objfiles): Update.
381 (program_space::solibs): New method.
382 * progspace.h (struct program_space) <solibs>: New method.
383 * solist.h (master_so_list): Don't declare.
384 (ALL_SO_LIBS): Remove.
385 * solib.h (so_list_head): Remove.
386 (update_solib_list): Update comment.
387 * solib.c (master_so_list): Remove.
388 (solib_used, update_solib_list, solib_add)
389 (info_sharedlibrary_command, clear_solib)
390 (reload_shared_libraries_1, remove_user_added_objfile): Update.
391
38eae084
TT
3922020-05-08 Tom Tromey <tom@tromey.com>
393
394 * extension.c (extension_languages): Now a std::array.
395 (ALL_EXTENSION_LANGUAGES): Remove.
396 (get_ext_lang_defn, get_ext_lang_of_file)
397 (eval_ext_lang_from_control_command): Update.
398 (finish_ext_lang_initialization)
399 (auto_load_ext_lang_scripts_for_objfile)
400 (ext_lang_type_printers::ext_lang_type_printers)
401 (apply_ext_lang_type_printers)
402 (ext_lang_type_printers::~ext_lang_type_printers)
403 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
404 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
405 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
406 (get_matching_xmethod_workers, ext_lang_colorize)
407 (ext_lang_before_prompt): Update.
408 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
409
596dc4ad
TT
4102020-05-08 Tom Tromey <tom@tromey.com>
411
412 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
413 overload.
414 <swap_string, m_string>: Remove.
415 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
416 Update.
417 * stabsread.c (define_symbol, read_type): Update.
418 * linespec.c (find_linespec_symbols): Update.
419 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
420 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
421 * dbxread.c (read_dbx_symtab): Update.
422 * cp-support.h (cp_canonicalize_string_full)
423 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
424 Return unique_xmalloc_ptr.
425 * cp-support.c (inspect_type): Update.
426 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
427 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
428 Likewise.
429 * c-typeprint.c (print_name_maybe_canonical): Update.
430 * break-catch-throw.c (check_status_exception_catchpoint):
431 Update.
432
bf4cb9be
TV
4332020-05-08 Tom de Vries <tdevries@suse.de>
434
435 * infrun.c (follow_fork): Copy current_line and current_symtab to
436 child thread.
437
a1b68f28
SM
4382020-05-07 Simon Marchi <simon.marchi@efficios.com>
439
440 * async-event.c (struct async_signal_handler, struct
441 async_event_handler): Reformat, remove typedef.
442
98d48915
SM
4432020-05-07 Simon Marchi <simon.marchi@efficios.com>
444
445 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
446 access thistype->main_type->dyn_prop_list directly.
447
7aa91313
SM
4482020-05-07 Simon Marchi <simon.marchi@efficios.com>
449
450 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
451 (remove_dyn_prop): Remove. Update all users to use
452 type::remove_dyn_prop.
453 * gdbtypes.c (remove_dyn_prop): Rename to...
454 (type::remove_dyn_prop): ... this.
455
5c54719c
SM
4562020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
457
458 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
459 (add_dyn_prop): Remove. Update all users to use
460 type::add_dyn_prop.
461 * gdbtypes.c (add_dyn_prop): Rename to...
462 (type::add_dyn_prop): ... this.
463
24e99c6c
SM
4642020-05-07 Simon Marchi <simon.marchi@efficios.com>
465
466 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
467 (get_dyn_prop): Remove. Update all users to use
468 type::dyn_prop.
469 * gdbtypes.c (get_dyn_prop): Rename to...
470 (type::dyn_prop): ... this.
471
0d4bf016
SM
4722020-05-06 Simon Marchi <simon.marchi@efficios.com>
473
474 * gdbtypes.h (struct main_type) <flag_static>: Remove.
475
ac4a4f1c
SM
4762020-05-06 Simon Marchi <simon.marchi@efficios.com>
477
478 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
479 instruction, skip it if it's there.
480
a3bbacc1
SM
4812020-05-05 Simon Marchi <simon.marchi@efficios.com>
482
483 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
484
c3236f84
SM
4852020-05-04 Simon Marchi <simon.marchi@efficios.com>
486
487 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
488 * gdbtypes.c (recursive_dump_type): Remove use of
489 TYPE_INCOMPLETE.
490
3b6acaee
TT
4912020-05-03 Tom Tromey <tom@tromey.com>
492
493 * breakpoint.c (catch_command, tcatch_command): Remove.
494 (_initialize_breakpoint): Use add_basic_prefix_cmd,
495 add_show_prefix_cmd.
496 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
497 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
498 Remove.
499 (add_internal_problem_command): Use add_basic_prefix_cmd,
500 add_show_prefix_cmd.
501 * mips-tdep.c (set_mipsfpu_command): Remove.
502 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
503 * dwarf2/index-cache.c (set_index_cache_command): Remove.
504 (_initialize_index_cache): Use add_basic_prefix_cmd.
505 * memattr.c (dummy_cmd): Remove.
506 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
507 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
508 (_initialize_tui_win): Use add_basic_prefix_cmd,
509 add_show_prefix_cmd.
510 * cli/cli-logging.c (set_logging_command): Remove.
511 (_initialize_cli_logging): Use add_basic_prefix_cmd,
512 add_show_prefix_cmd.
513 (show_logging_command): Remove.
514 * target.c (target_command): Remove.
515 (add_target): Use add_basic_prefix_cmd.
516
a51119cd
HD
5172020-05-02 Hannes Domani <ssbssa@yahoo.de>
518
519 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
520
652fc23a 5212020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 522
652fc23a
PW
523 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
524 info_command.
525
117539e6
KR
5262020-04-30 Kamil Rytarowski <n54@gmx.com>
527
528 * nbsd-nat.c (nbsd_enable_proc_events)
529 (nbsd_nat_target::post_startup_inferior): Add.
530 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
531 (nbsd_nat_target::update_thread_list): Rewrite.
532 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
533 "PTRACE_LWP_CREATE".
534 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
535
102e38eb 5362020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 537
102e38eb
PW
538 * stack.c (_initialize_stack): Remove duplicated creation
539 of "frame" command and "f" alias.
540
ee9d1e5f
HD
5412020-04-30 Hannes Domani <ssbssa@yahoo.de>
542
543 PR gdb/18706
544 * gdbtypes.c (check_typedef): Calculate size of array of
545 stubbed type.
546
627c7fb8
HD
5472020-04-30 Hannes Domani <ssbssa@yahoo.de>
548
549 PR gdb/15559
550 * i386-tdep.c (i386_push_dummy_call): Call
551 i386_thiscall_push_dummy_call.
552 (i386_thiscall_push_dummy_call): New function.
553 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
554 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
555 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
556
ffc2844e
SM
5572020-04-29 Simon Marchi <simon.marchi@efficios.com>
558
559 * gdbarch.sh (do_read): Add shellcheck disable directive for
560 warning SC2162.
561
1207375d
SM
5622020-04-29 Simon Marchi <simon.marchi@efficios.com>
563
564 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
565 "referenced but not assigned" warning.
566
9fdb2916
SM
5672020-04-29 Simon Marchi <simon.marchi@efficios.com>
568
569 * gdbarch.sh: Remove code that sets fallbackdefault.
570
759cea5e
SM
5712020-04-29 Simon Marchi <simon.marchi@efficios.com>
572
573 * gdbarch.sh: Use shell operators && and || instead of
574 -a and -o.
575
cb02ab24
SM
5762020-04-29 Simon Marchi <simon.marchi@efficios.com>
577
578 * gdbarch.sh: Use $(...) instead of `...`.
579
a6fc5ffc
SM
5802020-04-29 Simon Marchi <simon.marchi@efficios.com>
581
582 * gdbarch.sh: Use double quotes around variables.
583
8d113d13
SM
5842020-04-29 Simon Marchi <simon.marchi@efficios.com>
585
586 * gdbarch.sh: Use %s with printf, instead of variables in the
587 format string.
588
ed6acedd
TT
5892020-04-29 Tom Tromey <tromey@adacore.com>
590
591 PR ada/25875:
592 * dwarf2/read.c (update_enumeration_type_from_children): Compute
593 type fields here.
594 (read_enumeration_type): Call
595 update_enumeration_type_from_children later. Update comments.
596 (process_enumeration_scope): Don't create type fields.
597
b68b1b58
KR
5982020-04-29 Kamil Rytarowski <n54@gmx.com>
599
600 * nbsd-tdep.c: Include "xml-syscall.h".
601 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
602
f94b2e03
KR
6032020-04-29 Kamil Rytarowski <n54@gmx.com>
604
605 * nbsd-nat.c: Include "sys/wait.h".
606 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
607 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
608 (nbsd_nat_target::remove_exec_catchpoint)
609 (nbsd_nat_target::set_syscall_catchpoint): Add.
610 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
611 (nbsd_nat_target::insert_exec_catchpoint)
612 (nbsd_nat_target::remove_exec_catchpoint)
613 (nbsd_nat_target::set_syscall_catchpoint): Add.
614 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
615 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
616 `nbsd_get_syscall_number'.
617
fc49bc72
TT
6182020-04-29 Tom Tromey <tom@tromey.com>
619
620 * stack.c (print_block_frame_labels): Remove.
621
d642b692
HD
6222020-04-29 Hannes Domani <ssbssa@yahoo.de>
623
624 PR gdb/17320
625 * ada-valprint.c (val_print_packed_array_elements): Move array
626 end bracket to new line.
627 (ada_val_print_string): Remove extra spaces before first array
628 element.
629 * c-valprint.c (c_value_print_array): Likewise.
630 * m2-valprint.c (m2_print_array_contents): Likewise.
631 (m2_value_print_inner): Likewise.
632 * p-valprint.c (pascal_value_print_inner): Likewise.
633 * valprint.c (generic_val_print_array): Likewise.
634 (value_print_array_elements): Move first array element and array
635 end bracket to new line.
636
ea90f227
TV
6372020-04-29 Tom de Vries <tdevries@suse.de>
638
639 PR symtab/25889
640 * linespec.c (find_method): Fix ix calculation.
641
4498ef4f
KR
6422020-04-28 Kamil Rytarowski <n54@gmx.com>
643
644 * syscalls/update-netbsd.sh: New file.
645 * syscalls/netbsd.xml: Regenerate.
646 * data-directory/Makefile.in: Register `netbsd.xml' in
647 `SYSCALLS_FILES'.
648
a55e30b5
SM
6492020-04-28 Simon Marchi <simon.marchi@efficios.com>
650
651 * syscalls/update-freebsd.sh: Add double quotes.
652
2b2fbab8
TT
6532020-04-28 Tom Tromey <tom@tromey.com>
654
655 * NEWS: Update.
656 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
657 (cmdpy_init): Allow class_tui.
658
a65189c9
TV
6592020-04-28 Mark Williams <mark@myosotissp.com>
660
661 PR gdb/24480
662 * dwarf2read.c: Add missing assingments to list_in_scope when
663 start_symtab was already called.
664
1b95cdb7
SM
6652020-04-28 Simon Marchi <simon.marchi@efficios.com>
666
667 PR gdb/25881
668 * dwarf2/read.c (offset_map_type): Use
669 gdb:hash_enum<sect_offset> as hash function.
670
15cd93d0
TV
6712020-04-28 Tom de Vries <tdevries@suse.de>
672
673 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
674 with DW_AT_signature.
675
1eb39914
SM
6762020-04-27 Simon Marchi <simon.marchi@efficios.com>
677
678 * configure.ac: Remove check for fs_base/gs_base in
679 user_regs_struct.
680 * configure: Re-generate.
681 * config.in: Re-generate.
682 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
683 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
684 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
685
991a3e2e
LM
6862020-04-27 Luis Machado <luis.machado@linaro.org>
687
688 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
689 problematic inline frame unwinding situation.
690 * frame.c (frame_id_computed_p): New function.
691 * frame.h (frame_id_computed_p): New prototype.
692
361ba0e8
TT
6932020-04-26 Tom Tromey <tom@tromey.com>
694
695 * command.h (enum command_class) <class_pseudo>: Remove.
696
bc3609fd
PW
6972020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
698
699 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
700 and whitespace.
701
b9771db7
KR
7022020-04-25 Kamil Rytarowski <n54@gmx.com>
703
704 * inf-ptrace.c (inf_ptrace_target::wait): Remove
705 `PT_GET_PROCESS_STATE' block.
706
7151c1af
TT
7072020-04-24 Tom Tromey <tom@tromey.com>
708
709 * symtab.h (symbol_get_demangled_name): Don't declare.
710 * symtab.c (symbol_get_demangled_name): Remove.
711 (general_symbol_info::natural_name)
712 (general_symbol_info::demangled_name): Update.
713
906bb4c5
TT
7142020-04-24 Tom Tromey <tom@tromey.com>
715
716 PR rust/25025:
717 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
718
bcfe6157
TT
7192020-04-24 Tom Tromey <tom@tromey.com>
720
721 PR symtab/12707:
722 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
723 exists.
724 (new_symbol): Likewise.
725 * compile/compile-object-load.c (get_out_value_type): Use
726 symbol_matches_search_name.
727
f049a313
TT
7282020-04-24 Tom Tromey <tom@tromey.com>
729
730 * dwarf2/read.c (add_partial_symbol): Do not call
731 compute_and_set_names.
732
76e288d1
TT
7332020-04-24 Tom Tromey <tom@tromey.com>
734
735 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
736 overload.
737
2467f4f6
TT
7382020-04-24 Tom Tromey <tom@tromey.com>
739
740 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
741 (add_psymbol_to_list): New overload. Make old overload call new
742 one.
743 * psympriv.h (add_psymbol_to_list): New overload.
744
e61108c9
TT
7452020-04-24 Tom Tromey <tom@tromey.com>
746
747 * dwarf2/read.c (partial_die_info::read) <case
748 DW_AT_linkage_name>: Use value_as_string.
749 (dwarf2_string_attr): Use value_as_string.
750 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
751 method.
752 * dwarf2/attribute.c (attribute::value_as_string): New method.
753
8c87a452
TT
7542020-04-24 Tom Tromey <tom@tromey.com>
755
756 * symtab.c (general_symbol_info::natural_name)
757 (general_symbol_info::demangled_name): Check for language_rust.
758
787de330
TT
7592020-04-24 Tom Tromey <tom@tromey.com>
760
761 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
762 (dwarf2_physname): ... from here.
763 (partial_die_info::read): Add Rust "{" hack.
764
ff985671
TT
7652020-04-24 Tom Tromey <tom@tromey.com>
766
767 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
768 method.
769 (symbol_set_demangled_name): Don't declare.
770 * symtab.c (general_symbol_info::set_demangled_name): Rename from
771 symbol_set_demangled_name.
772 (general_symbol_info::set_language)
773 (general_symbol_info::compute_and_set_names): Update.
774 * minsyms.c (minimal_symbol_reader::install): Update.
775 * dwarf2/read.c (new_symbol): Update.
776
1acda803
TT
7772020-04-24 Tom Tromey <tromey@adacore.com>
778
779 PR python/23662:
780 * python/py-type.c (convert_field): Handle
781 FIELD_LOC_KIND_DWARF_BLOCK.
782 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
783 (typy_get_dynamic): Nw function.
784 (type_object_getset): Add "dynamic".
785 * NEWS: Add entry.
786
d656f129
TT
7872020-04-24 Tom Tromey <tromey@adacore.com>
788
789 * ada-typeprint.c (print_choices, print_variant_part)
790 (print_record_field_types_dynamic): New functions.
791 (print_record_field_types): Use print_record_field_types_dynamic.
792
7d79de9a
TT
7932020-04-24 Tom Tromey <tromey@adacore.com>
794
795 * dwarf2/read.c (handle_data_member_location): New overload.
796 (dwarf2_add_field): Use it.
797 (decode_locdesc): Add "computed" parameter. Update comment.
798 * gdbtypes.c (is_dynamic_type_internal): Also look for
799 FIELD_LOC_KIND_DWARF_BLOCK.
800 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
801 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
802 virtual base classes.
803 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
804 FIELD_LOC_KIND_DWARF_BLOCK.
805
f8e89861
TT
8062020-04-24 Tom Tromey <tromey@adacore.com>
807
808 * dwarf2/read.c (read_structure_type): Handle dynamic length.
809 * gdbtypes.c (is_dynamic_type_internal): Check
810 TYPE_HAS_DYNAMIC_LENGTH.
811 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
812 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
813 New macros.
814 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
815 constant.
816
9c6a1327
TT
8172020-04-24 Tom Tromey <tromey@adacore.com>
818
819 * dwarf2/read.c (struct variant_field): Rewrite.
820 (struct variant_part_builder): New.
821 (struct nextfield): Remove "variant" field. Add "offset".
822 (struct field_info): Add "current_variant_part" and
823 "variant_parts".
824 (alloc_discriminant_info): Remove.
825 (alloc_rust_variant): New function.
826 (quirk_rust_enum): Update.
827 (dwarf2_add_field): Set "offset" member. Don't handle
828 DW_TAG_variant_part.
829 (offset_map_type): New typedef.
830 (convert_variant_range, create_one_variant)
831 (create_one_variant_part, create_variant_parts)
832 (add_variant_property): New functions.
833 (dwarf2_attach_fields_to_type): Call add_variant_property.
834 (read_structure_type): Don't handle DW_TAG_variant_part.
835 (handle_variant_part, handle_variant): New functions.
836 (handle_struct_member_die): Use them.
837 (process_structure_scope): Don't handle variant parts.
838 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
839 (struct discriminant_info): Remove.
840 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
841 (struct main_type) <flag_discriminated_union>: Remove.
842 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
843 (rust_enum_variant): Return int. Remove "contents". Rewrite.
844 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
845 Update.
846 * valops.c (value_union_variant): Remove.
847 * value.h (value_union_variant): Don't declare.
848
b249d2c2
TT
8492020-04-24 Tom Tromey <tromey@adacore.com>
850
851 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
852 (ada_value_primitive_packed_val): Update.
853 * ada-valprint.c (ada_value_print_1): Update.
854 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
855 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
856 just an address. Use evaluate_for_locexpr_baton.
857 (dwarf2_evaluate_property): Update.
858 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
859 array_view.
860 * findvar.c (default_read_var_value): Update.
861 * gdbtypes.c (compute_variant_fields_inner)
862 (resolve_dynamic_type_internal): Update.
863 (resolve_dynamic_type): Change type of valaddr parameter.
864 * gdbtypes.h (resolve_dynamic_type): Update.
865 * valarith.c (value_subscripted_rvalue): Update.
866 * value.c (value_from_contents_and_address): Update.
867
61122aa9
TT
8682020-04-24 Tom Tromey <tromey@adacore.com>
869
870 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
871 "push_initial_value" parameter.
872 (dwarf2_evaluate_property): Likewise.
873 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
874
ef83a141
TT
8752020-04-24 Tom Tromey <tromey@adacore.com>
876
877 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
878 (variant::matches, compute_variant_fields_recurse)
879 (compute_variant_fields_inner, compute_variant_fields): New
880 functions.
881 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
882 Use resolved_type after type is made.
883 (operator==): Add new cases.
884 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
885 (struct discriminant_range, struct variant, struct variant_part):
886 New.
887 (union dynamic_prop_data) <variant_parts, original_type>: New
888 members.
889 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
890 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
891 constants.
892 * value.c (unpack_bits_as_long): Now public.
893 * value.h (unpack_bits_as_long): Declare.
894
675127ec
TT
8952020-04-24 Tom Tromey <tromey@adacore.com>
896
897 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
898 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
899
9852ceef
HD
9002020-04-24 Hannes Domani <ssbssa@yahoo.de>
901
902 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
903
7632c6ce
KR
9042020-04-24 Kamil Rytarowski <n54@gmx.com>
905
906 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
907 (remove_fork_catchpoint, post_startup_inferior)
908 (post_attach): Move...
909 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
910 (remove_fork_catchpoint, post_startup_inferior)
911 (post_attach): ...here.
912 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
913 (remove_fork_catchpoint, post_startup_inferior)
914 (post_attach): Move...
915 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
916 (remove_fork_catchpoint, post_startup_inferior)
917 (post_attach): ...here.
918
7be2bb4f
TT
9192020-04-24 Tom Tromey <tromey@adacore.com>
920
921 * nat/windows-nat.h (struct windows_thread_info)
922 <pc_adjusted>: New member.
923 * windows-nat.c (windows_fetch_one_register): Check
924 pc_adjusted.
925 (windows_nat_target::get_windows_debug_event)
926 (windows_nat_target::wait): Set pc_adjusted.
927
f80cb3b4
TV
9282020-04-24 Tom de Vries <tdevries@suse.de>
929
930 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
931 Run gdb-add-index inside temp dir.
932
29514b87
TT
9332020-04-23 Tom Tromey <tromey@adacore.com>
934
935 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
936 in loop.
937
5939967b
LM
9382020-04-23 Luis Machado <luis.machado@linaro.org>
939
940 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
941 get_frame_register instead of gdbarch_unwind_pc.
942
70bc38f5
TV
9432020-04-23 Tom de Vries <tdevries@suse.de>
944
945 * symtab.c (lookup_global_symbol): Prefer def over decl.
946
de82891c
TV
9472020-04-23 Tom de Vries <tdevries@suse.de>
948
949 PR symtab/25807
950 * block.c (best_symbol, better_symbol): Promote to external.
951 * block.h (best_symbol, better_symbol): Declare.
952 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
953 decl.
954
ecc6c606
TT
9552020-04-23 Tom Tromey <tromey@adacore.com>
956
957 PR ada/25837:
958 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
959 "const char *", not a "const std::string &".
960 <name_and_matcher::operator==>: Update.
961 * unittests/lookup_name_info-selftests.c: Change type of
962 "result".
963
740480b8
TT
9642020-04-23 Tom Tromey <tom@tromey.com>
965
966 * inferior.h (iterate_over_inferiors): Don't declare.
967 * inferior.c (iterate_over_inferiors): Remove.
968 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
969 Remove.
970 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
971 use iterate_over_inferiors.
972 (darwin_resume_inferior_it)
973 (struct resume_inferior_threads_param)
974 (darwin_resume_inferior_threads_it): Remove.
975 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
976
ae3ab1f0
TV
9772020-04-23 Tom de Vries <tdevries@suse.de>
978
979 * blockframe.c (find_pc_partial_function): Use
980 find_pc_sect_compunit_symtab rather than
981 objfile->sf->qf->find_pc_sect_compunit_symtab.
982
317d2668
TV
9832020-04-22 Tom de Vries <tdevries@suse.de>
984
985 PR symtab/25764
986 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
987 in psymtabs.
988
eea9e357
TV
9892020-04-22 Tom de Vries <tdevries@suse.de>
990
991 PR symtab/25801
992 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
993 symtabs.
994
3d5afab3
TV
9952020-04-22 Tom de Vries <tdevries@suse.de>
996
997 PR symtab/25700
998 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
999 CU if already created.
1000
d43b7a2d
TBA
10012020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1002
1003 * infrun.c (displaced_step_fixup): Switch to the event_thread
1004 before calling displaced_step_restore, not after.
1005
d89edf9b
MM
10062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1007
1008 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
1009 its inferior is not recorded by us.
1010 (record_btrace_target_open): Replace call to
1011 all_non_exited_threads () with call to current_inferior
1012 ()->non_exited_threads ().
1013 (record_btrace_target::stop_recording): Likewise.
1014 (record_btrace_target::close): Likewise.
1015 (record_btrace_target::wait): Likewise.
1016 (record_btrace_target::record_stop_replaying): Likewise.
1017
5897fd49
MM
10182020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1019
1020 * btrace.c (btrace_enable): Throw an error on double enables and
1021 when enabling recording fails.
1022 (btrace_disable): Throw an error if the thread is not recorded.
1023
1a476b6d
MM
10242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
1025
1026 * record-btrace.c (record_btrace_target::fetch_registers): Forward
1027 request if we do not have a thread_info.
1028
4778a5f8
TV
10292020-04-21 Tom de Vries <tdevries@suse.de>
1030
1031 PR gdb/25471
1032 * thread.c
1033 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
1034 exception in get_frame_id.
1035
0fa7617d
TT
10362020-04-20 Tom Tromey <tromey@adacore.com>
1037
1038 * python/python.c (struct gdbpy_event): Mark move constructor as
1039 noexcept.
1040 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
1041 constructor as noexcept.
1042 * completer.h (struct completion_result): Mark move constructor as
1043 noexcept.
1044 * completer.c (completion_result::completion_result): Use
1045 initialization style. Don't call reset_match_list.
1046
ad23bda0
MS
10472020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
1048
1049 * MAINTAINERS (Write After Approval): Add myself.
1050
45e1f031
TT
10512020-04-18 Tom Tromey <tom@tromey.com>
1052
1053 * windows-tdep.c (init_w32_command_list)
1054 (w32_prefix_command_valid): Restore.
1055 (_initialize_windows_tdep): Call init_w32_command_list.
1056
08feed99
TT
10572020-04-18 Tom Tromey <tom@tromey.com>
1058
1059 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
1060 * value.c (value_fn_field): Update.
1061 * valops.c (find_function_in_inferior)
1062 (value_allocate_space_in_inferior): Update.
1063 * tui/tui-winsource.c (tui_update_source_windows_with_line):
1064 Update.
1065 * tui/tui-source.c (tui_source_window::set_contents): Update.
1066 * symtab.c (lookup_global_or_static_symbol)
1067 (find_function_start_sal_1, skip_prologue_sal)
1068 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
1069 * symmisc.c (dump_msymbols, dump_symtab_1)
1070 (maintenance_print_one_line_table): Update.
1071 * symfile.c (init_entry_point_info, section_is_mapped)
1072 (list_overlays_command, simple_read_overlay_table)
1073 (simple_overlay_update_1): Update.
1074 * stap-probe.c (handle_stap_probe): Update.
1075 * stabsread.c (dbx_init_float_type, define_symbol)
1076 (read_one_struct_field, read_enum_type, read_range_type): Update.
1077 * source.c (info_line_command): Update.
1078 * python/python.c (gdbpy_source_objfile_script)
1079 (gdbpy_execute_objfile_script): Update.
1080 * python/py-type.c (save_objfile_types): Update.
1081 * python/py-objfile.c (py_free_objfile): Update.
1082 * python/py-inferior.c (python_new_objfile): Update.
1083 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
1084 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
1085 (maintenance_check_psymtabs): Update.
1086 * printcmd.c (info_address_command): Update.
1087 * objfiles.h (struct objfile) <arch>: New method, from
1088 get_objfile_arch.
1089 (get_objfile_arch): Don't declare.
1090 * objfiles.c (get_objfile_arch): Remove.
1091 (filter_overlapping_sections): Update.
1092 * minsyms.c (msymbol_is_function): Update.
1093 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
1094 (output_nondebug_symbol): Update.
1095 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
1096 (mdebug_expand_psymtab): Update.
1097 * machoread.c (macho_add_oso_symfile): Update.
1098 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
1099 Update.
1100 * linux-fork.c (checkpoint_command): Update.
1101 * linespec.c (convert_linespec_to_sals): Update.
1102 * jit.c (finalize_symtab): Update.
1103 * infrun.c (insert_exception_resume_from_probe): Update.
1104 * ia64-tdep.c (ia64_find_unwind_table): Update.
1105 * hppa-tdep.c (internalize_unwinds): Update.
1106 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
1107 Update.
1108 * gcore.c (call_target_sbrk): Update.
1109 * elfread.c (record_minimal_symbol, elf_symtab_read)
1110 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1111 (elf_gnu_ifunc_resolve_by_got): Update.
1112 * dwarf2/read.c (create_addrmap_from_index)
1113 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
1114 (read_debug_names_from_section)
1115 (process_psymtab_comp_unit_reader, add_partial_symbol)
1116 (add_partial_subprogram, process_full_comp_unit)
1117 (read_file_scope, read_func_scope, read_lexical_block_scope)
1118 (read_call_site_scope, dwarf2_ranges_read)
1119 (dwarf2_record_block_ranges, dwarf2_add_field)
1120 (mark_common_block_symbol_computed, read_tag_pointer_type)
1121 (read_tag_string_type, dwarf2_init_float_type)
1122 (dwarf2_init_complex_target_type, read_base_type)
1123 (partial_die_info::read, partial_die_info::read)
1124 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
1125 (dwarf2_fetch_die_loc_sect_off): Update.
1126 * dwarf2/loc.c (dwarf2_find_location_expression)
1127 (class dwarf_evaluate_loc_desc, rw_pieced_value)
1128 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
1129 (dwarf2_loc_desc_get_symbol_read_needs)
1130 (locexpr_describe_location_piece, locexpr_describe_location_1)
1131 (loclist_describe_location): Update.
1132 * dwarf2/index-write.c (write_debug_names): Update.
1133 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
1134 * dtrace-probe.c (dtrace_process_dof): Update.
1135 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
1136 (process_one_symbol): Update.
1137 * ctfread.c (ctf_init_float_type, read_base_type): Update.
1138 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
1139 (coff_read_enum_type): Update.
1140 * cli/cli-cmds.c (edit_command, list_command): Update.
1141 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
1142 * breakpoint.c (create_overlay_event_breakpoint)
1143 (create_longjmp_master_breakpoint)
1144 (create_std_terminate_master_breakpoint)
1145 (create_exception_master_breakpoint, get_sal_arch): Update.
1146 * block.c (block_gdbarch): Update.
1147 * annotate.c (annotate_source_line): Update.
1148
0743fc83
TT
11492020-04-17 Tom Tromey <tromey@adacore.com>
1150
1151 * auto-load.c (show_auto_load_cmd): Remove.
1152 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
1153 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
1154 (maintenance_print_arc_command): Remove.
1155 * tui/tui-win.c (tui_command): Remove.
1156 (tui_get_cmd_list): Use add_basic_prefix_cmd.
1157 * tui/tui-layout.c (tui_layout_command): Remove.
1158 (_initialize_tui_layout): Use add_basic_prefix_cmd.
1159 * python/python.c (user_set_python, user_show_python): Remove.
1160 (_initialize_python): Use add_basic_prefix_cmd,
1161 add_show_prefix_cmd.
1162 * guile/guile.c (set_guile_command, show_guile_command): Remove.
1163 (install_gdb_commands): Use add_basic_prefix_cmd,
1164 add_show_prefix_cmd.
1165 (info_guile_command): Remove.
1166 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
1167 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
1168 add_show_prefix_cmd.
1169 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
1170 Remove do_set and do_show parameters.
1171 * cli/cli-style.c (set_style, show_style): Remove.
1172 (_initialize_cli_style): Use add_basic_prefix_cmd,
1173 add_show_prefix_cmd.
1174 (cli_style_option::add_setshow_commands): Remove do_set and
1175 do_show parameters.
1176 (cli_style_option::add_setshow_commands): Use
1177 add_basic_prefix_cmd, add_show_prefix_cmd.
1178 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
1179 (set_style_name): Remove.
1180 * cli/cli-dump.c (dump_command, append_command): Remove.
1181 (srec_dump_command, ihex_dump_command, verilog_dump_command)
1182 (tekhex_dump_command, binary_dump_command)
1183 (binary_append_command): Remove.
1184 (_initialize_cli_dump): Use add_basic_prefix_cmd.
1185 * windows-tdep.c (w32_prefix_command_valid): Remove global.
1186 (init_w32_command_list): Remove; move into ...
1187 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
1188 * valprint.c (set_print, show_print, set_print_raw)
1189 (show_print_raw): Remove.
1190 (_initialize_valprint): Use add_basic_prefix_cmd,
1191 add_show_prefix_cmd.
1192 * typeprint.c (set_print_type, show_print_type): Remove.
1193 (_initialize_typeprint): Use add_basic_prefix_cmd,
1194 add_show_prefix_cmd.
1195 * record.c (set_record_command, show_record_command): Remove.
1196 (_initialize_record): Use add_basic_prefix_cmd,
1197 add_show_prefix_cmd.
1198 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
1199 add_show_prefix_cmd.
1200 (info_command, show_command, set_debug, show_debug): Remove.
1201 * top.h (set_history, show_history): Don't declare.
1202 * top.c (set_history, show_history): Remove.
1203 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
1204 (unset_tdesc_cmd): Remove.
1205 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
1206 add_show_prefix_cmd.
1207 * symtab.c (info_module_command): Remove.
1208 (_initialize_symtab): Use add_basic_prefix_cmd.
1209 * symfile.c (overlay_command): Remove.
1210 (_initialize_symfile): Use add_basic_prefix_cmd.
1211 * sparc64-tdep.c (info_adi_command): Remove.
1212 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
1213 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
1214 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
1215 add_show_prefix_cmd.
1216 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
1217 (_initialize_serial): Use add_basic_prefix_cmd,
1218 add_show_prefix_cmd.
1219 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
1220 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
1221 add_show_prefix_cmd.
1222 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
1223 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
1224 add_show_prefix_cmd.
1225 * riscv-tdep.c (show_riscv_command, set_riscv_command)
1226 (show_debug_riscv_command, set_debug_riscv_command): Remove.
1227 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
1228 add_show_prefix_cmd.
1229 * remote.c (remote_command, set_remote_cmd): Remove.
1230 (_initialize_remote): Use add_basic_prefix_cmd.
1231 * record-full.c (set_record_full_command)
1232 (show_record_full_command): Remove.
1233 (_initialize_record_full): Use add_basic_prefix_cmd,
1234 add_show_prefix_cmd.
1235 * record-btrace.c (cmd_set_record_btrace)
1236 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
1237 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
1238 (cmd_show_record_btrace_pt): Remove.
1239 (_initialize_record_btrace): Use add_basic_prefix_cmd,
1240 add_show_prefix_cmd.
1241 * ravenscar-thread.c (set_ravenscar_command)
1242 (show_ravenscar_command): Remove.
1243 (_initialize_ravenscar): Use add_basic_prefix_cmd,
1244 add_show_prefix_cmd.
1245 * mips-tdep.c (show_mips_command, set_mips_command)
1246 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
1247 add_show_prefix_cmd.
1248 * maint.c (maintenance_command, maintenance_info_command)
1249 (maintenance_check_command, maintenance_print_command)
1250 (maintenance_set_cmd, maintenance_show_cmd): Remove.
1251 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
1252 add_show_prefix_cmd.
1253 (show_per_command_cmd): Remove.
1254 * maint-test-settings.c (maintenance_set_test_settings_cmd):
1255 Remove.
1256 (maintenance_show_test_settings_cmd): Remove.
1257 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
1258 add_show_prefix_cmd.
1259 * maint-test-options.c (maintenance_test_options_command):
1260 Remove.
1261 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
1262 * macrocmd.c (macro_command): Remove
1263 (_initialize_macrocmd): Use add_basic_prefix_cmd.
1264 * language.c (set_check, show_check): Remove.
1265 (_initialize_language): Use add_basic_prefix_cmd,
1266 add_show_prefix_cmd.
1267 * infcmd.c (unset_command): Remove.
1268 (_initialize_infcmd): Use add_basic_prefix_cmd.
1269 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
1270 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
1271 add_show_prefix_cmd.
1272 * go32-nat.c (go32_info_dos_command): Remove.
1273 (_initialize_go32_nat): Use add_basic_prefix_cmd.
1274 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
1275 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
1276 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
1277 (_initialize_frame): Use add_basic_prefix_cmd,
1278 add_show_prefix_cmd.
1279 * dcache.c (set_dcache_command, show_dcache_command): Remove.
1280 (_initialize_dcache): Use add_basic_prefix_cmd,
1281 add_show_prefix_cmd.
1282 * cp-support.c (maint_cplus_command): Remove.
1283 (_initialize_cp_support): Use add_basic_prefix_cmd.
1284 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1285 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1286 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
1287 add_basic_prefix_cmd, add_show_prefix_cmd.
1288 * breakpoint.c (save_command): Remove.
1289 (_initialize_breakpoint): Use add_basic_prefix_cmd.
1290 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
1291 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
1292 add_show_prefix_cmd.
1293 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
1294 (set_ada_command, show_ada_command): Remove.
1295 (_initialize_ada_language): Use add_basic_prefix_cmd,
1296 add_show_prefix_cmd.
1297 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
1298
3557f442
KR
12992020-04-16 Kamil Rytarowski <n54@gmx.com>
1300
1301 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
1302 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
1303
16197208
SM
13042020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1305
1306 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
1307 warning messages.
1308
00ac85d3
SM
13092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1310
1311 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
1312 import table is not at beginning of .idata section.
1313
381ce63f
PA
13142020-04-16 Pedro Alves <palves@redhat.com>
1315
1316 * inferior.c (delete_inferior): Use delete operator directly
1317 instead of delete_program_space.
1318 * progspace.c (add_program_space): New, factored out from
1319 program_space::program_space.
1320 (remove_program_space): New, factored out from
1321 delete_program_space.
1322 (program_space::program_space): Remove intro comment. Rewrite.
1323 (program_space::~program_space): Remove intro comment. Call
1324 remove_program_space.
1325 (delete_program_space): Delete.
1326 * progspace.h (program_space::program_space): Make explicit. Move
1327 intro comment here, adjusted.
1328 (program_space::~program_space): Move intro comment here,
1329 adjusted.
1330 (delete_program_space): Remove.
1331
a010605f
TT
13322020-04-16 Tom Tromey <tromey@adacore.com>
1333
1334 * windows-nat.c (windows_nat::handle_access_violation): New
1335 function.
1336 * nat/windows-nat.h (handle_access_violation): Declare.
1337 * nat/windows-nat.c (handle_exception): Move Cygwin code to
1338 windows-nat.c. Call handle_access_violation.
1339
efba5c23
TV
13402020-04-16 Tom de Vries <tdevries@suse.de>
1341
1342 PR symtab/25791
1343 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
1344 CUs without psymtab.
1345
97ed802d
KB
13462020-04-16 Kevin Buettner <kevinb@redhat.com>
1347
1348 * python/python.c (do_start_initialization): Don't call
1349 PyEval_InitThreads for Python 3.9 and beyond.
1350
c7d64809
KR
13512020-04-15 Kamil Rytarowski <n54@gmx.com>
1352
1353 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
1354 thread functions.
1355 (obsd_nat_target::wait): Likewise.
1356
ce127a96
TT
13572020-04-15 Tom Tromey <tromey@adacore.com>
1358
1359 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1360 (DEBUG_EXCEPT): Use debug_printf.
1361
99f1bc6a
AB
13622020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1363
1364 * completer.c (class completion_tracker::completion_hash_entry)
1365 <hash_name>: New member function.
1366 (completion_tracker::discard_completions): New callback to hash a
1367 completion_hash_entry, pass this to htab_create_alloc.
1368
a0e9b532
JT
13692016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
1370
1371 * windows-nat.c (windows_make_so): Warn rather than stopping with
1372 an error if realpath() fails.
1373
06ca5dd4
KR
13742020-04-14 Kamil Rytarowski <n54@gmx.com>
1375
1376 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
1377 (nbsd_nat_target::info_proc): Add do_status.
1378
194d088f
TV
13792020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
1380 Tom de Vries <tdevries@suse.de>
1381
1382 PR symtab/25718
1383 * psympriv.h (struct partial_symtab::read_symtab)
1384 (struct partial_symtab::expand_psymtab)
1385 (struct partial_symtab::read_dependencies): Update comments.
1386 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
1387 read_symtab for includer.
1388 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
1389 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
1390 (struct dwarf2_include_psymtab::m_readin): Remove.
1391 (struct dwarf2_include_psymtab::includer): New member function.
1392 (dwarf2_psymtab::expand_psymtab): Assert !readin.
1393
c1a66c06
TV
13942020-04-14 Tom de Vries <tdevries@suse.de>
1395
1396 PR symtab/25720
1397 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
1398 with NULL symbol_matcher and lookup_name.
1399 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
1400 and lookup_name.
1401 * dwarf2/read.c (dw2_expand_symtabs_matching)
1402 (dw2_debug_names_expand_symtabs_matching): Same.
1403 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
1404 Make lookup_name a pointer. Update comment.
1405 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
1406 lookup_name being a pointer.
1407 * symfile.c (expand_symtabs_matching): Same.
1408 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
1409 * linespec.c (iterate_over_all_matching_symtabs): Same.
1410
400b5eca
TT
14112020-04-13 Tom Tromey <tom@tromey.com>
1412
1413 * run-on-main-thread.c: Update include.
1414 * unittests/main-thread-selftests.c: Update include.
1415 * tui/tui-win.c: Update include.
1416 * tui/tui-io.c: Update include.
1417 * tui/tui-interp.c: Update include.
1418 * tui/tui-hooks.c: Update include.
1419 * top.h: Update include.
1420 * top.c: Update include.
1421 * ser-base.c: Update include.
1422 * remote.c: Update include.
1423 * remote-notif.c: Update include.
1424 * remote-fileio.c: Update include.
1425 * record-full.c: Update include.
1426 * record-btrace.c: Update include.
1427 * python/python.c: Update include.
1428 * posix-hdep.c: Update include.
1429 * mingw-hdep.c: Update include.
1430 * mi/mi-main.c: Update include.
1431 * mi/mi-interp.c: Update include.
1432 * main.c: Update include.
1433 * linux-nat.c: Update include.
1434 * interps.c: Update include.
1435 * infrun.c: Update include.
1436 * inf-loop.c: Update include.
1437 * event-top.c: Update include.
1438 * event-loop.c: Move to ../gdbsupport/.
1439 * event-loop.h: Move to ../gdbsupport/.
1440 * async-event.h: Update include.
1441 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
1442
93b54c8e
TT
14432020-04-13 Tom Tromey <tom@tromey.com>
1444
1445 * tui/tui-win.c: Include async-event.h.
1446 * remote.c: Include async-event.h.
1447 * remote-notif.c: Include async-event.h.
1448 * record-full.c: Include async-event.h.
1449 * record-btrace.c: Include async-event.h.
1450 * infrun.c: Include async-event.h.
1451 * event-top.c: Include async-event.h.
1452 * event-loop.h: Move some declarations to async-event.h.
1453 * event-loop.c: Don't include ser-event.h or top.h. Move some
1454 code to async-event.c.
1455 * async-event.h: New file.
1456 * async-event.c: New file.
1457 * Makefile.in (COMMON_SFILES): Add async-event.c.
1458 (HFILES_NO_SRCDIR): Add async-event.h.
1459
c1cd3163
TT
14602020-04-13 Tom Tromey <tom@tromey.com>
1461
1462 * utils.c (flush_streams): New function.
1463 * event-loop.c (gdb_wait_for_event): Call flush_streams.
1464
29f2bf4f
TT
14652020-04-13 Tom Tromey <tom@tromey.com>
1466
1467 * event-loop.c (handle_file_event): Use warning, not
1468 printf_unfiltered.
1469
98029d02
TT
14702020-04-13 Tom Tromey <tom@tromey.com>
1471
1472 * event-loop.c: Include <chrono>.
1473
06cc9596
TT
14742020-04-13 Tom Tromey <tom@tromey.com>
1475
1476 * gdb_select.h: Move to ../gdbsupport/.
1477 * event-loop.c: Update include path.
1478 * top.c: Update include path.
1479 * ser-base.c: Update include path.
1480 * ui-file.c: Update include path.
1481 * ser-tcp.c: Update include path.
1482 * guile/scm-ports.c: Update include path.
1483 * posix-hdep.c: Update include path.
1484 * ser-unix.c: Update include path.
1485 * gdb_usleep.c: Update include path.
1486 * mingw-hdep.c: Update include path.
1487 * inflow.c: Update include path.
1488 * infrun.c: Update include path.
1489 * event-top.c: Update include path.
1490
8ae8e197
TT
14912020-04-13 Tom Tromey <tom@tromey.com>
1492
1493 * configure: Rebuild.
1494 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
1495
58cf28e8
TT
14962020-04-13 Tom Tromey <tom@tromey.com>
1497
1498 * event-loop.h (start_event_loop): Don't declare.
1499 * event-loop.c (start_event_loop): Move...
1500 * main.c (start_event_loop): ...here. Now static.
1501
b7f999ae
SDJ
15022020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
1503
1504 * MAINTAINERS: Update my email address.
1505
1085dfd4
KR
15062020-04-12 Kamil Rytarowski <n54@gmx.com>
1507
1508 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
1509 IP_ALL.
1510
49d1d1f5
KR
15112020-04-12 Kamil Rytarowski <n54@gmx.com>
1512
1513 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 1514 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 1515
b4848d2a
KR
15162020-04-12 Kamil Rytarowski <n54@gmx.com>
1517
1518 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 1519 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 1520
51c133d5
KR
15212020-04-12 Kamil Rytarowski <n54@gmx.com>
1522
1523 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
1524
54b8cbd0
KR
15252020-04-11 Kamil Rytarowski <n54@gmx.com>
1526
1527 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
1528 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
1529 (nbsd_nat_target::info_proc): New functions.
1530 * nbsd-nat.c (kinfo_get_vmmap): New function.
1531 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
1532 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
1533 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
1534 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
1535 functions.
1536 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
1537 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1538 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1539 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
1540 (KINFO_VME_FLAG_GROWS_DOWN): New.
1541
cf83625d
AS
15422020-04-10 Artur Shepilko <nomadbyte@gmail.com>
1543
1544 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
1545 bit shift.
1546
0c4311ab
TT
15472020-04-10 Tom Tromey <tromey@adacore.com>
1548
1549 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
1550
3e65b3e9
TT
15512020-04-10 Tom Tromey <tromey@adacore.com>
1552
1553 * symtab.c (get_symbol_address, get_msymbol_address): Skip
1554 separate debug files.
1555
13302e95
HD
15562020-04-10 Hannes Domani <ssbssa@yahoo.de>
1557
1558 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1559 Move to...
1560 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1561 ... here.
1562 * windows-nat.c (windows_nat_target::get_windows_debug_event):
1563 Check for STATUS_WX86_BREAKPOINT.
1564 (windows_nat_target::wait): Same.
1565
bdfc1e8a
TV
15662020-04-10 Tom de Vries <tdevries@suse.de>
1567
1568 PR cli/25808
1569 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
1570
f4460aec
SM
15712020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
1574 (Write After Approval): Remove Tom de Vries.
1575
a25198bb
BE
15762020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
1577
1578 revert partially:
1579 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1580
aac66a4c
SM
1581 * buildsym.c (record_line): Fix undefined behavior and preserve
1582 lines at eof.
a25198bb 1583
206c98a6
KR
15842020-04-09 Kamil Rytarowski <n54@gmx.com>
1585
1586 * auxv.h (svr4_auxv_parse): New.
1587 * auxv.c (default_auxv_parse): Split into default_auxv_parse
1588 and generic_auxv_parse.
1589 (svr4_auxv_parse): Add.
1590 * obsd-tdep.c: Include "auxv.h".
1591 (obsd_auxv_parse): Remove.
1592 (obsd_init_abi): Remove comment.
1593 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
1594 from `obsd_auxv_parse' to `svr4_auxv_parse'.
1595 * nbsd-tdep.c: Include "auxv.h".
1596 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
1597
71fbdbaf
TT
15982020-04-08 Tom Tromey <tromey@adacore.com>
1599
1600 * nat/windows-nat.h (last_wait_event): Don't declare.
1601 (wait_for_debug_event): Update comment.
1602 * nat/windows-nat.c (last_wait_event): Now static.
1603
2c1d95e8
TT
16042020-04-08 Tom Tromey <tromey@adacore.com>
1605
1606 * windows-nat.c (wait_for_debug_event): Move to
1607 nat/windows-nat.c.
1608 * nat/windows-nat.h (wait_for_debug_event): Declare.
1609 * nat/windows-nat.c (wait_for_debug_event): Move from
1610 windows-nat.c. No longer static.
1611
d2977bc4
TT
16122020-04-08 Tom Tromey <tromey@adacore.com>
1613
1614 * windows-nat.c (get_windows_debug_event): Use
1615 fetch_pending_stop.
1616 * nat/windows-nat.h (fetch_pending_stop): Declare.
1617 * nat/windows-nat.c (fetch_pending_stop): New function.
1618
e758e19c
TT
16192020-04-08 Tom Tromey <tromey@adacore.com>
1620
1621 * windows-nat.c (windows_continue): Use matching_pending_stop and
1622 continue_last_debug_event.
1623 * nat/windows-nat.h (matching_pending_stop)
1624 (continue_last_debug_event): Declare.
1625 * nat/windows-nat.c (DEBUG_EVENTS): New define.
1626 (matching_pending_stop, continue_last_debug_event): New
1627 functions.
1628
8d30e395
TT
16292020-04-08 Tom Tromey <tromey@adacore.com>
1630
1631 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
1632 (handle_exception_result): Move to nat/windows-nat.h.
1633 (DEBUG_EXCEPTION_SIMPLE): Remove.
1634 (windows_nat::handle_ms_vc_exception): New function.
1635 (handle_exception): Move to nat/windows-nat.c.
1636 (get_windows_debug_event): Update.
1637 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
1638 nat/windows-nat.c.
1639 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
1640 (handle_exception_result): Move from windows-nat.c.
1641 (handle_exception): Declare.
1642 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
1643 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
1644 windows-nat.c.
1645
29de418d
TT
16462020-04-08 Tom Tromey <tromey@adacore.com>
1647
1648 * windows-nat.c (exception_count, event_count): Remove.
1649 (handle_exception, get_windows_debug_event)
1650 (do_initial_windows_stuff): Update.
1651
a816ba18
TT
16522020-04-08 Tom Tromey <tromey@adacore.com>
1653
1654 * windows-nat.c (windows_nat::handle_load_dll)
1655 (windows_nat::handle_unload_dll): Rename. No longer static.
1656 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
1657 Declare.
1658
a00caa12
TT
16592020-04-08 Tom Tromey <tromey@adacore.com>
1660
1661 * complaints.h (stop_whining): Declare at top-level.
1662 (complaint): Don't declare stop_whining.
1663
d41b524f
TT
16642020-04-08 Tom Tromey <tromey@adacore.com>
1665
1666 * windows-nat.c (windows_nat::handle_output_debug_string):
1667 Rename. No longer static.
1668 * nat/windows-nat.h (handle_output_debug_string): Declare.
1669
3c76026d
TT
16702020-04-08 Tom Tromey <tromey@adacore.com>
1671
1672 * windows-nat.c (current_process_handle, current_process_id)
1673 (main_thread_id, last_sig, current_event, last_wait_event)
1674 (current_windows_thread, desired_stop_thread_id, pending_stops)
1675 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
1676 (display_selectors, fake_create_process)
1677 (get_windows_debug_event): Update.
1678 * nat/windows-nat.h (current_process_handle, current_process_id)
1679 (main_thread_id, last_sig, current_event, last_wait_event)
1680 (current_windows_thread, desired_stop_thread_id, pending_stops)
1681 (struct pending_stop, siginfo_er): Move from windows-nat.c.
1682 * nat/windows-nat.c (current_process_handle, current_process_id)
1683 (main_thread_id, last_sig, current_event, last_wait_event)
1684 (current_windows_thread, desired_stop_thread_id, pending_stops)
1685 (siginfo_er): New globals. Move from windows-nat.c.
1686
9d8679cc
TT
16872020-04-08 Tom Tromey <tromey@adacore.com>
1688
1689 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
1690 (handle_load_dll): Update.
1691 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
1692
28688adf
TT
16932020-04-08 Tom Tromey <tromey@adacore.com>
1694
1695 * windows-nat.c (enum thread_disposition_type): Move to
1696 nat/windows-nat.h.
1697 (windows_nat::thread_rec): Rename from thread_rec. No longer
1698 static.
1699 (windows_add_thread, windows_nat_target::fetch_registers)
1700 (windows_nat_target::store_registers, handle_exception)
1701 (windows_nat_target::resume, get_windows_debug_event)
1702 (windows_nat_target::get_tib_address)
1703 (windows_nat_target::thread_name)
1704 (windows_nat_target::thread_alive): Update.
1705 * nat/windows-nat.h (enum thread_disposition_type): Move from
1706 windows-nat.c.
1707 (thread_rec): Declare.
1708
4834dad0
TT
17092020-04-08 Tom Tromey <tromey@adacore.com>
1710
1711 * windows-nat.c: Add "using namespace".
1712 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
1713 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
1714
65bafd5b
TT
17152020-04-08 Tom Tromey <tromey@adacore.com>
1716
1717 * nat/windows-nat.h (struct windows_thread_info): Declare
1718 destructor.
1719 * nat/windows-nat.c (~windows_thread_info): New.
1720
0a4afda3
TT
17212020-04-08 Tom Tromey <tromey@adacore.com>
1722
1723 PR gdb/22992
1724 * windows-nat.c (current_event): Update comment.
1725 (last_wait_event, desired_stop_thread_id): New globals.
1726 (struct pending_stop): New.
1727 (pending_stops): New global.
1728 (windows_nat_target) <stopped_by_sw_breakpoint>
1729 <supports_stopped_by_sw_breakpoint>: New methods.
1730 (windows_fetch_one_register): Add assertions. Adjust PC.
1731 (windows_continue): Handle pending stops. Suspend other threads
1732 when stepping. Use last_wait_event
1733 (wait_for_debug_event): New function.
1734 (get_windows_debug_event): Use wait_for_debug_event. Handle
1735 pending stops. Queue spurious stops.
1736 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
1737 (windows_nat_target::kill): Use wait_for_debug_event.
1738 * nat/windows-nat.h (struct windows_thread_info)
1739 <stopped_at_software_breakpoint>: New field.
1740 * nat/windows-nat.c (windows_thread_info::resume): Clear
1741 stopped_at_software_breakpoint.
1742
8e61ebec
TT
17432020-04-08 Tom Tromey <tromey@adacore.com>
1744
1745 * windows-nat.c (enum thread_disposition_type): New.
1746 (thread_rec): Replace "get_context" parameter with "disposition";
1747 change type.
1748 (windows_add_thread, windows_nat_target::fetch_registers)
1749 (windows_nat_target::store_registers, handle_exception)
1750 (windows_nat_target::resume, get_windows_debug_event)
1751 (windows_nat_target::get_tib_address)
1752 (windows_nat_target::thread_name)
1753 (windows_nat_target::thread_alive): Update.
1754
98a03287
TT
17552020-04-08 Tom Tromey <tromey@adacore.com>
1756
1757 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
1758 (windows_continue): Use windows_continue::resume.
1759 * nat/windows-nat.h (struct windows_thread_info) <suspend,
1760 resume>: Declare new methods.
1761 * nat/windows-nat.c: New file.
1762 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
1763
7c7411bc
TT
17642020-04-08 Tom Tromey <tromey@adacore.com>
1765
1766 * windows-nat.c (windows_add_thread, windows_delete_thread)
1767 (windows_nat_target::fetch_registers)
1768 (windows_nat_target::store_registers, fake_create_process)
1769 (windows_nat_target::resume, windows_nat_target::resume)
1770 (get_windows_debug_event, windows_nat_target::wait)
1771 (windows_nat_target::pid_to_str)
1772 (windows_nat_target::get_tib_address)
1773 (windows_nat_target::get_ada_task_ptid)
1774 (windows_nat_target::thread_name)
1775 (windows_nat_target::thread_alive): Use lwp, not tid.
1776
2950fdf7
TT
17772020-04-08 Tom Tromey <tromey@adacore.com>
1778
1779 * windows-nat.c (handle_exception)
1780 (windows_nat_target::thread_name): Update.
1781 * nat/windows-nat.h (windows_thread_info): Remove destructor.
1782 <name>: Now unique_xmalloc_ptr.
1783
62fe396b
TT
17842020-04-08 Tom Tromey <tromey@adacore.com>
1785
1786 * windows-nat.c (thread_rec)
1787 (windows_nat_target::fetch_registers): Update.
1788 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
1789 Update comment.
1790 <debug_registers_changed, reload_context>: Now bool.
1791
e9534bd2
TT
17922020-04-08 Tom Tromey <tromey@adacore.com>
1793
1794 * windows-nat.c (windows_add_thread): Use new.
1795 (windows_init_thread_list, windows_delete_thread): Use delete.
1796 (get_windows_debug_event): Update.
1797 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
1798 destructor, and initializers.
1799
ae1f8880
TT
18002020-04-08 Tom Tromey <tromey@adacore.com>
1801
1802 * windows-nat.c (struct windows_thread_info): Remove.
1803 * nat/windows-nat.h: New file.
1804
55a1e039
TT
18052020-04-08 Tom Tromey <tromey@adacore.com>
1806
1807 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
1808 (thread_rec, windows_add_thread, windows_delete_thread)
1809 (windows_continue): Update.
1810
93366324
TT
18112020-04-08 Tom Tromey <tromey@adacore.com>
1812
1813 * windows-nat.c (struct windows_thread_info): Remove typedef.
1814 (thread_head): Remove.
1815 (thread_list): New global.
1816 (thread_rec, windows_add_thread, windows_init_thread_list)
1817 (windows_delete_thread, windows_continue): Update.
1818
0f2265e2
SM
18192020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1820
1821 * windows-tdep.h (windows_init_abi): Add comment.
1822 (cygwin_init_abi): New declaration.
1823 * windows-tdep.c: Split signal enumeration in two, one for
1824 Windows and one for Cygwin.
1825 (windows_gdb_signal_to_target): Only deal with signal of the
1826 Windows OS ABI.
1827 (cygwin_gdb_signal_to_target): New function.
1828 (windows_init_abi): Rename to windows_init_abi_common, don't set
1829 gdb_signal_to_target gdbarch method. Add new new function with
1830 this name.
1831 (cygwin_init_abi): New function.
1832 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
1833 comment. Don't call windows_init_abi.
1834 (amd64_windows_init_abi): Add comment, call windows_init_abi.
1835 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
1836 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
1837 i386_windows_init_abi_common, don't call windows_init_abi. Add
1838 a new function of this name.
1839 (i386_cygwin_init_abi): New function.
1840 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
1841 OS ABI Cygwin.
1842
3810f182
SM
18432020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1844
1845 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
1846 parameter.c.
1847 (dwarf2_read_gdb_index): Update.
1848
063f8e80
KR
18492020-04-07 Kamil Rytarowski <n54@gmx.com>
1850
1851 * nbsd-tdep.c: Include "objfiles.h".
1852 (nbsd_skip_solib_resolver): New.
1853 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
1854
85a9510c 18552020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1856
1857 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
1858 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
1859 with DW_LLE_base_addressx are being emitted in DWARFv5.
1860 Add the newly added kind DW_LOC_OFFSET_PAIR also.
1861 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
1862 unsigned integer.
1863
9fc3eaae 18642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1865
1866 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
1867 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
1868 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
1869 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
1870 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
1871 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
1872 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
1873
1874
41144253 18752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1876
1877 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
1878 (read_loclist_index): New function definition.
1879 (lookup_loclist_base): New function definition.
1880 (read_loclist_header): New function definition.
1881 (dwarf2_cu): Add loclist_base and loclist_header field.
1882 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
1883 (read_full_die_1): Read the value of DW_AT_loclists_base.
1884 (read_attribute_reprocess): Handle DW_FORM_loclistx.
1885 (read_attribute_value): Handle DW_FORM_loclistx.
1886 (skip_one_die): Handle DW_FORM_loclistx.
1887 (loclist_header): New structure declaration.
1888 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
1889
9f4e76a4
SM
18902020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1891
1892 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
1893 constructor. Remove `addr` parameter from other constructor and
1894 add `per_cu` parameter.
1895 * dwarf2/read.c (create_partial_symtab): Update.
1896
25c11aca
TV
18972020-04-07 Tom de Vries <tdevries@suse.de>
1898
1899 PR symtab/25796
1900 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
1901 (partial_die_info::fixup): Inherit has_const_value.
1902
5707e24b
TV
19032020-04-07 Tom de Vries <tdevries@suse.de>
1904
1905 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
1906 symbols without address.
1907
05f00e22
KR
19082020-04-06 Kamil Rytarowski <n54@gmx.com>
1909
1910 * nbsd-nat.h (struct thread_info): Add forward declaration.
1911 (nbsd_nat_target::thread_alive): Add.
1912 (nbsd_nat_target::thread_name): Likewise.
1913 (nbsd_nat_target::update_thread_list): Likewise.
1914 (update_thread_list::post_attach): Likewise.
1915 (post_attach::pid_to_str): Likewise.
1916 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
1917 (nbsd_thread_lister): Add.
1918 (nbsd_nat_target::thread_alive): Likewise.
1919 (nbsd_nat_target::thread_name): Likewise.
1920 (nbsd_add_threads): Likewise.
1921 (update_thread_list::post_attach): Likewise.
1922 (nbsd_nat_target::update_thread_list): Likewise.
1923 (post_attach::pid_to_str): Likewise.
1924
6ee448cc
TT
19252020-04-06 Tom Tromey <tromey@adacore.com>
1926
1927 * ada-valprint.c (print_variant_part): Extract the variant field.
1928 (print_field_values): Use the field as the outer value when
1929 recursing.
1930
dea34e8c
TT
19312020-04-06 Tom Tromey <tromey@adacore.com>
1932
1933 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
1934 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
1935 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
1936 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
1937 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
1938
93689ce9
TT
19392020-04-06 Tom Tromey <tromey@adacore.com>
1940
1941 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
1942 TYPE_CODE_ERROR.
1943
79743962
KR
19442020-04-06 Kamil Rytarowski <n54@gmx.com>
1945
1946 * nbsd-tdep.c: Include "gdbarch.h".
1947 Define enum with NetBSD signal numbers.
1948 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
1949 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
1950 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1951 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
1952 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
1953 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
1954 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
1955 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1956 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
1957 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1958 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1959 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
1960
9e7c9a03
HD
19612020-04-03 Hannes Domani <ssbssa@yahoo.de>
1962
1963 PR gdb/25325
1964 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
1965
d9e49b61
TT
19662020-04-03 Tom Tromey <tromey@adacore.com>
1967
1968 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
1969 Read constant block.
1970
e0fc5c3f
SM
19712020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1972
1973 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
1974 (gdb_bfd_get_full_section_contents): New declaration.
1975 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
1976 * windows-tdep.c (is_linked_with_cygwin_dll): Use
1977 gdb_bfd_get_full_section_contents.
1978
e2ff18a0
SM
19792020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1980
1981 * exec.c (build_section_table): Replace internal_error with
1982 gdb_assert.
1983 (section_table_xfer_memory_partial): Likewise.
1984 * mdebugread.c (parse_partial_symbols): Likewise.
1985 * psymtab.c (lookup_partial_symbol): Likewise.
1986 * utils.c (wrap_here): Likewise.
1987
0830d301
TT
19882020-04-02 Tom Tromey <tromey@adacore.com>
1989
1990 * f-lang.c (build_fortran_types): Use arch_type to initialize
1991 builtin_complex_s32 in the TYPE_CODE_ERROR case.
1992
e7da7f8f
TT
19932020-04-02 Tom Tromey <tromey@adacore.com>
1994
1995 * dwarf2/read.c (partial_die_info::read): Do not create a vector
1996 of attributes.
1997
c90d28ac
AB
19982020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
1999 Bernd Edlinger <bernd.edlinger@hotmail.de>
2000 Tom Tromey <tromey@adacore.com>
2001
2002 * buildsym.c (buildsym_compunit::record_line): Remove
2003 deduplication code.
2004
1aa98955
TV
20052020-04-02 Tom de Vries <tdevries@suse.de>
2006
2007 PR ada/24671
2008 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
2009
d3214198
TV
20102020-04-02 Tom de Vries <tdevries@suse.de>
2011
2012 * dwarf2/read.c (dwarf2_gdb_index_functions,
2013 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
2014 NULL.
2015 * psymtab.c (psym_lookup_global_symbol_language): New function.
2016 (psym_functions): Init psym_lookup_global_symbol_language with
2017 psym_lookup_global_symbol_language.
2018 * symfile-debug.c (debug_sym_quick_functions): Init
2019 lookup_global_symbol_language with NULL.
2020 * symfile.c (set_initial_language): Remove fixme comment.
2021 * symfile.h (struct quick_symbol_functions): Add
2022 lookup_global_symbol_language.
2023 * symtab.c (find_quick_global_symbol_language): New function.
2024 (find_main_name): Use find_quick_global_symbol_language.
2025
2836752f
SM
20262020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
2027
2028 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
2029
64dc2d4b
BE
20302020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2031
2032 * buildsym.c (record_line): Fix undefined behavior and preserve
2033 lines at eof.
2034
bbe3dc41
BE
20352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
2036
2037 * buildsym.c (record_line): Fix the resizing condition.
2038
6b4a335b
TT
20392020-04-01 Tom Tromey <tom@tromey.com>
2040
2041 * value.h (value_literal_complex): Add comment.
2042 * valops.c (value_literal_complex): Refer to value.h.
2043
3638a098
TT
20442020-04-01 Tom Tromey <tom@tromey.com>
2045
2046 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
2047 (scalar_type): New rule, from typebase.
2048 (typebase): Use scalar_type. Recognize complex types.
2049 (field_name): Handle FLOAT_KEYWORD.
2050 (ident_tokens): Add _Complex and __complex__.
2051
c34e8714
TT
20522020-04-01 Tom Tromey <tom@tromey.com>
2053
2054 PR exp/25299:
2055 * valarith.c (promotion_type, complex_binop): New functions.
2056 (scalar_binop): Handle complex numbers. Use promotion_type.
2057 (value_pos, value_neg, value_complement): Handle complex numbers.
2058
fa649bb7
TT
20592020-04-01 Tom Tromey <tom@tromey.com>
2060
2061 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
2062 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
2063 (parse_number): Handle complex numbers.
2064
981c08ce
TT
20652020-04-01 Tom Tromey <tom@tromey.com>
2066
2067 * c-valprint.c (c_decorations): Change complex suffix to "i".
2068
4c99290d
TT
20692020-04-01 Tom Tromey <tom@tromey.com>
2070
2071 * valprint.c (generic_value_print_complex): Use accessors.
2072 * value.h (value_real_part, value_imaginary_part): Declare.
2073 * valops.c (value_real_part, value_imaginary_part): New
2074 functions.
2075 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
2076
5b930b45
TT
20772020-04-01 Tom Tromey <tom@tromey.com>
2078
2079 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
2080 (read_range_type): Update.
2081 * mdebugread.c (basic_type): Update.
2082 * go-lang.c (build_go_types): Use init_complex_type.
2083 * gdbtypes.h (struct main_type) <complex_type>: New member.
2084 (init_complex_type): Update.
2085 (arch_complex_type): Don't declare.
2086 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
2087 Make name if none given. Use alloc_type_copy. Look for cached
2088 complex type.
2089 (arch_complex_type): Remove.
2090 (gdbtypes_post_init): Use init_complex_type.
2091 * f-lang.c (build_fortran_types): Use init_complex_type.
2092 * dwarf2/read.c (read_base_type): Update.
2093 * d-lang.c (build_d_types): Use init_complex_type.
2094 * ctfread.c (read_base_type): Update.
2095
53cccef1
TBA
20962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2097
2098 * infrun.c (stop_all_threads): Update assertion, plus when
2099 stopping threads, take into account that we might be trying
2100 to stop an all-stop target.
2101 (stop_waiting): Call 'stop_all_threads' if there exists a
2102 non-stop target.
2103
a0714d30
TBA
21042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2105
2106 * target.h (exists_non_stop_target): New function declaration.
2107 * target.c (exists_non_stop_target): New function.
2108
60e22c1e
HD
21092020-04-01 Hannes Domani <ssbssa@yahoo.de>
2110
2111 PR gdb/24789
2112 * eval.c (is_integral_or_integral_reference): New function.
2113 (evaluate_subexp_standard): Allow integer references in
2114 pointer arithmetic.
2115
e139a727
TBA
21162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2117
2118 * remote.c (remote_target::remote_parse_stop_reply): Remove the
2119 check for no ptid in the stop reply when the target is non-stop.
2120
e0802d59
TT
21212020-04-01 Tom Tromey <tromey@adacore.com>
2122
2123 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
2124 "name" parameter to rvalue reference. Initialize m_name_holder.
2125 <lookup_name_info>: New overloads.
2126 <name>: Return gdb::string_view.
2127 <c_str>: New method.
2128 <make_ignore_params>: Update.
2129 <search_name_hash>: Update.
2130 <language_lookup_name>: Return const char *.
2131 <m_name>: Change type.
2132 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
2133 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
2134 (lookup_name_info::match_any): Update.
2135 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
2136 Update.
2137 * minsyms.c (linkage_name_str): Update.
2138 * language.c (default_symbol_name_matcher): Update.
2139 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
2140 Update.
2141 * ada-lang.c (ada_fold_name): Change parameter to string_view.
2142 (ada_lookup_name_info::ada_lookup_name_info): Update.
2143 (literal_symbol_name_matcher): Update.
2144
8c072cb6
TT
21452020-04-01 Tom Tromey <tromey@adacore.com>
2146
2147 * psymtab.c (psymtab_search_name): Remove function.
2148 (psym_lookup_symbol): Create search name and lookup name here.
2149 (lookup_partial_symbol): Remove "name" parameter; add
2150 lookup_name.
2151 (psym_expand_symtabs_for_function): Update.
2152
6f29a534
TT
21532020-03-31 Joel Jones <joelkevinjones@gmail.com>
2154
2155 PR tui/25597:
2156 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
2157
af62665e
TT
21582020-03-31 Tom Tromey <tromey@adacore.com>
2159
2160 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
2161 memcpy.
2162
d1a89da5
NC
21632020-03-30 Nelson Chu <nelson.chu@sifive.com>
2164
2165 * features/riscv/32bit-csr.xml: Regenerated.
2166 * features/riscv/64bit-csr.xml: Regenerated.
2167
d8af9068
TT
21682020-03-30 Tom Tromey <tromey@adacore.com>
2169
2170 * ada-valprint.c (print_variant_part): Update.
2171 * ada-lang.h (ada_which_variant_applies): Update.
2172 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
2173 outer_valaddr parameters; replace with "outer" value parameter.
2174 (to_fixed_variant_branch_type): Update.
2175
227c0bf4
PFC
21762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2177
2178 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
2179 <list>. Remove inclusion of observable.h.
2180 (PPC_DEBUG_CURRENT_VERSION): Move up define.
2181 (struct arch_lwp_info): New struct.
2182 (class ppc_linux_dreg_interface): New class.
2183 (struct ppc_linux_process_info): New struct.
2184 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
2185 <low_new_clone, low_forget_process, low_prepare_to_resume>
2186 <copy_thread_dreg_state, mark_thread_stale>
2187 <mark_debug_registers_changed, register_hw_breakpoint>
2188 <clear_hw_breakpoint, register_wp, clear_wp>
2189 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
2190 <num_memory_accesses, get_trigger_type>
2191 <create_watchpoint_request, hwdebug_point_cmp>
2192 <init_arch_lwp_info, get_arch_lwp_info>
2193 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
2194 methods.
2195 <struct ptid_hash>: New inner struct.
2196 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
2197 members.
2198 (saved_dabr_value, hwdebug_info, max_slots_number)
2199 (struct hw_break_tuple, struct thread_points, ppc_threads)
2200 (have_ptrace_hwdebug_interface)
2201 (hwdebug_find_thread_points_by_tid)
2202 (hwdebug_insert_point, hwdebug_remove_point): Remove.
2203 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
2204 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
2205 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
2206 use m_dreg_interface.
2207 (hwdebug_point_cmp): Change to...
2208 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
2209 reference arguments instead of pointers.
2210 (ppc_linux_nat_target::ranged_break_num_registers): Use
2211 m_dreg_interface.
2212 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
2213 m_dreg_interface. Call register_hw_breakpoint.
2214 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
2215 m_dreg_interface. Call clear_hw_breakpoint.
2216 (get_trigger_type): Change to...
2217 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
2218 comment.
2219 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
2220 use m_dreg_interface. Call register_hw_breakpoint.
2221 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
2222 use m_dreg_interface. Call clear_hw_breakpoint.
2223 (can_use_watchpoint_cond_accel): Change to...
2224 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
2225 method. Update comment, use m_dreg_interface and
2226 m_process_info.
2227 (calculate_dvc): Change to...
2228 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
2229 m_dreg_interface.
2230 (num_memory_accesses): Change to...
2231 (ppc_linux_nat_target::num_memory_accesses): ...this method.
2232 (check_condition): Change to...
2233 (ppc_linux_nat_target::check_condition): ...this method.
2234 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
2235 comment, use m_dreg_interface.
2236 (create_watchpoint_request): Change to...
2237 (ppc_linux_nat_target::create_watchpoint_request): ...this
2238 method. Use m_dreg_interface.
2239 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
2240 m_dreg_interface. Call register_hw_breakpoint or register_wp.
2241 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
2242 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
2243 (ppc_linux_nat_target::low_forget_process)
2244 (ppc_linux_nat_target::low_new_fork)
2245 (ppc_linux_nat_target::low_new_clone)
2246 (ppc_linux_nat_target::low_delete_thread)
2247 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
2248 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
2249 only call mark_thread_stale.
2250 (ppc_linux_thread_exit): Remove.
2251 (ppc_linux_nat_target::stopped_data_address): Change to...
2252 (ppc_linux_nat_target::low_stopped_data_address): This. Add
2253 comment, use m_dreg_interface and m_thread_hw_breakpoints.
2254 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
2255 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
2256 comment. Call low_stopped_data_address.
2257 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
2258 m_dreg_interface.
2259 (ppc_linux_nat_target::masked_watch_num_registers): Use
2260 m_dreg_interface.
2261 (ppc_linux_nat_target::copy_thread_dreg_state)
2262 (ppc_linux_nat_target::mark_thread_stale)
2263 (ppc_linux_nat_target::mark_debug_registers_changed)
2264 (ppc_linux_nat_target::register_hw_breakpoint)
2265 (ppc_linux_nat_target::clear_hw_breakpoint)
2266 (ppc_linux_nat_target::register_wp)
2267 (ppc_linux_nat_target::clear_wp)
2268 (ppc_linux_nat_target::init_arch_lwp_info)
2269 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
2270 (_initialize_ppc_linux_nat): Remove observer callback.
2271
4db10d8f
PFC
22722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2273
2274 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
2275 (ppc_linux_nat_target::auxv_parse)
2276 (ppc_linux_nat_target::read_description)
2277 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2278 Move up.
2279
1310c1b0
PFC
22802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2281
2282 * linux-nat.h (low_new_clone): New method.
2283 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
2284
69b037c3
SM
22852020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
2288 (dbx_expand_psymtab): ... this.
2289 (start_psymtab): Update.
2290 * mdebugread.c (psymtab_to_symtab_1): Rename to...
2291 (mdebug_expand_psymtab): ... this.
2292 (parse_partial_symbols): Update.
2293 (new_psymtab): Update.
2294 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
2295 (xcoff_expand_psymtab): ... this.
2296 (xcoff_start_psymtab): Update.
2297
48993951
SM
22982020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2299
2300 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
2301 <expand_dependencies>: ... this.
2302 * psymtab.c (partial_symtab::read_dependencies): Rename to...
2303 (partial_symtab::expand_dependencies): ... this.
2304 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
2305 Update.
2306 (dwarf2_psymtab::expand_psymtab): Update.
2307 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2308 * mdebugread.c (psymtab_to_symtab_1): Update.
2309 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2310
3ad83046
SM
23112020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * psympriv.h (discard_psymtab): Remove.
2314 * dbxread.c (dbx_end_psymtab): Update.
2315 * xcoffread.c (xcoff_end_psymtab): Update.
2316
4d1b9ab6
TT
23172020-03-28 Tom Tromey <tom@tromey.com>
2318
2319 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
2320 comment.
2321
f1749218
TT
23222020-03-28 Tom Tromey <tom@tromey.com>
2323
2324 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
2325
ebea7626
HD
23262020-03-27 Hannes Domani <ssbssa@yahoo.de>
2327
2328 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2329
a879b4d5
JB
23302020-03-26 John Baldwin <jhb@FreeBSD.org>
2331
2332 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
2333
0826b30a
TT
23342020-03-26 Tom Tromey <tom@tromey.com>
2335
2336 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
2337 (mark_common_block_symbol_computed, read_tag_string_type)
2338 (attr_to_dynamic_prop, read_subrange_type): Update.
2339 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
2340 to be methods on struct attribute.
2341 (skip_one_die, process_imported_unit_die, read_namespace_alias)
2342 (read_call_site_scope, partial_die_info::read)
2343 (partial_die_info::read, lookup_die_type, follow_die_ref):
2344 Update.
2345 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
2346 from dwarf2_get_ref_die_offset.
2347 (attribute::constant_value): New method, from
2348 dwarf2_get_attr_constant_value.
2349 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
2350 Declare method.
2351 <constant_value>: New method.
2352
2b2558bf
TT
23532020-03-26 Tom Tromey <tom@tromey.com>
2354
2355 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
2356 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
2357 (dwarf_type_encoding_name): Move to stringify.c.
2358 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
2359 * dwarf2/stringify.c: New file.
2360 * dwarf2/stringify.h: New file.
2361
eeb64781
TT
23622020-03-26 Tom Tromey <tom@tromey.com>
2363
2364 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
2365 Rewrite.
2366
a39fdb41
TT
23672020-03-26 Tom Tromey <tom@tromey.com>
2368
2369 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
2370 methods.
2371 * dwarf2/read.c (lookup_addr_base): Move to die.h.
2372 (lookup_ranges_base): Likewise.
2373 (read_cutu_die_from_dwo, read_full_die_1): Update.
2374
436c571c
TT
23752020-03-26 Tom Tromey <tom@tromey.com>
2376
2377 * dwarf2/read.c (read_import_statement, read_file_scope)
2378 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
2379 (read_lexical_block_scope, read_call_site_scope)
2380 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
2381 (handle_struct_member_die, process_structure_scope)
2382 (update_enumeration_type_from_children)
2383 (process_enumeration_scope, read_array_type, read_common_block)
2384 (read_namespace, read_module, read_subroutine_type): Update.
2385 (sibling_die): Remove.
2386
052c8bb8
TT
23872020-03-26 Tom Tromey <tom@tromey.com>
2388
2389 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
2390 (build_type_psymtabs_reader, read_structure_type)
2391 (read_enumeration_type, read_full_die_1): Update.
2392 (dwarf2_attr_no_follow): Move to die.h.
2393 * dwarf2/die.h (struct die_info) <attr>: New method.
2394
2b24b6e4
TT
23952020-03-26 Tom Tromey <tom@tromey.com>
2396
2397 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
2398 <base_address>: Now an optional.
2399 (dwarf2_find_base_address, dwarf2_rnglists_process)
2400 (dwarf2_ranges_process, fill_in_loclist_baton)
2401 (dwarf2_symbol_mark_computed): Update.
2402
c2d50fd0
TT
24032020-03-26 Tom Tromey <tom@tromey.com>
2404
2405 * dwarf2/read.c (struct die_info): Move to die.h.
2406 * dwarf2/die.h: New file.
2407
0df7ad3a
TT
24082020-03-26 Tom Tromey <tom@tromey.com>
2409
2410 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
2411 * dwarf2/read.c
2412 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2413 Move to line-header.c.
2414 (read_checked_initial_length_and_offset, read_formatted_entries):
2415 Likewise.
2416 (dwarf_decode_line_header): Split into two.
2417 * dwarf2/line-header.c
2418 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2419 Move from read.c.
2420 (read_checked_initial_length_and_offset, read_formatted_entries):
2421 Likewise.
2422 (dwarf_decode_line_header): New function, split from read.c.
2423
86c0bb4c
TT
24242020-03-26 Tom Tromey <tom@tromey.com>
2425
2426 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
2427 Declare method.
2428 * dwarf2/read.c (read_attribute_value): Update.
2429 (dwarf2_per_objfile::read_line_string): Rename from
2430 read_indirect_line_string.
2431 (read_formatted_entries): Update.
2432
2ef46c2f
TT
24332020-03-26 Tom Tromey <tom@tromey.com>
2434
2435 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
2436 variable.
2437
4f9c1eda
TT
24382020-03-26 Tom Tromey <tom@tromey.com>
2439
2440 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
2441 const.
2442 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
2443 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
2444 parameter const.
2445
5a0e026f
TT
24462020-03-26 Tom Tromey <tom@tromey.com>
2447
2448 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
2449 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
2450 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
2451 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
2452
8844c11b
TT
24532020-03-26 Tom Tromey <tom@tromey.com>
2454
2455 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
2456 file_names_size, file_full_name, file_file_name>: Use const.
2457 <file_name_at, file_names>: Add const overload.
2458 * dwarf2/line-header.c (line_header::file_file_name)
2459 (line_header::file_full_name): Update.
2460
c90ec28a
TT
24612020-03-26 Tom Tromey <tom@tromey.com>
2462
2463 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
2464 (macro_start_file, consume_improper_spaces)
2465 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
2466 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
2467 (dwarf_decode_macros): Move to macro.c.
2468 * dwarf2/macro.c: New file.
2469 * dwarf2/macro.h: New file.
2470 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
2471
4f44ae6c
TT
24722020-03-26 Tom Tromey <tom@tromey.com>
2473
2474 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
2475 method.
2476 * dwarf2/section.c: New method. From
2477 read_indirect_string_at_offset_from.
2478 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
2479 (read_indirect_string_at_offset_from): Move to section.c.
2480 (read_indirect_string_at_offset): Rewrite.
2481 (read_indirect_line_string_at_offset): Remove.
2482 (read_indirect_string, read_indirect_line_string)
2483 (dwarf_decode_macro_bytes): Update.
2484
a0194fa8
TT
24852020-03-26 Tom Tromey <tom@tromey.com>
2486
2487 * dwarf2/section.h (struct dwarf2_section_info)
2488 <overload_complaint>: Declare.
2489 (dwarf2_section_buffer_overflow_complaint): Don't declare.
2490 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
2491 Rename from dwarf2_section_buffer_overflow_complaint.
2492 * dwarf2/read.c (skip_one_die, partial_die_info::read)
2493 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
2494
3d27bbdb
TT
24952020-03-26 Tom Tromey <tom@tromey.com>
2496
2497 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
2498 Declare.
2499 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
2500 Move from read.c.
2501 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
2502 to section.c.
2503
9eac9650
TT
25042020-03-26 Tom Tromey <tom@tromey.com>
2505
2506 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
2507
bf80d710
TT
25082020-03-26 Tom Tromey <tom@tromey.com>
2509
2510 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
2511 "builder".
2512 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
2513 parameter.
2514 (dwarf_decode_macros): Update.
2515
0314b390
TT
25162020-03-26 Tom Tromey <tom@tromey.com>
2517
2518 * dwarf2/read.c (read_attribute_value): Update.
2519 (read_indirect_string_from_dwz): Move to dwz.c; change into
2520 method.
2521 (dwarf_decode_macro_bytes): Update.
2522 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
2523 * dwarf2/dwz.c: New file.
2524 * Makefile.in (COMMON_SFILES): Add dwz.c.
2525
9fda78b6
TT
25262020-03-26 Tom Tromey <tom@tromey.com>
2527
2528 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
2529 * dwarf2/read.c: Add include.
2530 * dwarf2/index-write.c: Add include.
2531 * dwarf2/index-cache.c: Add include.
2532 * dwarf2/dwz.h: New file.
2533
33aa3c10
TT
25342020-03-25 Tom Tromey <tom@tromey.com>
2535
2536 * compile/compile-object-load.c (get_out_value_type): Mention
2537 correct symbol name in error message.
2538
d503b685
HD
25392020-03-25 Hannes Domani <ssbssa@yahoo.de>
2540
2541 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2542
7b1eff95
TV
25432020-03-25 Tom de Vries <tdevries@suse.de>
2544
2545 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
2546 * symmisc.c (dump_symtab_1): Print user and includes fields.
2547 (maintenance_info_symtabs): Same.
2548
dd895392
AB
25492020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 PR gdb/25534
2552 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
2553 (riscv_regcache_cooked_write): New function.
2554 (riscv_push_dummy_call): Use new function.
2555 (riscv_return_value): Likewise.
2556
5ab2fbf1
SM
25572020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
2560 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
2561 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
2562 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
2563 * infrun.c (follow_fork): Likewise.
2564 (follow_fork_inferior): Likewise.
2565 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
2566 * linux-nat.h (class linux_nat_target): Likewise.
2567 * remote.c (class remote_target) <follow_fork>: Likewise.
2568 (remote_target::follow_fork): Likewise.
2569 * target-delegates.c: Re-generate.
2570 * target.c (default_follow_fork): Likewise.
2571 (target_follow_fork): Likewise.
2572 * target.h (struct target_ops) <follow_fork>: Likewise.
2573 (target_follow_fork): Likewise.
2574
a64fafb5
TV
25752020-03-24 Tom de Vries <tdevries@suse.de>
2576
2577 * psymtab.c (maintenance_info_psymtabs): Print user field.
2578
fe26d3a3
TT
25792020-03-20 Tom Tromey <tromey@adacore.com>
2580
2581 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
2582 const.
2583 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
2584 const.
2585
c884cc46
SM
25862020-03-20 Simon Marchi <simon.marchi@efficios.com>
2587
2588 * ptrace.m4: Don't check for ptrace declaration.
2589 * config.in: Re-generate.
2590 * configure: Re-generate.
2591 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
2592 not defined.
2593
1ff700c2
KR
25942020-03-20 Kamil Rytarowski <n54@gmx.com>
2595
2596 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
2597 `PTRACE_TYPE_RET'.
2598 * i386-bsd-nat.c (gdb_ptrace): Likewise.
2599 * sparc-nat.c (gdb_ptrace): Likewise.
2600 * x86-bsd-nat.c (gdb_ptrace): Likewise.
2601
f7d4f0b1
TT
26022020-03-20 Tom Tromey <tromey@adacore.com>
2603
2604 * c-exp.y (lex_one_token): Fix assert.
2605
f67210ff
TT
26062020-03-20 Tom Tromey <tromey@adacore.com>
2607
2608 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
2609 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
2610 strncpy call.
2611
1773be9e
TT
26122020-03-20 Tom Tromey <tromey@adacore.com>
2613
2614 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
2615
70304be9
TT
26162020-03-20 Tom Tromey <tromey@adacore.com>
2617
2618 * ada-valprint.c (print_variant_part): Remove parameters; switch
2619 to value-based API.
2620 (print_field_values): Likewise.
2621 (ada_val_print_struct_union): Likewise.
2622 (ada_value_print_1): Update.
2623
9faa006d
KR
26242020-03-20 Kamil Rytarowski <n54@gmx.com>
2625
2626 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
2627 nbsd_nat_target instead of inf_ptrace_target.
2628 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2629 nbsd_nat_target.
2630
4a90f062
KR
26312020-03-20 Kamil Rytarowski <n54@gmx.com>
2632
2633 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
2634 it to the ptrace call.
2635 * (store_registers): Likewise.
2636
26372020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
2638
2639 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
2640 it to the ptrace call.
2641 * (store_registers): Likewise.
2642
2d07da27
LM
26432020-03-19 Luis Machado <luis.machado@linaro.org>
2644
2645 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
2646 valid, fetch vg value from ptrace.
2647
f09db380
KR
26482020-03-19 Kamil Rytarowski <n54@gmx.com>
2649 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
2650 * inf-ptrace.c: Likewise.
2651 * (gdb_ptrace): Add.
2652 * (inf_ptrace_target::resume): Update.
2653 * (inf_ptrace_target::xfer_partial): Likewise.
2654 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
2655 * (inf_ptrace_peek_poke): Update.
2656
fcc7376e
KR
26572020-03-19 Kamil Rytarowski <n54@gmx.com>
2658
2659 * x86-bsd-nat.c (gdb_ptrace): New.
2660 * (x86bsd_dr_set): Add new argument `ptid'.
2661 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
2662 x86bsd_dr_set_addr): Update.
2663
cada5fc9
AB
26642020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * remote.c (remote_target::process_stop_reply): Handle events for
2667 all threads differently.
2668
19a2740f
AB
26692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * completer.c (completion_tracker::remove_completion): Define new
2672 function.
2673 * completer.h (completion_tracker::remove_completion): Declare new
2674 function.
2675 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
2676 when adding a C++ function symbol.
2677
724fd9ba
AB
26782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * completer.c (completion_tracker::completion_hash_entry): Define
2681 new class.
2682 (advance_to_filename_complete_word_point): Call
2683 recompute_lowest_common_denominator.
2684 (completion_tracker::completion_tracker): Call discard_completions
2685 to setup the hash table.
2686 (completion_tracker::discard_completions): Allow for being called
2687 from the constructor, pass new equal function, and element deleter
2688 when constructing the hash table. Initialise new class member
2689 variables.
2690 (completion_tracker::maybe_add_completion): Remove use of
2691 m_entries_vec, and store more information into m_entries_hash.
2692 (completion_tracker::recompute_lcd_visitor): New function, most
2693 content taken from...
2694 (completion_tracker::recompute_lowest_common_denominator):
2695 ...here, this now just visits each item in the hash calling the
2696 above visitor.
2697 (completion_tracker::build_completion_result): Remove use of
2698 m_entries_vec, call recompute_lowest_common_denominator.
2699 * completer.h (completion_tracker::have_completions): Remove use
2700 of m_entries_vec.
2701 (completion_tracker::completion_hash_entry): Declare new class.
2702 (completion_tracker::recompute_lowest_common_denominator): Change
2703 function signature.
2704 (completion_tracker::recompute_lcd_visitor): Declare new function.
2705 (completion_tracker::m_entries_vec): Delete.
2706 (completion_tracker::m_entries_hash): Initialize to NULL.
2707 (completion_tracker::m_lowest_common_denominator_valid): New
2708 member variable.
2709 (completion_tracker::m_lowest_common_denominator_max_length): New
2710 member variable.
2711
5a82b8a1
KR
27122020-03-17 Kamil Rytarowski <n54@gmx.com>
2713
2714 * regformats/regdef.h: Put reg in gdb namespace.
2715
fb516a69
KR
27162020-03-17 Kamil Rytarowski <n54@gmx.com>
2717
2718 * i386-bsd-nat.c (gdb_ptrace): New.
2719 * (i386bsd_fetch_inferior_registers,
2720 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2721 * (i386bsd_fetch_inferior_registers,
2722 i386bsd_store_inferior_registers) Use gdb_ptrace.
2723
1c0aa1fb
KR
27242020-03-17 Kamil Rytarowski <n54@gmx.com>
2725
2726 * amd64-bsd-nat.c (gdb_ptrace): New.
2727 * (amd64bsd_fetch_inferior_registers,
2728 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2729 * (amd64bsd_fetch_inferior_registers,
2730 amd64bsd_store_inferior_registers) Use gdb_ptrace.
2731
5ccd2fb7
KR
27322020-03-17 Kamil Rytarowski <n54@gmx.com>
2733
2734 * user-regs.c (user_reg::read): Rename to...
2735 (user_reg::xread): ...this.
2736 * (append_user_reg): Rename argument `read' to `xread'.
2737 * (user_reg_add_builtin): Likewise.
2738 * (user_reg_add): Likewise.
2739 * (value_of_user_reg): Likewise.
2740
2108a63a
KR
27412020-03-17 Kamil Rytarowski <n54@gmx.com>
2742
2743 * sparc-nat.c (gdb_ptrace): New.
2744 * sparc-nat.c (sparc_fetch_inferior_registers)
2745 (sparc_store_inferior_registers) Remove obsolete comment.
2746 * sparc-nat.c (sparc_fetch_inferior_registers)
2747 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
2748 * sparc-nat.c (sparc_fetch_inferior_registers)
2749 (sparc_store_inferior_registers) Use gdb_ptrace.
2750
a225c9a8
KR
27512020-03-17 Kamil Rytarowski <n54@gmx.com>
2752
2753 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
2754 it to the ptrace call.
2755 * sh-nbsd-nat.c (store_registers): Likewise.
2756
98097623
KR
27572020-03-17 Kamil Rytarowski <n54@gmx.com>
2758
2759 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
2760 nbsd_nat_target instead of inf_ptrace_target.
2761 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2762 nbsd_nat_target.
2763
9e38d619
KR
27642020-03-17 Kamil Rytarowski <n54@gmx.com>
2765
2766 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
2767
a2ecbe9f
KR
27682020-03-17 Kamil Rytarowski <n54@gmx.com>
2769
2770 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
2771 <sys/sysctl.h>.
2772 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
2773
58990295
TV
27742020-03-17 Tom de Vries <tdevries@suse.de>
2775
2776 PR gdb/23710
2777 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
2778 fields.
2779 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
2780 fields.
2781 (process_imported_unit_die): Skip import of c++ CUs.
2782
771dd3a8
TT
27832020-03-16 Tom Tromey <tom@tromey.com>
2784
2785 * p-valprint.c (pascal_object_print_value): Initialize
2786 base_value.
2787
817a7585
AK
27882020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
2789 Shahab Vahedi <shahab@synopsys.com>
2790
2791 * Makefile.in: Add arch/arc.o
2792 * configure.tgt: Likewise.
2793 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
2794 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 2795 (arc_read_description): New function to cache target descriptions.
817a7585
AK
2796 * arc-tdep.h (arc_read_description): Add proto type.
2797 * arch/arc.c: New file.
2798 * arch/arc.h: Likewise.
2799 * features/Makefile: Replace old target descriptions with new.
2800 * features/arc-arcompact.c: Remove.
2801 * features/arc-arcompact.xml: Likewise.
2802 * features/arc-v2.c: Likewise
2803 * features/arc-v2.xml: Likewise
2804 * features/arc/aux-arcompact.xml: New file.
2805 * features/arc/aux-v2.xml: Likewise.
2806 * features/arc/core-arcompact.xml: Likewise.
2807 * features/arc/core-v2.xml: Likewise.
2808 * features/arc/aux-arcompact.c: Generate.
2809 * features/arc/aux-v2.c: Likewise.
2810 * features/arc/core-arcompact.c: Likewise.
2811 * features/arc/core-v2.c: Likewise.
2812 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2813
67430cd0
TT
28142020-03-16 Tom Tromey <tromey@adacore.com>
2815
2816 PR gdb/25663:
2817 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
2818 putting value into bcache.
2819
30efb6c7
SM
28202020-03-16 Simon Marchi <simon.marchi@efficios.com>
2821
2822 PR gdb/21500
2823 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
2824 to...
2825 (amd64_windows_init_abi_common): ... this. Don't set size of
2826 long type.
2827 (amd64_windows_init_abi): New function.
2828 (amd64_cygwin_init_abi): New function.
2829 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
2830 the Cygwin OS ABI.
2831 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
2832 comment.
2833
8db52437
SM
28342020-03-16 Simon Marchi <simon.marchi@efficios.com>
2835
2836 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
2837 * windows-tdep.c (CYGWIN_DLL_NAME): New.
2838 (pe_import_directory_entry): New struct type.
2839 (is_linked_with_cygwin_dll): New function.
2840 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
2841 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
2842 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
2843
5982a56a
SM
28442020-03-16 Simon Marchi <simon.marchi@efficios.com>
2845
2846 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
2847 i386_cygwin_core_osabi_sniffer.
2848
7a1998df
SM
28492020-03-16 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * i386-cygwin-tdep.c: Rename to...
2852 * i386-windows-tdep.c: ... this.
2853 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
2854 i386-windows-tdep.c.
2855 * configure.tgt: Likewise.
2856
053205cc
SM
28572020-03-16 Simon Marchi <simon.marchi@efficios.com>
2858
2859 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
2860 * osabi.c (gdb_osabi_names): Add "Windows".
2861 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
2862 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
2863 (i386_cygwin_core_osabi_sniffer): New function, extracted from
2864 i386_cygwin_osabi_sniffer.
2865 (_initialize_i386_cygwin_tdep): Register OS ABI
2866 GDB_OSABI_WINDOWS for i386.
2867 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
2868 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
2869 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
2870 for x86-64.
2871 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
2872 when the target matches '*-*-mingw*'.
2873
fe4b2ee6
SM
28742020-03-16 Simon Marchi <simon.marchi@efficios.com>
2875
2876 * defs.h (enum gdb_osabi): Move to...
2877 * osabi.h (enum gdb_osabi): ... here.
2878 * gdbarch.sh: Include osabi.h in gdbarch.h.
2879 * gdbarch.h: Re-generate.
2880
cb9b645d
SM
28812020-03-16 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
2884 function.
2885 (_initialize_amd64_windows_tdep): Register osabi sniffer.
2886
3293bbaf
TT
28872020-03-14 Tom Tromey <tom@tromey.com>
2888
2889 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
2890 for C++.
2891 (c_type_print_modifier): Likewise. Add "language" parameter.
2892 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
2893 (c_type_print_base_1): Update.
2894 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
2895 constants.
2896 * type-stack.c (type_stack::insert): Handle tp_atomic and
2897 tp_restrict.
2898 (type_stack::follow_type_instance_flags): Likewise.
2899 (type_stack::follow_types): Likewise. Merge type-following code.
2900 * c-exp.y (RESTRICT, ATOMIC): New tokens.
2901 (space_identifier, cv_with_space_id)
2902 (const_or_volatile_or_space_identifier_noopt)
2903 (const_or_volatile_or_space_identifier): Remove.
2904 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
2905 rules.
2906 (ptr_operator, typebase): Update.
2907 (enum token_flag) <FLAG_C>: New constant.
2908 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
2909 "_Atomic".
2910 (lex_one_token): Handle FLAG_C.
2911
154151a6
KR
29122020-03-14 Kamil Rytarowski <n54@gmx.com>
2913
2914 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
2915 it to the ptrace call.
2916 * m68k-bsd-nat.c (store_registers): Likewise.
2917
bc107784
KR
29182020-03-14 Kamil Rytarowski <n54@gmx.com>
2919
2920 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
2921 gdb_byte *.
2922 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2923 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
2924 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
2925
01a80117
KR
29262020-03-14 Kamil Rytarowski <n54@gmx.com>
2927
2928 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
2929 nbsd_nat_target instead of inf_ptrace_target.
2930 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2931 nbsd_nat_target.
2932
f90280ca
KR
29332020-03-14 Kamil Rytarowski <n54@gmx.com>
2934
2935 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
2936 register_t.
2937
6def66f1
KR
29382020-03-14 Kamil Rytarowski <n54@gmx.com>
2939
2940 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
2941 it to the ptrace call.
2942 * alpha-bsd-nat.c (store_registers): Likewise.
2943
66eaca97
KR
29442020-03-14 Kamil Rytarowski <n54@gmx.com>
2945
2946 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
2947 includes.
2948 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
2949 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2950 fill_fpregset): Likewise.
2951
4fed520b
KR
29522020-03-14 Kamil Rytarowski <n54@gmx.com>
2953
2954 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
2955 nbsd_nat_target instead of inf_ptrace_target.
2956 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2957 nbsd_nat_target.
2958
2190cf06
KR
29592020-03-14 Kamil Rytarowski <n54@gmx.com>
2960
2961 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
2962 register_t.
2963
75c56d3d
KR
29642020-03-14 Kamil Rytarowski <n54@gmx.com>
2965
2966 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
2967 it to the ptrace call.
2968 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
2969 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
2970 * arm-nbsd-nat.c (store_register): Likewise.
2971 * arm-nbsd-nat.c (store_regs): Likewise.
2972 * arm-nbsd-nat.c (store_fp_register): Likewise.
2973 * arm-nbsd-nat.c (store_fp_regs): Likewise.
2974
6018d381
KR
29752020-03-14 Kamil Rytarowski <n54@gmx.com>
2976
2977 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
2978 nbsd_nat_target instead of inf_ptrace_target.
2979 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2980 nbsd_nat_target.
2981
013f99f0
KR
29822020-03-14 Kamil Rytarowski <n54@gmx.com>
2983
2984 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
2985 it to the ptrace call.
2986 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
2987
12753073
KR
29882020-03-14 Kamil Rytarowski <n54@gmx.com>
2989
6227b330
KR
2990 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
2991 it to the ptrace call.
2992 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
2993
29942020-03-14 Kamil Rytarowski <n54@gmx.com>
2995
2996 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
2997 gdb_byte *.
12753073
KR
2998 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2999
d5be5fa4
KR
30002020-03-14 Kamil Rytarowski <n54@gmx.com>
3001
3002 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
3003 instead of inf_ptrace_target.
3004 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
3005 nbsd_nat_target.
3006
8110f842
KR
30072020-03-14 Kamil Rytarowski <n54@gmx.com>
3008
3009 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3010 register_t.
3011
52feded7
KR
30122020-03-14 Kamil Rytarowski <n54@gmx.com>
3013
3014 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
3015 register_t.
3016
25567eee
KR
30172020-03-14 Kamil Rytarowski <n54@gmx.com>
3018
3019 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
3020 register_t.
3021
426a9c18
TT
30222020-03-13 Tom Tromey <tom@tromey.com>
3023
3024 * value.h (val_print): Don't declare.
3025 * valprint.h (val_print_array_elements)
3026 (val_print_scalar_formatted, generic_val_print): Don't declare.
3027 * valprint.c (generic_val_print_array): Take a struct value.
3028 (generic_val_print_ptr, generic_val_print_memberptr)
3029 (generic_val_print_bool, generic_val_print_int)
3030 (generic_val_print_char, generic_val_print_complex)
3031 (generic_val_print): Remove.
3032 (generic_value_print): Update.
3033 (do_val_print): Remove unused parameters. Don't call
3034 la_val_print.
3035 (val_print): Remove.
3036 (common_val_print): Update. Don't call value_check_printable.
3037 (val_print_scalar_formatted, val_print_array_elements): Remove.
3038 * rust-lang.c (rust_val_print): Remove.
3039 (rust_language_defn): Update.
3040 * p-valprint.c (pascal_val_print): Remove.
3041 (pascal_value_print_inner): Update.
3042 (pascal_object_print_val_fields, pascal_object_print_val):
3043 Remove.
3044 (pascal_object_print_static_field): Update.
3045 * p-lang.h (pascal_val_print): Don't declare.
3046 * p-lang.c (pascal_language_defn): Update.
3047 * opencl-lang.c (opencl_language_defn): Update.
3048 * objc-lang.c (objc_language_defn): Update.
3049 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
3050 * m2-lang.h (m2_val_print): Don't declare.
3051 * m2-lang.c (m2_language_defn): Update.
3052 * language.h (struct language_defn) <la_val_print>: Remove.
3053 * language.c (unk_lang_value_print_inner): Rename. Change
3054 argument types.
3055 (unknown_language_defn, auto_language_defn): Update.
3056 * go-valprint.c (go_val_print): Remove.
3057 * go-lang.h (go_val_print): Don't declare.
3058 * go-lang.c (go_language_defn): Update.
3059 * f-valprint.c (f_val_print): Remove.
3060 * f-lang.h (f_value_print): Don't declare.
3061 * f-lang.c (f_language_defn): Update.
3062 * d-valprint.c (d_val_print): Remove.
3063 * d-lang.h (d_value_print): Don't declare.
3064 * d-lang.c (d_language_defn): Update.
3065 * cp-valprint.c (cp_print_value_fields)
3066 (cp_print_value_fields_rtti, cp_print_value): Remove.
3067 (cp_print_static_field): Update.
3068 * c-valprint.c (c_val_print_array, c_val_print_ptr)
3069 (c_val_print_struct, c_val_print_union, c_val_print_int)
3070 (c_val_print_memberptr, c_val_print): Remove.
3071 * c-lang.h (c_val_print_array, cp_print_value_fields)
3072 (cp_print_value_fields_rtti): Don't declare.
3073 * c-lang.c (c_language_defn, cplus_language_defn)
3074 (asm_language_defn, minimal_language_defn): Update.
3075 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
3076 (ada_val_print_enum): Take a struct value.
3077 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
3078 (ada_val_print): Remove.
3079 (ada_value_print_1): Update.
3080 (printable_val_type): Remove.
3081 * ada-lang.h (ada_val_print): Don't declare.
3082 * ada-lang.c (ada_language_defn): Update.
3083
42331a1e
TT
30842020-03-13 Tom Tromey <tom@tromey.com>
3085
3086 * valprint.c (do_val_print): Update.
3087 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
3088 a struct value.
3089 (value_to_value_object_no_release): Declare.
3090 * python/py-value.c (value_to_value_object_no_release): New
3091 function.
3092 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
3093 struct value.
3094 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
3095 function.
3096 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
3097 a struct value.
3098 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
3099 Declare.
3100 (gdbscm_apply_val_pretty_printer): Take a struct value.
3101 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
3102 value.
3103 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
3104 value.
3105 * extension-priv.h (struct extension_language_ops)
3106 <apply_val_pretty_printer>: Take a struct value.
3107 * cp-valprint.c (cp_print_value): Create a struct value.
3108 (cp_print_value): Update.
3109
3a916a97
TT
31102020-03-13 Tom Tromey <tom@tromey.com>
3111
3112 * ada-valprint.c (print_field_values): Call common_val_print.
3113
b59eac37
TT
31142020-03-13 Tom Tromey <tom@tromey.com>
3115
3116 * ada-valprint.c (val_print_packed_array_elements): Remove
3117 bitoffset and val parameters. Call common_val_print.
3118 (ada_val_print_string): Remove offset, address, and original_value
3119 parameters.
3120 (ada_val_print_array): Update.
3121 (ada_value_print_array): New function.
3122 (ada_value_print_1): Call it.
3123
03371129
TT
31242020-03-13 Tom Tromey <tom@tromey.com>
3125
3126 * ada-valprint.c (ada_value_print): Use common_val_print.
3127
2e088f8b
TT
31282020-03-13 Tom Tromey <tom@tromey.com>
3129
3130 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
3131
39ef85a8
TT
31322020-03-13 Tom Tromey <tom@tromey.com>
3133
3134 * ada-valprint.c (ada_value_print_num): New function.
3135 (ada_value_print_1): Use it.
3136
b9fa6e07
TT
31372020-03-13 Tom Tromey <tom@tromey.com>
3138
3139 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
3140
416595d6
TT
31412020-03-13 Tom Tromey <tom@tromey.com>
3142
3143 * ada-valprint.c (ada_value_print_ptr): New function.
3144 (ada_value_print_1): Use it.
3145
5b5e15ec
TT
31462020-03-13 Tom Tromey <tom@tromey.com>
3147
3148 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
3149 call common_val_print.
3150 (ada_val_print_1): Update.
3151 (ada_value_print_1): New function.
3152 (ada_value_print_inner): Rewrite.
3153
fbf54e75
TT
31542020-03-13 Tom Tromey <tom@tromey.com>
3155
3156 * cp-valprint.c (cp_print_value_fields): Update.
3157 (cp_print_value): New function.
3158
64b653ca
TT
31592020-03-13 Tom Tromey <tom@tromey.com>
3160
3161 * m2-valprint.c (m2_value_print_inner): Use
3162 cp_print_value_fields.
3163 * cp-valprint.c (cp_print_value_fields): New function.
3164 * c-valprint.c (c_value_print_struct): New function.
3165 (c_value_print_inner): Use c_value_print_struct.
3166 * c-lang.h (cp_print_value_fields): Declare.
3167
6999f067
TT
31682020-03-13 Tom Tromey <tom@tromey.com>
3169
3170 * c-valprint.c (c_value_print_array): New function.
3171 (c_value_print_inner): Use it.
3172
ce80b8bd
TT
31732020-03-13 Tom Tromey <tom@tromey.com>
3174
3175 * c-valprint.c (c_value_print_memberptr): New function.
3176 (c_value_print_inner): Use it.
3177
2faac269
TT
31782020-03-13 Tom Tromey <tom@tromey.com>
3179
3180 * c-valprint.c (c_value_print_int): New function.
3181 (c_value_print_inner): Use it.
3182
da3e2c29
TT
31832020-03-13 Tom Tromey <tom@tromey.com>
3184
3185 * c-valprint.c (c_value_print_ptr): New function.
3186 (c_value_print_inner): Use it.
3187
50836231
TT
31882020-03-13 Tom Tromey <tom@tromey.com>
3189
3190 * c-valprint.c (c_value_print_inner): Rewrite.
3191
4f412b6e
TT
31922020-03-13 Tom Tromey <tom@tromey.com>
3193
3194 * valprint.c (generic_value_print_complex): New function.
3195 (generic_value_print): Use it.
3196
f5354008
TT
31972020-03-13 Tom Tromey <tom@tromey.com>
3198
3199 * valprint.c (generic_val_print_float): Don't call
3200 val_print_scalar_formatted.
3201 (generic_val_print, generic_value_print): Update.
3202
3eec3b05
TT
32032020-03-13 Tom Tromey <tom@tromey.com>
3204
3205 * valprint.c (generic_value_print_char): New function
3206 (generic_value_print): Use it.
3207
fdddfccb
TT
32082020-03-13 Tom Tromey <tom@tromey.com>
3209
3210 * valprint.c (generic_value_print_int): New function.
3211 (generic_value_print): Use it.
3212
6dde7521
TT
32132020-03-13 Tom Tromey <tom@tromey.com>
3214
3215 * valprint.c (generic_value_print_bool): New function.
3216 (generic_value_print): Use it.
3217
4112d2e6
TT
32182020-03-13 Tom Tromey <tom@tromey.com>
3219
3220 * valprint.c (generic_val_print_func): Simplify.
3221 (generic_val_print, generic_value_print): Update.
3222
65786af6
TT
32232020-03-13 Tom Tromey <tom@tromey.com>
3224
3225 * valprint.c (generic_val_print_flags): Remove.
3226 (generic_val_print, generic_value_print): Update.
3227 (val_print_type_code_flags): Add original_value parameter.
3228
40f3ce18
TT
32292020-03-13 Tom Tromey <tom@tromey.com>
3230
3231 * valprint.c (generic_val_print): Update.
3232 (generic_value_print): Update.
3233 * valprint.c (generic_val_print_enum): Don't call
3234 val_print_scalar_formatted.
3235
2a5b130b
TT
32362020-03-13 Tom Tromey <tom@tromey.com>
3237
3238 * valprint.c (generic_value_print): Call generic_value_print_ptr.
3239 * valprint.c (generic_value_print_ptr): New function.
3240
abc66ce9
TT
32412020-03-13 Tom Tromey <tom@tromey.com>
3242
3243 * valprint.c (generic_value_print): Rewrite.
3244
07a32858
TT
32452020-03-13 Tom Tromey <tom@tromey.com>
3246
3247 * p-valprint.c (pascal_object_print_value_fields)
3248 (pascal_object_print_value): New functions.
3249
64d64d3a
TT
32502020-03-13 Tom Tromey <tom@tromey.com>
3251
3252 * p-valprint.c (pascal_value_print_inner): Rewrite.
3253
6a95a1f5
TT
32542020-03-13 Tom Tromey <tom@tromey.com>
3255
3256 * f-valprint.c (f_value_print_innner): Rewrite.
3257
59fcdac6
TT
32582020-03-13 Tom Tromey <tom@tromey.com>
3259
3260 * m2-valprint.c (m2_print_unbounded_array): New overload.
3261 (m2_print_unbounded_array): Update.
3262 (m2_print_array_contents): Take a struct value.
3263 (m2_value_print_inner): Rewrite.
3264
d133c3e1
TT
32652020-03-13 Tom Tromey <tom@tromey.com>
3266
3267 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
3268 (d_value_print_inner): New function.
3269 * d-lang.h (d_value_print_inner): Declare.
3270 * d-lang.c (d_language_defn): Use d_value_print_inner.
3271
23b0f06b
TT
32722020-03-13 Tom Tromey <tom@tromey.com>
3273
3274 * go-valprint.c (go_value_print_inner): New function.
3275 * go-lang.h (go_value_print_inner): Declare.
3276 * go-lang.c (go_language_defn): Use go_value_print_inner.
3277
5f56f7cb
TT
32782020-03-13 Tom Tromey <tom@tromey.com>
3279
3280 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
3281 API.
3282 (rust_val_print): Rewrite.
3283 (rust_value_print_inner): New function, from rust_val_print.
3284 (rust_language_defn): Use rust_value_print_inner.
3285
26792ee0
TT
32862020-03-13 Tom Tromey <tom@tromey.com>
3287
3288 * ada-valprint.c (ada_value_print_inner): New function.
3289 * ada-lang.h (ada_value_print_inner): Declare.
3290 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
3291
24051bbe
TT
32922020-03-13 Tom Tromey <tom@tromey.com>
3293
3294 * f-valprint.c (f_value_print_innner): New function.
3295 * f-lang.h (f_value_print_innner): Declare.
3296 * f-lang.c (f_language_defn): Use f_value_print_innner.
3297
c0941be6
TT
32982020-03-13 Tom Tromey <tom@tromey.com>
3299
3300 * p-valprint.c (pascal_value_print_inner): New function.
3301 * p-lang.h (pascal_value_print_inner): Declare.
3302 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
3303
62c4663d
TT
33042020-03-13 Tom Tromey <tom@tromey.com>
3305
3306 * m2-valprint.c (m2_value_print_inner): New function.
3307 * m2-lang.h (m2_value_print_inner): Declare.
3308 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
3309
62182190
TT
33102020-03-13 Tom Tromey <tom@tromey.com>
3311
3312 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
3313 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
3314 * c-valprint.c (c_value_print_inner): New function.
3315 * c-lang.h (c_value_print_inner): Declare.
3316 * c-lang.c (c_language_defn, cplus_language_defn)
3317 (asm_language_defn, minimal_language_defn): Use
3318 c_value_print_inner.
3319
1e592a8a
TT
33202020-03-13 Tom Tromey <tom@tromey.com>
3321
3322 * p-valprint.c (pascal_object_print_value_fields): Now static.
3323 * p-lang.h (pascal_object_print_value_fields): Don't declare.
3324
7fe471e9
TT
33252020-03-13 Tom Tromey <tom@tromey.com>
3326
3327 * c-valprint.c (c_val_print_array): Simplify.
3328
d121c6ce
TT
33292020-03-13 Tom Tromey <tom@tromey.com>
3330
3331 * valprint.c (value_print_array_elements): New function.
3332 * valprint.h (value_print_array_elements): Declare.
3333
4dba70ee
TT
33342020-03-13 Tom Tromey <tom@tromey.com>
3335
3336 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
3337 * mips-tdep.c (mips_print_register): Use
3338 value_print_scalar_formatted.
3339
4f9ae810
TT
33402020-03-13 Tom Tromey <tom@tromey.com>
3341
3342 * valprint.h (value_print_scalar_formatted): Declare.
3343 * valprint.c (value_print_scalar_formatted): New function.
3344
156bfec9
TT
33452020-03-13 Tom Tromey <tom@tromey.com>
3346
3347 * valprint.h (generic_value_print): Declare.
3348 * valprint.c (generic_value_print): New function.
3349
2b4e573d
TT
33502020-03-13 Tom Tromey <tom@tromey.com>
3351
3352 * valprint.c (do_val_print): Call la_value_print_inner, if
3353 available.
3354 * rust-lang.c (rust_language_defn): Update.
3355 * p-lang.c (pascal_language_defn): Update.
3356 * opencl-lang.c (opencl_language_defn): Update.
3357 * objc-lang.c (objc_language_defn): Update.
3358 * m2-lang.c (m2_language_defn): Update.
3359 * language.h (struct language_defn) <la_value_print_inner>: New
3360 member.
3361 * language.c (unknown_language_defn, auto_language_defn): Update.
3362 * go-lang.c (go_language_defn): Update.
3363 * f-lang.c (f_language_defn): Update.
3364 * d-lang.c (d_language_defn): Update.
3365 * c-lang.c (c_language_defn, cplus_language_defn)
3366 (asm_language_defn, minimal_language_defn): Update.
3367 * ada-lang.c (ada_language_defn): Update.
3368
a1f6a07c
TT
33692020-03-13 Tom Tromey <tom@tromey.com>
3370
3371 * c-valprint.c (c_value_print): Use common_val_print.
3372
410cf315
TT
33732020-03-13 Tom Tromey <tom@tromey.com>
3374
3375 * cp-valprint.c (cp_print_static_field): Use common_val_print.
3376
72a45c93
TT
33772020-03-13 Tom Tromey <tom@tromey.com>
3378
3379 * f-valprint.c (f77_print_array_1, f_val_print): Use
3380 common_val_print.
3381
040f66bd
TT
33822020-03-13 Tom Tromey <tom@tromey.com>
3383
3384 * riscv-tdep.c (riscv_print_one_register_info): Use
3385 common_val_print.
3386
a6e05a6c
TT
33872020-03-13 Tom Tromey <tom@tromey.com>
3388
3389 * mi/mi-main.c (output_register): Use common_val_print.
3390
3444c526
TT
33912020-03-13 Tom Tromey <tom@tromey.com>
3392
3393 * infcmd.c (default_print_one_register_info): Use
3394 common_val_print.
3395
c2a44efe
TT
33962020-03-13 Tom Tromey <tom@tromey.com>
3397
3398 * valprint.h (common_val_print_checked): Declare.
3399 * valprint.c (common_val_print_checked): New function.
3400 * stack.c (print_frame_arg): Use common_val_print_checked.
3401
b0c26e99
TT
34022020-03-13 Tom Tromey <tom@tromey.com>
3403
3404 * valprint.c (do_val_print): New function, from val_print.
3405 (val_print): Use do_val_print.
3406 (common_val_print): Use do_val_print.
3407
ce3acbe9
TT
34082020-03-13 Tom Tromey <tom@tromey.com>
3409
3410 * valprint.c (value_print): Use scoped_value_mark.
3411
96c7f873
TV
34122020-03-13 Tom de Vries <tdevries@suse.de>
3413
3414 PR symtab/25646
3415 * psymtab.c (partial_symtab::partial_symtab): Don't set
3416 globals_offset and statics_offset. Push element onto
3417 current_global_psymbols and current_static_psymbols stacks.
3418 (concat): New function.
3419 (end_psymtab_common): Set globals_offset and statics_offset. Pop
3420 element from current_global_psymbols and current_static_psymbols
3421 stacks. Concat popped elements to global_psymbols and
3422 static_symbols.
3423 (add_psymbol_to_list): Use current_global_psymbols and
3424 current_static_psymbols stacks.
3425 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
3426 current_static_psymbols fields.
3427
6ba0a321
CB
34282020-03-12 Christian Biesinger <cbiesinger@google.com>
3429
3430 * corelow.c (sniff_core_bfd): Remove.
3431 (class core_target) <m_core_vec>: Remove.
3432 (core_target::core_target): Update.
3433 (core_file_fns): Remove.
3434 (deprecated_add_core_fns): Remove.
3435 (default_core_sniffer): Remove.
3436 (sniff_core_bfd): Remove.
3437 (default_check_format): Remove.
3438 (gdb_check_format): Remove.
3439 (core_target_open): Update.
3440 (core_target::get_core_register_section): Update.
3441 (get_core_registers_cb): Update.
3442 (core_target::fetch_registers): Update.
3443 * gdbcore.h (struct core_fns): Remove.
3444 (deprecated_add_core_fns): Remove.
3445 (default_core_sniffer): Remove.
3446 (default_check_format): Remove.
3447
227031b2
TT
34482020-03-12 Tom Tromey <tom@tromey.com>
3449
3450 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
3451 CORE_ADDR.
3452 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
3453
53807e9f
TT
34542020-03-12 Tom Tromey <tom@tromey.com>
3455
3456 * remote.c (remote_target::download_tracepoint)
3457 (remote_target::enable_tracepoint)
3458 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
3459 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
3460 sprintf_vma.
3461
64f25102
TT
34622020-03-12 Tom Tromey <tom@tromey.com>
3463
3464 * symfile-mem.c: Update CORE_ADDR size assert.
3465
272cd5a3
SM
34662020-03-12 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * selftest.m4: Move to gdbsupport/.
3469 * acinclude.m4: Update path to selftest.m4.
3470
74cd3f9d
SM
34712020-03-12 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
3474 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
3475 gdbarch-selfselftests.c and selftest-arch.c.
3476 (SUBDIR_UNITTESTS_OBS): Rename to...
3477 (SELFTESTS_OBS): ... this.
3478 (COMMON_SFILES): Remove disasm-selftests.c and
3479 gdbarch-selftests.c.
3480 * configure.ac: Don't add selftest-arch.{c,o} to
3481 CONFIG_{SRCS,OBS}.
3482 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
3483 preprocessor conditions.
3484
db6878ac
SM
34852020-03-12 Simon Marchi <simon.marchi@efficios.com>
3486
3487 * configure.ac: Don't source bfd/development.sh.
3488 * selftest.m4: Modify comment.
3489 * configure: Re-generate.
3490
4d696a5c
SM
34912020-03-12 Simon Marchi <simon.marchi@efficios.com>
3492
3493 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
3494 not "true" or "false".
3495 * configure: Re-generate.
3496
8dd8e1c7
CB
34972020-03-12 Christian Biesinger <cbiesinger@google.com>
3498
3499 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
3500 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
3501 renamed to arm_nbsd_supply_gregset.
3502 (fetch_register): Update to call arm_nbsd_supply_gregset.
3503 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
3504 (arm_netbsd_nat_target::fetch_registers): Update.
3505 (fetch_elfcore_registers): Removed.
3506 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
3507 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
3508 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
3509 not require NetBSD system headers.
3510 (arm_nbsd_regset): New struct.
3511 (arm_nbsd_iterate_over_regset_sections): New function.
3512 (arm_netbsd_init_abi_common): Updated to call
3513 set_gdbarch_iterate_over_regset_sections.
3514 * arm-nbsd-tdep.h: New file.
3515
dd69bf7a
KB
35162020-03-11 Kevin Buettner <kevinb@redhat.com>
3517
3518 * symtab.c (find_pc_sect_line): Add check which prevents infinite
3519 recursion.
3520
a0761e34
SM
35212020-03-11 Simon Marchi <simon.marchi@efficios.com>
3522
3523 * configure: Re-generate.
3524
e7a82140
TT
35252020-03-11 Tom Tromey <tromey@adacore.com>
3526
3527 * ada-typeprint.c (print_choices): Fix comment.
3528
dcc050c8
AB
35292020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
3530
3531 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
3532 previous item in the list, when the list has no items.
3533
1c33af77
TV
35342020-03-11 Tom de Vries <tdevries@suse.de>
3535
3536 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
3537 PROP_LOCLIST handling code.
3538
8c95582d
AB
35392020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * buildsym-legacy.c (record_line): Pass extra parameter to
3542 record_line.
3543 * buildsym.c (buildsym_compunit::record_line): Take an extra
3544 parameter, reduce duplication in the line table, and record the
3545 is_stmt flag in the line table.
3546 * buildsym.h (buildsym_compunit::record_line): Add extra
3547 parameter.
3548 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
3549 non-statement lines.
3550 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
3551 this to the symtab builder.
3552 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
3553 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
3554 through to dwarf_record_line_1.
3555 * infrun.c (process_event_stop_test): When stepping, don't stop at
3556 a non-statement instruction, and only refresh the step info when
3557 we land in the middle of a line's range. Also add an extra
3558 comment.
3559 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
3560 field.
3561 * record-btrace.c (btrace_find_line_range): Only record lines
3562 marked as is-statement.
3563 * stack.c (frame_show_address): Show the frame address if we are
3564 in a non-statement sal.
3565 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
3566 (maintenance_print_one_line_table): Print a header for the is_stmt
3567 column, and include is_stmt information in the output.
3568 * symtab.c (find_pc_sect_line): Find lines marked as statements in
3569 preference to non-statements.
3570 (find_pcs_for_symtab_line): Prefer is-statement entries.
3571 (find_line_common): Likewise.
3572 * symtab.h (struct linetable_entry): Add is_stmt field.
3573 (struct symtab_and_line): Likewise.
3574 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
3575 arranging the line table.
3576
e4003a34
TV
35772020-03-07 Tom de Vries <tdevries@suse.de>
3578
3579 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
3580 DIE.
3581
e8932576
TT
35822020-03-07 Tom Tromey <tom@tromey.com>
3583
3584 * valops.c (value_literal_complex): Remove obsolete comment.
3585 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
3586 comment.
3587
29734269
SM
35882020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * infrun.h: Forward-declare thread_info.
3591 (set_step_info): Add thread_info parameter, add doc.
3592 * infrun.c (set_step_info): Add thread_info parameter, move doc
3593 to header.
3594 * infrun.c (process_event_stop_test): Pass thread to
3595 set_step_info call.
3596 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
3597 set_step_info.
3598 (prepare_one_step): Add thread_info parameter, pass it to
3599 set_step_frame and prepare_one_step (recursive) call.
3600 (step_1): Pass thread to prepare_one_step call.
3601 (step_command_fsm::should_stop): Pass thread to
3602 prepare_one_step.
3603 (until_next_fsm): Pass thread to set_step_frame call.
3604 (finish_command): Pass thread to set_step_info call.
3605
b7d64b29
HD
36062020-03-06 Hannes Domani <ssbssa@yahoo.de>
3607
3608 * windows-tdep.c (windows_solib_create_inferior_hook):
3609 Check if inferior is running.
3610
09f2921c
TV
36112020-03-06 Tom de Vries <tdevries@suse.de>
3612
3613 * NEWS: Fix "the the".
3614 * ctfread.c: Same.
3615
fd760e79
TV
36162020-03-06 Tom de Vries <tdevries@suse.de>
3617
3618 * psymtab.c (psymtab_to_symtab): Don't print "done.".
3619
20ea4a60
AB
36202020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * .dir-locals.el: Add a comment referencing the other copies of
3623 this file.
3624
0afbabf0
JB
36252020-03-05 John Baldwin <jhb@FreeBSD.org>
3626
3627 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
3628 psargs.
3629
842806cb
TBA
36302020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3631
3632 * .gitattributes: New file.
3633
be1e3d3e
TT
36342020-03-04 Tom Tromey <tom@tromey.com>
3635
3636 * symmisc.c (print_symbol_bcache_statistics)
3637 (print_objfile_statistics): Update.
3638 * symfile.c (allocate_symtab): Use intern.
3639 * psymtab.c (partial_symtab::partial_symtab): Use intern.
3640 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3641 macro_cache>: Remove.
3642 <string_cache>: New member.
3643 (struct objfile) <intern>: New methods.
3644 * elfread.c (elf_symtab_read): Use intern.
3645 * dwarf2/read.c (fixup_go_packaging): Intern package name.
3646 (dwarf2_compute_name, dwarf2_physname)
3647 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
3648 names.
3649 (guess_partial_die_structure_name): Update.
3650 (partial_die_info::fixup): Intern name.
3651 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
3652 name.
3653 (dwarf2_name): Intern name. Update.
3654 * buildsym.c (buildsym_compunit::get_macro_table): Use
3655 string_cache.
3656
4e7625fd
TT
36572020-03-04 Tom Tromey <tom@tromey.com>
3658
3659 * jit.c (bfd_open_from_target_memory): Make "target" const.
3660 * corefile.c (gnutarget): Now const.
3661 * gdbcore.h (gnutarget): Now const.
3662
46f9f931
HD
36632020-03-04 Hannes Domani <ssbssa@yahoo.de>
3664
3665 * NEWS: Mention support for WOW64 processes.
3666 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
3667 (amd64_windows_segment_register_p): Remove static.
3668 (_initialize_amd64_windows_nat): Update.
3669 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
3670 * i386-windows-nat.c (context_offset): Update.
3671 (i386_mappings): Rename and remove static.
3672 (i386_windows_segment_register_p): Remove static.
3673 (_initialize_i386_windows_nat): Update.
3674 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
3675 (STATUS_WX86_SINGLE_STEP): New macro.
3676 (EnumProcessModulesEx): New macro.
3677 (Wow64SuspendThread): New macro.
3678 (Wow64GetThreadContext): New macro.
3679 (Wow64SetThreadContext): New macro.
3680 (Wow64GetThreadSelectorEntry): New macro.
3681 (windows_set_context_register_offsets): Add static.
3682 (windows_set_segment_register_p): Likewise.
3683 (windows_add_thread): Adapt for WOW64 processes.
3684 (windows_fetch_one_register): Likewise.
3685 (windows_nat_target::fetch_registers): Likewise.
3686 (windows_store_one_register): Likewise.
3687 (display_selector): Likewise.
3688 (display_selectors): Likewise.
3689 (handle_exception): Likewise.
3690 (windows_continue): Likewise.
3691 (windows_nat_target::resume): Likewise.
3692 (windows_add_all_dlls): Likewise.
3693 (do_initial_windows_stuff): Likewise.
3694 (windows_nat_target::attach): Likewise.
3695 (windows_get_exec_module_filename): Likewise.
3696 (windows_nat_target::create_inferior): Likewise.
3697 (windows_xfer_siginfo): Likewise.
3698 (_initialize_loadable): Initialize Wow64SuspendThread,
3699 Wow64GetThreadContext, Wow64SetThreadContext,
3700 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
3701 * windows-nat.h (windows_set_context_register_offsets):
3702 Remove declaration.
3703 (windows_set_segment_register_p): Likewise.
3704 (i386_windows_segment_register_p): Add declaration.
3705 (amd64_windows_segment_register_p): Likewise.
3706
440cf44e
LM
37072020-03-04 Luis Machado <luis.machado@linaro.org>
3708
3709 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
3710 in "info registers" for AArch64/ARM.
3711
3712 The change caused "info registers" to not print GPR's.
3713
3714 gdb/ChangeLog:
3715
3716 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
3717
3718 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3719 when reg->group is empty and reggroup is not.
3720
1009d92f
TT
37212020-03-03 Tom Tromey <tromey@adacore.com>
3722
3723 * dwarf2/frame.c (struct dwarf2_frame_cache)
3724 <checked_tailcall_bottom, entry_cfa_sp_offset,
3725 entry_cfa_sp_offset_p>: Remove members.
3726 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
3727 (dwarf2_frame_prev_register): Don't call
3728 dwarf2_tailcall_sniffer_first.
3729 (dwarf2_append_unwinders): Don't append tailcall unwinder.
3730 * frame-unwind.c (add_unwinder): New fuction.
3731 (frame_unwind_init): Use it. Add tailcall unwinder.
3732
5e5d66b6
AB
37332020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
3734 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3735
3736 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
3737 value should be printed as true.
3738
584cf46d
HD
37392020-03-03 Hannes Domani <ssbssa@yahoo.de>
3740
3741 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
3742 (windows_init_abi): Set and use windows_so_ops.
3743
7b973adc
SDJ
37442020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
3745
3746 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
3747 when verifying if dealing with a convenience variable.
3748
bb7b70ab
LM
37492020-03-03 Luis Machado <luis.machado@linaro.org>
3750
3751 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
3752
9822cb57
SM
37532020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3754
3755 * infrun.c (gdbarch_supports_displaced_stepping): New.
3756 (use_displaced_stepping): Break up conditions in smaller pieces.
3757 Use gdbarch_supports_displaced_stepping.
3758 (displaced_step_prepare_throw): Use
3759 gdbarch_supports_displaced_stepping.
3760
63e163f2
AB
37612020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3762
3763 * NEWS: Mention new behaviour of the history filename.
3764 * top.c (write_history_p): Add comment.
3765 (show_write_history_p): Add header comment, give a different
3766 message when history writing is on, but the history filename is
3767 empty.
3768 (history_filename): Add comment.
3769 (history_filename_empty): New function.
3770 (show_history_filename): Add header comment, give a different
3771 message when the filename is empty.
3772 (init_history): Compare history_filename against nullptr, and only
3773 read history if the filename is not empty.
3774 (set_history_filename): Add header comment, and only make
3775 non-empty filenames absolute.
3776 (init_main): Make the filename argument to 'set history filename'
3777 optional.
3778
81b86b97
CB
37792020-03-02 Christian Biesinger <cbiesinger@google.com>
3780
3781 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
3782 (arm_supply_vfpregset): ...this, and update to use VFP registers.
3783 (fetch_fp_register): Update.
3784 (fetch_fp_regs): Update.
3785 (store_fp_register): Update.
3786 (store_fp_regs): Update.
3787 (arm_netbsd_nat_target::read_description): New function.
3788 (fetch_elfcore_registers): Update.
3789
24ed6739
AB
37902020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
3793 general_thread if the stop reply is missing a thread-id.
3794 (remote_target::process_stop_reply): Use the first non-exited
3795 thread if the target didn't pass a thread-id.
3796 * infrun.c (do_target_wait): Move call to
3797 switch_to_inferior_no_thread to ....
3798 (do_target_wait_1): ... here.
3799
a84bb2a0
JT
38002020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
3801
3802 * debuginfod-support.c: Include defs.h first.
3803
658dadf0
TV
38042020-02-28 Tom de Vries <tdevries@suse.de>
3805
3806 * symfile.c (set_initial_language): Use default language for lookup.
3807
4ebe4877
SM
38082020-02-28 Simon Marchi <simon.marchi@efficios.com>
3809
3810 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
3811 reader variable, pass `this` to read_cutu_die_from_dwo.
3812
e5da1139
AM
38132020-02-27 Aaron Merey <amerey@redhat.com>
3814
3815 * source.c (open_source_file): Check for nullptr when computing
3816 srcpath.
3817
317f7127
TT
38182020-02-27 Tom Tromey <tromey@adacore.com>
3819
3820 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
3821 member.
3822 (dwarf2_add_field): Don't update nfields.
3823 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
3824
3104d9ee
AB
38252020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3826
3827 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
3828 abs.
3829
b83470bf
TT
38302020-02-26 Tom Tromey <tom@tromey.com>
3831
3832 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
3833 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
3834 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
3835 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
3836 per_cu_data.
3837
edfe0a0c
TT
38382020-02-26 Tom Tromey <tom@tromey.com>
3839
3840 * dwarf2/index-write.c (psym_index_map): Change type.
3841 (add_address_entry_worker, write_one_signatured_type)
3842 (recursively_count_psymbols, recursively_write_psymbols)
3843 (class debug_names, psyms_seen_size, write_gdbindex)
3844 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
3845
0d79cdc4
AM
38462020-02-26 Aaron Merey <amerey@redhat.com>
3847
3848 * Makefile.in: Handle optional debuginfod support.
3849 * NEWS: Update.
3850 * README: Add --with-debuginfod summary.
3851 * config.in: Regenerate.
3852 * configure: Regenerate.
3853 * configure.ac: Handle optional debuginfod support.
3854 * debuginfod-support.c: debuginfod helper functions.
3855 * debuginfod-support.h: Ditto.
3856 * doc/gdb.texinfo: Add --with-debuginfod to configure options
3857 summary.
3858 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
3859 when a dwz file cannot be found.
3860 * elfread.c (elf_symfile_read): Query debuginfod servers when a
3861 debuginfo file cannot be found.
3862 * source.c (open_source_file): Query debuginfod servers when a
3863 source file cannot be found.
3864 * top.c (print_gdb_configuration): Include
3865 --{with,without}-debuginfod in the output.
3866
b65ce565
JG
38672020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3868
3869 * thread.c (thr_try_catch_cmd): Print thread name.
3870
d4c9a4f8
SM
38712020-02-26 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
3874 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3875 dwarf2_fetch_die_type_sect_off): Move to...
3876 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3877 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3878 dwarf2_fetch_die_type_sect_off): ... here.
3879 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3880 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3881 dwarf2_fetch_die_type_sect_off): Move doc to header file.
3882
0dce4280
TV
38832020-02-26 Tom de Vries <tdevries@suse.de>
3884
3885 PR gdb/25603
3886 * symfile.c (set_initial_language): Exit-early if
3887 language_mode == language_mode_manual.
3888
450a1bfc
SM
38892020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3890
3891 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
3892 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
3893 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
3894
9e80cfa1
AB
38952020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3896
3897 * gdbtypes.c (create_array_type_with_stride): Handle negative
3898 array strides.
3899 * valarith.c (value_subscripted_rvalue): Likewise.
3900
09624f1f
LM
39012020-02-25 Luis Machado <luis.machado@linaro.org>
3902
3903 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
3904
8cb5117c
SM
39052020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3906
3907 * loc.h (dwarf2_get_die_type): Move to...
3908 * read.h (dwarf2_get_die_type): ... here.
3909 * read.c (dwarf2_get_die_type): Move doc to header.
3910
c325c44e
JB
39112020-02-25 Joel Brobecker <brobecker@adacore.com>
3912
3913 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
3914 'gnulib/Makefile.in' to the list.
3915
4ac93832
TT
39162020-02-24 Tom Tromey <tom@tromey.com>
3917
3918 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
3919 Remove.
3920 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
3921 XOBNEWVEC.
3922
197400e8
TT
39232020-02-24 Tom Tromey <tom@tromey.com>
3924
3925 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
3926 New method.
3927 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
3928 (dw2_do_instantiate_symtab, dw2_get_file_names)
3929 (build_type_psymtab_dependencies, load_full_type_unit): Update.
3930
76935768
TT
39312020-02-24 Tom Tromey <tom@tromey.com>
3932
3933 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
3934 make_scoped_restore.
3935 (dwarf2_psymtab::read_symtab): Don't clear
3936 reading_partial_symbols.
3937
a88ef40d
TV
39382020-02-24 Tom de Vries <tdevries@suse.de>
3939
3940 PR gdb/25592
3941 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
3942
c9af6521
TV
39432020-02-24 Tom de Vries <tdevries@suse.de>
3944
3945 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
3946 commands layout next/prev/regs.
3947
5707a07a
TT
39482020-02-22 Tom Tromey <tom@tromey.com>
3949
3950 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
3951 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
3952
3b0fb49e
TT
39532020-02-22 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
3956
283be8bf
TT
39572020-02-22 Tom Tromey <tom@tromey.com>
3958
3959 * tui/tui-win.c (_initialize_tui_win): Add usage text.
3960 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
3961 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
3962 * tui/tui.c (_initialize_tui): Add usage text.
3963
ca793b96
TT
39642020-02-22 Tom Tromey <tom@tromey.com>
3965
3966 * tui/tui-win.c (tui_set_focus_command)
3967 (tui_set_win_height_command): Use error_no_arg.
3968 (_initialize_tui_win): Update help text.
3969 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
3970
432b5c40
TT
39712020-02-22 Tom Tromey <tom@tromey.com>
3972
3973 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
3974 * tui/tui-disasm.h (struct tui_disasm_window)
3975 <display_start_addr>: Declare.
3976 * tui/tui-source.h (struct tui_source_window)
3977 <display_start_addr>: Declare.
3978 * tui/tui-winsource.h (struct tui_source_window_base)
3979 <show_source_line, display_start_addr>: New methods.
3980 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
3981 Rename and move to protected section.
3982 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
3983 (tui_source_window_base::do_erase_source_content): Update.
3984 (tui_source_window_base::show_source_line): Now a method.
3985 (tui_source_window_base::show_source_content)
3986 (tui_source_window_base::tui_source_window_base)
3987 (tui_source_window_base::rerender)
3988 (tui_source_window_base::refill)
3989 (tui_source_window_base::do_scroll_horizontal)
3990 (tui_source_window_base::set_is_exec_point_at)
3991 (tui_source_window_base::update_breakpoint_info)
3992 (tui_source_window_base::update_exec_info): Update.
3993 * tui/tui-source.c (tui_source_window::set_contents)
3994 (tui_source_window::showing_source_p)
3995 (tui_source_window::do_scroll_vertical)
3996 (tui_source_window::location_matches_p)
3997 (tui_source_window::line_is_displayed): Update.
3998 (tui_source_window::display_start_addr): New method.
3999 * tui/tui-disasm.c (tui_disasm_window::set_contents)
4000 (tui_disasm_window::do_scroll_vertical)
4001 (tui_disasm_window::location_matches_p): Update.
4002 (tui_disasm_window::display_start_addr): New method.
4003
01b1af32
TT
40042020-02-22 Tom Tromey <tom@tromey.com>
4005
4006 * NEWS: Add entry for gdb.register_window_type.
4007 * tui/tui-layout.h (window_factory): New typedef.
4008 (tui_register_window): Declare.
4009 * tui/tui-layout.c (saved_tui_windows): New global.
4010 (tui_apply_current_layout): Use it.
4011 (tui_register_window): New function.
4012 * python/python.c (do_start_initialization): Call
4013 gdbpy_initialize_tui.
4014 (python_GdbMethods): Add "register_window_type" function.
4015 * python/python-internal.h (gdbpy_register_tui_window)
4016 (gdbpy_initialize_tui): Declare.
4017 * python/py-tui.c: New file.
4018 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
4019
fc96d20b
TT
40202020-02-22 Tom Tromey <tom@tromey.com>
4021
4022 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
4023
935c78c0
TT
40242020-02-22 Tom Tromey <tom@tromey.com>
4025
4026 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
4027 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
4028 * tui/tui-data.c (tui_set_win_with_focus): Remove.
4029 (tui_set_win_focus_to): Move from tui-win.c.
4030
0240c8f1
TT
40312020-02-22 Tom Tromey <tom@tromey.com>
4032
4033 * tui/tui-layout.c (make_standard_window, get_locator_window): New
4034 functions.
4035 (known_window_types): New global.
4036 (tui_get_window_by_name): Reimplement.
4037 (initialize_known_windows): New function.
4038 (validate_window_name): Rewrite.
4039 (_initialize_tui_layout): Call initialize_known_windows.
4040
fdb01f0c
TT
40412020-02-22 Tom Tromey <tom@tromey.com>
4042
4043 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
4044 Remove constants.
4045 * tui/tui-winsource.h (struct tui_source_window_base)
4046 <tui_source_window_base>: Remove parameter.
4047 * tui/tui-winsource.c
4048 (tui_source_window_base::tui_source_window_base): Remove
4049 parameter.
4050 (tui_source_window_base::refill): Update.
4051 * tui/tui-stack.h (struct tui_locator_window)
4052 <tui_locator_window>: Update.
4053 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
4054 Default the constructor.
4055 * tui/tui-regs.h (struct tui_data_item_window)
4056 <tui_data_item_window>: Default the constructor.
4057 (struct tui_data_window) <tui_data_window>: Likewise.
4058 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
4059 Default the constructor.
4060 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
4061 Default the constructor.
4062 <type>: Remove.
4063 (struct tui_win_info) <tui_win_info>: Default the constructor.
4064 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
4065 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
4066 Default the constructor.
4067
865a5aec
TT
40682020-02-22 Tom Tromey <tom@tromey.com>
4069
4070 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
4071 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
4072 * tui/tui-win.c (tui_resize_all): Don't call
4073 tui_delete_invisible_windows.
4074 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
4075 done.
4076 (tui_set_layout): Update.
4077 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
4078 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
4079 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
4080
e098d18c
TT
40812020-02-22 Tom Tromey <tom@tromey.com>
4082
4083 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
4084 correctly.
4085
eb9c8874
TT
40862020-02-22 Tom Tromey <tom@tromey.com>
4087
4088 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
4089
7eed1a8e
TT
40902020-02-22 Tom Tromey <tom@tromey.com>
4091
4092 * tui/tui-winsource.h (struct tui_source_window_iterator)
4093 <inner_iterator>: New etytypedef.
4094 <tui_source_window_iterator>: Take "end" parameter.
4095 <tui_source_window_iterator>: Take iterator.
4096 <operator*, advance>: Update.
4097 <m_iter>: Change type.
4098 <m_end>: New field.
4099 (struct tui_source_windows) <begin, end>: Update.
4100 * tui/tui-layout.c (tui_windows): New global.
4101 (tui_apply_current_layout): Clear tui_windows.
4102 (tui_layout_window::apply): Update tui_windows.
4103 * tui/tui-data.h (tui_windows): Declare.
4104 (all_tui_windows): Now inline function.
4105 (class tui_window_iterator, struct all_tui_windows): Remove.
4106
7c043ba6
TT
41072020-02-22 Tom Tromey <tom@tromey.com>
4108
4109 PR tui/17850:
4110 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
4111 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
4112 "height" argument.
4113 (class tui_layout_window) <get_sizes>: Likewise.
4114 (class tui_layout_split) <tui_layout_split>: Add "vertical"
4115 argument.
4116 <get_sizes>: Add "height" argument.
4117 <m_vertical>: New field.
4118 * tui/tui-layout.c (tui_layout_split::clone): Update.
4119 (tui_layout_split::get_sizes): Add "height" argument.
4120 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
4121 (tui_new_layout_command): Parse "-horizontal".
4122 (_initialize_tui_layout): Update help string.
4123 (tui_layout_split::specification): Add "-horizontal" when needed.
4124 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
4125 argument.
4126 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
4127 New methods.
4128
6bc56648
TT
41292020-02-22 Tom Tromey <tom@tromey.com>
4130
4131 * tui/tui-layout.h (enum tui_adjust_result): New.
4132 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
4133 (class tui_layout_window) <adjust_size>: Return
4134 tui_adjust_result. Rewrite.
4135 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
4136 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
4137
c22fef7e
TT
41382020-02-22 Tom Tromey <tom@tromey.com>
4139
4140 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
4141 parameter and return types.
4142 (class tui_layout_base) <specification>: Add "depth".
4143 (class tui_layout_window) <specification>: Add "depth".
4144 (class tui_layout_split) <specification>: Add "depth".
4145 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
4146 and return types.
4147 (tui_new_layout_command): Parse sub-layouts.
4148 (_initialize_tui_layout): Update help string.
4149 (tui_layout_window::specification): Add "depth".
4150 (add_layout_command): Update.
4151
ee325b61
TT
41522020-02-22 Tom Tromey <tom@tromey.com>
4153
4154 * NEWS: Add "tui new-layout" item.
4155 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
4156 Add new-layout command to help text.
4157 (validate_window_name): New function.
4158 (tui_new_layout_command): New function.
4159 (_initialize_tui_layout): Register "new-layout".
4160 (tui_layout_window::specification): New method.
4161 (tui_layout_window::specification): New method.
4162 * tui/tui-layout.h (class tui_layout_base) <specification>: New
4163 method.
4164 (class tui_layout_window) <specification>: New method.
4165 (class tui_layout_split) <specification>: New method.
4166
416eb92d
TT
41672020-02-22 Tom Tromey <tom@tromey.com>
4168
4169 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
4170 * tui/tui-win.c (window_name_completer): Update comment.
4171 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
4172 Declare method.
4173 (class tui_layout_window) <replace_window>: Likewise.
4174 (class tui_layout_split) <replace_window>: Likewise.
4175 (tui_set_layout): Don't declare.
4176 (tui_set_initial_layout): Declare function.
4177 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
4178 (asm_regs_layout): New globals.
4179 (tui_current_layout, show_layout): Remove.
4180 (tui_set_layout, tui_add_win_to_layout): Rewrite.
4181 (find_layout, tui_apply_layout): New function.
4182 (layout_completer): Remove.
4183 (tui_next_layout): Reimplement.
4184 (tui_next_layout_command): New function.
4185 (tui_set_initial_layout, tui_prev_layout_command): New functions.
4186 (tui_regs_layout): Reimplement.
4187 (tui_regs_layout_command): New function.
4188 (extract_display_start_addr): Rewrite.
4189 (next_layout, prev_layout): Remove.
4190 (tui_layout_window::replace_window): New method.
4191 (tui_layout_split::replace_window): New method.
4192 (destroy_layout): New function.
4193 (layout_list): New global.
4194 (add_layout_command): New function.
4195 (initialize_layouts): Update.
4196 (tui_layout_command): New function.
4197 (_initialize_tui_layout): Install "layout" commands.
4198 * tui/tui-data.h (enum tui_layout_type): Remove.
4199 (tui_current_layout): Don't declare.
4200
0dbc2fc7
TT
42012020-02-22 Tom Tromey <tom@tromey.com>
4202
4203 * tui/tui-regs.c (tui_reg_layout): Remove.
4204 (tui_reg_command): Use tui_regs_layout.
4205 * tui/tui-layout.h (tui_reg_command): Declare.
4206 * tui/tui-layout.c (tui_reg_command): New function.
4207
5afe342e
TT
42082020-02-22 Tom Tromey <tom@tromey.com>
4209
4210 * tui/tui.c (tui_rl_delete_other_windows): Call
4211 tui_remove_some_windows.
4212 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
4213 Declare method.
4214 (class tui_layout_window) <remove_windows>: New method.
4215 (class tui_layout_split) <remove_windows>: Declare.
4216 (tui_remove_some_windows): Declare.
4217 * tui/tui-layout.c (tui_remove_some_windows): New function.
4218 (tui_layout_split::remove_windows): New method.
4219
427326a8
TT
42202020-02-22 Tom Tromey <tom@tromey.com>
4221
4222 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
4223 * tui/tui-layout.h (tui_next_layout): Declare.
4224 * tui/tui-layout.c (tui_next_layout): New function.
4225
3fe12b6d
TT
42262020-02-22 Tom Tromey <tom@tromey.com>
4227
4228 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
4229 correct coordinates.
4230
59b8b5d2
TT
42312020-02-22 Tom Tromey <tom@tromey.com>
4232
4233 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
4234 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
4235 DATA_WIN case.
4236
2a3d458b
TT
42372020-02-22 Tom Tromey <tom@tromey.com>
4238
4239 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
4240 TUI_DISASM_WIN, not tui_win_list.
4241
3f0cbb04
TT
42422020-02-22 Tom Tromey <tom@tromey.com>
4243
4244 * valprint.c (generic_val_print_enum_1)
4245 (val_print_type_code_flags): Style member names.
4246 * rust-lang.c (val_print_struct, rust_print_enum)
4247 (rust_print_struct_def, rust_internal_print_type): Style member
4248 names.
4249 * p-valprint.c (pascal_object_print_value_fields): Style member
4250 names. Only call fprintf_symbol_filtered for static members.
4251 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
4252 * f-valprint.c (f_val_print): Style member names.
4253 * f-typeprint.c (f_type_print_base): Style member names.
4254 * cp-valprint.c (cp_print_value_fields): Style member names. Only
4255 call fprintf_symbol_filtered for static members.
4256 (cp_print_class_member): Style member names.
4257 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
4258 member names.
4259 * ada-valprint.c (ada_print_scalar): Style enum names.
4260 (ada_val_print_enum): Likewise.
4261 * ada-typeprint.c (print_enum_type): Style enum names.
4262
d4d947ae
TT
42632020-02-21 Tom Tromey <tom@tromey.com>
4264
4265 * psympriv.h (struct partial_symtab): Update comment.
4266
e94e944b
TT
42672020-02-21 Tom Tromey <tromey@adacore.com>
4268
4269 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
4270 type is CORE_ADDR.
4271
1eb73179
TV
42722020-02-21 Tom de Vries <tdevries@suse.de>
4273
4274 PR gdb/25534
4275 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
4276 if dependencies[i]->user != NULL.
4277
4f180d53
AT
42782020-02-21 Ali Tamur <tamur@google.com>
4279
4280 * dwarf2/read.c (dwarf2_name): Add null check.
4281
22b6cd70
TT
42822020-02-20 Tom Tromey <tom@tromey.com>
4283
4284 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
4285 ">=", in binary search.
4286 (dwarf2_find_containing_comp_unit): New overload.
4287 (run_test): New self-test.
4288 (_initialize_dwarf2_read): Register new test.
4289
bd0cf5a6
NC
42902020-02-20 Nelson Chu <nelson.chu@sifive.com>
4291
4292 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
4293 * riscv-tdep.h: Likewise.
4294 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
4295 rv32-only CSR.
4296 * features/riscv/64bit-csr.xml: Regenerated.
4297
3f702acd
SDJ
42982020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4299 Tom Tromey <tom@tromey.com>
4300
4301 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
4302 of 'fputc_unfiltered'.
4303 (putchar_unfiltered): Call 'fputc_unfiltered'.
4304 (fputc_unfiltered): Call 'fputs_unfiltered'.
4305
d13c7322
AB
43062020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
4307
4308 * config.in: Regenerate.
4309 * configure: Regenerate.
4310 * configure.ac: Add --with-python-libdir option.
4311 * main.c: Use WITH_PYTHON_LIBDIR.
4312
869d8950
TT
43132020-02-19 Tom Tromey <tom@tromey.com>
4314
4315 * symtab.c (general_symbol_info::compute_and_set_names): Use
4316 obstack_strndup. Simplify call to symbol_set_demangled_name.
4317
298e9637
SM
43182020-02-19 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * dwarf2/read.c (allocate_signatured_type_table,
4321 allocate_dwo_unit_table, allocate_type_unit_groups_table,
4322 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
4323 Remove objfile parameter, update all callers.
4324
08410482
DE
43252020-02-19 Doug Evans <dje@google.com>
4326
4327 PR rust/25535
4328 * rust-lang.c (rust_print_enum): Apply embedded_offset to
4329 rust_enum_variant calculation.
4330
dfdeeca1
TT
43312020-02-19 Tom Tromey <tromey@adacore.com>
4332
4333 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
4334
2ef5453b
TT
43352020-02-19 Tom Tromey <tromey@adacore.com>
4336
4337 * ada-lang.c (cache_symbol): Use obstack_strdup.
4338
9f1528a1
AB
43392020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4340
4341 * configure: Regenerate.
4342
d3c22fa8
TT
43432020-02-19 Tom Tromey <tromey@adacore.com>
4344
4345 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
4346 NULL check.
4347
bf84f706
MR
43482020-02-19 Maciej W. Rozycki <macro@wdc.com>
4349
4350 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
4351
d1c9b20f
AB
43522020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4353
4354 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
4355 if GDBSERVER is not defined.
4356 (riscv_tdesc_cache): Likewise, also store const target_desc.
4357 (STATIC_IN_GDB): Define.
4358 (riscv_create_target_description): Update declaration with
4359 STATIC_IN_GDB.
4360 (riscv_lookup_target_description): New function, only define if
4361 GDBSERVER is not defined.
4362 * arch/riscv.h (riscv_create_target_description): Declare only
4363 when GDBSERVER is defined.
4364 (riscv_lookup_target_description): New declaration when GDBSERVER
4365 is not defined.
4366 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
4367 (riscv_linux_read_features): ...this, and return
4368 riscv_gdbarch_features instead of target_desc.
4369 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
4370 (riscv_linux_read_description): Rename to...
4371 (riscv_linux_read_features): ...this.
4372 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4373 Update to use riscv_gdbarch_features and
4374 riscv_lookup_target_description.
4375 * riscv-tdep.c (riscv_find_default_target_description): Use
4376 riscv_lookup_target_description instead of
4377 riscv_create_target_description.
4378
373d7ac0
SM
43792020-02-18 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * valprint.c (generic_val_print_enum_1): When printing a flag
4382 enum with value 0 and there is no enumerator with value 0, print
4383 just "0" instead of "(unknown: 0x0)".
4384
b29a2df0
SM
43852020-02-18 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * valprint.c (generic_val_print_enum_1): Print unknown part of
4388 flag enum in hex.
4389
6740f0cc
SM
43902020-02-18 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * dwarf2/read.c (update_enumeration_type_from_children): Allow
4393 flag enums to contain duplicate enumerators.
4394 * valprint.c (generic_val_print_enum_1): Update comment.
4395
edd45eb0
SM
43962020-02-18 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * dwarf2/read.c: Include "count-one-bits.h".
4399 (update_enumeration_type_from_children): If an enumerator has
4400 multiple bits set, don't treat the enumeration as a "flag enum".
4401 * valprint.c (generic_val_print_enum_1): Assert that enumerators
4402 of flag enums have 0 or 1 bit set.
4403
6d0cf446
BE
44042020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4405
4406 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
4407 conversion.
4408 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4409 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4410 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4411 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4412 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4413
7001c1b7
SM
44142020-02-18 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
4417
fdb61c6c
SM
44182020-02-14 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
4421 displaced_step_closure_up.
4422 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4423 (struct displaced_step_closure_up):
4424 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4425 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4426 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
4427 Likewise.
4428 * gdbarch.sh (displaced_step_copy_insn): Likewise.
4429 * gdbarch.c, gdbarch.h: Re-generate.
4430 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
4431 displaced_step_closure_up.
4432 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4433 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4434 * infrun.h (displaced_step_closure_up): New type alias.
4435 (struct displaced_step_inferior_state) <step_closure>: Change
4436 type to displaced_step_closure_up.
4437 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
4438 displaced_step_closure_up.
4439 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4440
a4a38eb4
TT
44412020-02-14 Tom Tromey <tom@tromey.com>
4442
4443 * minidebug.c (gnu_debug_key): New global.
4444 (find_separate_debug_file_in_section): Use it.
4445
e8217e61
SM
44462020-02-14 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
4449 std::unique_ptr.
4450 * gdbarch.c: Re-generate.
4451 * gdbarch.h: Re-generate.
4452 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
4453 change.
4454 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
4455 type to std::unique_ptr.
4456 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4457 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4458 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4459 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4460 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
4461 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4462 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4463 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4464 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4465
d8d83535
SM
44662020-02-14 Simon Marchi <simon.marchi@efficios.com>
4467
4468 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
4469 std::unique_ptr.
4470 (displaced_step_clear): Rename to...
4471 (displaced_step_reset): ... this. Just call displaced->reset ().
4472 (displaced_step_clear_cleanup): Rename to...
4473 (displaced_step_reset_cleanup): ... this.
4474 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
4475 (displaced_step_fixup): Likewise.
4476 (resume_1): Likewise.
4477 (handle_inferior_event): Restore child's memory before calling
4478 displaced_step_fixup on the parent.
4479 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
4480 to std::unique_ptr.
4481 <step_closure>: Change type to std::unique_ptr.
4482
5f661e03
SM
44832020-02-14 Simon Marchi <simon.marchi@efficios.com>
4484
4485 * arm-tdep.c: Include count-one-bits.h.
4486 (cleanup_block_store_pc): Use count_one_bits.
4487 (cleanup_block_load_pc): Use count_one_bits.
4488 (arm_copy_block_xfer): Use count_one_bits.
4489 (thumb2_copy_block_xfer): Use count_one_bits.
4490 (thumb_copy_pop_pc_16bit): Use count_one_bits.
4491 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
4492 (thumb_get_next_pcs_raw): Use count_one_bits.
4493 (arm_get_next_pcs_raw): Use count_one_bits_l.
4494 * arch/arm.c (bitcount): Remove.
4495 * arch/arm.h (bitcount): Remove.
4496
8084e579
TT
44972020-02-14 Tom Tromey <tromey@adacore.com>
4498
4499 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
4500 Update.
4501 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
4502 * dwarf2/loc.c (call_site_find_chain_1): Return
4503 unique_xmalloc_ptr.
4504 (call_site_find_chain): Likewise.
4505
258bf0ee
RB
45062020-02-14 Richard Biener <rguenther@suse.de>
4507
4508 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
4509 on expression with division operators.
4510
f98a8458
AKS
45112020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4512
4513 * MAINTAINERS (Write After Approval): Adding myself.
4514
d1437c0e
TT
45152020-02-12 Tom Tromey <tom@tromey.com>
4516
4517 * event-loop.c (event_data, gdb_event, event_handler_func):
4518 Remove.
4519
3d4560f7
TT
45202020-02-12 Tom Tromey <tom@tromey.com>
4521
4522 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
4523 (dwarf2_frame_objfile_data): Add comment.
4524 (find_comp_unit, set_comp_unit): New functions.
4525 (dwarf2_frame_find_fde): Use find_comp_unit.
4526 (dwarf2_build_frame_info): Use set_comp_unit.
4527
21982304
TT
45282020-02-12 Tom Tromey <tom@tromey.com>
4529
4530 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
4531 (comp_unit): Don't initialize objfile.
4532 (execute_cfa_program): Add text_offset parameter.
4533 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
4534 (dwarf2_frame_cache): Update.
4535 (dwarf2_build_frame_info): Don't set "objfile" member.
4536
4debb237
TT
45372020-02-12 Tom Tromey <tom@tromey.com>
4538
4539 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
4540 (decode_frame_entry): Likewise.
4541 (dwarf2_build_frame_info): Update.
4542
0d404d44
TT
45432020-02-12 Tom Tromey <tom@tromey.com>
4544
4545 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
4546 (decode_frame_entry_1): Use the comp_unit obstack.
4547
a7a3ae5c
TT
45482020-02-12 Tom Tromey <tom@tromey.com>
4549
4550 * dwarf2/frame.c (struct comp_unit): Add initializers and
4551 constructor.
4552 (dwarf2_frame_objfile_data): Store a comp_unit.
4553 (dwarf2_frame_find_fde): Update.
4554 (dwarf2_build_frame_info): Use "new".
4555
a9d65418
TT
45562020-02-12 Tom Tromey <tom@tromey.com>
4557
4558 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
4559 (dwarf2_fde_table): Typedef for std::vector.
4560 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
4561 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
4562 (decode_frame_entry): Update.
4563 (dwarf2_build_frame_info): Use "new".
4564
7559c217
CB
45652020-02-12 Christian Biesinger <cbiesinger@google.com>
4566
4567 * arm-tdep.c (arm_gdbarch_init): Update.
4568 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
4569 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
4570 have_neon, is_m>: Change to bool.
4571
aeefc73c
CB
45722020-02-12 Christian Biesinger <cbiesinger@google.com>
4573
4574 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
4575
d27b8e5f
TT
45762020-02-12 Tom Tromey <tom@tromey.com>
4577
4578 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
4579
cd5900f3
HD
45802020-02-12 Hannes Domani <ssbssa@yahoo.de>
4581
4582 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
4583 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
4584
f056b22b
TT
45852020-02-11 Tom Tromey <tom@tromey.com>
4586
4587 * psymtab.h: Update comment.
4588
f92ff6b5
TT
45892020-02-11 Tom Tromey <tom@tromey.com>
4590
4591 * gdb_obstack.h (struct auto_obstack): Use
4592 DISABLE_COPY_AND_ASSIGN.
4593
3fd6912b
TT
45942020-02-11 Tom Tromey <tom@tromey.com>
4595
4596 * dwarf2/frame.h (struct objfile): Don't forward declare.
4597
69ed9b74
CB
45982020-02-11 Christian Biesinger <cbiesinger@google.com>
4599
4600 * cris-tdep.c (cris_supply_gregset): Change signature to match
4601 what struct regset expects.
4602 (cris_regset): New struct.
4603 (fetch_core_registers): Remove.
4604 (cris_iterate_over_regset_sections): New function.
4605 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
4606 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
4607
bda874f6
CB
46082020-02-11 Christian Biesinger <cbiesinger@google.com>
4609
4610 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
4611 registers.
4612
754e1564
CB
46132020-02-11 Christian Biesinger <cbiesinger@google.com>
4614
4615 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
4616
8ddd8e0e
SM
46172020-02-11 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * configure: Re-generate.
4620
898e7f60
SM
46212020-02-11 Simon Marchi <simon.marchi@efficios.com>
4622
4623 * configure: Re-generate.
4624
58df732b
SM
46252020-02-11 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * acinclude: Update warning.m4 path.
4628 * warning.m4: Move to gdbsupport.
4629
da5bd37e
TT
46302020-02-11 Tom Tromey <tromey@adacore.com>
4631
4632 * remote.c (remote_console_output): Update.
4633 * printcmd.c (printf_command): Update.
4634 * event-loop.c (gdb_wait_for_event): Update.
4635 * linux-nat.c (sigchld_handler): Update.
4636 * remote-sim.c (gdb_os_write_stdout): Update.
4637 (gdb_os_flush_stdout): Update.
4638 (gdb_os_flush_stderr): Update.
4639 (gdb_os_write_stderr): Update.
4640 * exceptions.c (print_exception): Update.
4641 * remote-fileio.c (remote_fileio_func_read): Update.
4642 (remote_fileio_func_write): Update.
4643 * tui/tui.c (tui_enable): Update.
4644 * tui/tui-interp.c (tui_interp::init): Update.
4645 * utils.c (init_page_info): Update.
4646 (putchar_unfiltered, fputc_unfiltered): Update.
4647 (gdb_flush): Update.
4648 (emit_style_escape): Update.
4649 (flush_wrap_buffer, fputs_maybe_filtered): Update.
4650 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
4651 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
4652 (stderr_file::write): Update.
4653 (stderr_file::puts): Update.
4654 * ui-file.h (ui_file_isatty, ui_file_write)
4655 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
4656 (ui_file_puts): Don't declare.
4657
85f0dd3c
TV
46582020-02-10 Tom de Vries <tdevries@suse.de>
4659
4660 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
4661 sentinel to char *.
4662
2e927613
TV
46632020-02-09 Tom de Vries <tdevries@suse.de>
4664
4665 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
4666 filename if it matches "<artificial>".
4667
6bafc845
HD
46682020-02-09 Hannes Domani <ssbssa@yahoo.de>
4669
4670 * windows-tdep.c (struct enum_value_name): New struct.
4671 (create_enum): New function.
4672 (windows_get_siginfo_type): Create and use enum types.
4673
7928d571
HD
46742020-02-09 Hannes Domani <ssbssa@yahoo.de>
4675
4676 * NEWS: Mention $_siginfo support for Windows.
4677 * windows-nat.c (handle_exception): Set siginfo_er.
4678 (windows_nat_target::mourn_inferior): Reset siginfo_er.
4679 (windows_xfer_siginfo): New function.
4680 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
4681 * windows-tdep.c (struct windows_gdbarch_data): New struct.
4682 (init_windows_gdbarch_data): New function.
4683 (get_windows_gdbarch_data): New function.
4684 (windows_get_siginfo_type): New function.
4685 (windows_init_abi): Register windows_get_siginfo_type.
4686 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
4687
6751ebae
TT
46882020-02-08 Tom Tromey <tom@tromey.com>
4689
4690 * dwarf2/read.c (class cutu_reader) <cutu_reader,
4691 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
4692 <keep>: Declare method.
4693 <m_keep>: Remove member.
4694 <~cutu_reader>: Remove.
4695 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4696 (cutu_reader::cutu_reader): Update.
4697 (cutu_reader::keep): Rename from ~cutu_reader.
4698 (process_psymtab_comp_unit, build_type_psymtabs_1)
4699 (process_skeletonless_type_unit, load_partial_comp_unit)
4700 (load_full_comp_unit, dwarf2_read_addr_index)
4701 (read_signatured_type): Update.
4702
135f5437
TT
47032020-02-08 Tom Tromey <tom@tromey.com>
4704
4705 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
4706 "want_partial_unit" parameter.
4707 (process_psymtab_comp_unit): Change want_partial_unit to bool.
4708 Inline check for DW_TAG_partial_unit.
4709 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
4710
9f66ff1c
TT
47112020-02-08 Tom Tromey <tom@tromey.com>
4712
4713 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
4714 read.c.
4715 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
4716 read.c.
4717
c8a7a66f
TT
47182020-02-08 Tom Tromey <tom@tromey.com>
4719
4720 * dwarf2/read.c (read_address): Move to comp-unit.c.
4721 (dwarf2_rnglists_process, dwarf2_ranges_process)
4722 (read_attribute_value, dwarf_decode_lines_1)
4723 (var_decode_location, decode_locdesc): Update.
4724 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
4725 read.c. Remove "cu" parameter.
4726 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
4727 method.
4728
8266302d
TT
47292020-02-08 Tom Tromey <tom@tromey.com>
4730
4731 * dwarf2/read.c (read_attribute_value, read_indirect_string)
4732 (read_indirect_line_string): Update.
4733 * dwarf2/comp-unit.c (read_offset): Remove.
4734 (read_comp_unit_head): Update.
4735 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
4736 method.
4737 (read_offset): Don't declare.
4738
4057dfde
TT
47392020-02-08 Tom Tromey <tom@tromey.com>
4740
4741 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
4742 * dwarf2/read.c (struct comp_unit_head): Move to
4743 dwarf2/comp-unit.h.
4744 (enum class rcuh_kind): Move to comp-unit.h.
4745 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
4746 (read_comp_unit_head, error_check_comp_unit_head)
4747 (read_and_check_comp_unit_head): Move to comp-unit.c.
4748 (read_offset, dwarf_unit_type_name): Likewise.
4749 (create_debug_type_hash_table, read_cutu_die_from_dwo)
4750 (cutu_reader::cutu_reader, read_call_site_scope)
4751 (find_partial_die, follow_die_offset): Update.
4752 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
4753
24aa364d
TT
47542020-02-08 Tom Tromey <tom@tromey.com>
4755
4756 * dwarf2/read.c (read_offset_1): Move to leb.c.
4757 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
4758 (dwarf_decode_macro_bytes): Update.
4759 * dwarf2/leb.c (read_offset): Rename; move from read.c.
4760 * dwarf2/leb.h (read_offset): Declare.
4761
2c7d5afc
TT
47622020-02-08 Tom Tromey <tom@tromey.com>
4763
4764 * dwarf2/read.c (dwarf2_section_size): Remove.
4765 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
4766 Update.
4767 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
4768
4075cb26
TT
47692020-02-08 Tom Tromey <tom@tromey.com>
4770
4771 * dwarf2/read.c (read_initial_length): Move to leb.c.
4772 * dwarf2/leb.h (read_initial_length): Declare.
4773 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
4774 handle_nonstd parameter.
4775 * dwarf2/frame.c (read_initial_length): Remove.
4776 (decode_frame_entry_1): Update.
4777
09ba997f
TT
47782020-02-08 Tom Tromey <tom@tromey.com>
4779
4780 * dwarf2/loc.c (dwarf2_find_location_expression)
4781 (dwarf_evaluate_loc_desc::get_tls_address)
4782 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4783 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
4784 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
4785 (dwarf2_compile_property_to_c)
4786 (dwarf2_loc_desc_get_symbol_read_needs)
4787 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
4788 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
4789 (loclist_describe_location, loclist_tracepoint_var_ref)
4790 (loclist_generate_c_location): Update.
4791 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
4792 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
4793 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
4794 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
4795 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
4796 (dwarf2_per_cu_data::addr_size)
4797 (dwarf2_per_cu_data::ref_addr_size)
4798 (dwarf2_per_cu_data::text_offset)
4799 (dwarf2_per_cu_data::addr_type): Now methods.
4800 (per_cu_header_read_in): Make per_cu "const".
4801 (dwarf2_version): Remove.
4802 (dwarf2_per_cu_data::int_type): Now a method.
4803 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
4804 (set_die_type, read_array_type, read_subrange_index_type)
4805 (read_tag_string_type, read_subrange_type): Update.
4806 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
4807 offset_size, ref_addr_size, text_offset, addr_type, version,
4808 objfile, int_type, addr_sized_int_type>: Declare methods.
4809
96c738c0
TT
48102020-02-08 Tom Tromey <tom@tromey.com>
4811
4812 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
4813 Move earlier.
4814
8fdd972c
TT
48152020-02-08 Tom Tromey <tom@tromey.com>
4816
4817 * dwarf2/read.h (dwarf_line_debug): Declare.
4818 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
4819 * dwarf2/read.c: Move line_header code to new files.
4820 (dwarf_line_debug): No longer static.
4821 * dwarf2/line-header.c: New file.
4822 * dwarf2/line-header.h: New file.
4823
03075812
TT
48242020-02-08 Tom Tromey <tom@tromey.com>
4825
4826 * dwarf2/read.c (struct line_header) <file_full_name,
4827 file_file_name>: Return unique_xmalloc_ptr.
4828 (line_header::file_file_name): Update.
4829 (line_header::file_full_name): Update.
4830 (dw2_get_file_names_reader): Update.
4831 (macro_start_file): Update.
4832
bb822404
TT
48332020-02-08 Tom Tromey <tom@tromey.com>
4834
4835 * dwarf2/read.c (struct line_header) <file_full_name,
4836 file_file_name>: Declare methods.
4837 (dw2_get_file_names_reader): Update.
4838 (file_file_name): Now a method.
4839 (file_full_name): Likewise.
4840 (macro_start_file): Update.
4841
009b64fc
TT
48422020-02-08 Tom Tromey <tom@tromey.com>
4843
4844 * dwarf2/read.c (dwarf_always_disassemble)
4845 (show_dwarf_always_disassemble): Move to loc.c.
4846 (_initialize_dwarf2_read): Move "always-disassemble" registration
4847 to loc.c.
4848 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
4849 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
4850 static.
4851 (show_dwarf_always_disassemble): Move from read.c.
4852 (_initialize_dwarf2loc): Move always-disassemble from read.c.
4853
5895093f
TT
48542020-02-08 Tom Tromey <tom@tromey.com>
4855
4856 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4857 (create_quick_file_names_table): Return htab_up.
4858 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
4859 Update.
4860 * dwarf2/read.h (struct dwarf2_per_objfile)
4861 <quick_file_names_table>: Now htab_up.
4862
b3b32279
TT
48632020-02-08 Tom Tromey <tom@tromey.com>
4864
4865 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
4866
1d33d811
TT
48672020-02-08 Tom Tromey <tom@tromey.com>
4868
4869 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
4870 Rewrite.
4871 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
4872 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
4873 (abbrev_table::abbrev_table): No longer inline.
4874 (ABBREV_HASH_SIZE): Remove.
4875 (abbrev_table::m_abbrevs): Now an htab_up.
4876
86de1d91
TT
48772020-02-08 Tom Tromey <tom@tromey.com>
4878
4879 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
4880 (cutu_reader): Update.
4881 (build_type_psymtabs_1): Update.
4882 * dwarf2/abbrev.c (abbrev_table::read): Rename.
4883 (abbrev_table::alloc_abbrev): Update.
4884 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
4885 (abbrev_table::read): New static method, renamed from
4886 abbrev_table_read_table.
4887 (abbrev_table::alloc_abbrev)
4888 (abbrev_table::add_abbrev): Now private.
4889 (abbrev_table::abbrev_table): Now private.
4890 (abbrev_table::m_abbrev_obstack): Now private. Rename.
4891
0335378b
TT
48922020-02-08 Tom Tromey <tom@tromey.com>
4893
4894 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
4895 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
4896 htab_up.
4897
48b490f2
TT
48982020-02-08 Tom Tromey <tom@tromey.com>
4899
4900 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
4901 htab_up.
4902 (lookup_dwo_unit_in_dwp): Update.
4903 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
4904 on obstack.
4905
bc68fb19
TT
49062020-02-08 Tom Tromey <tom@tromey.com>
4907
4908 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
4909 obstack.
4910
d15acc42
TT
49112020-02-08 Tom Tromey <tom@tromey.com>
4912
4913 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
4914 line_header_hash.
4915 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
4916 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
4917 Change type to htab_up.
4918
eaa5fa8b
TT
49192020-02-08 Tom Tromey <tom@tromey.com>
4920
4921 * dwarf2/read.c (allocate_type_unit_groups_table): Return
4922 htab_up. Don't allocate on obstack.
4923 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
4924 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
4925 Change type to htab_up.
4926
b0b6a987
TT
49272020-02-08 Tom Tromey <tom@tromey.com>
4928
4929 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
4930 Change type to htab_up.
4931 * dwarf2/read.c (create_signatured_type_table_from_index)
4932 (create_signatured_type_table_from_debug_names)
4933 (create_all_type_units, add_type_unit)
4934 (lookup_dwo_signatured_type, lookup_signatured_type)
4935 (process_skeletonless_type_unit): Update.
4936 (create_debug_type_hash_table, create_debug_types_hash_table):
4937 Change type of types_htab.
4938 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
4939 htab_up. Don't allocate on obstack.
4940 (create_cus_hash_table): Change type of cus_htab parameter.
4941 (struct dwo_file) <cus, tus>: Now htab_up.
4942 (lookup_dwo_signatured_type, lookup_dwo_cutu)
4943 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
4944 (queue_and_load_all_dwo_tus): Update.
4945 * dwarf2/index-write.c (write_gdbindex): Update.
4946 (write_debug_names): Update.
4947
39856def
TT
49482020-02-08 Tom Tromey <tom@tromey.com>
4949
4950 * dwarf2/read.h (struct dwarf2_queue_item): Move from
4951 dwarf2/read.c. Remove "next" member. Add constructor ntad
4952 destructor.
4953 (struct dwarf2_per_objfile) <queue>: New member.
4954 * dwarf2/read.c (struct dwarf2_queue_item): Move to
4955 dwarf2/read.h.
4956 (dwarf2_queue, dwarf2_queue_tail): Remove.
4957 (class dwarf2_queue_guard): Add parameter to constructor. Use
4958 DISABLE_COPY_AND_ASSIGN.
4959 <m_per_objfile>: New member.
4960 <~dwarf2_queue_guard>: Rewrite.
4961 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
4962 Update.
4963 (~dwarf2_queue_item): New.
4964
3e225074
TT
49652020-02-08 Tom Tromey <tom@tromey.com>
4966
4967 * dwarf2/read.c (struct die_info) <has_children>: New member.
4968 (dw2_get_file_names_reader): Remove has_children.
4969 (dw2_get_file_names): Update.
4970 (read_cutu_die_from_dwo): Remove has_children.
4971 (cutu_reader::init_tu_and_read_dwo_dies)
4972 (cutu_reader::cutu_reader): Update.
4973 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
4974 Remove has_children.
4975 (build_type_psymtabs_1, process_skeletonless_type_unit)
4976 (load_partial_comp_unit, load_full_comp_unit): Update.
4977 (create_dwo_cu_reader): Remove has_children.
4978 (create_cus_hash_table, read_die_and_children): Update.
4979 (read_full_die_1,read_full_die): Remove has_children.
4980 (read_signatured_type): Update.
4981 (class cutu_reader) <has_children>: Remove.
4982
82ca8957
TT
49832020-02-08 Tom Tromey <tom@tromey.com>
4984
4985 * dwarf2/expr.c: Rename from dwarf2expr.c.
4986 * dwarf2/expr.h: Rename from dwarf2expr.h.
4987 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
4988 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
4989 * dwarf2/frame.c: Rename from dwarf2-frame.c.
4990 * dwarf2/frame.h: Rename from dwarf2-frame.h.
4991 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
4992 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
4993 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
4994 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
4995 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
4996 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
4997 * dwarf2/loc.c: Rename from dwarf2loc.c.
4998 * dwarf2/loc.h: Rename from dwarf2loc.h.
4999 * dwarf2/read.c: Rename from dwarf2read.c.
5000 * dwarf2/read.h: Rename from dwarf2read.h.
5001 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
5002 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
5003 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
5004 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
5005 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
5006 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
5007 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
5008 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
5009 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
5010 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
5011 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
5012 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
5013 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
5014 Update.
5015 * Makefile.in (COMMON_SFILES): Update.
5016 (HFILES_NO_SRCDIR): Update.
5017
9e35d499
TT
50182020-02-08 Tom Tromey <tom@tromey.com>
5019
5020 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
5021 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
5022
1eba2311
TT
50232020-02-08 Tom Tromey <tom@tromey.com>
5024
5025 * dwarf2read.h (struct die_info): Don't declare.
5026
e41c2da2
TT
50272020-02-08 Tom Tromey <tom@tromey.com>
5028
5029 * dwarf2read.h (die_info_ptr): Remove typedef.
5030
4fc6c0d5
TT
50312020-02-08 Tom Tromey <tom@tromey.com>
5032
5033 * dwarf2read.c (read_call_site_scope)
5034 (handle_data_member_location, dwarf2_add_member_fn)
5035 (mark_common_block_symbol_computed, read_common_block)
5036 (attr_to_dynamic_prop, partial_die_info::read)
5037 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
5038 (dwarf2_symbol_mark_computed, set_die_type): Update.
5039 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
5040 method.
5041 (attr_form_is_block): Don't declare.
5042 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
5043
cd6c91b4
TT
50442020-02-08 Tom Tromey <tom@tromey.com>
5045
5046 * dwarf2read.c (dwarf2_find_base_address, )
5047 (read_call_site_scope, rust_containing_type)
5048 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
5049 (handle_data_member_location, dwarf2_add_member_fn)
5050 (get_alignment, read_structure_type, process_structure_scope)
5051 (mark_common_block_symbol_computed, read_common_block)
5052 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
5053 (partial_die_info::read, read_attribute_value, new_symbol)
5054 (lookup_die_type, dwarf2_get_ref_die_offset)
5055 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
5056 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
5057 (dwarf2_symbol_mark_computed): Update.
5058 * dwarf2/attribute.h (struct attribute) <value_as_address,
5059 form_is_section_offset, form_is_constant, form_is_ref>: Declare
5060 methods.
5061 (value_as_address, attr_form_is_section_offset)
5062 (attr_form_is_constant, attr_form_is_ref): Don't declare.
5063 * dwarf2/attribute.c (attribute::value_as_address)
5064 (attribute::form_is_section_offset, attribute::form_is_constant)
5065 (attribute::form_is_ref): Now methods.
5066
162dce55
TT
50672020-02-08 Tom Tromey <tom@tromey.com>
5068
5069 * dwarf2read.c (struct attribute, DW_STRING)
5070 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
5071 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
5072 (attr_form_is_block, attr_form_is_section_offset)
5073 (attr_form_is_constant, attr_form_is_ref): Move.
5074 * dwarf2/attribute.h: New file.
5075 * dwarf2/attribute.c: New file, from dwarf2read.c.
5076 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
5077
3054dd54
TT
50782020-02-08 Tom Tromey <tom@tromey.com>
5079
5080 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
5081 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
5082 Move.
5083 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
5084 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
5085 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
5086 abbrev.c.
5087 * dwarf2/abbrev.h: New file.
5088 * dwarf2/abbrev.c: New file, from dwarf2read.c.
5089 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
5090
96b79293
TT
50912020-02-08 Tom Tromey <tom@tromey.com>
5092
5093 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
5094 (dwarf2_section_size, dwarf2_get_section_info)
5095 (create_signatured_type_table_from_debug_names)
5096 (create_addrmap_from_aranges, read_debug_names_from_section)
5097 (get_gdb_index_contents_from_section, read_comp_unit_head)
5098 (error_check_comp_unit_head, read_abbrev_offset)
5099 (create_debug_type_hash_table, init_cu_die_reader)
5100 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
5101 (read_comp_units_from_section, create_cus_hash_table)
5102 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
5103 (create_dwp_v2_section, dwarf2_rnglists_process)
5104 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
5105 (abbrev_table_read_table, read_indirect_string_at_offset_from)
5106 (read_indirect_string_from_dwz, read_addr_index_1)
5107 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
5108 (dwarf_decode_macro_bytes, dwarf_decode_macros)
5109 (fill_in_loclist_baton): Update.
5110 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
5111 get_containing_section, get_bfd_owner, get_bfd_section,
5112 get_file_name, get_id, get_flags, empty, read>: Declare methods.
5113 (dwarf2_read_section, get_section_name, get_section_file_name)
5114 (get_containing_section, get_section_bfd_owner)
5115 (get_section_bfd_section, get_section_name, get_section_file_name)
5116 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
5117 declare.
5118 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
5119 (dwarf2_section_info::get_bfd_owner)
5120 (dwarf2_section_info::get_bfd_section)
5121 (dwarf2_section_info::get_name)
5122 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
5123 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
5124 (dwarf2_section_info::read): Now methods.
5125 * dwarf-index-write.c (class debug_names): Update.
5126
2c86cff9
TT
51272020-02-08 Tom Tromey <tom@tromey.com>
5128
5129 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
5130 Move to dwarf2/section.h.
5131 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
5132 (get_section_bfd_section, get_section_name)
5133 (get_section_file_name, get_section_id, get_section_flags)
5134 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
5135 dwarf2/section.c.
5136 * dwarf2/section.h: New file.
5137 * dwarf2/section.c: New file, from dwarf2read.c.
5138 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
5139
f4382c45
TT
51402020-02-08 Tom Tromey <tom@tromey.com>
5141
5142 * dwarf2read.h (read_unsigned_leb128): Don't declare.
5143 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
5144 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
5145 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
5146 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
5147 * dwarf2/leb.h: New file, from dwarf2read.c.
5148 * dwarf2/leb.c: New file, from dwarf2read.c.
5149 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
5150 Remove.
5151 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
5152 (COMMON_SFILES): Add dwarf2/leb.c.
5153
01840b7a
JB
51542020-02-08 Joel Brobecker <brobecker@adacore.com>
5155
5156 GDB 9.1 released.
5157
dfcb27e4
IB
51582020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
5159
5160 PR gdb/25190:
aac66a4c
SM
5161 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
5162 * gdb/remote.c (remote_console_output): Update.
5163 * gdb/ui-file.c (fputs_unfiltered): Rename to...
5164 (ui_file_puts): ...this.
5165 * gdb/ui-file.h (ui_file_puts): Add declaration.
5166 * gdb/utils.c (emit_style_escape): Update.
5167 (flush_wrap_buffer): Update.
5168 (fputs_maybe_filtered): Update.
5169 (fputs_unfiltered): Add function.
dfcb27e4 5170
faa17681
IB
51712020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
5172
aac66a4c
SM
5173 * gdb/event-loop.c (gdb_wait_for_event): Update.
5174 * gdb/printcmd.c (printf_command): Update.
5175 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
5176 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
5177 (gdb_os_flush_stderr): Update.
5178 * gdb/remote.c (remote_console_output): Update.
5179 * gdb/ui-file.c (gdb_flush): Rename to...
5180 (ui_file_flush): ...this.
5181 (stderr_file::write): Update.
5182 (stderr_file::puts): Update.
5183 * gdb/ui-file.h (gdb_flush): Rename to...
5184 (ui_file_flush): ...this.
5185 * gdb/utils.c (gdb_flush): Add function.
5186 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 5187
5abbbe1d
TT
51882020-02-07 Tom Tromey <tromey@adacore.com>
5189
5190 PR breakpoints/24915:
5191 * source.c (find_and_open_source): Do not check basenames_may_differ.
5192
919adfe8
TT
51932020-02-07 Tom Tromey <tom@tromey.com>
5194
5195 * README: Update gdbserver documentation.
5196 * gdbserver: Move to top level.
5197 * configure.tgt (build_gdbserver): Remove.
5198 * configure.ac: Remove --enable-gdbserver.
5199 * configure: Rebuild.
5200 * Makefile.in (distclean): Don't mention gdbserver.
5201
1d5d29e7
SV
52022020-02-06 Shahab Vahedi <shahab@synopsys.com>
5203
5204 * source-cache.c (source_cache::ensure): Surround
5205 get_plain_source_lines with a try/catch.
5206 (source_cache::get_line_charpos): Get rid of try/catch
5207 and only check for the return value of "ensure".
5208 * tui/tui-source.c (tui_source_window::set_contents):
5209 Simplify "nlines" calculation.
5210
6eb1129c
SV
52112020-02-06 Shahab Vahedi <shahab@synopsys.com>
5212
5213 * MAINTAINERS (Write After Approval): Add myself.
5214
c6a42d11
CB
52152020-02-05 Christian Biesinger <cbiesinger@google.com>
5216
5217 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
5218 function call.
5219
c8ecdda6
CB
52202020-02-05 Christian Biesinger <cbiesinger@google.com>
5221
5222 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
5223
f6480e70
MR
52242020-02-05 Maciej W. Rozycki <macro@wdc.com>
5225
5226 * nat/riscv-linux-tdesc.h: New file.
5227 * nat/riscv-linux-tdesc.c: New file, taking code from...
5228 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
5229 ... here.
5230 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
5231 NATDEPFILES.
5232
dcc9fbc6
AB
52332020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
5234
5235 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
5236 we don't set the fake simulator ptid to the null_ptid.
5237
719546c4
SM
52382020-02-03 Simon Marchi <simon.marchi@efficios.com>
5239
5240 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
5241 * gdbthread.h (class thread_info) <resumed>: Likewise.
5242 * infrun.c (resume_1): Likewise.
5243 (proceed): Likewise.
5244 (infrun_thread_stop_requested): Likewise.
5245 (stop_all_threads): Likewise.
5246 (handle_inferior_event): Likewise.
5247 (restart_threads): Likewise.
5248 (finish_step_over): Likewise.
5249 (keep_going_stepped_thread): Likewise.
5250 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
5251 (linux_handle_extended_wait): Likewise.
5252 * record-btrace.c (get_thread_current_frame_id): Likewise.
5253 * record-full.c (record_full_wait_1): Likewise.
5254 * remote.c (remote_target::process_initial_stop_replies): Likewise.
5255 * target.c (target_resume): Likewise.
5256 * thread.c (set_running_thread): Likewise.
5257
e409c542
AKS
52582020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5259
5260 * f-valprint.c (f77_print_array_1): Changed datatype of index
5261 variable to LONGEST from int to enable it to contain bound
5262 values correctly.
5263
ee98c0da
MR
52642020-02-03 Maciej W. Rozycki <macro@wdc.com>
5265
5266 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
5267 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
5268 offsets according to FLEN determined.
5269 (riscv_linux_nat_target::read_description): Determine FLEN
5270 dynamically.
5271 (riscv_linux_nat_target::fetch_registers): Size regset buffer
5272 according to FLEN determined.
5273 (riscv_linux_nat_target::store_registers): Likewise.
5274
aa66aac4
SV
52752020-02-01 Shahab Vahedi <shahab@synopsys.com>
5276
5277 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
5278 when reg->group is empty and reggroup is not.
5279
fd9faca8
TT
52802020-01-31 Tom Tromey <tromey@adacore.com>
5281
5282 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
5283 Call beneath target's mourn_inferior after unpushing.
5284
42330a68
AB
52852020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5286
5287 PR tui/9765
5288 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
5289 have enough lines to fill the screen, still return the lowest
5290 address we found.
5291
7a27a45b
AB
52922020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5293
5294 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
5295 '-', '<', and '>' commands.
5296
c47f70e2
PA
52972020-01-29 Pedro Alves <palves@redhat.com>
5298 Sergio Durigan Junior <sergiodj@redhat.com>
5299
5300 * infcmd.c (construct_inferior_arguments): Assert that
5301 'argc' is greater than 0.
5302
5133a315
LM
53032020-01-29 Luis Machado <luis.machado@linaro.org>
5304
5305 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
5306 (BRK_INSN_MASK): Define to 0xd4200000.
5307 (aarch64_program_breakpoint_here_p): New function.
5308 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
5309 * arch-utils.c (default_program_breakpoint_here_p): Moved from
5310 breakpoint.c.
5311 * arch-utils.h (default_program_breakpoint_here_p): Moved from
5312 breakpoint.h
5313 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
5314 call gdbarch_program_breakpoint_here_p.
5315 (program_breakpoint_here): Moved to arch-utils.c, renamed to
5316 default_program_breakpoint_here_p, changed return type to bool and
5317 simplified.
5318 * breakpoint.h (program_breakpoint_here): Moved prototype to
5319 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
5320 return type to bool.
5321 * gdbarch.c: Regenerate.
5322 * gdbarch.h: Regenerate.
5323 * gdbarch.sh (program_breakpoint_here_p): New method.
5324 * infrun.c (handle_signal_stop): Call
5325 gdbarch_program_breakpoint_here_p.
5326
168f8c6b
TT
53272020-01-26 Tom Tromey <tom@tromey.com>
5328
5329 * ctfread.c (struct ctf_fp_info): Reindent.
5330 (_initialize_ctfread): Remove.
5331
128a391f
TT
53322020-01-26 Tom Tromey <tom@tromey.com>
5333
5334 * psymtab.c (partial_map_expand_apply)
5335 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5336 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5337 (psym_print_stats, psym_expand_symtabs_for_function)
5338 (psym_map_symbol_filenames, psym_map_matching_symbols)
5339 (psym_expand_symtabs_matching)
5340 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5341 (maintenance_check_psymtabs): Use new methods.
5342 * psympriv.h (struct partial_symtab) <readin_p,
5343 get_compunit_symtab>: New methods.
5344 <readin, compunit_symtab>: Remove members.
5345 (struct standard_psymtab): New.
5346 (struct legacy_psymtab): Derive from standard_psymtab.
5347 * dwarf2read.h (struct dwarf2_psymtab): Derive from
5348 standard_psymtab.
5349 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
5350
0494dbec
TT
53512020-01-26 Tom Tromey <tom@tromey.com>
5352
5353 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
5354 read_dependencies. Add assert.
5355 * psymtab.c (partial_symtab::read_dependencies): New method.
5356 * psympriv.h (struct partial_symtab) <read_dependencies>: New
5357 method.
5358 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
5359 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
5360 read_dependencies.
5361 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
5362 Add assert.
5363
8566b89b
TT
53642020-01-26 Tom Tromey <tom@tromey.com>
5365
5366 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
5367 Call expand_psymtab.
5368 (xcoff_read_symtab): Call expand_psymtab.
5369 (xcoff_start_psymtab, xcoff_end_psymtab): Set
5370 legacy_expand_psymtab.
5371 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
5372 method.
5373 (struct legacy_psymtab) <expand_psymtab>: Implement.
5374 <legacy_expand_psymtab>: New member.
5375 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
5376 (parse_partial_symbols): Set legacy_expand_psymtab.
5377 (psymtab_to_symtab_1): Change argument order. Call
5378 expand_psymtab.
5379 (new_psymtab): Set legacy_expand_psymtab.
5380 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
5381 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
5382 expand_psymtab.
5383 (dwarf2_psymtab::expand_psymtab): Rename from
5384 psymtab_to_symtab_1. Call expand_psymtab.
5385 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
5386 (dbx_end_psymtab): Likewise.
5387 (dbx_psymtab_to_symtab_1): Change argument order. Call
5388 expand_psymtab.
5389 (dbx_read_symtab): Call expand_psymtab.
5390 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
5391 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
5392 (ctf_psymtab::read_symtab): Call expand_psymtab.
5393
077cbab2
TT
53942020-01-26 Tom Tromey <tom@tromey.com>
5395
5396 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
5397 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
5398 messages.
5399 * mdebugread.c (mdebug_read_symtab): Remove prints.
5400 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
5401 assert.
5402 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
5403
891813be
TT
54042020-01-26 Tom Tromey <tom@tromey.com>
5405
5406 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
5407 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
5408 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
5409 legacy_symtab.
5410 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
5411 * psymtab.c (psymtab_to_symtab): Call method.
5412 (dump_psymtab): Update.
5413 * psympriv.h (struct partial_symtab): Add virtual destructor.
5414 <read_symtab>: New method.
5415 (struct legacy_symtab): New.
5416 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
5417 (struct pst_map) <pst>: Now a legacy_psymtab.
5418 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
5419 (new_psymtab): Use legacy_psymtab.
5420 * dwarf2read.h (struct dwarf2_psymtab): New.
5421 (struct dwarf2_per_cu_data) <psymtab>: Use it.
5422 * dwarf2read.c (dwarf2_create_include_psymtab)
5423 (dwarf2_build_include_psymtabs, create_type_unit_group)
5424 (create_partial_symtab, process_psymtab_comp_unit_reader)
5425 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
5426 (set_partial_user): Use dwarf2_psymtab.
5427 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
5428 (psymtab_to_symtab_1, process_full_comp_unit)
5429 (process_full_type_unit, dwarf2_ranges_read)
5430 (dwarf2_get_pc_bounds, psymtab_include_file_name)
5431 (dwarf_decode_lines): Use dwarf2_psymtab.
5432 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
5433 (add_address_entry_worker, write_one_signatured_type)
5434 (recursively_count_psymbols, recursively_write_psymbols)
5435 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
5436 (write_debug_names): Likewise.
5437 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
5438 <pst>: Now a legacy_psymtab.
5439 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
5440 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
5441 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
5442 * ctfread.c (struct ctf_psymtab): New.
5443 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
5444 ctf_psymtab.
5445 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
5446 (create_partial_symtab): Return a ctf_psymtab.
5447 (scan_partial_symbols): Update.
5448
c3693a1d
TT
54492020-01-26 Tom Tromey <tom@tromey.com>
5450
5451 * xcoffread.c (xcoff_start_psymtab): Use new.
5452 * psymtab.c (partial_symtab::partial_symtab): New constructor,
5453 renamed from start_psymtab_common.
5454 * psympriv.h (struct partial_symtab): Add new constructor.
5455 (start_psymtab_common): Don't declare.
5456 * mdebugread.c (parse_partial_symbols): Use new.
5457 * dwarf2read.c (create_partial_symtab): Use new.
5458 * dbxread.c (start_psymtab): Use new.
5459 * ctfread.c (create_partial_symtab): Use new.
5460
32caafd0
TT
54612020-01-26 Tom Tromey <tom@tromey.com>
5462
5463 * xcoffread.c (xcoff_end_psymtab): Use new.
5464 * psymtab.c (start_psymtab_common): Use new.
5465 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
5466 Update.
5467 * psympriv.h (struct partial_symtab): Add parameters to
5468 constructor. Don't inline.
5469 (allocate_psymtab): Don't declare.
5470 * mdebugread.c (new_psymtab): Use new.
5471 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
5472 * dbxread.c (dbx_end_psymtab): Use new.
5473
abaa2f23
TT
54742020-01-26 Tom Tromey <tom@tromey.com>
5475
5476 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
5477 allocate_psymtab. Update documentation.
5478 * psymtab.c (psymtab_storage::install_psymtab): Rename from
5479 allocate_psymtab. Do not use new.
5480 (allocate_psymtab): Use new. Update.
5481
6d94535f
TT
54822020-01-26 Tom Tromey <tom@tromey.com>
5483
5484 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5485 * psymtab.c (psym_print_stats): Update.
5486 * psympriv.h (struct partial_symtab) <readin,
5487 psymtabs_addrmap_supported, anonymous>: Now bool.
5488 * mdebugread.c (psymtab_to_symtab_1): Update.
5489 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
5490 (build_type_psymtabs_reader, psymtab_to_symtab_1)
5491 (process_full_comp_unit, process_full_type_unit): Update.
5492 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5493 * ctfread.c (psymtab_to_symtab): Update.
5494
6f17252b
TT
54952020-01-26 Tom Tromey <tom@tromey.com>
5496
5497 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
5498 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
5499 * psymtab.c (psymtab_storage): Delete psymtabs.
5500 (psymtab_storage::allocate_psymtab): Use new.
5501 (psymtab_storage::discard_psymtab): Use delete.
5502 * psympriv.h (struct partial_symtab): Add constructor and
5503 initializers.
5504
f6f1cebc
TT
55052020-01-26 Tom Tromey <tom@tromey.com>
5506
5507 * machoread.c: Do not include psympriv.h.
5508
e47e48f6
PW
55092020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5510
5511 * NEWS: Mention the new option and the set/show commands.
5512
a2fedca9
PW
55132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5514
5515 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
5516 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
5517 (validate_exec_file): New variables, enums, functions.
5518 (exec_file_locate_attach, print_section_info): Style the filenames.
5519 (_initialize_exec): Install show_exec_file_mismatch_command and
5520 set_exec_file_mismatch_command.
5521 * gdbcore.h (validate_exec_file): Declare.
5522 * infcmd.c (attach_command): Call validate_exec_file.
5523 * remote.c ( remote_target::remote_add_inferior): Likewise.
5524
7ffa82e1
AB
55252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5526
5527 * frame.c (find_frame_sal): Move call to get_next_frame into more
5528 inner scope.
5529 * inline-frame.c (inilne_state) <inline_state>: Update argument
5530 types.
5531 (inilne_state) <skipped_symbol>: Rename to...
5532 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
5533 (skip_inline_frames): Build vector of skipped symbols and use this
5534 to reate the inline_state.
5535 (inline_skipped_symbol): Add a comment and some assertions, fetch
5536 skipped symbol from the list.
5537
3d92a3e3
AB
55382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * buildsym.c (lte_is_less_than): Delete.
5541 (buildsym_compunit::end_symtab_with_blockvector): Create local
5542 lambda function to sort line table entries, and use
5543 std::stable_sort instead of std::sort.
5544 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
5545 markers when looking for a previous line.
5546
94a72be7
AB
55472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5548
5549 * dwarf2read.c (lnp_state_machine::record_line): Include
5550 end_sequence parameter in debug print out. Record the line if we
5551 are at an end_sequence marker even if it's not the start of a
5552 statement.
5553 * symmisc.c (maintenance_print_one_line_table): Print end of
5554 sequence markers with 'END' not '0'.
5555
53af73bf
PA
55562020-01-24 Pedro Alves <palves@redhat.com>
5557
5558 PR gdb/25410
5559 * thread.c (scoped_restore_current_thread::restore): Use
5560 switch_to_inferior_no_thread.
5561 * exec.c: Include "progspace-and-thread.h".
5562 (add_target_sections, remove_target_sections):
5563 scoped_restore_current_pspace_and_thread instead of
5564 scoped_restore_current_thread.
5565 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
5566 and aspace to the inferior before calling clone_program_space.
5567 Remove stale comment.
5568
3050c6f4
CB
55692020-01-24 Christian Biesinger <cbiesinger@google.com>
5570
5571 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
5572 (arm_netbsd_nat_target::fetch_registers): ...this.
5573 (arm_nbsd_nat_target::store_registers): Rename to...
5574 (arm_netbsd_nat_target::store_registers): ...this.
5575
73685c7e
CB
55762020-01-24 Christian Biesinger <cbiesinger@google.com>
5577
5578 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5579 register_t.
5580
89203d40
CB
55812020-01-24 Christian Biesinger <cbiesinger@google.com>
5582
5583 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
5584 Update comment.
5585 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
5586 Likewise.
5587 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
5588 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
5589 the correct replacement (iterate_over_regset_sections).
5590 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
5591 Update comment.
5592
1ba1ac88
AB
55932020-01-24 Graham Markall <graham.markall@embecosm.com>
5594
5595 PR gdb/23718
5596 * gdb/python/python.c (execute_gdb_command): Call
5597 async_enable_stdin in catch block.
5598
f3364a6d
AB
55992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5600
5601 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
5602 SWITCH_THRU_ALL_UIS.
5603
733d0a67
AB
56042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5605
5606 PR tui/9765
5607 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
5608 comment, add extra parameter, and update to store previous symbol
5609 when appropriate.
5610 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
5611 add extra parameter.
5612 * tui/tui-disasm.c (tui_disassemble): Update header comment,
5613 remove unneeded parameter, add try/catch around gdb_print_insn,
5614 rewrite to add items to asm_lines vector.
5615 (tui_find_backward_disassembly_start_address): New function.
5616 (tui_find_disassembly_address): Updated throughout.
5617 (tui_disasm_window::set_contents): Update for changes to
5618 tui_disassemble.
5619 (tui_disasm_window::do_scroll_vertical): No need to adjust the
5620 number of lines to scroll.
5621
b3b3bada
SM
56222020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
5625 (SECT_OFF_DATA): Likewise.
5626 (SECT_OFF_RODATA): Likewise.
5627 (SECT_OFF_TEXT): Likewise.
5628 (SECT_OFF_BSS): Likewise.
5629 (struct objfile) <text_section_offset, data_section_offset>: New
5630 methods.
5631 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
5632 objfile::text_section_offset.
5633 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
5634 * coffread.c (coff_symtab_read): Likewise.
5635 (enter_linenos): Likewise.
5636 (process_coff_symbol): Likewise.
5637 * ctfread.c (get_objfile_text_range): Likewise.
5638 * dtrace-probe.c (dtrace_probe::get_relocated_address):
5639 Use objfile::data_section_offset.
5640 * dwarf2-frame.c (execute_cfa_program): Use
5641 objfile::text_section_offset.
5642 (dwarf2_frame_find_fde): Likewise.
5643 * dwarf2read.c (create_addrmap_from_index): Likewise.
5644 (create_addrmap_from_aranges): Likewise.
5645 (dw2_find_pc_sect_compunit_symtab): Likewise.
5646 (process_psymtab_comp_unit_reader): Likewise.
5647 (add_partial_symbol): Likewise.
5648 (add_partial_subprogram): Likewise.
5649 (process_full_comp_unit): Likewise.
5650 (read_file_scope): Likewise.
5651 (read_func_scope): Likewise.
5652 (read_lexical_block_scope): Likewise.
5653 (read_call_site_scope): Likewise.
5654 (dwarf2_rnglists_process): Likewise.
5655 (dwarf2_ranges_process): Likewise.
5656 (dwarf2_ranges_read): Likewise.
5657 (dwarf_decode_lines_1): Likewise.
5658 (new_symbol): Likewise.
5659 (dwarf2_fetch_die_loc_sect_off): Likewise.
5660 (dwarf2_per_cu_text_offset): Likewise.
5661 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5662 * hppa-tdep.c (read_unwind_info): Likewise.
5663 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
5664 * psympriv.h (struct partial_symtab): Likewise.
5665 * psymtab.c (find_pc_sect_psymtab): Likewise.
5666 * solib-svr4.c (enable_break): Likewise.
5667 * stap-probe.c (relocate_address): Use
5668 objfile::data_section_offset.
5669 * xcoffread.c (enter_line_range): Use
5670 objfile::text_section_offset.
5671 (read_xcoff_symtab): Likewise.
5672
ab53f382
SM
56732020-01-23 Simon Marchi <simon.marchi@efficios.com>
5674
5675 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
5676 declaration to narrower scopes.
5677
e7eee665
SM
56782020-01-23 Simon Marchi <simon.marchi@efficios.com>
5679
5680 * darwin-nat.h (struct darwin_exception_msg, enum
5681 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
5682 Move up.
5683 (class darwin_nat_target) <wait_1, check_new_threads,
5684 decode_exception_message, decode_message, stop_inferior,
5685 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
5686 * darwin-nat.c (darwin_check_new_threads): Rename to...
5687 (darwin_nat_target::check_new_threads): ... this.
5688 (darwin_suspend_inferior_it): Remove.
5689 (darwin_decode_exception_message): Rename to...
5690 (darwin_nat_target::decode_exception_message): ... this.
5691 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
5692 (darwin_decode_message): Rename to...
5693 (darwin_nat_target::decode_message): ... this.
5694 (cancel_breakpoint): Rename to...
5695 (darwin_nat_target::cancel_breakpoint): ... this.
5696 (darwin_wait): Rename to...
5697 (darwin_nat_target::wait_1): ... this. Use range-based for loop
5698 instead of iterate_over_inferiors.
5699 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
5700 (darwin_stop_inferior): Rename to...
5701 (darwin_nat_target::stop_inferior): ... this.
5702 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
5703 (darwin_init_thread_list): Rename to...
5704 (darwin_nat_target::init_thread_list): ... this.
5705 (darwin_ptrace_him): Rename to...
5706 (darwin_nat_target::ptrace_him): ... this.
5707 (darwin_nat_target::create_inferior): Pass lambda function to
5708 fork_inferior.
5709 (darwin_nat_target::detach): Call stop_inferior instead of
5710 darwin_stop_inferior.
5711 * fork-inferior.h (fork_inferior): Change init_trace_fun
5712 parameter to gdb::function_view.
5713 * fork-inferior.c (fork_inferior): Likewise.
5714
c162ed3e
HD
57152020-01-23 Hannes Domani <ssbssa@yahoo.de>
5716
5717 * i386-cygwin-tdep.c (core_process_module_section): Update.
5718 * windows-nat.c (struct lm_info_windows): Add text_offset.
5719 (windows_xfer_shared_libraries): Update.
5720 * windows-tdep.c (windows_xfer_shared_library):
5721 Add text_offset_cached argument.
5722 * windows-tdep.h (windows_xfer_shared_library): Update.
5723
a1237872
SM
57242020-01-21 Simon Marchi <simon.marchi@efficios.com>
5725
5726 * gdbarch.sh: Add declaration for _initialize_gdbarch.
5727
b3ee6dd9
SM
57282020-01-21 Simon Marchi <simon.marchi@efficios.com>
5729
5730 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
5731 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
5732 replace with range-based for.
5733 (gdbsim_interrupt_inferior): Remove.
5734 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
5735 with a range-based for. Inline code from
5736 gdbsim_interrupt_inferior.
5737
f9fac3c8
SM
57382020-01-21 Simon Marchi <simon.marchi@efficios.com>
5739
5740 * infrun.c (proceed): Fix indentation.
5741
f6474de9
TT
57422020-01-21 Tom Tromey <tromey@adacore.com>
5743
5744 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
5745 * python/python.c (python_extension_ops): Update.
5746 (gdbpy_colorize): New function.
5747 * python/lib/gdb/__init__.py (colorize): New function.
5748 * extension.h (ext_lang_colorize): Declare.
5749 * extension.c (ext_lang_colorize): New function.
5750 * extension-priv.h (struct extension_language_ops) <colorize>: New
5751 member.
5752 * cli/cli-style.c (_initialize_cli_style): Update help text.
5753
f0c702d4
LM
57542020-01-21 Luis Machado <luis.machado@linaro.org>
5755
5756 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
5757 <cond>: Change type to bool.
5758 (aarch64_displaced_step_b_cond): Update cond to use bool type.
5759 (aarch64_displaced_step_cb): Likewise.
5760 (aarch64_displaced_step_tb): Likewise.
5761
1ab139e5
LM
57622020-01-21 Luis Machado <luis.machado@linaro.org>
5763
5764 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
5765 output.
5766
0c271889
LM
57672020-01-21 Luis Machado <luis.machado@linaro.org>
5768
5769 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
5770 <pc_adjust>: Adjust the documentation.
5771 (aarch64_displaced_step_fixup): Check if PC really moved before
5772 adjusting it.
5773
4d89c1c7
TT
57742020-01-19 Tom Tromey <tom@tromey.com>
5775
5776 * disasm.c (~gdb_disassembler): New destructor.
5777 (gdb_buffered_insn_length): Call disassemble_free_target.
5778 * disasm.h (class gdb_disassembler): Declare destructor. Use
5779 DISABLE_COPY_AND_ASSIGN.
5780
c0ab21c2
TT
57812020-01-19 Tom Tromey <tom@tromey.com>
5782
5783 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
5784 (die_reader_func_ftype): Remove.
5785 (cutu_reader): New class.
5786 (dw2_get_file_names_reader): Remove "data" parameter.
5787 (dw2_get_file_names): Use cutu_reader.
5788 (create_debug_type_hash_table): Update.
5789 (read_cutu_die_from_dwo): Update comment.
5790 (lookup_dwo_unit): Add dwo_name parameter.
5791 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
5792 die_reader_func_ftype and data parameters.
5793 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
5794 Remove die_reader_func_ftype and data parameters.
5795 (~cutu_reader): New; from init_cutu_and_read_dies.
5796 (cutu_reader::cutu_reader): Rename from
5797 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
5798 and data parameters.
5799 (init_cutu_and_read_dies_simple): Remove.
5800 (struct process_psymtab_comp_unit_data): Remove.
5801 (process_psymtab_comp_unit_reader): Remove data parameter; add
5802 want_partial_unit and pretend_language parameters.
5803 (process_psymtab_comp_unit): Use cutu_reader.
5804 (build_type_psymtabs_reader): Remove data parameter.
5805 (build_type_psymtabs_1): Use cutu_reader.
5806 (process_skeletonless_type_unit): Likewise.
5807 (load_partial_comp_unit_reader): Remove.
5808 (load_partial_comp_unit): Use cutu_reader.
5809 (load_full_comp_unit_reader): Remove.
5810 (load_full_comp_unit): Use cutu_reader.
5811 (struct create_dwo_cu_data): Remove.
5812 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
5813 dwo_unit parameters.
5814 (create_cus_hash_table): Use cutu_reader.
5815 (struct dwarf2_read_addr_index_data): Remove.
5816 (dwarf2_read_addr_index_reader): Remove.
5817 (dwarf2_read_addr_index): Use cutu_reader.
5818 (read_signatured_type_reader): Remove.
5819 (read_signatured_type): Use cutu_reader.
5820
45bbae5c
TT
58212020-01-19 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
5824 * tui/tui-wingeneral.h (class tui_suppress_output): New.
5825 (tui_wrefresh): Declare.
5826 * tui/tui-wingeneral.c (suppress_output): New global.
5827 (tui_suppress_output, ~tui_suppress_output): New constructor and
5828 destructor.
5829 (tui_wrefresh): New function.
5830 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
5831 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
5832 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
5833 method.
5834 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
5835 tui_wrefresh.
5836 (tui_data_window::no_refresh): New method.
5837 (tui_data_item_window::refresh_window): Call tui_wrefresh.
5838 (tui_reg_command): Use tui_suppress_output
5839 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
5840 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
5841 method.
5842 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
5843
4f13c1c0
TT
58442020-01-19 Tom Tromey <tom@tromey.com>
5845
5846 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5847 Handle case where symtab is null.
5848
fa47e446
SM
58492020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5850
5851 * linux-fork.c (one_fork_p): Simplify.
5852
26f42329
SM
58532020-01-17 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * top.c (struct qt_args): Remove.
5856 (kill_or_detach): Change return type to void, replace `void *`
5857 parameter with a proper one.
5858 (print_inferior_quit_action): Likewise.
5859 (quit_confirm): Use range-based for loop to iterate over inferiors.
5860 (quit_force): Likewise.
5861
a9ac81b1
SM
58622020-01-17 Simon Marchi <simon.marchi@efficios.com>
5863
5864 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
5865 `void *` parameter with proper parameters.
5866 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
5867 (print_one_inferior): Change return type to void, replace `void *`
5868 parameter with proper parameters.
5869 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
5870 inferiors.
5871 (get_other_inferior): Remove.
5872 (mi_cmd_remove_inferior): Use range-based loop to iterate over
5873 inferiors.
5874
788eca49
SM
58752020-01-17 Simon Marchi <simon.marchi@efficios.com>
5876
5877 * mi/mi-interp.c (report_initial_inferior): Remove.
5878 (mi_interp::init): Use range-based for to iterate over inferiors.
5879
d9bc85b6
SM
58802020-01-17 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * python/py-inferior.c (build_inferior_list): Remove.
5883 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
5884
40c94099
CB
58852020-01-16 Christian Biesinger <cbiesinger@google.com>
5886
5887 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
5888 (btrace_stitch_trace): Likewise.
5889 * charset.c (intermediate_encoding): Likewise (vaild).
5890 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
5891 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
5892 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
5893
e0cdfe3c
HD
58942020-01-16 Hannes Domani <ssbssa@yahoo.de>
5895
5896 * windows-tdep.c (windows_get_tlb_type):
5897 Add rtl_user_process_parameters type.
5898
790f1718 58992020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 5900 Norbert Lange <nolange79@gmail.com>
790f1718
PA
5901
5902 PR build/24805
5903 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
5904 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
5905 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
5906 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
5907 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
5908 (ps_plog): Redeclare exported functions with default visibility.
5909
3112ed97
NA
59102020-01-16 Nitika Achra <Nitika.Achra@amd.com>
5911
5912 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
5913 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
5914
8dc3273e
SM
59152020-01-15 Simon Marchi <simon.marchi@efficios.com>
5916
5917 * infcmd.c (post_create_inferior): Use get_thread_regcache
5918 instead of get_current_regcache.
5919
ff47f4f0
TT
59202020-01-14 Tom Tromey <tom@tromey.com>
5921
5922 PR symtab/12535:
5923 * python/python.c (gdbpy_decode_line): Treat empty string the same
5924 as no argument.
5925
975f45b7
TT
59262020-01-14 Tom Tromey <tom@tromey.com>
5927
5928 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
5929
25e57356
TT
59302020-01-14 Tom Tromey <tom@tromey.com>
5931
5932 * nat/linux-btrace.c: Don't include <config.h>.
5933 * nat/linux-ptrace.c: Don't include <config.h>.
5934 * nat/x86-linux-dregs.c: Don't include <config.h>.
5935
05ea2a05
TT
59362020-01-14 Tom Tromey <tom@tromey.com>
5937
5938 * configure: Rebuild.
5939 * configure.ac: Move many checks to ../gdbsupport/common.m4.
5940
01027315
TT
59412020-01-14 Tom Tromey <tom@tromey.com>
5942
5943 * nat/x86-linux-dregs.c: Include configh.h.
5944 * nat/linux-ptrace.c: Include configh.h.
5945 * nat/linux-btrace.c: Include configh.h.
5946 * defs.h: Include config.h, bfd.h.
5947 * configure.ac: Don't source common.host.
5948 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
5949 * configure: Rebuild.
5950 * acinclude.m4: Update path.
5951 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
5952 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
5953 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
5954 (CLIBS): Add LIBSUPPORT.
5955 (CDEPS): Likewise.
5956 (COMMON_SFILES): Remove gdbsupport files.
5957 (HFILES_NO_SRCDIR): Likewise.
5958 (stamp-version): Update path to create-version.sh.
5959 (ALLDEPFILES): Remove gdbsupport files.
5960
b2ceabe8
TT
59612020-01-14 Tom Tromey <tom@tromey.com>
5962
5963 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
5964 USE_WIN32API when needed.
5965 * configure.ac (USE_WIN32API): Don't define.
5966 (WIN32LIBS): Use WIN32APILIBS.
5967 * configure: Rebuild.
5968
25c51f71
TT
59692020-01-14 Tom Tromey <tom@tromey.com>
5970
5971 * configure: Rebuild.
5972 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
5973
717c684d
BE
59742020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5975
5976 * skip.c (skip_function_command): Make skip w/o arguments use the
5977 name of the inlined function if pc is inside any inlined function.
5978
7da6a5b9
LM
59792020-01-14 Luis Machado <luis.machado@linaro.org>
5980
5981 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
5982 * infrun.c (resume_1): Likewise.
5983 (handle_inferior_event): Remove stale comment.
5984 * linux-nat.c (linux_nat_target::resume): Update comments.
5985 (save_stop_reason): Likewise.
5986 (linux_nat_filter_event): Likewise.
5987 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
5988
44e4c775
AB
59892020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * elfread.c (record_minimal_symbol): Set section index to 0 for
5992 non-allocatable sections.
5993
18a8505e
AT
5994
59952020-01-13 Ali Tamur <tamur@google.com>
5996
5997 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
5998 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
5999 to gdb::optional. Update comments.
6000 (dwo_file): Update comments.
6001 (read_attribute): Update API to take an additional out parameter,
6002 need_reprocess. This is used to mark attributes that need other
6003 attributes (e.g. str_offsets_base) for correct computation which may not
6004 have been read yet.
6005 (read_attribute_reprocess): New function declaration.
6006 (read_addr_index): Likewise.
6007 (read_dwo_str_index): Likewise.
6008 (read_stub_str_index): Likewise.
6009 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
6010 (lookup_addr_base): New function definition.
6011 (lookup_ranges_base): Likewise.
6012 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
6013 lookup_ranges_base.
6014 (init_cutu_and_read_dies): Update comments.
6015 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
6016 unit. This is used to inherit parent's str_offsets_base and addr_base.
6017 Update comments.
6018 (init_cutu_and_read_dies_simple): Reflect API changes.
6019 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
6020 (create_cus_hash_table): Change API to take parent compile unit.
6021 Reflect API changes.
6022 (open_and_init_dwo_file): Reflect API changes.
6023 (dwarf2_get_pc_bounds): Update comments.
6024 (dwarf2_record_block_ranges): Likewise.
6025 (read_full_die_1): Change implementation to reprocess attributes that
6026 need str_offsets_base and addr_base.
6027 (partial_die_info::read): Likewise.
6028 (read_attribute_reprocess): New function definition.
6029 (read_attribute_value): Change API to take an additional out parameter,
6030 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
6031 when a non-dwo compile unit has index based attributes.
6032 (read_attribute): Reflect API changes.
6033 (read_addr_index_1): Reflect API changes. Update comments.
6034 (dwarf2_read_addr_index_data): Reflect API changes.
6035 (dwarf2_read_addr_index): Likewise.
6036 (read_str_index): Change API and implementation. This becomes a helper
6037 to be used by the new string index related methods. Update error
6038 message and comments.
6039 (read_dwo_str_index): New function definition.
6040 (read_stub_str_index): Likewise.
6041 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
6042 * symfile.h (dwarf2_debug_sections): Likewise.
6043 * xcoffread.c (dwarf2_debug_sections): Likewise.
6044
0cac9354
SM
60452020-01-13 Simon Marchi <simon.marchi@efficios.com>
6046
6047 * gdbcore.h (struct core_fns) <core_read_registers>: Change
6048 core_reg_sect type to gdb_byte *.
6049 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
6050 * cris-tdep.c (fetch_core_registers): Likewise.
6051 * corelow.c (core_target::get_core_register_section): Change
6052 type of `contents` to gdb::byte_vector.
6053
9a6d629c
AB
60542020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6055
6056 * tui/tui-wingeneral.c (box_win): Position the title in the center
6057 of the border.
6058
d8b2f9e3
SM
60592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6060
6061 * corelow.c (core_target::get_core_register_section): Use
6062 std::vector instead of alloca.
6063
bb564c58
SM
60642020-01-13 Simon Marchi <simon.marchi@efficios.com>
6065
6066 * warning.m4: Add -Wmissing-declarations to build_warnings.
6067 * configure: Re-generate.
6068
6b366111
SM
60692020-01-13 Simon Marchi <simon.marchi@efficios.com>
6070
6071 * python/python.c (init__gdb_module): Add declaration.
6072
6c265988
SM
60732020-01-13 Simon Marchi <simon.marchi@efficios.com>
6074
6075 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
6076 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
6077 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
6078 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
6079 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
6080 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
6081 * ada-exp.y (_initialize_ada_exp): Add declaration.
6082 * ada-lang.c (_initialize_ada_language): Add declaration.
6083 * ada-tasks.c (_initialize_tasks): Add declaration.
6084 * agent.c (_initialize_agent): Add declaration.
6085 * aix-thread.c (_initialize_aix_thread): Add declaration.
6086 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
6087 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
6088 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
6089 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
6090 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
6091 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
6092 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
6093 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
6094 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
6095 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
6096 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
6097 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
6098 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
6099 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
6100 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
6101 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
6102 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
6103 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
6104 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
6105 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
6106 * annotate.c (_initialize_annotate): Add declaration.
6107 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
6108 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
6109 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
6110 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
6111 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
6112 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
6113 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
6114 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
6115 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
6116 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
6117 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
6118 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
6119 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
6120 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
6121 * auto-load.c (_initialize_auto_load): Add declaration.
6122 * auxv.c (_initialize_auxv): Add declaration.
6123 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
6124 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
6125 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
6126 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
6127 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
6128 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
6129 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
6130 * breakpoint.c (_initialize_breakpoint): Add declaration.
6131 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
6132 * btrace.c (_initialize_btrace): Add declaration.
6133 * charset.c (_initialize_charset): Add declaration.
6134 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
6135 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
6136 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
6137 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
6138 * cli/cli-script.c (_initialize_cli_script): Add declaration.
6139 * cli/cli-style.c (_initialize_cli_style): Add declaration.
6140 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
6141 * coffread.c (_initialize_coffread): Add declaration.
6142 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
6143 * compile/compile.c (_initialize_compile): Add declaration.
6144 * complaints.c (_initialize_complaints): Add declaration.
6145 * completer.c (_initialize_completer): Add declaration.
6146 * copying.c (_initialize_copying): Add declaration.
6147 * corefile.c (_initialize_core): Add declaration.
6148 * corelow.c (_initialize_corelow): Add declaration.
6149 * cp-abi.c (_initialize_cp_abi): Add declaration.
6150 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
6151 * cp-support.c (_initialize_cp_support): Add declaration.
6152 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
6153 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
6154 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
6155 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
6156 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
6157 * ctfread.c (_initialize_ctfread): Add declaration.
6158 * d-lang.c (_initialize_d_language): Add declaration.
6159 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
6160 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
6161 * dbxread.c (_initialize_dbxread): Add declaration.
6162 * dcache.c (_initialize_dcache): Add declaration.
6163 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
6164 * disasm.c (_initialize_disasm): Add declaration.
6165 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
6166 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
6167 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
6168 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
6169 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
6170 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
6171 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
6172 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
6173 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
6174 * elfread.c (_initialize_elfread): Add declaration.
6175 * exec.c (_initialize_exec): Add declaration.
6176 * extension.c (_initialize_extension): Add declaration.
6177 * f-lang.c (_initialize_f_language): Add declaration.
6178 * f-valprint.c (_initialize_f_valprint): Add declaration.
6179 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
6180 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
6181 * filesystem.c (_initialize_filesystem): Add declaration.
6182 * findcmd.c (_initialize_mem_search): Add declaration.
6183 * findvar.c (_initialize_findvar): Add declaration.
6184 * fork-child.c (_initialize_fork_child): Add declaration.
6185 * frame-base.c (_initialize_frame_base): Add declaration.
6186 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
6187 * frame.c (_initialize_frame): Add declaration.
6188 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
6189 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
6190 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
6191 * gcore.c (_initialize_gcore): Add declaration.
6192 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
6193 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
6194 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
6195 * gdbarch.c (_initialize_gdbarch): Add declaration.
6196 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
6197 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
6198 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
6199 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
6200 * go-lang.c (_initialize_go_language): Add declaration.
6201 * go32-nat.c (_initialize_go32_nat): Add declaration.
6202 * guile/guile.c (_initialize_guile): Add declaration.
6203 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
6204 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
6205 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
6206 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
6207 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
6208 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
6209 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
6210 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
6211 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
6212 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
6213 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
6214 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
6215 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
6216 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
6217 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
6218 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
6219 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
6220 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
6221 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
6222 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
6223 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
6224 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
6225 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
6226 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
6227 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
6228 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
6229 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
6230 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
6231 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
6232 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
6233 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
6234 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
6235 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
6236 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
6237 * infcall.c (_initialize_infcall): Add declaration.
6238 * infcmd.c (_initialize_infcmd): Add declaration.
6239 * inflow.c (_initialize_inflow): Add declaration.
6240 * infrun.c (_initialize_infrun): Add declaration.
6241 * interps.c (_initialize_interpreter): Add declaration.
6242 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
6243 * jit.c (_initialize_jit): Add declaration.
6244 * language.c (_initialize_language): Add declaration.
6245 * linux-fork.c (_initialize_linux_fork): Add declaration.
6246 * linux-nat.c (_initialize_linux_nat): Add declaration.
6247 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
6248 * linux-thread-db.c (_initialize_thread_db): Add declaration.
6249 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
6250 * m2-lang.c (_initialize_m2_language): Add declaration.
6251 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
6252 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
6253 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
6254 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
6255 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
6256 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
6257 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
6258 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
6259 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
6260 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
6261 * machoread.c (_initialize_machoread): Add declaration.
6262 * macrocmd.c (_initialize_macrocmd): Add declaration.
6263 * macroscope.c (_initialize_macroscope): Add declaration.
6264 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
6265 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
6266 * maint.c (_initialize_maint_cmds): Add declaration.
6267 * mdebugread.c (_initialize_mdebugread): Add declaration.
6268 * memattr.c (_initialize_mem): Add declaration.
6269 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
6270 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
6271 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
6272 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
6273 * mi/mi-main.c (_initialize_mi_main): Add declaration.
6274 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
6275 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
6276 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
6277 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
6278 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
6279 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
6280 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
6281 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
6282 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
6283 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6284 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
6285 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
6286 * mipsread.c (_initialize_mipsread): Add declaration.
6287 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
6288 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
6289 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
6290 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
6291 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
6292 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
6293 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
6294 * nto-procfs.c (_initialize_procfs): Add declaration.
6295 * objc-lang.c (_initialize_objc_language): Add declaration.
6296 * observable.c (_initialize_observer): Add declaration.
6297 * opencl-lang.c (_initialize_opencl_language): Add declaration.
6298 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
6299 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
6300 * osabi.c (_initialize_gdb_osabi): Add declaration.
6301 * osdata.c (_initialize_osdata): Add declaration.
6302 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6303 * parse.c (_initialize_parse): Add declaration.
6304 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
6305 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
6306 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
6307 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
6308 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
6309 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
6310 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
6311 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
6312 * printcmd.c (_initialize_printcmd): Add declaration.
6313 * probe.c (_initialize_probe): Add declaration.
6314 * proc-api.c (_initialize_proc_api): Add declaration.
6315 * proc-events.c (_initialize_proc_events): Add declaration.
6316 * proc-service.c (_initialize_proc_service): Add declaration.
6317 * procfs.c (_initialize_procfs): Add declaration.
6318 * producer.c (_initialize_producer): Add declaration.
6319 * psymtab.c (_initialize_psymtab): Add declaration.
6320 * python/python.c (_initialize_python): Add declaration.
6321 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
6322 * record-btrace.c (_initialize_record_btrace): Add declaration.
6323 * record-full.c (_initialize_record_full): Add declaration.
6324 * record.c (_initialize_record): Add declaration.
6325 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
6326 * regcache.c (_initialize_regcache): Add declaration.
6327 * reggroups.c (_initialize_reggroup): Add declaration.
6328 * remote-notif.c (_initialize_notif): Add declaration.
6329 * remote-sim.c (_initialize_remote_sim): Add declaration.
6330 * remote.c (_initialize_remote): Add declaration.
6331 * reverse.c (_initialize_reverse): Add declaration.
6332 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
6333 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
6334 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
6335 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
6336 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
6337 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
6338 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
6339 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
6340 Add declaration.
6341 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
6342 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
6343 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
6344 * rust-exp.y (_initialize_rust_exp): Add declaration.
6345 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
6346 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
6347 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
6348 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
6349 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
6350 * score-tdep.c (_initialize_score_tdep): Add declaration.
6351 * ser-go32.c (_initialize_ser_dos): Add declaration.
6352 * ser-mingw.c (_initialize_ser_windows): Add declaration.
6353 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
6354 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
6355 * ser-uds.c (_initialize_ser_socket): Add declaration.
6356 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
6357 * serial.c (_initialize_serial): Add declaration.
6358 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
6359 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
6360 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
6361 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
6362 * skip.c (_initialize_step_skip): Add declaration.
6363 * sol-thread.c (_initialize_sol_thread): Add declaration.
6364 * solib-aix.c (_initialize_solib_aix): Add declaration.
6365 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
6366 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
6367 * solib-frv.c (_initialize_frv_solib): Add declaration.
6368 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6369 * solib-target.c (_initialize_solib_target): Add declaration.
6370 * solib.c (_initialize_solib): Add declaration.
6371 * source-cache.c (_initialize_source_cache): Add declaration.
6372 * source.c (_initialize_source): Add declaration.
6373 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
6374 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
6375 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
6376 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
6377 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
6378 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
6379 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
6380 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
6381 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
6382 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
6383 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
6384 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
6385 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
6386 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
6387 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
6388 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
6389 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
6390 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
6391 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
6392 * stabsread.c (_initialize_stabsread): Add declaration.
6393 * stack.c (_initialize_stack): Add declaration.
6394 * stap-probe.c (_initialize_stap_probe): Add declaration.
6395 * std-regs.c (_initialize_frame_reg): Add declaration.
6396 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
6397 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
6398 * symfile.c (_initialize_symfile): Add declaration.
6399 * symmisc.c (_initialize_symmisc): Add declaration.
6400 * symtab.c (_initialize_symtab): Add declaration.
6401 * target.c (_initialize_target): Add declaration.
6402 * target-connection.c (_initialize_target_connection): Add
6403 declaration.
6404 * target-dcache.c (_initialize_target_dcache): Add declaration.
6405 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
6406 * thread.c (_initialize_thread): Add declaration.
6407 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
6408 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
6409 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
6410 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
6411 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
6412 * tracectf.c (_initialize_ctf): Add declaration.
6413 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
6414 * tracefile.c (_initialize_tracefile): Add declaration.
6415 * tracepoint.c (_initialize_tracepoint): Add declaration.
6416 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
6417 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
6418 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
6419 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
6420 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
6421 * tui/tui-win.c (_initialize_tui_win): Add declaration.
6422 * tui/tui.c (_initialize_tui): Add declaration.
6423 * typeprint.c (_initialize_typeprint): Add declaration.
6424 * ui-style.c (_initialize_ui_style): Add declaration.
6425 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
6426 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
6427 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
6428 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
6429 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
6430 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
6431 * unittests/filtered_iterator-selftests.c
6432 (_initialize_filtered_iterator_selftests): Add declaration.
6433 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
6434 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
6435 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
6436 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
6437 * unittests/main-thread-selftests.c
6438 (_initialize_main_thread_selftests): Add declaration.
6439 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
6440 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
6441 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
6442 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
6443 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
6444 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
6445 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
6446 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
6447 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
6448 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
6449 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
6450 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
6451 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
6452 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
6453 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
6454 declaration.
6455 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
6456 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
6457 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
6458 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
6459 * user-regs.c (_initialize_user_regs): Add declaration.
6460 * utils.c (_initialize_utils): Add declaration.
6461 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
6462 * valops.c (_initialize_valops): Add declaration.
6463 * valprint.c (_initialize_valprint): Add declaration.
6464 * value.c (_initialize_values): Add declaration.
6465 * varobj.c (_initialize_varobj): Add declaration.
6466 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
6467 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
6468 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6469 * windows-nat.c (_initialize_windows_nat): Add declaration.
6470 (_initialize_check_for_gdb_ini): Add declaration.
6471 (_initialize_loadable): Add declaration.
6472 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
6473 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
6474 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
6475 * xcoffread.c (_initialize_xcoffread): Add declaration.
6476 * xml-support.c (_initialize_xml_support): Add declaration.
6477 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
6478 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
6479 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
6480 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
6481
e2de1eec
SM
64822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6483
6484 * regformats/regdat.sh: Generate declaration for init function.
6485
e0037b4c
SM
64862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6487
6488 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
6489 up.
6490 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
6491 close_one_inferior>: New methods.
6492 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
6493 pass down target to find_inferior_pid.
6494 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
6495 Pass down target to find_inferior_ptid.
6496 (gdbsim_target::create_inferior): Pass down target to
6497 add_thread_silent.
6498 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
6499 target down to find_inferior_ptid and switch_to_thread.
6500 (gdbsim_target::close): Update to call close_one_inferior.
6501 (struct resume_data): Remove.
6502 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
6503 directly, rather than through a void pointer.
6504 (gdbsim_target::resume): Update to call resume_one_inferior.
6505
58920b5b
SM
65062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6507
6508 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
6509
4ec89149
PA
65102020-01-12 Pedro Alves <palves@redhat.com>
6511
6512 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
6513 directly for the current inferior instead of
6514 discard_all_inferiors.
6515 (discard_all_inferiors): Delete.
6516
7c392d1d
TT
65172020-01-11 Tom Tromey <tom@tromey.com>
6518
6519 * tui/tui-wingeneral.c (box_win): Check cli_styling.
6520 * tui/tui-winsource.c (tui_source_window_base::refill): Use
6521 deprecated_safe_get_selected_frame.
6522
d9ebdab7
TBA
65232020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6524
6525 * inferior.c (print_inferior): Switch inferior before printing it.
6526
f3c469b9
PA
65272020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
6528 Pedro Alves <palves@redhat.com>
6529
6530 * progspace-and-thread.c (switch_to_program_space_and_thread):
6531 Assert there's an inferior for PSPACE. Use
6532 switch_to_inferior_no_thread to switch the inferior too.
6533 * progspace.c (program_space::~program_space): Call
6534 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
6535 (program_space::free_all_objfiles): Don't call clear_symtab_users
6536 here.
6537 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
6538
65c574f6
PA
65392020-01-10 Pedro Alves <palves@redhat.com>
6540
6541 * NEWS: Mention multi-target debugging, "info connections", and
6542 "add-inferior -no-connection".
6543
2f4fcf00
PA
65442020-01-10 Pedro Alves <palves@redhat.com>
6545
6546 * infrun.c: Include "target-connection.h".
6547 (check_multi_target_resumption): New.
6548 (proceed): Call it.
6549 * target-connection.c (make_target_connection_string): Make
6550 extern.
6551 * target-connection.h (make_target_connection_string): Declare.
6552
121b3efd
PA
65532020-01-10 Pedro Alves <palves@redhat.com>
6554
6555 * Makefile.in (COMMON_SFILES): Add target-connection.c.
6556 * inferior.c (uiout_field_connection): New function.
6557 (print_inferior): Add new "connection-id" column.
6558 (add_inferior_command): Show connection number/string of added
6559 inferior.
6560 * process-stratum-target.h
6561 (process_stratum_target::connection_string): New virtual method.
6562 (process_stratum_target::connection_number): New field.
6563 * remote.c (remote_target::connection_string): New override.
6564 * target-connection.c: New file.
6565 * target-connection.h: New file.
6566 * target.c (decref_target): Remove process_stratum targets from
6567 the connection list.
6568 (target_stack::push): Add process_stratum targets to the
6569 connection list.
6570
4f837581
PA
65712020-01-10 Pedro Alves <palves@redhat.com>
6572
6573 Revert:
6574 2016-04-12 Pedro Alves <palves@redhat.com>
6575 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6576 Remove references to name.
6577 * serial.h (struct serial) <name>: Delete.
6578
f4ec508e
PA
65792020-01-10 Pedro Alves <palves@redhat.com>
6580
6581 * gdbarch-selftests.c (register_to_value_test): Remove "target
6582 already pushed" check.
6583
5b6d1e4f
PA
65842020-01-10 Pedro Alves <palves@redhat.com>
6585 John Baldwin <jhb@FreeBSD.org>
6586
6587 * aarch64-linux-nat.c
6588 (aarch64_linux_nat_target::thread_architecture): Adjust.
6589 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
6590 (task_command_1): Likewise.
6591 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
6592 (aix_thread_target::wait, aix_thread_target::fetch_registers)
6593 (aix_thread_target::store_registers)
6594 (aix_thread_target::thread_alive): Adjust.
6595 * amd64-fbsd-tdep.c: Include "inferior.h".
6596 (amd64fbsd_get_thread_local_address): Pass down target.
6597 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
6598 thread's gdbarch instead of target_gdbarch.
6599 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
6600 get_last_target_status.
6601 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6602 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
6603 inferiors.
6604 (update_inserted_breakpoint_locations): Skip if inferiors with no
6605 execution.
6606 (update_global_location_list): When handling moribund locations,
6607 find representative inferior for location's pspace, and use thread
6608 count of its process_stratum target.
6609 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
6610 * bsd-uthread.c (bsd_uthread_target::wait): Use
6611 as_process_stratum_target and adjust thread_change_ptid and
6612 add_thread calls.
6613 (bsd_uthread_target::update_thread_list): Use
6614 as_process_stratum_target and adjust find_thread_ptid,
6615 thread_change_ptid and add_thread calls.
6616 * btrace.c (maint_btrace_packet_history_cmd): Adjust
6617 find_thread_ptid call.
6618 * corelow.c (add_to_thread_list): Adjust add_thread call.
6619 (core_target_open): Adjust add_thread_silent and thread_count
6620 calls.
6621 (core_target::pid_to_str): Adjust find_inferior_ptid call.
6622 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
6623 * event-top.c (async_disconnect): Pop targets from all inferiors.
6624 * exec.c (add_target_sections): Push exec target on all inferiors
6625 sharing the program space.
6626 (remove_target_sections): Remove the exec target from all
6627 inferiors sharing the program space.
6628 (exec_on_vfork): New.
6629 * exec.h (exec_on_vfork): Declare.
6630 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
6631 Pass it down.
6632 (fbsd_nat_target::update_thread_list): Adjust.
6633 (fbsd_nat_target::resume): Adjust.
6634 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
6635 down.
6636 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
6637 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
6638 get_thread_arch_regcache call.
6639 * fork-child.c (gdb_startup_inferior): Pass target down to
6640 startup_inferior and set_executing.
6641 * gdbthread.h (struct process_stratum_target): Forward declare.
6642 (add_thread, add_thread_silent, add_thread_with_info)
6643 (in_thread_list): Add process_stratum_target parameter.
6644 (find_thread_ptid(inferior*, ptid_t)): New overload.
6645 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
6646 parameter.
6647 (all_threads()): Delete overload.
6648 (all_threads, all_non_exited_threads): Add process_stratum_target
6649 parameter.
6650 (all_threads_safe): Use brace initialization.
6651 (thread_count): Add process_stratum_target parameter.
6652 (set_resumed, set_running, set_stop_requested, set_executing)
6653 (threads_are_executing, finish_thread_state): Add
6654 process_stratum_target parameter.
6655 (switch_to_thread): Use is_current_thread.
6656 * i386-fbsd-tdep.c: Include "inferior.h".
6657 (i386fbsd_get_thread_local_address): Pass down target.
6658 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
6659 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
6660 have_inferiors check.
6661 * inf-ptrace.c (inf_ptrace_target::create_inferior)
6662 (inf_ptrace_target::attach): Adjust.
6663 * infcall.c (run_inferior_call): Adjust.
6664 * infcmd.c (run_command_1): Pass target to
6665 scoped_finish_thread_state.
6666 (proceed_thread_callback): Skip inferiors with no execution.
6667 (continue_command): Rename 'all_threads' local to avoid hiding
6668 'all_threads' function. Adjust get_last_target_status call.
6669 (prepare_one_step): Adjust set_running call.
6670 (signal_command): Use user_visible_resume_target. Compare thread
6671 pointers instead of inferior_ptid.
6672 (info_program_command): Adjust to pass down target.
6673 (attach_command): Mark target's 'thread_executing' flag.
6674 (stop_current_target_threads_ns): New, factored out from ...
6675 (interrupt_target_1): ... this. Switch inferior before making
6676 target calls.
6677 * inferior-iter.h
6678 (struct all_inferiors_iterator, struct all_inferiors_range)
6679 (struct all_inferiors_safe_range)
6680 (struct all_non_exited_inferiors_range): Filter on
6681 process_stratum_target too. Remove explicit.
6682 * inferior.c (inferior::inferior): Push dummy target on target
6683 stack.
6684 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
6685 Add process_stratum_target parameter, and pass it down.
6686 (have_live_inferiors): Adjust.
6687 (switch_to_inferior_and_push_target): New.
6688 (add_inferior_command, clone_inferior_command): Handle
6689 "-no-connection" parameter. Use
6690 switch_to_inferior_and_push_target.
6691 (_initialize_inferior): Mention "-no-connection" option in
6692 the help of "add-inferior" and "clone-inferior" commands.
6693 * inferior.h: Include "process-stratum-target.h".
6694 (interrupt_target_1): Use bool.
6695 (struct inferior) <push_target, unpush_target, target_is_pushed,
6696 find_target_beneath, top_target, process_target, target_at,
6697 m_stack>: New.
6698 (discard_all_inferiors): Delete.
6699 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
6700 (all_inferiors, all_non_exited_inferiors): Add
6701 process_stratum_target parameter.
6702 * infrun.c: Include "gdb_select.h" and <unordered_map>.
6703 (target_last_proc_target): New global.
6704 (follow_fork_inferior): Push target on new inferior. Pass target
6705 to add_thread_silent. Call exec_on_vfork. Handle target's
6706 reference count.
6707 (follow_fork): Adjust get_last_target_status call. Also consider
6708 target.
6709 (follow_exec): Push target on new inferior.
6710 (struct execution_control_state) <target>: New field.
6711 (user_visible_resume_target): New.
6712 (do_target_resume): Call target_async.
6713 (resume_1): Set target's threads_executing flag. Consider resume
6714 target.
6715 (commit_resume_all_targets): New.
6716 (proceed): Also consider resume target. Skip threads of inferiors
6717 with no execution. Commit resumtion in all targets.
6718 (start_remote): Pass current inferior to wait_for_inferior.
6719 (infrun_thread_stop_requested): Consider target as well. Pass
6720 thread_info pointer to clear_inline_frame_state instead of ptid.
6721 (infrun_thread_thread_exit): Consider target as well.
6722 (random_pending_event_thread): New inferior parameter. Use it.
6723 (do_target_wait): Rename to ...
6724 (do_target_wait_1): ... this. Add inferior parameter, and pass it
6725 down.
6726 (threads_are_resumed_pending_p, do_target_wait): New.
6727 (prepare_for_detach): Adjust calls.
6728 (wait_for_inferior): New inferior parameter. Handle it. Use
6729 do_target_wait_1 instead of do_target_wait.
6730 (fetch_inferior_event): Adjust. Switch to representative
6731 inferior. Pass target down.
6732 (set_last_target_status): Add process_stratum_target parameter.
6733 Save target in global.
6734 (get_last_target_status): Add process_stratum_target parameter and
6735 handle it.
6736 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
6737 (context_switch): Check inferior_ptid == null_ptid before calling
6738 inferior_thread().
6739 (get_inferior_stop_soon): Pass down target.
6740 (wait_one): Rename to ...
6741 (poll_one_curr_target): ... this.
6742 (struct wait_one_event): New.
6743 (wait_one): New.
6744 (stop_all_threads): Adjust.
6745 (handle_no_resumed, handle_inferior_event): Adjust to consider the
6746 event's target.
6747 (switch_back_to_stepped_thread): Also consider target.
6748 (print_stop_event): Update.
6749 (normal_stop): Update. Also consider the resume target.
6750 * infrun.h (wait_for_inferior): Remove declaration.
6751 (user_visible_resume_target): New declaration.
6752 (get_last_target_status, set_last_target_status): New
6753 process_stratum_target parameter.
6754 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6755 process_stratum_target parameter, and use it.
6756 (clear_inline_frame_state (thread_info*)): New.
6757 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6758 process_stratum_target parameter.
6759 (clear_inline_frame_state (thread_info*)): Declare.
6760 * linux-fork.c (delete_checkpoint_command): Pass target down to
6761 find_thread_ptid.
6762 (checkpoint_command): Adjust.
6763 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
6764 instead of just tweaking inferior_ptid.
6765 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
6766 (exit_lwp): Pass target down to find_thread_ptid.
6767 (attach_proc_task_lwp_callback): Pass target down to
6768 add_thread/set_running/set_executing.
6769 (linux_nat_target::attach): Pass target down to
6770 thread_change_ptid.
6771 (get_detach_signal): Pass target down to find_thread_ptid.
6772 Consider last target status's target.
6773 (linux_resume_one_lwp_throw, resume_lwp)
6774 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
6775 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
6776 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
6777 (linux_nat_target::async_wait_fd): New.
6778 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
6779 target down.
6780 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
6781 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
6782 * linux-thread-db.c (struct thread_db_info::process_target): New
6783 field.
6784 (add_thread_db_info): Save target.
6785 (get_thread_db_info): New process_stratum_target parameter. Also
6786 match target.
6787 (delete_thread_db_info): New process_stratum_target parameter.
6788 Also match target.
6789 (thread_from_lwp): Adjust to pass down target.
6790 (thread_db_notice_clone): Pass down target.
6791 (check_thread_db_callback): Pass down target.
6792 (try_thread_db_load_1): Always push the thread_db target.
6793 (try_thread_db_load, record_thread): Pass target down.
6794 (thread_db_target::detach): Pass target down. Always unpush the
6795 thread_db target.
6796 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
6797 target down. Always unpush the thread_db target.
6798 (find_new_threads_callback, thread_db_find_new_threads_2)
6799 (thread_db_target::update_thread_list): Pass target down.
6800 (thread_db_target::pid_to_str): Pass current inferior down.
6801 (thread_db_target::get_thread_local_address): Pass target down.
6802 (thread_db_target::resume, maintenance_check_libthread_db): Pass
6803 target down.
6804 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
6805 * procfs.c (procfs_target::procfs_init_inferior): Declare.
6806 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
6807 (procfs_init_inferior): Rename to ...
6808 (procfs_target::procfs_init_inferior): ... this and adjust.
6809 (procfs_target::create_inferior, procfs_notice_thread)
6810 (procfs_do_thread_registers): Adjust.
6811 * ppc-fbsd-tdep.c: Include "inferior.h".
6812 (ppcfbsd_get_thread_local_address): Pass down target.
6813 * proc-service.c (ps_xfer_memory): Switch current inferior and
6814 program space as well.
6815 (get_ps_regcache): Pass target down.
6816 * process-stratum-target.c
6817 (process_stratum_target::thread_address_space)
6818 (process_stratum_target::thread_architecture): Pass target down.
6819 * process-stratum-target.h
6820 (process_stratum_target::threads_executing): New field.
6821 (as_process_stratum_target): New.
6822 * ravenscar-thread.c
6823 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
6824 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
6825 down.
6826 * record-btrace.c (record_btrace_target::info_record): Adjust.
6827 (record_btrace_target::record_method)
6828 (record_btrace_target::record_is_replaying)
6829 (record_btrace_target::fetch_registers)
6830 (get_thread_current_frame_id, record_btrace_target::resume)
6831 (record_btrace_target::wait, record_btrace_target::stop): Pass
6832 target down.
6833 * record-full.c (record_full_wait_1): Switch to event thread.
6834 Pass target down.
6835 * regcache.c (regcache::regcache)
6836 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
6837 process_stratum_target parameter and handle it.
6838 (current_thread_target): New global.
6839 (get_thread_regcache): Add process_stratum_target parameter and
6840 handle it. Switch inferior before calling target method.
6841 (get_thread_regcache): Pass target down.
6842 (get_thread_regcache_for_ptid): Pass target down.
6843 (registers_changed_ptid): Add process_stratum_target parameter and
6844 handle it.
6845 (registers_changed_thread, registers_changed): Pass target down.
6846 (test_get_thread_arch_aspace_regcache): New.
6847 (current_regcache_test): Define a couple local test_target_ops
6848 instances and use them for testing.
6849 (readwrite_regcache): Pass process_stratum_target parameter.
6850 (cooked_read_test, cooked_write_test): Pass mock_target down.
6851 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
6852 (get_thread_arch_aspace_regcache): Add process_stratum_target
6853 parameter.
6854 (regcache::target): New method.
6855 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
6856 (regcache::registers_changed_ptid): Add process_stratum_target
6857 parameter.
6858 (regcache::m_target): New field.
6859 (registers_changed_ptid): Add process_stratum_target parameter.
6860 * remote.c (remote_state::supports_vCont_probed): New field.
6861 (remote_target::async_wait_fd): New method.
6862 (remote_unpush_and_throw): Add remote_target parameter.
6863 (get_current_remote_target): Adjust.
6864 (remote_target::remote_add_inferior): Push target.
6865 (remote_target::remote_add_thread)
6866 (remote_target::remote_notice_new_inferior)
6867 (get_remote_thread_info): Pass target down.
6868 (remote_target::update_thread_list): Skip threads of inferiors
6869 bound to other targets. (remote_target::close): Don't discard
6870 inferiors. (remote_target::add_current_inferior_and_thread)
6871 (remote_target::process_initial_stop_replies)
6872 (remote_target::start_remote)
6873 (remote_target::remote_serial_quit_handler): Pass down target.
6874 (remote_target::remote_unpush_target): New remote_target
6875 parameter. Unpush the target from all inferiors.
6876 (remote_target::remote_unpush_and_throw): New remote_target
6877 parameter. Pass it down.
6878 (remote_target::open_1): Check whether the current inferior has
6879 execution instead of checking whether any inferior is live. Pass
6880 target down.
6881 (remote_target::remote_detach_1): Pass down target. Use
6882 remote_unpush_target.
6883 (extended_remote_target::attach): Pass down target.
6884 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
6885 (remote_target::append_resumption): Pass down target.
6886 (remote_target::append_pending_thread_resumptions)
6887 (remote_target::remote_resume_with_hc, remote_target::resume)
6888 (remote_target::commit_resume): Pass down target.
6889 (remote_target::remote_stop_ns): Check supports_vCont_probed.
6890 (remote_target::interrupt_query)
6891 (remote_target::remove_new_fork_children)
6892 (remote_target::check_pending_events_prevent_wildcard_vcont)
6893 (remote_target::remote_parse_stop_reply)
6894 (remote_target::process_stop_reply): Pass down target.
6895 (first_remote_resumed_thread): New remote_target parameter. Pass
6896 it down.
6897 (remote_target::wait_as): Pass down target.
6898 (unpush_and_perror): New remote_target parameter. Pass it down.
6899 (remote_target::readchar, remote_target::remote_serial_write)
6900 (remote_target::getpkt_or_notif_sane_1)
6901 (remote_target::kill_new_fork_children, remote_target::kill): Pass
6902 down target.
6903 (remote_target::mourn_inferior): Pass down target. Use
6904 remote_unpush_target.
6905 (remote_target::core_of_thread)
6906 (remote_target::remote_btrace_maybe_reopen): Pass down target.
6907 (remote_target::pid_to_exec_file)
6908 (remote_target::thread_handle_to_thread_info): Pass down target.
6909 (remote_target::async_wait_fd): New.
6910 * riscv-fbsd-tdep.c: Include "inferior.h".
6911 (riscv_fbsd_get_thread_local_address): Pass down target.
6912 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
6913 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
6914 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
6915 Adjust.
6916 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
6917 * solib-svr4.c (enable_break): Pass down target.
6918 * spu-multiarch.c (parse_spufs_run): Pass down target.
6919 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
6920 * target-delegates.c: Regenerate.
6921 * target.c (g_target_stack): Delete.
6922 (current_top_target): Return the current inferior's top target.
6923 (target_has_execution_1): Refer to the passed-in inferior's top
6924 target.
6925 (target_supports_terminal_ours): Check whether the initial
6926 inferior was already created.
6927 (decref_target): New.
6928 (target_stack::push): Incref/decref the target.
6929 (push_target, push_target, unpush_target): Adjust.
6930 (target_stack::unpush): Defref target.
6931 (target_is_pushed): Return bool. Adjust to refer to the current
6932 inferior's target stack.
6933 (dispose_inferior): Delete, and inline parts ...
6934 (target_preopen): ... here. Only dispose of the current inferior.
6935 (target_detach): Hold strong target reference while detaching.
6936 Pass target down.
6937 (target_thread_name): Add assertion.
6938 (target_resume): Pass down target.
6939 (target_ops::beneath, find_target_at): Adjust to refer to the
6940 current inferior's target stack.
6941 (get_dummy_target): New.
6942 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
6943 has a thread running.
6944 (initialize_targets): Rename to ...
6945 (_initialize_target): ... this.
6946 * target.h: Include "gdbsupport/refcounted-object.h".
6947 (struct target_ops): Inherit refcounted_object.
6948 (target_ops::shortname, target_ops::longname): Make const.
6949 (target_ops::async_wait_fd): New method.
6950 (decref_target): Declare.
6951 (struct target_ops_ref_policy): New.
6952 (target_ops_ref): New typedef.
6953 (get_dummy_target): Declare function.
6954 (target_is_pushed): Return bool.
6955 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
6956 (all_matching_threads_iterator::all_matching_threads_iterator):
6957 Handle filter target.
6958 * thread-iter.h (struct all_matching_threads_iterator, struct
6959 all_matching_threads_range, class all_non_exited_threads_range):
6960 Filter by target too. Remove explicit.
6961 * thread.c (threads_executing): Delete.
6962 (inferior_thread): Pass down current inferior.
6963 (clear_thread_inferior_resources): Pass down thread pointer
6964 instead of ptid_t.
6965 (add_thread_silent, add_thread_with_info, add_thread): Add
6966 process_stratum_target parameter. Use it for thread and inferior
6967 searches.
6968 (is_current_thread): New.
6969 (thread_info::deletable): Use it.
6970 (find_thread_ptid, thread_count, in_thread_list)
6971 (thread_change_ptid, set_resumed, set_running): New
6972 process_stratum_target parameter. Pass it down.
6973 (set_executing): New process_stratum_target parameter. Pass it
6974 down. Adjust reference to 'threads_executing'.
6975 (threads_are_executing): New process_stratum_target parameter.
6976 Adjust reference to 'threads_executing'.
6977 (set_stop_requested, finish_thread_state): New
6978 process_stratum_target parameter. Pass it down.
6979 (switch_to_thread): Also match inferior.
6980 (switch_to_thread): New process_stratum_target parameter. Pass it
6981 down.
6982 (update_threads_executing): Reimplement.
6983 * top.c (quit_force): Pop targets from all inferior.
6984 (gdb_init): Don't call initialize_targets.
6985 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
6986 Declare.
6987 (windows_add_thread, windows_delete_thread): Adjust.
6988 (get_windows_debug_event): Rename to ...
6989 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
6990 * tracefile-tfile.c (tfile_target_open): Pass down target.
6991 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
6992 Forward declare.
6993 (switch_to_thread): Add process_stratum_target parameter.
6994 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
6995 parameter. Use it.
6996 (mi_on_resume): Pass target down.
6997 * nat/fork-inferior.c (startup_inferior): Add
6998 process_stratum_target parameter. Pass it down.
6999 * nat/fork-inferior.h (startup_inferior): Add
7000 process_stratum_target parameter.
7001 * python/py-threadevent.c (py_get_event_thread): Pass target down.
7002
75c6c844
PA
70032020-01-10 Pedro Alves <palves@redhat.com>
7004
7005 * remote.c (remote_target::start_remote): Don't set inferior_ptid
7006 directly. Instead find the first thread in the thread list and
7007 use switch_to_thread.
7008
78f2c40a
PA
70092020-01-10 Pedro Alves <palves@redhat.com>
7010
7011 * remote.c (remote_target::remote_add_inferior): Don't bind a
7012 process to the current inferior if the current inferior is already
7013 bound to a process.
7014
e7af6c70
TBA
70152020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7016 Pedro Alves <palves@redhat.com>
7017
7018 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
7019 If no process is specified, return null_ptid instead of
7020 inferior_ptid.
7021 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
7022 TARGET_WAITKIND_SIGNALLED with no pid.
7023
31ba933e
PA
70242020-01-10 Pedro Alves <palves@redhat.com>
7025
7026 * remote.c (first_remote_resumed_thread): New.
7027 (remote_target::wait_as): Use it as default event_ptid instead of
7028 inferior_ptid.
7029
735fc2ca
PA
70302020-01-10 Pedro Alves <palves@redhat.com>
7031
7032 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
7033
c17e02e1
PA
70342020-01-10 Pedro Alves <palves@redhat.com>
7035
7036 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
7037 not -1.
7038
ab1ddbcf
PA
70392020-01-10 Pedro Alves <palves@redhat.com>
7040
7041 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
7042 ptid to get_last_target_status.
7043 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
7044 ptid to get_last_target_status.
7045 * infcmd.c (continue_command): Don't pass a target_waitstatus to
7046 get_last_target_status.
7047 (info_program_command): Don't pass a target_waitstatus to
7048 get_last_target_status.
7049 * infrun.c (init_wait_for_inferior): Use
7050 nullify_last_target_wait_ptid.
7051 (get_last_target_status): Handle nullptr arguments.
7052 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
7053 (print_stop_event): Don't pass a ptid to get_last_target_status.
7054 (normal_stop): Don't pass a ptid to get_last_target_status.
7055 * infrun.h (get_last_target_status, set_last_target_status): Move
7056 comments here and update.
7057 (nullify_last_target_wait_ptid): Declare.
7058 * linux-fork.c (fork_load_infrun_state): Remove local extern
7059 declaration of nullify_last_target_wait_ptid.
7060 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
7061 to get_last_target_status.
7062
f3f8ece4
PA
70632020-01-10 Pedro Alves <palves@redhat.com>
7064
7065 * gdbthread.h (scoped_restore_current_thread)
7066 <dont_restore, restore, m_dont_restore>: Declare.
7067 * thread.c (thread_alive): Add assertion. Return bool.
7068 (switch_to_thread_if_alive): New.
7069 (prune_threads): Switch inferior/thread.
7070 (print_thread_info_1): Switch thread before calling target methods.
7071 (scoped_restore_current_thread::restore): New, factored out from
7072 ...
7073 (scoped_restore_current_thread::~scoped_restore_current_thread):
7074 ... this.
7075 (scoped_restore_current_thread::scoped_restore_current_thread):
7076 Add assertion.
7077 (thread_apply_all_command, thread_select): Use
7078 switch_to_thread_if_alive.
7079 * infrun.c (proceed, restart_threads, handle_signal_stop)
7080 (switch_back_to_stepped_thread): Switch current thread before
7081 calling target methods.
7082
db2d40f7
PA
70832020-01-10 Pedro Alves <palves@redhat.com>
7084
7085 * inferior.c (switch_to_inferior_no_thread): New function,
7086 factored out from ...
7087 (inferior_command): ... here.
7088 * inferior.h (switch_to_inferior_no_thread): Declare.
7089 * mi/mi-main.c (run_one_inferior): Use
7090 switch_to_inferior_no_thread.
7091
bd420a2d
PA
70922020-01-10 Pedro Alves <palves@redhat.com>
7093
7094 * infcmd.c (kill_command): Remove dead code.
7095
ddf5db90
PA
70962020-01-10 Pedro Alves <palves@redhat.com>
7097
7098 * remote.c (remote_target::mourn_inferior): No longer check
7099 whether the target is running.
7100
5018ce90
PA
71012020-01-10 Pedro Alves <palves@redhat.com>
7102
7103 * corelow.c (core_target::has_execution): Change parameter type to
7104 inferior pointer.
7105 * inferior.c (number_of_live_inferiors): Use
7106 inferior::has_execution instead of target_has_execution_1.
7107 * inferior.h (inferior::has_execution): New.
7108 * linux-thread-db.c (thread_db_target::update_thread_list): Use
7109 inferior::has_execution instead of target_has_execution_1.
7110 * process-stratum-target.c
7111 (process_stratum_target::has_execution): Change parameter type to
7112 inferior pointer. Check the inferior's PID instead of
7113 inferior_ptid.
7114 * process-stratum-target.h
7115 (process_stratum_target::has_execution): Change parameter type to
7116 inferior pointer.
7117 * record-full.c (record_full_core_target::has_execution): Change
7118 parameter type to inferior pointer.
7119 * target.c (target_has_execution_1): Change parameter type to
7120 inferior pointer.
7121 (target_has_execution_current): Adjust.
7122 * target.h (target_ops::has_execution): Change parameter type to
7123 inferior pointer.
7124 (target_has_execution_1): Change parameter type to inferior
7125 pointer. Change return type to bool.
7126 * tracefile.h (tracefile_target::has_execution): Change parameter
7127 type to inferior pointer.
7128
74375d18
PA
71292020-01-10 Pedro Alves <palves@redhat.com>
7130
7131 * exceptions.c (print_flush): Remove current_top_target() check.
7132
acdf84a6
PA
71332020-01-10 Pedro Alves <palves@redhat.com>
7134
7135 * remote.c (show_remote_exec_file): Show the current inferior's
7136 exec-file instead of the command variable's value.
7137
ec506636
PA
71382020-01-10 Pedro Alves <palves@redhat.com>
7139
7140 * record-full.c (record_full_resume_ptid): New global.
7141 (record_full_target::resume): Set it.
7142 (record_full_wait_1): Use record_full_resume_ptid instead of
7143 inferior_ptid.
7144
873657b9
PA
71452020-01-10 Pedro Alves <palves@redhat.com>
7146
7147 * gdbthread.h (scoped_restore_current_thread)
7148 <dont_restore, restore, m_dont_restore>: Declare.
7149 * thread.c (thread_alive): Add assertion. Return bool.
7150 (switch_to_thread_if_alive): New.
7151 (prune_threads): Switch inferior/thread.
7152 (print_thread_info_1): Switch thread before calling target methods.
7153 (scoped_restore_current_thread::restore): New, factored out from
7154 ...
7155 (scoped_restore_current_thread::~scoped_restore_current_thread):
7156 ... this.
7157 (scoped_restore_current_thread::scoped_restore_current_thread):
7158 Add assertion.
7159 (thread_apply_all_command, thread_select): Use
7160 switch_to_thread_if_alive.
7161
7f0ae84c
GB
71622020-01-10 George Barrett <bob@bob131.so>
7163
7164 * stap-probe.c (stap_modify_semaphore): Don't check for null
7165 semaphores.
7166 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
7167 for null semaphores.
7168
f5a7c406
AB
71692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7170
7171 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
7172 all source windows, and maintain horizontal scroll status while
7173 doing so.
7174
9ae6bf64
TT
71752020-01-09 Tom Tromey <tom@tromey.com>
7176
7177 PR tui/18932:
7178 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
7179 update_source_window, not print_source_lines.
7180
b2efe70c
AB
71812020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * tui/tui.c (tui_enable): Register tui hooks after calling
7184 tui_display_main.
7185
5f23a082
CB
71862020-01-09 Christian Biesinger <cbiesinger@google.com>
7187
7188 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
7189
3061113b
SM
71902020-01-08 Simon Marchi <simon.marchi@efficios.com>
7191
7192 * thread.c (print_thread_info_1): Fix indentation.
7193
57d75002
CB
71942020-01-09 Christian Biesinger <cbiesinger@google.com>
7195
7196 * symtab.c (general_symbol_info::compute_and_set_names): Move the
7197 unique_xmalloc_ptr outside the if to always free the demangled name.
7198
6a053cb1
TT
71992020-01-08 Tom Tromey <tromey@adacore.com>
7200
7201 * xcoffread.c (enter_line_range, read_xcoff_symtab)
7202 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
7203 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
7204 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
7205 Remove.
7206 (section_offsets): New typedef.
7207 * symtab.c (fixup_section, get_msymbol_address): Update.
7208 * symmisc.c (dump_msymbols): Update.
7209 * symfile.h (relative_addr_info_to_section_offsets)
7210 (symfile_map_offsets_to_segments): Update.
7211 * symfile.c (build_section_addr_info_from_objfile)
7212 (init_objfile_sect_indices): Update.
7213 (struct place_section_arg): Change type of "offsets".
7214 (place_section): Update.
7215 (relative_addr_info_to_section_offsets): Change type of
7216 "section_offsets". Remove "num_sections" parameter.
7217 (default_symfile_offsets, syms_from_objfile_1)
7218 (set_objfile_default_section_offset): Update.
7219 (reread_symbols): No need to preserve section offsets by hand.
7220 (symfile_map_offsets_to_segments): Change type of "offsets".
7221 * stap-probe.c (relocate_address): Update.
7222 * stabsread.h (process_one_symbol): Update.
7223 * solib-target.c (struct lm_info_target) <offsets>: Change type.
7224 (solib_target_relocate_section_addresses): Update.
7225 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
7226 Update.
7227 * solib-frv.c (frv_relocate_main_executable): Update.
7228 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7229 * solib-aix.c (solib_aix_get_section_offsets): Change return
7230 type.
7231 (solib_aix_solib_create_inferior_hook): Update.
7232 * remote.c (remote_target::get_offsets): Update.
7233 * psymtab.c (find_pc_sect_psymtab): Update.
7234 * psympriv.h (struct partial_symbol) <address, text_low,
7235 text_high>: Update.
7236 * objfiles.h (obj_section_offset): Update.
7237 (struct objfile) <section_offsets>: Change type.
7238 <num_sections>: Remove.
7239 (objfile_relocate): Update.
7240 * objfiles.c (entry_point_address_query): Update
7241 (relocate_one_symbol): Change type of "section_offsets".
7242 (objfile_relocate1, objfile_relocate1): Change type of
7243 "new_offsets".
7244 (objfile_rebase1): Update.
7245 * mipsread.c (mipscoff_symfile_read): Update.
7246 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
7247 parameter.
7248 * mdebugread.c (parse_symbol): Change type of "section_offsets".
7249 (parse_external, psymtab_to_symtab_1): Update.
7250 * machoread.c (macho_symfile_offsets): Update.
7251 * ia64-tdep.c (ia64_find_unwind_table): Update.
7252 * hppa-tdep.c (read_unwind_info): Update.
7253 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
7254 * dwarf2read.c (create_addrmap_from_index)
7255 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7256 (process_psymtab_comp_unit_reader, add_partial_symbol)
7257 (add_partial_subprogram, process_full_comp_unit)
7258 (read_file_scope, read_func_scope, read_lexical_block_scope)
7259 (read_call_site_scope, dwarf2_rnglists_process)
7260 (dwarf2_ranges_process, dwarf2_ranges_read)
7261 (dwarf_decode_lines_1, var_decode_location, new_symbol)
7262 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
7263 Update.
7264 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
7265 Update.
7266 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
7267 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
7268 (process_one_symbol): Change type of "section_offsets".
7269 * ctfread.c (get_objfile_text_range): Update.
7270 * coffread.c (coff_symtab_read, enter_linenos)
7271 (process_coff_symbol): Update.
7272 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7273 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
7274
456e800a
TT
72752020-01-08 Tom Tromey <tromey@adacore.com>
7276
7277 * dwarf2read.c (parse_macro_definition): Use std::string.
7278 (parse_macro_definition): Likewise.
7279
6dfa2fc2
TT
72802020-01-08 Tom Tromey <tromey@adacore.com>
7281
7282 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
7283 (ATTR_ALLOC_CHUNK): Remove.
7284
421d1616
TT
72852020-01-08 Tom Tromey <tromey@adacore.com>
7286
7287 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
7288
43816ebc
TT
72892020-01-08 Tom Tromey <tromey@adacore.com>
7290
7291 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
7292 (dwarf2_compute_name, open_dwo_file): Likewise.
7293 (process_enumeration_scope): Use std::vector.
7294 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
7295 (partial_die_info::fixup, dwarf2_start_subfile)
7296 (guess_full_die_structure_name, dwarf2_name): Likewise.
7297 (determine_prefix): Update.
7298 (guess_full_die_structure_name): Make return type const.
7299 (partial_die_full_name): Return unique_xmalloc_ptr.
7300 (DW_FIELD_ALLOC_CHUNK): Remove.
7301
4212d509
TT
73022020-01-07 Tom Tromey <tromey@adacore.com>
7303
7304 PR build/24937:
7305 * stap-probe.c (class stap_static_probe_ops): Add constructor.
7306
06a6207a
JT
73072020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7308
7309 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
7310
153d79c4
AB
73112020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
7312
7313 * stack.c (print_frame_info): Move disassemble_next_line code
7314 inside source_print block.
7315
66182876
EZ
73162020-01-06 Eli Zaretskii <eliz@gnu.org>
7317
7318 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
7319 gdb/signals.h, as we are now using native signal symbols.
7320
cbfa8581
SV
73212020-01-06 Shahab Vahedi <shahab@synopsys.com>
7322
7323 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
7324 overflow by an early check of content vs threshold.
aac66a4c 7325 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
7326 Likewise.
7327
3f602821
EZ
73282020-01-06 Eli Zaretskii <eliz@gnu.org>
7329
7330 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
7331
a08c904d
JT
73322020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7333
7334 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
7335 export table if no section contains it's RVA.
7336
89a65580
EZ
73372020-01-06 Eli Zaretskii <eliz@gnu.org>
7338
7339 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
7340
8b7fcda2
HD
73412020-01-06 Hannes Domani <ssbssa@yahoo.de>
7342
7343 * source.c (print_source_lines_base): Set last_line_listed.
7344
a61b4f69
SV
73452020-01-06 Shahab Vahedi <shahab@synopsys.com>
7346
7347 * tui/tui-disasm.c: Remove trailing spaces.
7348
559e7e50
EZ
73492020-01-06 Eli Zaretskii <eliz@gnu.org>
7350 Pedro Alves <palves@redhat.com>
7351
7352 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
7353 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
7354 (windows_gdb_signal_to_target): New function, uses the above
7355 enumeration to convert GDB internal signal codes to equivalent
7356 Windows codes.
7357 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
7358 * windows-nat.c: Include "gdb_wait.h".
7359 (get_windows_debug_event): Extract the fatal exception from the
7360 exit status and convert to the equivalent Posix signal number.
7361 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
7362 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
7363 * gdbsupport/gdb_wait.c: New file, implements
7364 windows_status_to_termsig.
7365 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
7366 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
7367
f2302a34
AB
73682020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
7369
7370 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
7371 show_layout.
7372
6a5206eb
LM
73732020-01-05 Luis Machado <luis.machado@linaro.org>
7374
7375 * aarch64-linux-nat.c
7376 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
7377 and bfd_mach_aarch64.
7378
6ec1d75e
PW
73792020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7380
7381 * ui-file.c (stdio_file::can_emit_style_escape)
7382 (tee_file::can_emit_style_escape): Ensure style is used also on
7383 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
7384 to gdb_stdout.
7385 * main.c (set_gdb_data_directory): Use file style to output the
7386 warning that the given pathname is not a directory.
7387 * top.c (show_history_filename, gdb_safe_append_history)
7388 (show_gdb_datadir): Use file style.
7389
44f81a76
HD
73902020-01-03 Hannes Domani <ssbssa@yahoo.de>
7391
7392 * solib-target.c (struct lm_info_target):
7393 Change offsets to be a unique_xmalloc_ptr.
7394 (solib_target_relocate_section_addresses): Update.
7395
25057eb0
HD
73962020-01-03 Hannes Domani <ssbssa@yahoo.de>
7397
7398 * windows-nat.c (windows_clear_solib): Free so_list linked list.
7399
6e2118f5
BE
74002020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7401
7402 * MAINTAINERS (Write After Approval): Add myself.
7403
8133c7dc
LM
74042020-01-02 Luis Machado <luis.machado@linaro.org>
7405
7406 * proc-service.c (get_ps_regcache): Remove reference to obsolete
7407 Cell BE architecture.
7408 * target.h (struct target_ops) <thread_architecture>: Likewise.
7409
48189bec
HD
74102020-01-01 Hannes Domani <ssbssa@yahoo.de>
7411
7412 * Makefile.in: Use INSTALL_PROGRAM_ENV.
7413
ead1063b
HD
74142020-01-01 Hannes Domani <ssbssa@yahoo.de>
7415
7416 * MAINTAINERS (Write After Approval): Add myself.
7417
e5d78223
JB
74182020-01-01 Joel Brobecker <brobecker@adacore.com>
7419
7420 * gdbarch.sh: Update copyright year range of generated files.
7421
b811d2c2
JB
74222020-01-01 Joel Brobecker <brobecker@adacore.com>
7423
7424 Update copyright year range in all GDB files.
7425
5f4def5c
JB
74262020-01-01 Joel Brobecker <brobecker@adacore.com>
7427
7428 * copyright.py: Convert to Python 3.
7429
51fd4002
JB
74302020-01-01 Joel Brobecker <brobecker@adacore.com>
7431
7432 * copyright.py: Adapt after move of gnulib directory from gdb
7433 directory to toplevel directory.
7434
5fb651f2
JB
74352020-01-01 Joel Brobecker <brobecker@adacore.com>
7436
7437 * copyright.py (main): Exit if run from the wrong directory.
7438
5dd8bf88
JB
74392020-01-01 Joel Brobecker <brobecker@adacore.com>
7440
7441 * top.c (print_gdb_version): Change copyright year to 2020.
7442
9f71dacb 74432020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 7444
9f71dacb 7445 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 7446
9f71dacb 7447For older changes see ChangeLog-2019.
c906108c
SS
7448\f
7449Local Variables:
7450mode: change-log
7451left-margin: 8
7452fill-column: 74
7453version-control: never
57da7796 7454coding: utf-8
c906108c 7455End: