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