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