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