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