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