]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Power10 VSX scalar min-max-compare quad precision operations
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
43434996
TV
12020-05-09 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/25955
4 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5 calculation.
6
2f78cffc
TT
72020-05-09 Tom Tromey <tom@tromey.com>
8
9 * top.c (server_command): Now bool.
10 * top.h (server_command): Now bool.
11
4f7bc5ed
TT
122020-05-08 Tom Tromey <tromey@adacore.com>
13
14 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
15 already being processed.
16
8be4b118
TT
172020-05-08 Tom Tromey <tom@tromey.com>
18
19 * printcmd.c (struct display) <next>: Remove.
20 <display>: New constructor.
21 <exp_string>: Now a std::string.
22 <enabled_p>: Now a bool.
23 (display_number): Move definition earlier.
24 (displays): Rename from display_chain. Now a std::vector.
25 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
26 (display_command): Update.
27 (do_one_display, disable_display)
28 (enable_disable_display_command, do_enable_disable_display):
29 Update.
30 (free_display): Remove.
31 (clear_displays): Rewrite.
32 (delete_display): Update.
33 (map_display_numbers): Use function_view. Remove "data"
34 parameter. Update.
35 (do_delete_display): Remove.
36 (undisplay_command): Update.
37 (do_one_display, do_displays, disable_display)
38 (info_display_command): Update.
39 (do_enable_disable_display): Remove.
40 (enable_disable_display_command)
41 (clear_dangling_display_expressions): Update.
42
94c93c35
TT
432020-05-08 Tom Tromey <tom@tromey.com>
44
45 * symtab.c (set_symbol_cache_size)
46 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
47 (maintenance_print_symbol_cache_statistics): Update.
48 * symmisc.c (print_symbol_bcache_statistics)
49 (print_objfile_statistics, maintenance_print_objfiles)
50 (maintenance_info_symtabs, maintenance_check_symtabs)
51 (maintenance_expand_symtabs, maintenance_info_line_tables):
52 Update.
53 * symfile-debug.c (set_debug_symfile): Update.
54 * source.c (forget_cached_source_info): Update.
55 * python/python.c (gdbpy_progspaces): Update.
56 * psymtab.c (maintenance_info_psymtabs): Update.
57 * probe.c (parse_probes): Update.
58 * linespec.c (iterate_over_all_matching_symtabs)
59 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
60 * guile/scm-progspace.c (gdbscm_progspaces): Update.
61 * exec.c (exec_target::close): Update.
62 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
63 * breakpoint.c (print_one_breakpoint_location)
64 (create_longjmp_master_breakpoint)
65 (create_std_terminate_master_breakpoint): Update.
66 * progspace.c (program_spaces): Now a std::vector.
67 (maybe_new_address_space): Update.
68 (add_program_space): Remove.
69 (program_space::program_space): Update.
70 (remove_program_space): Update.
71 (number_of_program_spaces): Remove.
72 (print_program_space, update_address_spaces): Update.
73 * progspace.h (program_spaces): Change type.
74 (ALL_PSPACES): Remove.
75 (number_of_program_spaces): Don't declare.
76 (struct program_space) <next>: Remove.
77
a1fd1ac9
TT
782020-05-08 Tom Tromey <tom@tromey.com>
79
80 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
81 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
82 (enable_break): Update.
83 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
84 (frv_fdpic_find_canonical_descriptor): Update.
85 (frv_fetch_objfile_link_map): Update.
86 * progspace.c (program_space::free_all_objfiles): Update.
87 (program_space::solibs): New method.
88 * progspace.h (struct program_space) <solibs>: New method.
89 * solist.h (master_so_list): Don't declare.
90 (ALL_SO_LIBS): Remove.
91 * solib.h (so_list_head): Remove.
92 (update_solib_list): Update comment.
93 * solib.c (master_so_list): Remove.
94 (solib_used, update_solib_list, solib_add)
95 (info_sharedlibrary_command, clear_solib)
96 (reload_shared_libraries_1, remove_user_added_objfile): Update.
97
38eae084
TT
982020-05-08 Tom Tromey <tom@tromey.com>
99
100 * extension.c (extension_languages): Now a std::array.
101 (ALL_EXTENSION_LANGUAGES): Remove.
102 (get_ext_lang_defn, get_ext_lang_of_file)
103 (eval_ext_lang_from_control_command): Update.
104 (finish_ext_lang_initialization)
105 (auto_load_ext_lang_scripts_for_objfile)
106 (ext_lang_type_printers::ext_lang_type_printers)
107 (apply_ext_lang_type_printers)
108 (ext_lang_type_printers::~ext_lang_type_printers)
109 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
110 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
111 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
112 (get_matching_xmethod_workers, ext_lang_colorize)
113 (ext_lang_before_prompt): Update.
114 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
115
596dc4ad
TT
1162020-05-08 Tom Tromey <tom@tromey.com>
117
118 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
119 overload.
120 <swap_string, m_string>: Remove.
121 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
122 Update.
123 * stabsread.c (define_symbol, read_type): Update.
124 * linespec.c (find_linespec_symbols): Update.
125 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
126 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
127 * dbxread.c (read_dbx_symtab): Update.
128 * cp-support.h (cp_canonicalize_string_full)
129 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
130 Return unique_xmalloc_ptr.
131 * cp-support.c (inspect_type): Update.
132 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
133 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
134 Likewise.
135 * c-typeprint.c (print_name_maybe_canonical): Update.
136 * break-catch-throw.c (check_status_exception_catchpoint):
137 Update.
138
bf4cb9be
TV
1392020-05-08 Tom de Vries <tdevries@suse.de>
140
141 * infrun.c (follow_fork): Copy current_line and current_symtab to
142 child thread.
143
a1b68f28
SM
1442020-05-07 Simon Marchi <simon.marchi@efficios.com>
145
146 * async-event.c (struct async_signal_handler, struct
147 async_event_handler): Reformat, remove typedef.
148
98d48915
SM
1492020-05-07 Simon Marchi <simon.marchi@efficios.com>
150
151 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
152 access thistype->main_type->dyn_prop_list directly.
153
7aa91313
SM
1542020-05-07 Simon Marchi <simon.marchi@efficios.com>
155
156 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
157 (remove_dyn_prop): Remove. Update all users to use
158 type::remove_dyn_prop.
159 * gdbtypes.c (remove_dyn_prop): Rename to...
160 (type::remove_dyn_prop): ... this.
161
5c54719c
SM
1622020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
163
164 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
165 (add_dyn_prop): Remove. Update all users to use
166 type::add_dyn_prop.
167 * gdbtypes.c (add_dyn_prop): Rename to...
168 (type::add_dyn_prop): ... this.
169
24e99c6c
SM
1702020-05-07 Simon Marchi <simon.marchi@efficios.com>
171
172 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
173 (get_dyn_prop): Remove. Update all users to use
174 type::dyn_prop.
175 * gdbtypes.c (get_dyn_prop): Rename to...
176 (type::dyn_prop): ... this.
177
0d4bf016
SM
1782020-05-06 Simon Marchi <simon.marchi@efficios.com>
179
180 * gdbtypes.h (struct main_type) <flag_static>: Remove.
181
ac4a4f1c
SM
1822020-05-06 Simon Marchi <simon.marchi@efficios.com>
183
184 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
185 instruction, skip it if it's there.
186
a3bbacc1
SM
1872020-05-05 Simon Marchi <simon.marchi@efficios.com>
188
189 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
190
c3236f84
SM
1912020-05-04 Simon Marchi <simon.marchi@efficios.com>
192
193 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
194 * gdbtypes.c (recursive_dump_type): Remove use of
195 TYPE_INCOMPLETE.
196
3b6acaee
TT
1972020-05-03 Tom Tromey <tom@tromey.com>
198
199 * breakpoint.c (catch_command, tcatch_command): Remove.
200 (_initialize_breakpoint): Use add_basic_prefix_cmd,
201 add_show_prefix_cmd.
202 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
203 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
204 Remove.
205 (add_internal_problem_command): Use add_basic_prefix_cmd,
206 add_show_prefix_cmd.
207 * mips-tdep.c (set_mipsfpu_command): Remove.
208 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
209 * dwarf2/index-cache.c (set_index_cache_command): Remove.
210 (_initialize_index_cache): Use add_basic_prefix_cmd.
211 * memattr.c (dummy_cmd): Remove.
212 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
213 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
214 (_initialize_tui_win): Use add_basic_prefix_cmd,
215 add_show_prefix_cmd.
216 * cli/cli-logging.c (set_logging_command): Remove.
217 (_initialize_cli_logging): Use add_basic_prefix_cmd,
218 add_show_prefix_cmd.
219 (show_logging_command): Remove.
220 * target.c (target_command): Remove.
221 (add_target): Use add_basic_prefix_cmd.
222
a51119cd
HD
2232020-05-02 Hannes Domani <ssbssa@yahoo.de>
224
225 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
226
652fc23a 2272020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 228
652fc23a
PW
229 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
230 info_command.
231
117539e6
KR
2322020-04-30 Kamil Rytarowski <n54@gmx.com>
233
234 * nbsd-nat.c (nbsd_enable_proc_events)
235 (nbsd_nat_target::post_startup_inferior): Add.
236 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
237 (nbsd_nat_target::update_thread_list): Rewrite.
238 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
239 "PTRACE_LWP_CREATE".
240 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
241
102e38eb 2422020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 243
102e38eb
PW
244 * stack.c (_initialize_stack): Remove duplicated creation
245 of "frame" command and "f" alias.
246
ee9d1e5f
HD
2472020-04-30 Hannes Domani <ssbssa@yahoo.de>
248
249 PR gdb/18706
250 * gdbtypes.c (check_typedef): Calculate size of array of
251 stubbed type.
252
627c7fb8
HD
2532020-04-30 Hannes Domani <ssbssa@yahoo.de>
254
255 PR gdb/15559
256 * i386-tdep.c (i386_push_dummy_call): Call
257 i386_thiscall_push_dummy_call.
258 (i386_thiscall_push_dummy_call): New function.
259 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
260 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
261 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
262
ffc2844e
SM
2632020-04-29 Simon Marchi <simon.marchi@efficios.com>
264
265 * gdbarch.sh (do_read): Add shellcheck disable directive for
266 warning SC2162.
267
1207375d
SM
2682020-04-29 Simon Marchi <simon.marchi@efficios.com>
269
270 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
271 "referenced but not assigned" warning.
272
9fdb2916
SM
2732020-04-29 Simon Marchi <simon.marchi@efficios.com>
274
275 * gdbarch.sh: Remove code that sets fallbackdefault.
276
759cea5e
SM
2772020-04-29 Simon Marchi <simon.marchi@efficios.com>
278
279 * gdbarch.sh: Use shell operators && and || instead of
280 -a and -o.
281
cb02ab24
SM
2822020-04-29 Simon Marchi <simon.marchi@efficios.com>
283
284 * gdbarch.sh: Use $(...) instead of `...`.
285
a6fc5ffc
SM
2862020-04-29 Simon Marchi <simon.marchi@efficios.com>
287
288 * gdbarch.sh: Use double quotes around variables.
289
8d113d13
SM
2902020-04-29 Simon Marchi <simon.marchi@efficios.com>
291
292 * gdbarch.sh: Use %s with printf, instead of variables in the
293 format string.
294
ed6acedd
TT
2952020-04-29 Tom Tromey <tromey@adacore.com>
296
297 PR ada/25875:
298 * dwarf2/read.c (update_enumeration_type_from_children): Compute
299 type fields here.
300 (read_enumeration_type): Call
301 update_enumeration_type_from_children later. Update comments.
302 (process_enumeration_scope): Don't create type fields.
303
b68b1b58
KR
3042020-04-29 Kamil Rytarowski <n54@gmx.com>
305
306 * nbsd-tdep.c: Include "xml-syscall.h".
307 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
308
f94b2e03
KR
3092020-04-29 Kamil Rytarowski <n54@gmx.com>
310
311 * nbsd-nat.c: Include "sys/wait.h".
312 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
313 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
314 (nbsd_nat_target::remove_exec_catchpoint)
315 (nbsd_nat_target::set_syscall_catchpoint): Add.
316 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
317 (nbsd_nat_target::insert_exec_catchpoint)
318 (nbsd_nat_target::remove_exec_catchpoint)
319 (nbsd_nat_target::set_syscall_catchpoint): Add.
320 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
321 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
322 `nbsd_get_syscall_number'.
323
fc49bc72
TT
3242020-04-29 Tom Tromey <tom@tromey.com>
325
326 * stack.c (print_block_frame_labels): Remove.
327
d642b692
HD
3282020-04-29 Hannes Domani <ssbssa@yahoo.de>
329
330 PR gdb/17320
331 * ada-valprint.c (val_print_packed_array_elements): Move array
332 end bracket to new line.
333 (ada_val_print_string): Remove extra spaces before first array
334 element.
335 * c-valprint.c (c_value_print_array): Likewise.
336 * m2-valprint.c (m2_print_array_contents): Likewise.
337 (m2_value_print_inner): Likewise.
338 * p-valprint.c (pascal_value_print_inner): Likewise.
339 * valprint.c (generic_val_print_array): Likewise.
340 (value_print_array_elements): Move first array element and array
341 end bracket to new line.
342
ea90f227
TV
3432020-04-29 Tom de Vries <tdevries@suse.de>
344
345 PR symtab/25889
346 * linespec.c (find_method): Fix ix calculation.
347
4498ef4f
KR
3482020-04-28 Kamil Rytarowski <n54@gmx.com>
349
350 * syscalls/update-netbsd.sh: New file.
351 * syscalls/netbsd.xml: Regenerate.
352 * data-directory/Makefile.in: Register `netbsd.xml' in
353 `SYSCALLS_FILES'.
354
a55e30b5
SM
3552020-04-28 Simon Marchi <simon.marchi@efficios.com>
356
357 * syscalls/update-freebsd.sh: Add double quotes.
358
2b2fbab8
TT
3592020-04-28 Tom Tromey <tom@tromey.com>
360
361 * NEWS: Update.
362 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
363 (cmdpy_init): Allow class_tui.
364
a65189c9
TV
3652020-04-28 Mark Williams <mark@myosotissp.com>
366
367 PR gdb/24480
368 * dwarf2read.c: Add missing assingments to list_in_scope when
369 start_symtab was already called.
370
1b95cdb7
SM
3712020-04-28 Simon Marchi <simon.marchi@efficios.com>
372
373 PR gdb/25881
374 * dwarf2/read.c (offset_map_type): Use
375 gdb:hash_enum<sect_offset> as hash function.
376
15cd93d0
TV
3772020-04-28 Tom de Vries <tdevries@suse.de>
378
379 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
380 with DW_AT_signature.
381
1eb39914
SM
3822020-04-27 Simon Marchi <simon.marchi@efficios.com>
383
384 * configure.ac: Remove check for fs_base/gs_base in
385 user_regs_struct.
386 * configure: Re-generate.
387 * config.in: Re-generate.
388 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
389 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
390 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
391
991a3e2e
LM
3922020-04-27 Luis Machado <luis.machado@linaro.org>
393
394 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
395 problematic inline frame unwinding situation.
396 * frame.c (frame_id_computed_p): New function.
397 * frame.h (frame_id_computed_p): New prototype.
398
361ba0e8
TT
3992020-04-26 Tom Tromey <tom@tromey.com>
400
401 * command.h (enum command_class) <class_pseudo>: Remove.
402
bc3609fd
PW
4032020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
404
405 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
406 and whitespace.
407
b9771db7
KR
4082020-04-25 Kamil Rytarowski <n54@gmx.com>
409
410 * inf-ptrace.c (inf_ptrace_target::wait): Remove
411 `PT_GET_PROCESS_STATE' block.
412
7151c1af
TT
4132020-04-24 Tom Tromey <tom@tromey.com>
414
415 * symtab.h (symbol_get_demangled_name): Don't declare.
416 * symtab.c (symbol_get_demangled_name): Remove.
417 (general_symbol_info::natural_name)
418 (general_symbol_info::demangled_name): Update.
419
906bb4c5
TT
4202020-04-24 Tom Tromey <tom@tromey.com>
421
422 PR rust/25025:
423 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
424
bcfe6157
TT
4252020-04-24 Tom Tromey <tom@tromey.com>
426
427 PR symtab/12707:
428 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
429 exists.
430 (new_symbol): Likewise.
431 * compile/compile-object-load.c (get_out_value_type): Use
432 symbol_matches_search_name.
433
f049a313
TT
4342020-04-24 Tom Tromey <tom@tromey.com>
435
436 * dwarf2/read.c (add_partial_symbol): Do not call
437 compute_and_set_names.
438
76e288d1
TT
4392020-04-24 Tom Tromey <tom@tromey.com>
440
441 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
442 overload.
443
2467f4f6
TT
4442020-04-24 Tom Tromey <tom@tromey.com>
445
446 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
447 (add_psymbol_to_list): New overload. Make old overload call new
448 one.
449 * psympriv.h (add_psymbol_to_list): New overload.
450
e61108c9
TT
4512020-04-24 Tom Tromey <tom@tromey.com>
452
453 * dwarf2/read.c (partial_die_info::read) <case
454 DW_AT_linkage_name>: Use value_as_string.
455 (dwarf2_string_attr): Use value_as_string.
456 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
457 method.
458 * dwarf2/attribute.c (attribute::value_as_string): New method.
459
8c87a452
TT
4602020-04-24 Tom Tromey <tom@tromey.com>
461
462 * symtab.c (general_symbol_info::natural_name)
463 (general_symbol_info::demangled_name): Check for language_rust.
464
787de330
TT
4652020-04-24 Tom Tromey <tom@tromey.com>
466
467 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
468 (dwarf2_physname): ... from here.
469 (partial_die_info::read): Add Rust "{" hack.
470
ff985671
TT
4712020-04-24 Tom Tromey <tom@tromey.com>
472
473 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
474 method.
475 (symbol_set_demangled_name): Don't declare.
476 * symtab.c (general_symbol_info::set_demangled_name): Rename from
477 symbol_set_demangled_name.
478 (general_symbol_info::set_language)
479 (general_symbol_info::compute_and_set_names): Update.
480 * minsyms.c (minimal_symbol_reader::install): Update.
481 * dwarf2/read.c (new_symbol): Update.
482
1acda803
TT
4832020-04-24 Tom Tromey <tromey@adacore.com>
484
485 PR python/23662:
486 * python/py-type.c (convert_field): Handle
487 FIELD_LOC_KIND_DWARF_BLOCK.
488 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
489 (typy_get_dynamic): Nw function.
490 (type_object_getset): Add "dynamic".
491 * NEWS: Add entry.
492
d656f129
TT
4932020-04-24 Tom Tromey <tromey@adacore.com>
494
495 * ada-typeprint.c (print_choices, print_variant_part)
496 (print_record_field_types_dynamic): New functions.
497 (print_record_field_types): Use print_record_field_types_dynamic.
498
7d79de9a
TT
4992020-04-24 Tom Tromey <tromey@adacore.com>
500
501 * dwarf2/read.c (handle_data_member_location): New overload.
502 (dwarf2_add_field): Use it.
503 (decode_locdesc): Add "computed" parameter. Update comment.
504 * gdbtypes.c (is_dynamic_type_internal): Also look for
505 FIELD_LOC_KIND_DWARF_BLOCK.
506 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
507 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
508 virtual base classes.
509 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
510 FIELD_LOC_KIND_DWARF_BLOCK.
511
f8e89861
TT
5122020-04-24 Tom Tromey <tromey@adacore.com>
513
514 * dwarf2/read.c (read_structure_type): Handle dynamic length.
515 * gdbtypes.c (is_dynamic_type_internal): Check
516 TYPE_HAS_DYNAMIC_LENGTH.
517 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
518 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
519 New macros.
520 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
521 constant.
522
9c6a1327
TT
5232020-04-24 Tom Tromey <tromey@adacore.com>
524
525 * dwarf2/read.c (struct variant_field): Rewrite.
526 (struct variant_part_builder): New.
527 (struct nextfield): Remove "variant" field. Add "offset".
528 (struct field_info): Add "current_variant_part" and
529 "variant_parts".
530 (alloc_discriminant_info): Remove.
531 (alloc_rust_variant): New function.
532 (quirk_rust_enum): Update.
533 (dwarf2_add_field): Set "offset" member. Don't handle
534 DW_TAG_variant_part.
535 (offset_map_type): New typedef.
536 (convert_variant_range, create_one_variant)
537 (create_one_variant_part, create_variant_parts)
538 (add_variant_property): New functions.
539 (dwarf2_attach_fields_to_type): Call add_variant_property.
540 (read_structure_type): Don't handle DW_TAG_variant_part.
541 (handle_variant_part, handle_variant): New functions.
542 (handle_struct_member_die): Use them.
543 (process_structure_scope): Don't handle variant parts.
544 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
545 (struct discriminant_info): Remove.
546 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
547 (struct main_type) <flag_discriminated_union>: Remove.
548 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
549 (rust_enum_variant): Return int. Remove "contents". Rewrite.
550 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
551 Update.
552 * valops.c (value_union_variant): Remove.
553 * value.h (value_union_variant): Don't declare.
554
b249d2c2
TT
5552020-04-24 Tom Tromey <tromey@adacore.com>
556
557 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
558 (ada_value_primitive_packed_val): Update.
559 * ada-valprint.c (ada_value_print_1): Update.
560 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
561 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
562 just an address. Use evaluate_for_locexpr_baton.
563 (dwarf2_evaluate_property): Update.
564 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
565 array_view.
566 * findvar.c (default_read_var_value): Update.
567 * gdbtypes.c (compute_variant_fields_inner)
568 (resolve_dynamic_type_internal): Update.
569 (resolve_dynamic_type): Change type of valaddr parameter.
570 * gdbtypes.h (resolve_dynamic_type): Update.
571 * valarith.c (value_subscripted_rvalue): Update.
572 * value.c (value_from_contents_and_address): Update.
573
61122aa9
TT
5742020-04-24 Tom Tromey <tromey@adacore.com>
575
576 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
577 "push_initial_value" parameter.
578 (dwarf2_evaluate_property): Likewise.
579 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
580
ef83a141
TT
5812020-04-24 Tom Tromey <tromey@adacore.com>
582
583 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
584 (variant::matches, compute_variant_fields_recurse)
585 (compute_variant_fields_inner, compute_variant_fields): New
586 functions.
587 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
588 Use resolved_type after type is made.
589 (operator==): Add new cases.
590 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
591 (struct discriminant_range, struct variant, struct variant_part):
592 New.
593 (union dynamic_prop_data) <variant_parts, original_type>: New
594 members.
595 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
596 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
597 constants.
598 * value.c (unpack_bits_as_long): Now public.
599 * value.h (unpack_bits_as_long): Declare.
600
675127ec
TT
6012020-04-24 Tom Tromey <tromey@adacore.com>
602
603 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
604 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
605
9852ceef
HD
6062020-04-24 Hannes Domani <ssbssa@yahoo.de>
607
608 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
609
7632c6ce
KR
6102020-04-24 Kamil Rytarowski <n54@gmx.com>
611
612 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
613 (remove_fork_catchpoint, post_startup_inferior)
614 (post_attach): Move...
615 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
616 (remove_fork_catchpoint, post_startup_inferior)
617 (post_attach): ...here.
618 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
619 (remove_fork_catchpoint, post_startup_inferior)
620 (post_attach): Move...
621 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
622 (remove_fork_catchpoint, post_startup_inferior)
623 (post_attach): ...here.
624
7be2bb4f
TT
6252020-04-24 Tom Tromey <tromey@adacore.com>
626
627 * nat/windows-nat.h (struct windows_thread_info)
628 <pc_adjusted>: New member.
629 * windows-nat.c (windows_fetch_one_register): Check
630 pc_adjusted.
631 (windows_nat_target::get_windows_debug_event)
632 (windows_nat_target::wait): Set pc_adjusted.
633
f80cb3b4
TV
6342020-04-24 Tom de Vries <tdevries@suse.de>
635
636 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
637 Run gdb-add-index inside temp dir.
638
29514b87
TT
6392020-04-23 Tom Tromey <tromey@adacore.com>
640
641 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
642 in loop.
643
5939967b
LM
6442020-04-23 Luis Machado <luis.machado@linaro.org>
645
646 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
647 get_frame_register instead of gdbarch_unwind_pc.
648
70bc38f5
TV
6492020-04-23 Tom de Vries <tdevries@suse.de>
650
651 * symtab.c (lookup_global_symbol): Prefer def over decl.
652
de82891c
TV
6532020-04-23 Tom de Vries <tdevries@suse.de>
654
655 PR symtab/25807
656 * block.c (best_symbol, better_symbol): Promote to external.
657 * block.h (best_symbol, better_symbol): Declare.
658 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
659 decl.
660
ecc6c606
TT
6612020-04-23 Tom Tromey <tromey@adacore.com>
662
663 PR ada/25837:
664 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
665 "const char *", not a "const std::string &".
666 <name_and_matcher::operator==>: Update.
667 * unittests/lookup_name_info-selftests.c: Change type of
668 "result".
669
740480b8
TT
6702020-04-23 Tom Tromey <tom@tromey.com>
671
672 * inferior.h (iterate_over_inferiors): Don't declare.
673 * inferior.c (iterate_over_inferiors): Remove.
674 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
675 Remove.
676 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
677 use iterate_over_inferiors.
678 (darwin_resume_inferior_it)
679 (struct resume_inferior_threads_param)
680 (darwin_resume_inferior_threads_it): Remove.
681 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
682
ae3ab1f0
TV
6832020-04-23 Tom de Vries <tdevries@suse.de>
684
685 * blockframe.c (find_pc_partial_function): Use
686 find_pc_sect_compunit_symtab rather than
687 objfile->sf->qf->find_pc_sect_compunit_symtab.
688
317d2668
TV
6892020-04-22 Tom de Vries <tdevries@suse.de>
690
691 PR symtab/25764
692 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
693 in psymtabs.
694
eea9e357
TV
6952020-04-22 Tom de Vries <tdevries@suse.de>
696
697 PR symtab/25801
698 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
699 symtabs.
700
3d5afab3
TV
7012020-04-22 Tom de Vries <tdevries@suse.de>
702
703 PR symtab/25700
704 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
705 CU if already created.
706
d43b7a2d
TBA
7072020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
708
709 * infrun.c (displaced_step_fixup): Switch to the event_thread
710 before calling displaced_step_restore, not after.
711
d89edf9b
MM
7122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
713
714 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
715 its inferior is not recorded by us.
716 (record_btrace_target_open): Replace call to
717 all_non_exited_threads () with call to current_inferior
718 ()->non_exited_threads ().
719 (record_btrace_target::stop_recording): Likewise.
720 (record_btrace_target::close): Likewise.
721 (record_btrace_target::wait): Likewise.
722 (record_btrace_target::record_stop_replaying): Likewise.
723
5897fd49
MM
7242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
725
726 * btrace.c (btrace_enable): Throw an error on double enables and
727 when enabling recording fails.
728 (btrace_disable): Throw an error if the thread is not recorded.
729
1a476b6d
MM
7302020-04-21 Markus Metzger <markus.t.metzger@intel.com>
731
732 * record-btrace.c (record_btrace_target::fetch_registers): Forward
733 request if we do not have a thread_info.
734
4778a5f8
TV
7352020-04-21 Tom de Vries <tdevries@suse.de>
736
737 PR gdb/25471
738 * thread.c
739 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
740 exception in get_frame_id.
741
0fa7617d
TT
7422020-04-20 Tom Tromey <tromey@adacore.com>
743
744 * python/python.c (struct gdbpy_event): Mark move constructor as
745 noexcept.
746 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
747 constructor as noexcept.
748 * completer.h (struct completion_result): Mark move constructor as
749 noexcept.
750 * completer.c (completion_result::completion_result): Use
751 initialization style. Don't call reset_match_list.
752
ad23bda0
MS
7532020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
754
755 * MAINTAINERS (Write After Approval): Add myself.
756
45e1f031
TT
7572020-04-18 Tom Tromey <tom@tromey.com>
758
759 * windows-tdep.c (init_w32_command_list)
760 (w32_prefix_command_valid): Restore.
761 (_initialize_windows_tdep): Call init_w32_command_list.
762
08feed99
TT
7632020-04-18 Tom Tromey <tom@tromey.com>
764
765 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
766 * value.c (value_fn_field): Update.
767 * valops.c (find_function_in_inferior)
768 (value_allocate_space_in_inferior): Update.
769 * tui/tui-winsource.c (tui_update_source_windows_with_line):
770 Update.
771 * tui/tui-source.c (tui_source_window::set_contents): Update.
772 * symtab.c (lookup_global_or_static_symbol)
773 (find_function_start_sal_1, skip_prologue_sal)
774 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
775 * symmisc.c (dump_msymbols, dump_symtab_1)
776 (maintenance_print_one_line_table): Update.
777 * symfile.c (init_entry_point_info, section_is_mapped)
778 (list_overlays_command, simple_read_overlay_table)
779 (simple_overlay_update_1): Update.
780 * stap-probe.c (handle_stap_probe): Update.
781 * stabsread.c (dbx_init_float_type, define_symbol)
782 (read_one_struct_field, read_enum_type, read_range_type): Update.
783 * source.c (info_line_command): Update.
784 * python/python.c (gdbpy_source_objfile_script)
785 (gdbpy_execute_objfile_script): Update.
786 * python/py-type.c (save_objfile_types): Update.
787 * python/py-objfile.c (py_free_objfile): Update.
788 * python/py-inferior.c (python_new_objfile): Update.
789 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
790 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
791 (maintenance_check_psymtabs): Update.
792 * printcmd.c (info_address_command): Update.
793 * objfiles.h (struct objfile) <arch>: New method, from
794 get_objfile_arch.
795 (get_objfile_arch): Don't declare.
796 * objfiles.c (get_objfile_arch): Remove.
797 (filter_overlapping_sections): Update.
798 * minsyms.c (msymbol_is_function): Update.
799 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
800 (output_nondebug_symbol): Update.
801 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
802 (mdebug_expand_psymtab): Update.
803 * machoread.c (macho_add_oso_symfile): Update.
804 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
805 Update.
806 * linux-fork.c (checkpoint_command): Update.
807 * linespec.c (convert_linespec_to_sals): Update.
808 * jit.c (finalize_symtab): Update.
809 * infrun.c (insert_exception_resume_from_probe): Update.
810 * ia64-tdep.c (ia64_find_unwind_table): Update.
811 * hppa-tdep.c (internalize_unwinds): Update.
812 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
813 Update.
814 * gcore.c (call_target_sbrk): Update.
815 * elfread.c (record_minimal_symbol, elf_symtab_read)
816 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
817 (elf_gnu_ifunc_resolve_by_got): Update.
818 * dwarf2/read.c (create_addrmap_from_index)
819 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
820 (read_debug_names_from_section)
821 (process_psymtab_comp_unit_reader, add_partial_symbol)
822 (add_partial_subprogram, process_full_comp_unit)
823 (read_file_scope, read_func_scope, read_lexical_block_scope)
824 (read_call_site_scope, dwarf2_ranges_read)
825 (dwarf2_record_block_ranges, dwarf2_add_field)
826 (mark_common_block_symbol_computed, read_tag_pointer_type)
827 (read_tag_string_type, dwarf2_init_float_type)
828 (dwarf2_init_complex_target_type, read_base_type)
829 (partial_die_info::read, partial_die_info::read)
830 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
831 (dwarf2_fetch_die_loc_sect_off): Update.
832 * dwarf2/loc.c (dwarf2_find_location_expression)
833 (class dwarf_evaluate_loc_desc, rw_pieced_value)
834 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
835 (dwarf2_loc_desc_get_symbol_read_needs)
836 (locexpr_describe_location_piece, locexpr_describe_location_1)
837 (loclist_describe_location): Update.
838 * dwarf2/index-write.c (write_debug_names): Update.
839 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
840 * dtrace-probe.c (dtrace_process_dof): Update.
841 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
842 (process_one_symbol): Update.
843 * ctfread.c (ctf_init_float_type, read_base_type): Update.
844 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
845 (coff_read_enum_type): Update.
846 * cli/cli-cmds.c (edit_command, list_command): Update.
847 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
848 * breakpoint.c (create_overlay_event_breakpoint)
849 (create_longjmp_master_breakpoint)
850 (create_std_terminate_master_breakpoint)
851 (create_exception_master_breakpoint, get_sal_arch): Update.
852 * block.c (block_gdbarch): Update.
853 * annotate.c (annotate_source_line): Update.
854
0743fc83
TT
8552020-04-17 Tom Tromey <tromey@adacore.com>
856
857 * auto-load.c (show_auto_load_cmd): Remove.
858 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
859 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
860 (maintenance_print_arc_command): Remove.
861 * tui/tui-win.c (tui_command): Remove.
862 (tui_get_cmd_list): Use add_basic_prefix_cmd.
863 * tui/tui-layout.c (tui_layout_command): Remove.
864 (_initialize_tui_layout): Use add_basic_prefix_cmd.
865 * python/python.c (user_set_python, user_show_python): Remove.
866 (_initialize_python): Use add_basic_prefix_cmd,
867 add_show_prefix_cmd.
868 * guile/guile.c (set_guile_command, show_guile_command): Remove.
869 (install_gdb_commands): Use add_basic_prefix_cmd,
870 add_show_prefix_cmd.
871 (info_guile_command): Remove.
872 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
873 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
874 add_show_prefix_cmd.
875 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
876 Remove do_set and do_show parameters.
877 * cli/cli-style.c (set_style, show_style): Remove.
878 (_initialize_cli_style): Use add_basic_prefix_cmd,
879 add_show_prefix_cmd.
880 (cli_style_option::add_setshow_commands): Remove do_set and
881 do_show parameters.
882 (cli_style_option::add_setshow_commands): Use
883 add_basic_prefix_cmd, add_show_prefix_cmd.
884 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
885 (set_style_name): Remove.
886 * cli/cli-dump.c (dump_command, append_command): Remove.
887 (srec_dump_command, ihex_dump_command, verilog_dump_command)
888 (tekhex_dump_command, binary_dump_command)
889 (binary_append_command): Remove.
890 (_initialize_cli_dump): Use add_basic_prefix_cmd.
891 * windows-tdep.c (w32_prefix_command_valid): Remove global.
892 (init_w32_command_list): Remove; move into ...
893 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
894 * valprint.c (set_print, show_print, set_print_raw)
895 (show_print_raw): Remove.
896 (_initialize_valprint): Use add_basic_prefix_cmd,
897 add_show_prefix_cmd.
898 * typeprint.c (set_print_type, show_print_type): Remove.
899 (_initialize_typeprint): Use add_basic_prefix_cmd,
900 add_show_prefix_cmd.
901 * record.c (set_record_command, show_record_command): Remove.
902 (_initialize_record): Use add_basic_prefix_cmd,
903 add_show_prefix_cmd.
904 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
905 add_show_prefix_cmd.
906 (info_command, show_command, set_debug, show_debug): Remove.
907 * top.h (set_history, show_history): Don't declare.
908 * top.c (set_history, show_history): Remove.
909 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
910 (unset_tdesc_cmd): Remove.
911 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
912 add_show_prefix_cmd.
913 * symtab.c (info_module_command): Remove.
914 (_initialize_symtab): Use add_basic_prefix_cmd.
915 * symfile.c (overlay_command): Remove.
916 (_initialize_symfile): Use add_basic_prefix_cmd.
917 * sparc64-tdep.c (info_adi_command): Remove.
918 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
919 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
920 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
921 add_show_prefix_cmd.
922 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
923 (_initialize_serial): Use add_basic_prefix_cmd,
924 add_show_prefix_cmd.
925 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
926 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
927 add_show_prefix_cmd.
928 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
929 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
930 add_show_prefix_cmd.
931 * riscv-tdep.c (show_riscv_command, set_riscv_command)
932 (show_debug_riscv_command, set_debug_riscv_command): Remove.
933 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
934 add_show_prefix_cmd.
935 * remote.c (remote_command, set_remote_cmd): Remove.
936 (_initialize_remote): Use add_basic_prefix_cmd.
937 * record-full.c (set_record_full_command)
938 (show_record_full_command): Remove.
939 (_initialize_record_full): Use add_basic_prefix_cmd,
940 add_show_prefix_cmd.
941 * record-btrace.c (cmd_set_record_btrace)
942 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
943 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
944 (cmd_show_record_btrace_pt): Remove.
945 (_initialize_record_btrace): Use add_basic_prefix_cmd,
946 add_show_prefix_cmd.
947 * ravenscar-thread.c (set_ravenscar_command)
948 (show_ravenscar_command): Remove.
949 (_initialize_ravenscar): Use add_basic_prefix_cmd,
950 add_show_prefix_cmd.
951 * mips-tdep.c (show_mips_command, set_mips_command)
952 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
953 add_show_prefix_cmd.
954 * maint.c (maintenance_command, maintenance_info_command)
955 (maintenance_check_command, maintenance_print_command)
956 (maintenance_set_cmd, maintenance_show_cmd): Remove.
957 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
958 add_show_prefix_cmd.
959 (show_per_command_cmd): Remove.
960 * maint-test-settings.c (maintenance_set_test_settings_cmd):
961 Remove.
962 (maintenance_show_test_settings_cmd): Remove.
963 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
964 add_show_prefix_cmd.
965 * maint-test-options.c (maintenance_test_options_command):
966 Remove.
967 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
968 * macrocmd.c (macro_command): Remove
969 (_initialize_macrocmd): Use add_basic_prefix_cmd.
970 * language.c (set_check, show_check): Remove.
971 (_initialize_language): Use add_basic_prefix_cmd,
972 add_show_prefix_cmd.
973 * infcmd.c (unset_command): Remove.
974 (_initialize_infcmd): Use add_basic_prefix_cmd.
975 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
976 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
977 add_show_prefix_cmd.
978 * go32-nat.c (go32_info_dos_command): Remove.
979 (_initialize_go32_nat): Use add_basic_prefix_cmd.
980 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
981 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
982 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
983 (_initialize_frame): Use add_basic_prefix_cmd,
984 add_show_prefix_cmd.
985 * dcache.c (set_dcache_command, show_dcache_command): Remove.
986 (_initialize_dcache): Use add_basic_prefix_cmd,
987 add_show_prefix_cmd.
988 * cp-support.c (maint_cplus_command): Remove.
989 (_initialize_cp_support): Use add_basic_prefix_cmd.
990 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
991 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
992 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
993 add_basic_prefix_cmd, add_show_prefix_cmd.
994 * breakpoint.c (save_command): Remove.
995 (_initialize_breakpoint): Use add_basic_prefix_cmd.
996 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
997 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
998 add_show_prefix_cmd.
999 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
1000 (set_ada_command, show_ada_command): Remove.
1001 (_initialize_ada_language): Use add_basic_prefix_cmd,
1002 add_show_prefix_cmd.
1003 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
1004
3557f442
KR
10052020-04-16 Kamil Rytarowski <n54@gmx.com>
1006
1007 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
1008 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
1009
16197208
SM
10102020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
1013 warning messages.
1014
00ac85d3
SM
10152020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1016
1017 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
1018 import table is not at beginning of .idata section.
1019
381ce63f
PA
10202020-04-16 Pedro Alves <palves@redhat.com>
1021
1022 * inferior.c (delete_inferior): Use delete operator directly
1023 instead of delete_program_space.
1024 * progspace.c (add_program_space): New, factored out from
1025 program_space::program_space.
1026 (remove_program_space): New, factored out from
1027 delete_program_space.
1028 (program_space::program_space): Remove intro comment. Rewrite.
1029 (program_space::~program_space): Remove intro comment. Call
1030 remove_program_space.
1031 (delete_program_space): Delete.
1032 * progspace.h (program_space::program_space): Make explicit. Move
1033 intro comment here, adjusted.
1034 (program_space::~program_space): Move intro comment here,
1035 adjusted.
1036 (delete_program_space): Remove.
1037
a010605f
TT
10382020-04-16 Tom Tromey <tromey@adacore.com>
1039
1040 * windows-nat.c (windows_nat::handle_access_violation): New
1041 function.
1042 * nat/windows-nat.h (handle_access_violation): Declare.
1043 * nat/windows-nat.c (handle_exception): Move Cygwin code to
1044 windows-nat.c. Call handle_access_violation.
1045
efba5c23
TV
10462020-04-16 Tom de Vries <tdevries@suse.de>
1047
1048 PR symtab/25791
1049 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
1050 CUs without psymtab.
1051
97ed802d
KB
10522020-04-16 Kevin Buettner <kevinb@redhat.com>
1053
1054 * python/python.c (do_start_initialization): Don't call
1055 PyEval_InitThreads for Python 3.9 and beyond.
1056
c7d64809
KR
10572020-04-15 Kamil Rytarowski <n54@gmx.com>
1058
1059 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
1060 thread functions.
1061 (obsd_nat_target::wait): Likewise.
1062
ce127a96
TT
10632020-04-15 Tom Tromey <tromey@adacore.com>
1064
1065 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1066 (DEBUG_EXCEPT): Use debug_printf.
1067
99f1bc6a
AB
10682020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * completer.c (class completion_tracker::completion_hash_entry)
1071 <hash_name>: New member function.
1072 (completion_tracker::discard_completions): New callback to hash a
1073 completion_hash_entry, pass this to htab_create_alloc.
1074
a0e9b532
JT
10752016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
1076
1077 * windows-nat.c (windows_make_so): Warn rather than stopping with
1078 an error if realpath() fails.
1079
06ca5dd4
KR
10802020-04-14 Kamil Rytarowski <n54@gmx.com>
1081
1082 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
1083 (nbsd_nat_target::info_proc): Add do_status.
1084
194d088f
TV
10852020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
1086 Tom de Vries <tdevries@suse.de>
1087
1088 PR symtab/25718
1089 * psympriv.h (struct partial_symtab::read_symtab)
1090 (struct partial_symtab::expand_psymtab)
1091 (struct partial_symtab::read_dependencies): Update comments.
1092 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
1093 read_symtab for includer.
1094 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
1095 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
1096 (struct dwarf2_include_psymtab::m_readin): Remove.
1097 (struct dwarf2_include_psymtab::includer): New member function.
1098 (dwarf2_psymtab::expand_psymtab): Assert !readin.
1099
c1a66c06
TV
11002020-04-14 Tom de Vries <tdevries@suse.de>
1101
1102 PR symtab/25720
1103 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
1104 with NULL symbol_matcher and lookup_name.
1105 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
1106 and lookup_name.
1107 * dwarf2/read.c (dw2_expand_symtabs_matching)
1108 (dw2_debug_names_expand_symtabs_matching): Same.
1109 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
1110 Make lookup_name a pointer. Update comment.
1111 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
1112 lookup_name being a pointer.
1113 * symfile.c (expand_symtabs_matching): Same.
1114 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
1115 * linespec.c (iterate_over_all_matching_symtabs): Same.
1116
400b5eca
TT
11172020-04-13 Tom Tromey <tom@tromey.com>
1118
1119 * run-on-main-thread.c: Update include.
1120 * unittests/main-thread-selftests.c: Update include.
1121 * tui/tui-win.c: Update include.
1122 * tui/tui-io.c: Update include.
1123 * tui/tui-interp.c: Update include.
1124 * tui/tui-hooks.c: Update include.
1125 * top.h: Update include.
1126 * top.c: Update include.
1127 * ser-base.c: Update include.
1128 * remote.c: Update include.
1129 * remote-notif.c: Update include.
1130 * remote-fileio.c: Update include.
1131 * record-full.c: Update include.
1132 * record-btrace.c: Update include.
1133 * python/python.c: Update include.
1134 * posix-hdep.c: Update include.
1135 * mingw-hdep.c: Update include.
1136 * mi/mi-main.c: Update include.
1137 * mi/mi-interp.c: Update include.
1138 * main.c: Update include.
1139 * linux-nat.c: Update include.
1140 * interps.c: Update include.
1141 * infrun.c: Update include.
1142 * inf-loop.c: Update include.
1143 * event-top.c: Update include.
1144 * event-loop.c: Move to ../gdbsupport/.
1145 * event-loop.h: Move to ../gdbsupport/.
1146 * async-event.h: Update include.
1147 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
1148
93b54c8e
TT
11492020-04-13 Tom Tromey <tom@tromey.com>
1150
1151 * tui/tui-win.c: Include async-event.h.
1152 * remote.c: Include async-event.h.
1153 * remote-notif.c: Include async-event.h.
1154 * record-full.c: Include async-event.h.
1155 * record-btrace.c: Include async-event.h.
1156 * infrun.c: Include async-event.h.
1157 * event-top.c: Include async-event.h.
1158 * event-loop.h: Move some declarations to async-event.h.
1159 * event-loop.c: Don't include ser-event.h or top.h. Move some
1160 code to async-event.c.
1161 * async-event.h: New file.
1162 * async-event.c: New file.
1163 * Makefile.in (COMMON_SFILES): Add async-event.c.
1164 (HFILES_NO_SRCDIR): Add async-event.h.
1165
c1cd3163
TT
11662020-04-13 Tom Tromey <tom@tromey.com>
1167
1168 * utils.c (flush_streams): New function.
1169 * event-loop.c (gdb_wait_for_event): Call flush_streams.
1170
29f2bf4f
TT
11712020-04-13 Tom Tromey <tom@tromey.com>
1172
1173 * event-loop.c (handle_file_event): Use warning, not
1174 printf_unfiltered.
1175
98029d02
TT
11762020-04-13 Tom Tromey <tom@tromey.com>
1177
1178 * event-loop.c: Include <chrono>.
1179
06cc9596
TT
11802020-04-13 Tom Tromey <tom@tromey.com>
1181
1182 * gdb_select.h: Move to ../gdbsupport/.
1183 * event-loop.c: Update include path.
1184 * top.c: Update include path.
1185 * ser-base.c: Update include path.
1186 * ui-file.c: Update include path.
1187 * ser-tcp.c: Update include path.
1188 * guile/scm-ports.c: Update include path.
1189 * posix-hdep.c: Update include path.
1190 * ser-unix.c: Update include path.
1191 * gdb_usleep.c: Update include path.
1192 * mingw-hdep.c: Update include path.
1193 * inflow.c: Update include path.
1194 * infrun.c: Update include path.
1195 * event-top.c: Update include path.
1196
8ae8e197
TT
11972020-04-13 Tom Tromey <tom@tromey.com>
1198
1199 * configure: Rebuild.
1200 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
1201
58cf28e8
TT
12022020-04-13 Tom Tromey <tom@tromey.com>
1203
1204 * event-loop.h (start_event_loop): Don't declare.
1205 * event-loop.c (start_event_loop): Move...
1206 * main.c (start_event_loop): ...here. Now static.
1207
b7f999ae
SDJ
12082020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
1209
1210 * MAINTAINERS: Update my email address.
1211
1085dfd4
KR
12122020-04-12 Kamil Rytarowski <n54@gmx.com>
1213
1214 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
1215 IP_ALL.
1216
49d1d1f5
KR
12172020-04-12 Kamil Rytarowski <n54@gmx.com>
1218
1219 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 1220 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 1221
b4848d2a
KR
12222020-04-12 Kamil Rytarowski <n54@gmx.com>
1223
1224 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 1225 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 1226
51c133d5
KR
12272020-04-12 Kamil Rytarowski <n54@gmx.com>
1228
1229 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
1230
54b8cbd0
KR
12312020-04-11 Kamil Rytarowski <n54@gmx.com>
1232
1233 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
1234 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
1235 (nbsd_nat_target::info_proc): New functions.
1236 * nbsd-nat.c (kinfo_get_vmmap): New function.
1237 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
1238 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
1239 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
1240 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
1241 functions.
1242 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
1243 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1244 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1245 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
1246 (KINFO_VME_FLAG_GROWS_DOWN): New.
1247
cf83625d
AS
12482020-04-10 Artur Shepilko <nomadbyte@gmail.com>
1249
1250 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
1251 bit shift.
1252
0c4311ab
TT
12532020-04-10 Tom Tromey <tromey@adacore.com>
1254
1255 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
1256
3e65b3e9
TT
12572020-04-10 Tom Tromey <tromey@adacore.com>
1258
1259 * symtab.c (get_symbol_address, get_msymbol_address): Skip
1260 separate debug files.
1261
13302e95
HD
12622020-04-10 Hannes Domani <ssbssa@yahoo.de>
1263
1264 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1265 Move to...
1266 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1267 ... here.
1268 * windows-nat.c (windows_nat_target::get_windows_debug_event):
1269 Check for STATUS_WX86_BREAKPOINT.
1270 (windows_nat_target::wait): Same.
1271
bdfc1e8a
TV
12722020-04-10 Tom de Vries <tdevries@suse.de>
1273
1274 PR cli/25808
1275 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
1276
f4460aec
SM
12772020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
1280 (Write After Approval): Remove Tom de Vries.
1281
a25198bb
BE
12822020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
1283
1284 revert partially:
1285 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1286
aac66a4c
SM
1287 * buildsym.c (record_line): Fix undefined behavior and preserve
1288 lines at eof.
a25198bb 1289
206c98a6
KR
12902020-04-09 Kamil Rytarowski <n54@gmx.com>
1291
1292 * auxv.h (svr4_auxv_parse): New.
1293 * auxv.c (default_auxv_parse): Split into default_auxv_parse
1294 and generic_auxv_parse.
1295 (svr4_auxv_parse): Add.
1296 * obsd-tdep.c: Include "auxv.h".
1297 (obsd_auxv_parse): Remove.
1298 (obsd_init_abi): Remove comment.
1299 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
1300 from `obsd_auxv_parse' to `svr4_auxv_parse'.
1301 * nbsd-tdep.c: Include "auxv.h".
1302 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
1303
71fbdbaf
TT
13042020-04-08 Tom Tromey <tromey@adacore.com>
1305
1306 * nat/windows-nat.h (last_wait_event): Don't declare.
1307 (wait_for_debug_event): Update comment.
1308 * nat/windows-nat.c (last_wait_event): Now static.
1309
2c1d95e8
TT
13102020-04-08 Tom Tromey <tromey@adacore.com>
1311
1312 * windows-nat.c (wait_for_debug_event): Move to
1313 nat/windows-nat.c.
1314 * nat/windows-nat.h (wait_for_debug_event): Declare.
1315 * nat/windows-nat.c (wait_for_debug_event): Move from
1316 windows-nat.c. No longer static.
1317
d2977bc4
TT
13182020-04-08 Tom Tromey <tromey@adacore.com>
1319
1320 * windows-nat.c (get_windows_debug_event): Use
1321 fetch_pending_stop.
1322 * nat/windows-nat.h (fetch_pending_stop): Declare.
1323 * nat/windows-nat.c (fetch_pending_stop): New function.
1324
e758e19c
TT
13252020-04-08 Tom Tromey <tromey@adacore.com>
1326
1327 * windows-nat.c (windows_continue): Use matching_pending_stop and
1328 continue_last_debug_event.
1329 * nat/windows-nat.h (matching_pending_stop)
1330 (continue_last_debug_event): Declare.
1331 * nat/windows-nat.c (DEBUG_EVENTS): New define.
1332 (matching_pending_stop, continue_last_debug_event): New
1333 functions.
1334
8d30e395
TT
13352020-04-08 Tom Tromey <tromey@adacore.com>
1336
1337 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
1338 (handle_exception_result): Move to nat/windows-nat.h.
1339 (DEBUG_EXCEPTION_SIMPLE): Remove.
1340 (windows_nat::handle_ms_vc_exception): New function.
1341 (handle_exception): Move to nat/windows-nat.c.
1342 (get_windows_debug_event): Update.
1343 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
1344 nat/windows-nat.c.
1345 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
1346 (handle_exception_result): Move from windows-nat.c.
1347 (handle_exception): Declare.
1348 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
1349 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
1350 windows-nat.c.
1351
29de418d
TT
13522020-04-08 Tom Tromey <tromey@adacore.com>
1353
1354 * windows-nat.c (exception_count, event_count): Remove.
1355 (handle_exception, get_windows_debug_event)
1356 (do_initial_windows_stuff): Update.
1357
a816ba18
TT
13582020-04-08 Tom Tromey <tromey@adacore.com>
1359
1360 * windows-nat.c (windows_nat::handle_load_dll)
1361 (windows_nat::handle_unload_dll): Rename. No longer static.
1362 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
1363 Declare.
1364
a00caa12
TT
13652020-04-08 Tom Tromey <tromey@adacore.com>
1366
1367 * complaints.h (stop_whining): Declare at top-level.
1368 (complaint): Don't declare stop_whining.
1369
d41b524f
TT
13702020-04-08 Tom Tromey <tromey@adacore.com>
1371
1372 * windows-nat.c (windows_nat::handle_output_debug_string):
1373 Rename. No longer static.
1374 * nat/windows-nat.h (handle_output_debug_string): Declare.
1375
3c76026d
TT
13762020-04-08 Tom Tromey <tromey@adacore.com>
1377
1378 * windows-nat.c (current_process_handle, current_process_id)
1379 (main_thread_id, last_sig, current_event, last_wait_event)
1380 (current_windows_thread, desired_stop_thread_id, pending_stops)
1381 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
1382 (display_selectors, fake_create_process)
1383 (get_windows_debug_event): Update.
1384 * nat/windows-nat.h (current_process_handle, current_process_id)
1385 (main_thread_id, last_sig, current_event, last_wait_event)
1386 (current_windows_thread, desired_stop_thread_id, pending_stops)
1387 (struct pending_stop, siginfo_er): Move from windows-nat.c.
1388 * nat/windows-nat.c (current_process_handle, current_process_id)
1389 (main_thread_id, last_sig, current_event, last_wait_event)
1390 (current_windows_thread, desired_stop_thread_id, pending_stops)
1391 (siginfo_er): New globals. Move from windows-nat.c.
1392
9d8679cc
TT
13932020-04-08 Tom Tromey <tromey@adacore.com>
1394
1395 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
1396 (handle_load_dll): Update.
1397 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
1398
28688adf
TT
13992020-04-08 Tom Tromey <tromey@adacore.com>
1400
1401 * windows-nat.c (enum thread_disposition_type): Move to
1402 nat/windows-nat.h.
1403 (windows_nat::thread_rec): Rename from thread_rec. No longer
1404 static.
1405 (windows_add_thread, windows_nat_target::fetch_registers)
1406 (windows_nat_target::store_registers, handle_exception)
1407 (windows_nat_target::resume, get_windows_debug_event)
1408 (windows_nat_target::get_tib_address)
1409 (windows_nat_target::thread_name)
1410 (windows_nat_target::thread_alive): Update.
1411 * nat/windows-nat.h (enum thread_disposition_type): Move from
1412 windows-nat.c.
1413 (thread_rec): Declare.
1414
4834dad0
TT
14152020-04-08 Tom Tromey <tromey@adacore.com>
1416
1417 * windows-nat.c: Add "using namespace".
1418 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
1419 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
1420
65bafd5b
TT
14212020-04-08 Tom Tromey <tromey@adacore.com>
1422
1423 * nat/windows-nat.h (struct windows_thread_info): Declare
1424 destructor.
1425 * nat/windows-nat.c (~windows_thread_info): New.
1426
0a4afda3
TT
14272020-04-08 Tom Tromey <tromey@adacore.com>
1428
1429 PR gdb/22992
1430 * windows-nat.c (current_event): Update comment.
1431 (last_wait_event, desired_stop_thread_id): New globals.
1432 (struct pending_stop): New.
1433 (pending_stops): New global.
1434 (windows_nat_target) <stopped_by_sw_breakpoint>
1435 <supports_stopped_by_sw_breakpoint>: New methods.
1436 (windows_fetch_one_register): Add assertions. Adjust PC.
1437 (windows_continue): Handle pending stops. Suspend other threads
1438 when stepping. Use last_wait_event
1439 (wait_for_debug_event): New function.
1440 (get_windows_debug_event): Use wait_for_debug_event. Handle
1441 pending stops. Queue spurious stops.
1442 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
1443 (windows_nat_target::kill): Use wait_for_debug_event.
1444 * nat/windows-nat.h (struct windows_thread_info)
1445 <stopped_at_software_breakpoint>: New field.
1446 * nat/windows-nat.c (windows_thread_info::resume): Clear
1447 stopped_at_software_breakpoint.
1448
8e61ebec
TT
14492020-04-08 Tom Tromey <tromey@adacore.com>
1450
1451 * windows-nat.c (enum thread_disposition_type): New.
1452 (thread_rec): Replace "get_context" parameter with "disposition";
1453 change type.
1454 (windows_add_thread, windows_nat_target::fetch_registers)
1455 (windows_nat_target::store_registers, handle_exception)
1456 (windows_nat_target::resume, get_windows_debug_event)
1457 (windows_nat_target::get_tib_address)
1458 (windows_nat_target::thread_name)
1459 (windows_nat_target::thread_alive): Update.
1460
98a03287
TT
14612020-04-08 Tom Tromey <tromey@adacore.com>
1462
1463 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
1464 (windows_continue): Use windows_continue::resume.
1465 * nat/windows-nat.h (struct windows_thread_info) <suspend,
1466 resume>: Declare new methods.
1467 * nat/windows-nat.c: New file.
1468 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
1469
7c7411bc
TT
14702020-04-08 Tom Tromey <tromey@adacore.com>
1471
1472 * windows-nat.c (windows_add_thread, windows_delete_thread)
1473 (windows_nat_target::fetch_registers)
1474 (windows_nat_target::store_registers, fake_create_process)
1475 (windows_nat_target::resume, windows_nat_target::resume)
1476 (get_windows_debug_event, windows_nat_target::wait)
1477 (windows_nat_target::pid_to_str)
1478 (windows_nat_target::get_tib_address)
1479 (windows_nat_target::get_ada_task_ptid)
1480 (windows_nat_target::thread_name)
1481 (windows_nat_target::thread_alive): Use lwp, not tid.
1482
2950fdf7
TT
14832020-04-08 Tom Tromey <tromey@adacore.com>
1484
1485 * windows-nat.c (handle_exception)
1486 (windows_nat_target::thread_name): Update.
1487 * nat/windows-nat.h (windows_thread_info): Remove destructor.
1488 <name>: Now unique_xmalloc_ptr.
1489
62fe396b
TT
14902020-04-08 Tom Tromey <tromey@adacore.com>
1491
1492 * windows-nat.c (thread_rec)
1493 (windows_nat_target::fetch_registers): Update.
1494 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
1495 Update comment.
1496 <debug_registers_changed, reload_context>: Now bool.
1497
e9534bd2
TT
14982020-04-08 Tom Tromey <tromey@adacore.com>
1499
1500 * windows-nat.c (windows_add_thread): Use new.
1501 (windows_init_thread_list, windows_delete_thread): Use delete.
1502 (get_windows_debug_event): Update.
1503 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
1504 destructor, and initializers.
1505
ae1f8880
TT
15062020-04-08 Tom Tromey <tromey@adacore.com>
1507
1508 * windows-nat.c (struct windows_thread_info): Remove.
1509 * nat/windows-nat.h: New file.
1510
55a1e039
TT
15112020-04-08 Tom Tromey <tromey@adacore.com>
1512
1513 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
1514 (thread_rec, windows_add_thread, windows_delete_thread)
1515 (windows_continue): Update.
1516
93366324
TT
15172020-04-08 Tom Tromey <tromey@adacore.com>
1518
1519 * windows-nat.c (struct windows_thread_info): Remove typedef.
1520 (thread_head): Remove.
1521 (thread_list): New global.
1522 (thread_rec, windows_add_thread, windows_init_thread_list)
1523 (windows_delete_thread, windows_continue): Update.
1524
0f2265e2
SM
15252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * windows-tdep.h (windows_init_abi): Add comment.
1528 (cygwin_init_abi): New declaration.
1529 * windows-tdep.c: Split signal enumeration in two, one for
1530 Windows and one for Cygwin.
1531 (windows_gdb_signal_to_target): Only deal with signal of the
1532 Windows OS ABI.
1533 (cygwin_gdb_signal_to_target): New function.
1534 (windows_init_abi): Rename to windows_init_abi_common, don't set
1535 gdb_signal_to_target gdbarch method. Add new new function with
1536 this name.
1537 (cygwin_init_abi): New function.
1538 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
1539 comment. Don't call windows_init_abi.
1540 (amd64_windows_init_abi): Add comment, call windows_init_abi.
1541 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
1542 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
1543 i386_windows_init_abi_common, don't call windows_init_abi. Add
1544 a new function of this name.
1545 (i386_cygwin_init_abi): New function.
1546 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
1547 OS ABI Cygwin.
1548
3810f182
SM
15492020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
1552 parameter.c.
1553 (dwarf2_read_gdb_index): Update.
1554
063f8e80
KR
15552020-04-07 Kamil Rytarowski <n54@gmx.com>
1556
1557 * nbsd-tdep.c: Include "objfiles.h".
1558 (nbsd_skip_solib_resolver): New.
1559 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
1560
85a9510c 15612020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1562
1563 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
1564 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
1565 with DW_LLE_base_addressx are being emitted in DWARFv5.
1566 Add the newly added kind DW_LOC_OFFSET_PAIR also.
1567 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
1568 unsigned integer.
1569
9fc3eaae 15702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1571
1572 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
1573 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
1574 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
1575 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
1576 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
1577 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
1578 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
1579
1580
41144253 15812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1582
1583 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
1584 (read_loclist_index): New function definition.
1585 (lookup_loclist_base): New function definition.
1586 (read_loclist_header): New function definition.
1587 (dwarf2_cu): Add loclist_base and loclist_header field.
1588 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
1589 (read_full_die_1): Read the value of DW_AT_loclists_base.
1590 (read_attribute_reprocess): Handle DW_FORM_loclistx.
1591 (read_attribute_value): Handle DW_FORM_loclistx.
1592 (skip_one_die): Handle DW_FORM_loclistx.
1593 (loclist_header): New structure declaration.
1594 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
1595
9f4e76a4
SM
15962020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1597
1598 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
1599 constructor. Remove `addr` parameter from other constructor and
1600 add `per_cu` parameter.
1601 * dwarf2/read.c (create_partial_symtab): Update.
1602
25c11aca
TV
16032020-04-07 Tom de Vries <tdevries@suse.de>
1604
1605 PR symtab/25796
1606 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
1607 (partial_die_info::fixup): Inherit has_const_value.
1608
5707e24b
TV
16092020-04-07 Tom de Vries <tdevries@suse.de>
1610
1611 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
1612 symbols without address.
1613
05f00e22
KR
16142020-04-06 Kamil Rytarowski <n54@gmx.com>
1615
1616 * nbsd-nat.h (struct thread_info): Add forward declaration.
1617 (nbsd_nat_target::thread_alive): Add.
1618 (nbsd_nat_target::thread_name): Likewise.
1619 (nbsd_nat_target::update_thread_list): Likewise.
1620 (update_thread_list::post_attach): Likewise.
1621 (post_attach::pid_to_str): Likewise.
1622 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
1623 (nbsd_thread_lister): Add.
1624 (nbsd_nat_target::thread_alive): Likewise.
1625 (nbsd_nat_target::thread_name): Likewise.
1626 (nbsd_add_threads): Likewise.
1627 (update_thread_list::post_attach): Likewise.
1628 (nbsd_nat_target::update_thread_list): Likewise.
1629 (post_attach::pid_to_str): Likewise.
1630
6ee448cc
TT
16312020-04-06 Tom Tromey <tromey@adacore.com>
1632
1633 * ada-valprint.c (print_variant_part): Extract the variant field.
1634 (print_field_values): Use the field as the outer value when
1635 recursing.
1636
dea34e8c
TT
16372020-04-06 Tom Tromey <tromey@adacore.com>
1638
1639 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
1640 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
1641 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
1642 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
1643 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
1644
93689ce9
TT
16452020-04-06 Tom Tromey <tromey@adacore.com>
1646
1647 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
1648 TYPE_CODE_ERROR.
1649
79743962
KR
16502020-04-06 Kamil Rytarowski <n54@gmx.com>
1651
1652 * nbsd-tdep.c: Include "gdbarch.h".
1653 Define enum with NetBSD signal numbers.
1654 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
1655 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
1656 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1657 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
1658 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
1659 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
1660 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
1661 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1662 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
1663 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1664 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1665 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
1666
9e7c9a03
HD
16672020-04-03 Hannes Domani <ssbssa@yahoo.de>
1668
1669 PR gdb/25325
1670 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
1671
d9e49b61
TT
16722020-04-03 Tom Tromey <tromey@adacore.com>
1673
1674 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
1675 Read constant block.
1676
e0fc5c3f
SM
16772020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1678
1679 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
1680 (gdb_bfd_get_full_section_contents): New declaration.
1681 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
1682 * windows-tdep.c (is_linked_with_cygwin_dll): Use
1683 gdb_bfd_get_full_section_contents.
1684
e2ff18a0
SM
16852020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1686
1687 * exec.c (build_section_table): Replace internal_error with
1688 gdb_assert.
1689 (section_table_xfer_memory_partial): Likewise.
1690 * mdebugread.c (parse_partial_symbols): Likewise.
1691 * psymtab.c (lookup_partial_symbol): Likewise.
1692 * utils.c (wrap_here): Likewise.
1693
0830d301
TT
16942020-04-02 Tom Tromey <tromey@adacore.com>
1695
1696 * f-lang.c (build_fortran_types): Use arch_type to initialize
1697 builtin_complex_s32 in the TYPE_CODE_ERROR case.
1698
e7da7f8f
TT
16992020-04-02 Tom Tromey <tromey@adacore.com>
1700
1701 * dwarf2/read.c (partial_die_info::read): Do not create a vector
1702 of attributes.
1703
c90d28ac
AB
17042020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
1705 Bernd Edlinger <bernd.edlinger@hotmail.de>
1706 Tom Tromey <tromey@adacore.com>
1707
1708 * buildsym.c (buildsym_compunit::record_line): Remove
1709 deduplication code.
1710
1aa98955
TV
17112020-04-02 Tom de Vries <tdevries@suse.de>
1712
1713 PR ada/24671
1714 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
1715
d3214198
TV
17162020-04-02 Tom de Vries <tdevries@suse.de>
1717
1718 * dwarf2/read.c (dwarf2_gdb_index_functions,
1719 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
1720 NULL.
1721 * psymtab.c (psym_lookup_global_symbol_language): New function.
1722 (psym_functions): Init psym_lookup_global_symbol_language with
1723 psym_lookup_global_symbol_language.
1724 * symfile-debug.c (debug_sym_quick_functions): Init
1725 lookup_global_symbol_language with NULL.
1726 * symfile.c (set_initial_language): Remove fixme comment.
1727 * symfile.h (struct quick_symbol_functions): Add
1728 lookup_global_symbol_language.
1729 * symtab.c (find_quick_global_symbol_language): New function.
1730 (find_main_name): Use find_quick_global_symbol_language.
1731
2836752f
SM
17322020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
1735
64dc2d4b
BE
17362020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1737
1738 * buildsym.c (record_line): Fix undefined behavior and preserve
1739 lines at eof.
1740
bbe3dc41
BE
17412020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1742
1743 * buildsym.c (record_line): Fix the resizing condition.
1744
6b4a335b
TT
17452020-04-01 Tom Tromey <tom@tromey.com>
1746
1747 * value.h (value_literal_complex): Add comment.
1748 * valops.c (value_literal_complex): Refer to value.h.
1749
3638a098
TT
17502020-04-01 Tom Tromey <tom@tromey.com>
1751
1752 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
1753 (scalar_type): New rule, from typebase.
1754 (typebase): Use scalar_type. Recognize complex types.
1755 (field_name): Handle FLOAT_KEYWORD.
1756 (ident_tokens): Add _Complex and __complex__.
1757
c34e8714
TT
17582020-04-01 Tom Tromey <tom@tromey.com>
1759
1760 PR exp/25299:
1761 * valarith.c (promotion_type, complex_binop): New functions.
1762 (scalar_binop): Handle complex numbers. Use promotion_type.
1763 (value_pos, value_neg, value_complement): Handle complex numbers.
1764
fa649bb7
TT
17652020-04-01 Tom Tromey <tom@tromey.com>
1766
1767 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
1768 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
1769 (parse_number): Handle complex numbers.
1770
981c08ce
TT
17712020-04-01 Tom Tromey <tom@tromey.com>
1772
1773 * c-valprint.c (c_decorations): Change complex suffix to "i".
1774
4c99290d
TT
17752020-04-01 Tom Tromey <tom@tromey.com>
1776
1777 * valprint.c (generic_value_print_complex): Use accessors.
1778 * value.h (value_real_part, value_imaginary_part): Declare.
1779 * valops.c (value_real_part, value_imaginary_part): New
1780 functions.
1781 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
1782
5b930b45
TT
17832020-04-01 Tom Tromey <tom@tromey.com>
1784
1785 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
1786 (read_range_type): Update.
1787 * mdebugread.c (basic_type): Update.
1788 * go-lang.c (build_go_types): Use init_complex_type.
1789 * gdbtypes.h (struct main_type) <complex_type>: New member.
1790 (init_complex_type): Update.
1791 (arch_complex_type): Don't declare.
1792 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
1793 Make name if none given. Use alloc_type_copy. Look for cached
1794 complex type.
1795 (arch_complex_type): Remove.
1796 (gdbtypes_post_init): Use init_complex_type.
1797 * f-lang.c (build_fortran_types): Use init_complex_type.
1798 * dwarf2/read.c (read_base_type): Update.
1799 * d-lang.c (build_d_types): Use init_complex_type.
1800 * ctfread.c (read_base_type): Update.
1801
53cccef1
TBA
18022020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1803
1804 * infrun.c (stop_all_threads): Update assertion, plus when
1805 stopping threads, take into account that we might be trying
1806 to stop an all-stop target.
1807 (stop_waiting): Call 'stop_all_threads' if there exists a
1808 non-stop target.
1809
a0714d30
TBA
18102020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1811
1812 * target.h (exists_non_stop_target): New function declaration.
1813 * target.c (exists_non_stop_target): New function.
1814
60e22c1e
HD
18152020-04-01 Hannes Domani <ssbssa@yahoo.de>
1816
1817 PR gdb/24789
1818 * eval.c (is_integral_or_integral_reference): New function.
1819 (evaluate_subexp_standard): Allow integer references in
1820 pointer arithmetic.
1821
e139a727
TBA
18222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1823
1824 * remote.c (remote_target::remote_parse_stop_reply): Remove the
1825 check for no ptid in the stop reply when the target is non-stop.
1826
e0802d59
TT
18272020-04-01 Tom Tromey <tromey@adacore.com>
1828
1829 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
1830 "name" parameter to rvalue reference. Initialize m_name_holder.
1831 <lookup_name_info>: New overloads.
1832 <name>: Return gdb::string_view.
1833 <c_str>: New method.
1834 <make_ignore_params>: Update.
1835 <search_name_hash>: Update.
1836 <language_lookup_name>: Return const char *.
1837 <m_name>: Change type.
1838 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
1839 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
1840 (lookup_name_info::match_any): Update.
1841 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
1842 Update.
1843 * minsyms.c (linkage_name_str): Update.
1844 * language.c (default_symbol_name_matcher): Update.
1845 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
1846 Update.
1847 * ada-lang.c (ada_fold_name): Change parameter to string_view.
1848 (ada_lookup_name_info::ada_lookup_name_info): Update.
1849 (literal_symbol_name_matcher): Update.
1850
8c072cb6
TT
18512020-04-01 Tom Tromey <tromey@adacore.com>
1852
1853 * psymtab.c (psymtab_search_name): Remove function.
1854 (psym_lookup_symbol): Create search name and lookup name here.
1855 (lookup_partial_symbol): Remove "name" parameter; add
1856 lookup_name.
1857 (psym_expand_symtabs_for_function): Update.
1858
6f29a534
TT
18592020-03-31 Joel Jones <joelkevinjones@gmail.com>
1860
1861 PR tui/25597:
1862 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
1863
af62665e
TT
18642020-03-31 Tom Tromey <tromey@adacore.com>
1865
1866 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
1867 memcpy.
1868
d1a89da5
NC
18692020-03-30 Nelson Chu <nelson.chu@sifive.com>
1870
1871 * features/riscv/32bit-csr.xml: Regenerated.
1872 * features/riscv/64bit-csr.xml: Regenerated.
1873
d8af9068
TT
18742020-03-30 Tom Tromey <tromey@adacore.com>
1875
1876 * ada-valprint.c (print_variant_part): Update.
1877 * ada-lang.h (ada_which_variant_applies): Update.
1878 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
1879 outer_valaddr parameters; replace with "outer" value parameter.
1880 (to_fixed_variant_branch_type): Update.
1881
227c0bf4
PFC
18822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1883
1884 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
1885 <list>. Remove inclusion of observable.h.
1886 (PPC_DEBUG_CURRENT_VERSION): Move up define.
1887 (struct arch_lwp_info): New struct.
1888 (class ppc_linux_dreg_interface): New class.
1889 (struct ppc_linux_process_info): New struct.
1890 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
1891 <low_new_clone, low_forget_process, low_prepare_to_resume>
1892 <copy_thread_dreg_state, mark_thread_stale>
1893 <mark_debug_registers_changed, register_hw_breakpoint>
1894 <clear_hw_breakpoint, register_wp, clear_wp>
1895 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
1896 <num_memory_accesses, get_trigger_type>
1897 <create_watchpoint_request, hwdebug_point_cmp>
1898 <init_arch_lwp_info, get_arch_lwp_info>
1899 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
1900 methods.
1901 <struct ptid_hash>: New inner struct.
1902 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
1903 members.
1904 (saved_dabr_value, hwdebug_info, max_slots_number)
1905 (struct hw_break_tuple, struct thread_points, ppc_threads)
1906 (have_ptrace_hwdebug_interface)
1907 (hwdebug_find_thread_points_by_tid)
1908 (hwdebug_insert_point, hwdebug_remove_point): Remove.
1909 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
1910 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
1911 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
1912 use m_dreg_interface.
1913 (hwdebug_point_cmp): Change to...
1914 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
1915 reference arguments instead of pointers.
1916 (ppc_linux_nat_target::ranged_break_num_registers): Use
1917 m_dreg_interface.
1918 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
1919 m_dreg_interface. Call register_hw_breakpoint.
1920 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
1921 m_dreg_interface. Call clear_hw_breakpoint.
1922 (get_trigger_type): Change to...
1923 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
1924 comment.
1925 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
1926 use m_dreg_interface. Call register_hw_breakpoint.
1927 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
1928 use m_dreg_interface. Call clear_hw_breakpoint.
1929 (can_use_watchpoint_cond_accel): Change to...
1930 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
1931 method. Update comment, use m_dreg_interface and
1932 m_process_info.
1933 (calculate_dvc): Change to...
1934 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
1935 m_dreg_interface.
1936 (num_memory_accesses): Change to...
1937 (ppc_linux_nat_target::num_memory_accesses): ...this method.
1938 (check_condition): Change to...
1939 (ppc_linux_nat_target::check_condition): ...this method.
1940 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
1941 comment, use m_dreg_interface.
1942 (create_watchpoint_request): Change to...
1943 (ppc_linux_nat_target::create_watchpoint_request): ...this
1944 method. Use m_dreg_interface.
1945 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
1946 m_dreg_interface. Call register_hw_breakpoint or register_wp.
1947 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
1948 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
1949 (ppc_linux_nat_target::low_forget_process)
1950 (ppc_linux_nat_target::low_new_fork)
1951 (ppc_linux_nat_target::low_new_clone)
1952 (ppc_linux_nat_target::low_delete_thread)
1953 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
1954 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
1955 only call mark_thread_stale.
1956 (ppc_linux_thread_exit): Remove.
1957 (ppc_linux_nat_target::stopped_data_address): Change to...
1958 (ppc_linux_nat_target::low_stopped_data_address): This. Add
1959 comment, use m_dreg_interface and m_thread_hw_breakpoints.
1960 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
1961 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
1962 comment. Call low_stopped_data_address.
1963 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
1964 m_dreg_interface.
1965 (ppc_linux_nat_target::masked_watch_num_registers): Use
1966 m_dreg_interface.
1967 (ppc_linux_nat_target::copy_thread_dreg_state)
1968 (ppc_linux_nat_target::mark_thread_stale)
1969 (ppc_linux_nat_target::mark_debug_registers_changed)
1970 (ppc_linux_nat_target::register_hw_breakpoint)
1971 (ppc_linux_nat_target::clear_hw_breakpoint)
1972 (ppc_linux_nat_target::register_wp)
1973 (ppc_linux_nat_target::clear_wp)
1974 (ppc_linux_nat_target::init_arch_lwp_info)
1975 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
1976 (_initialize_ppc_linux_nat): Remove observer callback.
1977
4db10d8f
PFC
19782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1979
1980 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
1981 (ppc_linux_nat_target::auxv_parse)
1982 (ppc_linux_nat_target::read_description)
1983 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1984 Move up.
1985
1310c1b0
PFC
19862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1987
1988 * linux-nat.h (low_new_clone): New method.
1989 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
1990
69b037c3
SM
19912020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1992
1993 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
1994 (dbx_expand_psymtab): ... this.
1995 (start_psymtab): Update.
1996 * mdebugread.c (psymtab_to_symtab_1): Rename to...
1997 (mdebug_expand_psymtab): ... this.
1998 (parse_partial_symbols): Update.
1999 (new_psymtab): Update.
2000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
2001 (xcoff_expand_psymtab): ... this.
2002 (xcoff_start_psymtab): Update.
2003
48993951
SM
20042020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
2007 <expand_dependencies>: ... this.
2008 * psymtab.c (partial_symtab::read_dependencies): Rename to...
2009 (partial_symtab::expand_dependencies): ... this.
2010 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
2011 Update.
2012 (dwarf2_psymtab::expand_psymtab): Update.
2013 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2014 * mdebugread.c (psymtab_to_symtab_1): Update.
2015 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2016
3ad83046
SM
20172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * psympriv.h (discard_psymtab): Remove.
2020 * dbxread.c (dbx_end_psymtab): Update.
2021 * xcoffread.c (xcoff_end_psymtab): Update.
2022
4d1b9ab6
TT
20232020-03-28 Tom Tromey <tom@tromey.com>
2024
2025 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
2026 comment.
2027
f1749218
TT
20282020-03-28 Tom Tromey <tom@tromey.com>
2029
2030 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
2031
ebea7626
HD
20322020-03-27 Hannes Domani <ssbssa@yahoo.de>
2033
2034 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2035
a879b4d5
JB
20362020-03-26 John Baldwin <jhb@FreeBSD.org>
2037
2038 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
2039
0826b30a
TT
20402020-03-26 Tom Tromey <tom@tromey.com>
2041
2042 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
2043 (mark_common_block_symbol_computed, read_tag_string_type)
2044 (attr_to_dynamic_prop, read_subrange_type): Update.
2045 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
2046 to be methods on struct attribute.
2047 (skip_one_die, process_imported_unit_die, read_namespace_alias)
2048 (read_call_site_scope, partial_die_info::read)
2049 (partial_die_info::read, lookup_die_type, follow_die_ref):
2050 Update.
2051 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
2052 from dwarf2_get_ref_die_offset.
2053 (attribute::constant_value): New method, from
2054 dwarf2_get_attr_constant_value.
2055 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
2056 Declare method.
2057 <constant_value>: New method.
2058
2b2558bf
TT
20592020-03-26 Tom Tromey <tom@tromey.com>
2060
2061 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
2062 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
2063 (dwarf_type_encoding_name): Move to stringify.c.
2064 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
2065 * dwarf2/stringify.c: New file.
2066 * dwarf2/stringify.h: New file.
2067
eeb64781
TT
20682020-03-26 Tom Tromey <tom@tromey.com>
2069
2070 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
2071 Rewrite.
2072
a39fdb41
TT
20732020-03-26 Tom Tromey <tom@tromey.com>
2074
2075 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
2076 methods.
2077 * dwarf2/read.c (lookup_addr_base): Move to die.h.
2078 (lookup_ranges_base): Likewise.
2079 (read_cutu_die_from_dwo, read_full_die_1): Update.
2080
436c571c
TT
20812020-03-26 Tom Tromey <tom@tromey.com>
2082
2083 * dwarf2/read.c (read_import_statement, read_file_scope)
2084 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
2085 (read_lexical_block_scope, read_call_site_scope)
2086 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
2087 (handle_struct_member_die, process_structure_scope)
2088 (update_enumeration_type_from_children)
2089 (process_enumeration_scope, read_array_type, read_common_block)
2090 (read_namespace, read_module, read_subroutine_type): Update.
2091 (sibling_die): Remove.
2092
052c8bb8
TT
20932020-03-26 Tom Tromey <tom@tromey.com>
2094
2095 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
2096 (build_type_psymtabs_reader, read_structure_type)
2097 (read_enumeration_type, read_full_die_1): Update.
2098 (dwarf2_attr_no_follow): Move to die.h.
2099 * dwarf2/die.h (struct die_info) <attr>: New method.
2100
2b24b6e4
TT
21012020-03-26 Tom Tromey <tom@tromey.com>
2102
2103 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
2104 <base_address>: Now an optional.
2105 (dwarf2_find_base_address, dwarf2_rnglists_process)
2106 (dwarf2_ranges_process, fill_in_loclist_baton)
2107 (dwarf2_symbol_mark_computed): Update.
2108
c2d50fd0
TT
21092020-03-26 Tom Tromey <tom@tromey.com>
2110
2111 * dwarf2/read.c (struct die_info): Move to die.h.
2112 * dwarf2/die.h: New file.
2113
0df7ad3a
TT
21142020-03-26 Tom Tromey <tom@tromey.com>
2115
2116 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
2117 * dwarf2/read.c
2118 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2119 Move to line-header.c.
2120 (read_checked_initial_length_and_offset, read_formatted_entries):
2121 Likewise.
2122 (dwarf_decode_line_header): Split into two.
2123 * dwarf2/line-header.c
2124 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2125 Move from read.c.
2126 (read_checked_initial_length_and_offset, read_formatted_entries):
2127 Likewise.
2128 (dwarf_decode_line_header): New function, split from read.c.
2129
86c0bb4c
TT
21302020-03-26 Tom Tromey <tom@tromey.com>
2131
2132 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
2133 Declare method.
2134 * dwarf2/read.c (read_attribute_value): Update.
2135 (dwarf2_per_objfile::read_line_string): Rename from
2136 read_indirect_line_string.
2137 (read_formatted_entries): Update.
2138
2ef46c2f
TT
21392020-03-26 Tom Tromey <tom@tromey.com>
2140
2141 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
2142 variable.
2143
4f9c1eda
TT
21442020-03-26 Tom Tromey <tom@tromey.com>
2145
2146 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
2147 const.
2148 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
2149 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
2150 parameter const.
2151
5a0e026f
TT
21522020-03-26 Tom Tromey <tom@tromey.com>
2153
2154 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
2155 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
2156 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
2157 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
2158
8844c11b
TT
21592020-03-26 Tom Tromey <tom@tromey.com>
2160
2161 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
2162 file_names_size, file_full_name, file_file_name>: Use const.
2163 <file_name_at, file_names>: Add const overload.
2164 * dwarf2/line-header.c (line_header::file_file_name)
2165 (line_header::file_full_name): Update.
2166
c90ec28a
TT
21672020-03-26 Tom Tromey <tom@tromey.com>
2168
2169 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
2170 (macro_start_file, consume_improper_spaces)
2171 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
2172 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
2173 (dwarf_decode_macros): Move to macro.c.
2174 * dwarf2/macro.c: New file.
2175 * dwarf2/macro.h: New file.
2176 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
2177
4f44ae6c
TT
21782020-03-26 Tom Tromey <tom@tromey.com>
2179
2180 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
2181 method.
2182 * dwarf2/section.c: New method. From
2183 read_indirect_string_at_offset_from.
2184 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
2185 (read_indirect_string_at_offset_from): Move to section.c.
2186 (read_indirect_string_at_offset): Rewrite.
2187 (read_indirect_line_string_at_offset): Remove.
2188 (read_indirect_string, read_indirect_line_string)
2189 (dwarf_decode_macro_bytes): Update.
2190
a0194fa8
TT
21912020-03-26 Tom Tromey <tom@tromey.com>
2192
2193 * dwarf2/section.h (struct dwarf2_section_info)
2194 <overload_complaint>: Declare.
2195 (dwarf2_section_buffer_overflow_complaint): Don't declare.
2196 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
2197 Rename from dwarf2_section_buffer_overflow_complaint.
2198 * dwarf2/read.c (skip_one_die, partial_die_info::read)
2199 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
2200
3d27bbdb
TT
22012020-03-26 Tom Tromey <tom@tromey.com>
2202
2203 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
2204 Declare.
2205 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
2206 Move from read.c.
2207 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
2208 to section.c.
2209
9eac9650
TT
22102020-03-26 Tom Tromey <tom@tromey.com>
2211
2212 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
2213
bf80d710
TT
22142020-03-26 Tom Tromey <tom@tromey.com>
2215
2216 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
2217 "builder".
2218 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
2219 parameter.
2220 (dwarf_decode_macros): Update.
2221
0314b390
TT
22222020-03-26 Tom Tromey <tom@tromey.com>
2223
2224 * dwarf2/read.c (read_attribute_value): Update.
2225 (read_indirect_string_from_dwz): Move to dwz.c; change into
2226 method.
2227 (dwarf_decode_macro_bytes): Update.
2228 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
2229 * dwarf2/dwz.c: New file.
2230 * Makefile.in (COMMON_SFILES): Add dwz.c.
2231
9fda78b6
TT
22322020-03-26 Tom Tromey <tom@tromey.com>
2233
2234 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
2235 * dwarf2/read.c: Add include.
2236 * dwarf2/index-write.c: Add include.
2237 * dwarf2/index-cache.c: Add include.
2238 * dwarf2/dwz.h: New file.
2239
33aa3c10
TT
22402020-03-25 Tom Tromey <tom@tromey.com>
2241
2242 * compile/compile-object-load.c (get_out_value_type): Mention
2243 correct symbol name in error message.
2244
d503b685
HD
22452020-03-25 Hannes Domani <ssbssa@yahoo.de>
2246
2247 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2248
7b1eff95
TV
22492020-03-25 Tom de Vries <tdevries@suse.de>
2250
2251 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
2252 * symmisc.c (dump_symtab_1): Print user and includes fields.
2253 (maintenance_info_symtabs): Same.
2254
dd895392
AB
22552020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 PR gdb/25534
2258 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
2259 (riscv_regcache_cooked_write): New function.
2260 (riscv_push_dummy_call): Use new function.
2261 (riscv_return_value): Likewise.
2262
5ab2fbf1
SM
22632020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2264
2265 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
2266 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
2267 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
2268 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
2269 * infrun.c (follow_fork): Likewise.
2270 (follow_fork_inferior): Likewise.
2271 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
2272 * linux-nat.h (class linux_nat_target): Likewise.
2273 * remote.c (class remote_target) <follow_fork>: Likewise.
2274 (remote_target::follow_fork): Likewise.
2275 * target-delegates.c: Re-generate.
2276 * target.c (default_follow_fork): Likewise.
2277 (target_follow_fork): Likewise.
2278 * target.h (struct target_ops) <follow_fork>: Likewise.
2279 (target_follow_fork): Likewise.
2280
a64fafb5
TV
22812020-03-24 Tom de Vries <tdevries@suse.de>
2282
2283 * psymtab.c (maintenance_info_psymtabs): Print user field.
2284
fe26d3a3
TT
22852020-03-20 Tom Tromey <tromey@adacore.com>
2286
2287 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
2288 const.
2289 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
2290 const.
2291
c884cc46
SM
22922020-03-20 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * ptrace.m4: Don't check for ptrace declaration.
2295 * config.in: Re-generate.
2296 * configure: Re-generate.
2297 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
2298 not defined.
2299
1ff700c2
KR
23002020-03-20 Kamil Rytarowski <n54@gmx.com>
2301
2302 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
2303 `PTRACE_TYPE_RET'.
2304 * i386-bsd-nat.c (gdb_ptrace): Likewise.
2305 * sparc-nat.c (gdb_ptrace): Likewise.
2306 * x86-bsd-nat.c (gdb_ptrace): Likewise.
2307
f7d4f0b1
TT
23082020-03-20 Tom Tromey <tromey@adacore.com>
2309
2310 * c-exp.y (lex_one_token): Fix assert.
2311
f67210ff
TT
23122020-03-20 Tom Tromey <tromey@adacore.com>
2313
2314 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
2315 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
2316 strncpy call.
2317
1773be9e
TT
23182020-03-20 Tom Tromey <tromey@adacore.com>
2319
2320 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
2321
70304be9
TT
23222020-03-20 Tom Tromey <tromey@adacore.com>
2323
2324 * ada-valprint.c (print_variant_part): Remove parameters; switch
2325 to value-based API.
2326 (print_field_values): Likewise.
2327 (ada_val_print_struct_union): Likewise.
2328 (ada_value_print_1): Update.
2329
9faa006d
KR
23302020-03-20 Kamil Rytarowski <n54@gmx.com>
2331
2332 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
2333 nbsd_nat_target instead of inf_ptrace_target.
2334 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2335 nbsd_nat_target.
2336
4a90f062
KR
23372020-03-20 Kamil Rytarowski <n54@gmx.com>
2338
2339 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
2340 it to the ptrace call.
2341 * (store_registers): Likewise.
2342
23432020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
2344
2345 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
2346 it to the ptrace call.
2347 * (store_registers): Likewise.
2348
2d07da27
LM
23492020-03-19 Luis Machado <luis.machado@linaro.org>
2350
2351 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
2352 valid, fetch vg value from ptrace.
2353
f09db380
KR
23542020-03-19 Kamil Rytarowski <n54@gmx.com>
2355 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
2356 * inf-ptrace.c: Likewise.
2357 * (gdb_ptrace): Add.
2358 * (inf_ptrace_target::resume): Update.
2359 * (inf_ptrace_target::xfer_partial): Likewise.
2360 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
2361 * (inf_ptrace_peek_poke): Update.
2362
fcc7376e
KR
23632020-03-19 Kamil Rytarowski <n54@gmx.com>
2364
2365 * x86-bsd-nat.c (gdb_ptrace): New.
2366 * (x86bsd_dr_set): Add new argument `ptid'.
2367 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
2368 x86bsd_dr_set_addr): Update.
2369
cada5fc9
AB
23702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2371
2372 * remote.c (remote_target::process_stop_reply): Handle events for
2373 all threads differently.
2374
19a2740f
AB
23752020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * completer.c (completion_tracker::remove_completion): Define new
2378 function.
2379 * completer.h (completion_tracker::remove_completion): Declare new
2380 function.
2381 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
2382 when adding a C++ function symbol.
2383
724fd9ba
AB
23842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2385
2386 * completer.c (completion_tracker::completion_hash_entry): Define
2387 new class.
2388 (advance_to_filename_complete_word_point): Call
2389 recompute_lowest_common_denominator.
2390 (completion_tracker::completion_tracker): Call discard_completions
2391 to setup the hash table.
2392 (completion_tracker::discard_completions): Allow for being called
2393 from the constructor, pass new equal function, and element deleter
2394 when constructing the hash table. Initialise new class member
2395 variables.
2396 (completion_tracker::maybe_add_completion): Remove use of
2397 m_entries_vec, and store more information into m_entries_hash.
2398 (completion_tracker::recompute_lcd_visitor): New function, most
2399 content taken from...
2400 (completion_tracker::recompute_lowest_common_denominator):
2401 ...here, this now just visits each item in the hash calling the
2402 above visitor.
2403 (completion_tracker::build_completion_result): Remove use of
2404 m_entries_vec, call recompute_lowest_common_denominator.
2405 * completer.h (completion_tracker::have_completions): Remove use
2406 of m_entries_vec.
2407 (completion_tracker::completion_hash_entry): Declare new class.
2408 (completion_tracker::recompute_lowest_common_denominator): Change
2409 function signature.
2410 (completion_tracker::recompute_lcd_visitor): Declare new function.
2411 (completion_tracker::m_entries_vec): Delete.
2412 (completion_tracker::m_entries_hash): Initialize to NULL.
2413 (completion_tracker::m_lowest_common_denominator_valid): New
2414 member variable.
2415 (completion_tracker::m_lowest_common_denominator_max_length): New
2416 member variable.
2417
5a82b8a1
KR
24182020-03-17 Kamil Rytarowski <n54@gmx.com>
2419
2420 * regformats/regdef.h: Put reg in gdb namespace.
2421
fb516a69
KR
24222020-03-17 Kamil Rytarowski <n54@gmx.com>
2423
2424 * i386-bsd-nat.c (gdb_ptrace): New.
2425 * (i386bsd_fetch_inferior_registers,
2426 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2427 * (i386bsd_fetch_inferior_registers,
2428 i386bsd_store_inferior_registers) Use gdb_ptrace.
2429
1c0aa1fb
KR
24302020-03-17 Kamil Rytarowski <n54@gmx.com>
2431
2432 * amd64-bsd-nat.c (gdb_ptrace): New.
2433 * (amd64bsd_fetch_inferior_registers,
2434 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2435 * (amd64bsd_fetch_inferior_registers,
2436 amd64bsd_store_inferior_registers) Use gdb_ptrace.
2437
5ccd2fb7
KR
24382020-03-17 Kamil Rytarowski <n54@gmx.com>
2439
2440 * user-regs.c (user_reg::read): Rename to...
2441 (user_reg::xread): ...this.
2442 * (append_user_reg): Rename argument `read' to `xread'.
2443 * (user_reg_add_builtin): Likewise.
2444 * (user_reg_add): Likewise.
2445 * (value_of_user_reg): Likewise.
2446
2108a63a
KR
24472020-03-17 Kamil Rytarowski <n54@gmx.com>
2448
2449 * sparc-nat.c (gdb_ptrace): New.
2450 * sparc-nat.c (sparc_fetch_inferior_registers)
2451 (sparc_store_inferior_registers) Remove obsolete comment.
2452 * sparc-nat.c (sparc_fetch_inferior_registers)
2453 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
2454 * sparc-nat.c (sparc_fetch_inferior_registers)
2455 (sparc_store_inferior_registers) Use gdb_ptrace.
2456
a225c9a8
KR
24572020-03-17 Kamil Rytarowski <n54@gmx.com>
2458
2459 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
2460 it to the ptrace call.
2461 * sh-nbsd-nat.c (store_registers): Likewise.
2462
98097623
KR
24632020-03-17 Kamil Rytarowski <n54@gmx.com>
2464
2465 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
2466 nbsd_nat_target instead of inf_ptrace_target.
2467 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2468 nbsd_nat_target.
2469
9e38d619
KR
24702020-03-17 Kamil Rytarowski <n54@gmx.com>
2471
2472 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
2473
a2ecbe9f
KR
24742020-03-17 Kamil Rytarowski <n54@gmx.com>
2475
2476 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
2477 <sys/sysctl.h>.
2478 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
2479
58990295
TV
24802020-03-17 Tom de Vries <tdevries@suse.de>
2481
2482 PR gdb/23710
2483 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
2484 fields.
2485 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
2486 fields.
2487 (process_imported_unit_die): Skip import of c++ CUs.
2488
771dd3a8
TT
24892020-03-16 Tom Tromey <tom@tromey.com>
2490
2491 * p-valprint.c (pascal_object_print_value): Initialize
2492 base_value.
2493
817a7585
AK
24942020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
2495 Shahab Vahedi <shahab@synopsys.com>
2496
2497 * Makefile.in: Add arch/arc.o
2498 * configure.tgt: Likewise.
2499 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
2500 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 2501 (arc_read_description): New function to cache target descriptions.
817a7585
AK
2502 * arc-tdep.h (arc_read_description): Add proto type.
2503 * arch/arc.c: New file.
2504 * arch/arc.h: Likewise.
2505 * features/Makefile: Replace old target descriptions with new.
2506 * features/arc-arcompact.c: Remove.
2507 * features/arc-arcompact.xml: Likewise.
2508 * features/arc-v2.c: Likewise
2509 * features/arc-v2.xml: Likewise
2510 * features/arc/aux-arcompact.xml: New file.
2511 * features/arc/aux-v2.xml: Likewise.
2512 * features/arc/core-arcompact.xml: Likewise.
2513 * features/arc/core-v2.xml: Likewise.
2514 * features/arc/aux-arcompact.c: Generate.
2515 * features/arc/aux-v2.c: Likewise.
2516 * features/arc/core-arcompact.c: Likewise.
2517 * features/arc/core-v2.c: Likewise.
2518 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2519
67430cd0
TT
25202020-03-16 Tom Tromey <tromey@adacore.com>
2521
2522 PR gdb/25663:
2523 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
2524 putting value into bcache.
2525
30efb6c7
SM
25262020-03-16 Simon Marchi <simon.marchi@efficios.com>
2527
2528 PR gdb/21500
2529 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
2530 to...
2531 (amd64_windows_init_abi_common): ... this. Don't set size of
2532 long type.
2533 (amd64_windows_init_abi): New function.
2534 (amd64_cygwin_init_abi): New function.
2535 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
2536 the Cygwin OS ABI.
2537 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
2538 comment.
2539
8db52437
SM
25402020-03-16 Simon Marchi <simon.marchi@efficios.com>
2541
2542 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
2543 * windows-tdep.c (CYGWIN_DLL_NAME): New.
2544 (pe_import_directory_entry): New struct type.
2545 (is_linked_with_cygwin_dll): New function.
2546 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
2547 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
2548 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
2549
5982a56a
SM
25502020-03-16 Simon Marchi <simon.marchi@efficios.com>
2551
2552 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
2553 i386_cygwin_core_osabi_sniffer.
2554
7a1998df
SM
25552020-03-16 Simon Marchi <simon.marchi@efficios.com>
2556
2557 * i386-cygwin-tdep.c: Rename to...
2558 * i386-windows-tdep.c: ... this.
2559 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
2560 i386-windows-tdep.c.
2561 * configure.tgt: Likewise.
2562
053205cc
SM
25632020-03-16 Simon Marchi <simon.marchi@efficios.com>
2564
2565 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
2566 * osabi.c (gdb_osabi_names): Add "Windows".
2567 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
2568 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
2569 (i386_cygwin_core_osabi_sniffer): New function, extracted from
2570 i386_cygwin_osabi_sniffer.
2571 (_initialize_i386_cygwin_tdep): Register OS ABI
2572 GDB_OSABI_WINDOWS for i386.
2573 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
2574 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
2575 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
2576 for x86-64.
2577 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
2578 when the target matches '*-*-mingw*'.
2579
fe4b2ee6
SM
25802020-03-16 Simon Marchi <simon.marchi@efficios.com>
2581
2582 * defs.h (enum gdb_osabi): Move to...
2583 * osabi.h (enum gdb_osabi): ... here.
2584 * gdbarch.sh: Include osabi.h in gdbarch.h.
2585 * gdbarch.h: Re-generate.
2586
cb9b645d
SM
25872020-03-16 Simon Marchi <simon.marchi@efficios.com>
2588
2589 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
2590 function.
2591 (_initialize_amd64_windows_tdep): Register osabi sniffer.
2592
3293bbaf
TT
25932020-03-14 Tom Tromey <tom@tromey.com>
2594
2595 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
2596 for C++.
2597 (c_type_print_modifier): Likewise. Add "language" parameter.
2598 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
2599 (c_type_print_base_1): Update.
2600 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
2601 constants.
2602 * type-stack.c (type_stack::insert): Handle tp_atomic and
2603 tp_restrict.
2604 (type_stack::follow_type_instance_flags): Likewise.
2605 (type_stack::follow_types): Likewise. Merge type-following code.
2606 * c-exp.y (RESTRICT, ATOMIC): New tokens.
2607 (space_identifier, cv_with_space_id)
2608 (const_or_volatile_or_space_identifier_noopt)
2609 (const_or_volatile_or_space_identifier): Remove.
2610 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
2611 rules.
2612 (ptr_operator, typebase): Update.
2613 (enum token_flag) <FLAG_C>: New constant.
2614 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
2615 "_Atomic".
2616 (lex_one_token): Handle FLAG_C.
2617
154151a6
KR
26182020-03-14 Kamil Rytarowski <n54@gmx.com>
2619
2620 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
2621 it to the ptrace call.
2622 * m68k-bsd-nat.c (store_registers): Likewise.
2623
bc107784
KR
26242020-03-14 Kamil Rytarowski <n54@gmx.com>
2625
2626 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
2627 gdb_byte *.
2628 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2629 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
2630 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
2631
01a80117
KR
26322020-03-14 Kamil Rytarowski <n54@gmx.com>
2633
2634 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
2635 nbsd_nat_target instead of inf_ptrace_target.
2636 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2637 nbsd_nat_target.
2638
f90280ca
KR
26392020-03-14 Kamil Rytarowski <n54@gmx.com>
2640
2641 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
2642 register_t.
2643
6def66f1
KR
26442020-03-14 Kamil Rytarowski <n54@gmx.com>
2645
2646 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
2647 it to the ptrace call.
2648 * alpha-bsd-nat.c (store_registers): Likewise.
2649
66eaca97
KR
26502020-03-14 Kamil Rytarowski <n54@gmx.com>
2651
2652 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
2653 includes.
2654 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
2655 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2656 fill_fpregset): Likewise.
2657
4fed520b
KR
26582020-03-14 Kamil Rytarowski <n54@gmx.com>
2659
2660 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
2661 nbsd_nat_target instead of inf_ptrace_target.
2662 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2663 nbsd_nat_target.
2664
2190cf06
KR
26652020-03-14 Kamil Rytarowski <n54@gmx.com>
2666
2667 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
2668 register_t.
2669
75c56d3d
KR
26702020-03-14 Kamil Rytarowski <n54@gmx.com>
2671
2672 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
2673 it to the ptrace call.
2674 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
2675 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
2676 * arm-nbsd-nat.c (store_register): Likewise.
2677 * arm-nbsd-nat.c (store_regs): Likewise.
2678 * arm-nbsd-nat.c (store_fp_register): Likewise.
2679 * arm-nbsd-nat.c (store_fp_regs): Likewise.
2680
6018d381
KR
26812020-03-14 Kamil Rytarowski <n54@gmx.com>
2682
2683 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
2684 nbsd_nat_target instead of inf_ptrace_target.
2685 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2686 nbsd_nat_target.
2687
013f99f0
KR
26882020-03-14 Kamil Rytarowski <n54@gmx.com>
2689
2690 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
2691 it to the ptrace call.
2692 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
2693
12753073
KR
26942020-03-14 Kamil Rytarowski <n54@gmx.com>
2695
6227b330
KR
2696 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
2697 it to the ptrace call.
2698 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
2699
27002020-03-14 Kamil Rytarowski <n54@gmx.com>
2701
2702 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
2703 gdb_byte *.
12753073
KR
2704 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2705
d5be5fa4
KR
27062020-03-14 Kamil Rytarowski <n54@gmx.com>
2707
2708 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
2709 instead of inf_ptrace_target.
2710 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2711 nbsd_nat_target.
2712
8110f842
KR
27132020-03-14 Kamil Rytarowski <n54@gmx.com>
2714
2715 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2716 register_t.
2717
52feded7
KR
27182020-03-14 Kamil Rytarowski <n54@gmx.com>
2719
2720 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2721 register_t.
2722
25567eee
KR
27232020-03-14 Kamil Rytarowski <n54@gmx.com>
2724
2725 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
2726 register_t.
2727
426a9c18
TT
27282020-03-13 Tom Tromey <tom@tromey.com>
2729
2730 * value.h (val_print): Don't declare.
2731 * valprint.h (val_print_array_elements)
2732 (val_print_scalar_formatted, generic_val_print): Don't declare.
2733 * valprint.c (generic_val_print_array): Take a struct value.
2734 (generic_val_print_ptr, generic_val_print_memberptr)
2735 (generic_val_print_bool, generic_val_print_int)
2736 (generic_val_print_char, generic_val_print_complex)
2737 (generic_val_print): Remove.
2738 (generic_value_print): Update.
2739 (do_val_print): Remove unused parameters. Don't call
2740 la_val_print.
2741 (val_print): Remove.
2742 (common_val_print): Update. Don't call value_check_printable.
2743 (val_print_scalar_formatted, val_print_array_elements): Remove.
2744 * rust-lang.c (rust_val_print): Remove.
2745 (rust_language_defn): Update.
2746 * p-valprint.c (pascal_val_print): Remove.
2747 (pascal_value_print_inner): Update.
2748 (pascal_object_print_val_fields, pascal_object_print_val):
2749 Remove.
2750 (pascal_object_print_static_field): Update.
2751 * p-lang.h (pascal_val_print): Don't declare.
2752 * p-lang.c (pascal_language_defn): Update.
2753 * opencl-lang.c (opencl_language_defn): Update.
2754 * objc-lang.c (objc_language_defn): Update.
2755 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
2756 * m2-lang.h (m2_val_print): Don't declare.
2757 * m2-lang.c (m2_language_defn): Update.
2758 * language.h (struct language_defn) <la_val_print>: Remove.
2759 * language.c (unk_lang_value_print_inner): Rename. Change
2760 argument types.
2761 (unknown_language_defn, auto_language_defn): Update.
2762 * go-valprint.c (go_val_print): Remove.
2763 * go-lang.h (go_val_print): Don't declare.
2764 * go-lang.c (go_language_defn): Update.
2765 * f-valprint.c (f_val_print): Remove.
2766 * f-lang.h (f_value_print): Don't declare.
2767 * f-lang.c (f_language_defn): Update.
2768 * d-valprint.c (d_val_print): Remove.
2769 * d-lang.h (d_value_print): Don't declare.
2770 * d-lang.c (d_language_defn): Update.
2771 * cp-valprint.c (cp_print_value_fields)
2772 (cp_print_value_fields_rtti, cp_print_value): Remove.
2773 (cp_print_static_field): Update.
2774 * c-valprint.c (c_val_print_array, c_val_print_ptr)
2775 (c_val_print_struct, c_val_print_union, c_val_print_int)
2776 (c_val_print_memberptr, c_val_print): Remove.
2777 * c-lang.h (c_val_print_array, cp_print_value_fields)
2778 (cp_print_value_fields_rtti): Don't declare.
2779 * c-lang.c (c_language_defn, cplus_language_defn)
2780 (asm_language_defn, minimal_language_defn): Update.
2781 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
2782 (ada_val_print_enum): Take a struct value.
2783 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
2784 (ada_val_print): Remove.
2785 (ada_value_print_1): Update.
2786 (printable_val_type): Remove.
2787 * ada-lang.h (ada_val_print): Don't declare.
2788 * ada-lang.c (ada_language_defn): Update.
2789
42331a1e
TT
27902020-03-13 Tom Tromey <tom@tromey.com>
2791
2792 * valprint.c (do_val_print): Update.
2793 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
2794 a struct value.
2795 (value_to_value_object_no_release): Declare.
2796 * python/py-value.c (value_to_value_object_no_release): New
2797 function.
2798 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
2799 struct value.
2800 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
2801 function.
2802 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
2803 a struct value.
2804 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
2805 Declare.
2806 (gdbscm_apply_val_pretty_printer): Take a struct value.
2807 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
2808 value.
2809 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
2810 value.
2811 * extension-priv.h (struct extension_language_ops)
2812 <apply_val_pretty_printer>: Take a struct value.
2813 * cp-valprint.c (cp_print_value): Create a struct value.
2814 (cp_print_value): Update.
2815
3a916a97
TT
28162020-03-13 Tom Tromey <tom@tromey.com>
2817
2818 * ada-valprint.c (print_field_values): Call common_val_print.
2819
b59eac37
TT
28202020-03-13 Tom Tromey <tom@tromey.com>
2821
2822 * ada-valprint.c (val_print_packed_array_elements): Remove
2823 bitoffset and val parameters. Call common_val_print.
2824 (ada_val_print_string): Remove offset, address, and original_value
2825 parameters.
2826 (ada_val_print_array): Update.
2827 (ada_value_print_array): New function.
2828 (ada_value_print_1): Call it.
2829
03371129
TT
28302020-03-13 Tom Tromey <tom@tromey.com>
2831
2832 * ada-valprint.c (ada_value_print): Use common_val_print.
2833
2e088f8b
TT
28342020-03-13 Tom Tromey <tom@tromey.com>
2835
2836 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
2837
39ef85a8
TT
28382020-03-13 Tom Tromey <tom@tromey.com>
2839
2840 * ada-valprint.c (ada_value_print_num): New function.
2841 (ada_value_print_1): Use it.
2842
b9fa6e07
TT
28432020-03-13 Tom Tromey <tom@tromey.com>
2844
2845 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
2846
416595d6
TT
28472020-03-13 Tom Tromey <tom@tromey.com>
2848
2849 * ada-valprint.c (ada_value_print_ptr): New function.
2850 (ada_value_print_1): Use it.
2851
5b5e15ec
TT
28522020-03-13 Tom Tromey <tom@tromey.com>
2853
2854 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
2855 call common_val_print.
2856 (ada_val_print_1): Update.
2857 (ada_value_print_1): New function.
2858 (ada_value_print_inner): Rewrite.
2859
fbf54e75
TT
28602020-03-13 Tom Tromey <tom@tromey.com>
2861
2862 * cp-valprint.c (cp_print_value_fields): Update.
2863 (cp_print_value): New function.
2864
64b653ca
TT
28652020-03-13 Tom Tromey <tom@tromey.com>
2866
2867 * m2-valprint.c (m2_value_print_inner): Use
2868 cp_print_value_fields.
2869 * cp-valprint.c (cp_print_value_fields): New function.
2870 * c-valprint.c (c_value_print_struct): New function.
2871 (c_value_print_inner): Use c_value_print_struct.
2872 * c-lang.h (cp_print_value_fields): Declare.
2873
6999f067
TT
28742020-03-13 Tom Tromey <tom@tromey.com>
2875
2876 * c-valprint.c (c_value_print_array): New function.
2877 (c_value_print_inner): Use it.
2878
ce80b8bd
TT
28792020-03-13 Tom Tromey <tom@tromey.com>
2880
2881 * c-valprint.c (c_value_print_memberptr): New function.
2882 (c_value_print_inner): Use it.
2883
2faac269
TT
28842020-03-13 Tom Tromey <tom@tromey.com>
2885
2886 * c-valprint.c (c_value_print_int): New function.
2887 (c_value_print_inner): Use it.
2888
da3e2c29
TT
28892020-03-13 Tom Tromey <tom@tromey.com>
2890
2891 * c-valprint.c (c_value_print_ptr): New function.
2892 (c_value_print_inner): Use it.
2893
50836231
TT
28942020-03-13 Tom Tromey <tom@tromey.com>
2895
2896 * c-valprint.c (c_value_print_inner): Rewrite.
2897
4f412b6e
TT
28982020-03-13 Tom Tromey <tom@tromey.com>
2899
2900 * valprint.c (generic_value_print_complex): New function.
2901 (generic_value_print): Use it.
2902
f5354008
TT
29032020-03-13 Tom Tromey <tom@tromey.com>
2904
2905 * valprint.c (generic_val_print_float): Don't call
2906 val_print_scalar_formatted.
2907 (generic_val_print, generic_value_print): Update.
2908
3eec3b05
TT
29092020-03-13 Tom Tromey <tom@tromey.com>
2910
2911 * valprint.c (generic_value_print_char): New function
2912 (generic_value_print): Use it.
2913
fdddfccb
TT
29142020-03-13 Tom Tromey <tom@tromey.com>
2915
2916 * valprint.c (generic_value_print_int): New function.
2917 (generic_value_print): Use it.
2918
6dde7521
TT
29192020-03-13 Tom Tromey <tom@tromey.com>
2920
2921 * valprint.c (generic_value_print_bool): New function.
2922 (generic_value_print): Use it.
2923
4112d2e6
TT
29242020-03-13 Tom Tromey <tom@tromey.com>
2925
2926 * valprint.c (generic_val_print_func): Simplify.
2927 (generic_val_print, generic_value_print): Update.
2928
65786af6
TT
29292020-03-13 Tom Tromey <tom@tromey.com>
2930
2931 * valprint.c (generic_val_print_flags): Remove.
2932 (generic_val_print, generic_value_print): Update.
2933 (val_print_type_code_flags): Add original_value parameter.
2934
40f3ce18
TT
29352020-03-13 Tom Tromey <tom@tromey.com>
2936
2937 * valprint.c (generic_val_print): Update.
2938 (generic_value_print): Update.
2939 * valprint.c (generic_val_print_enum): Don't call
2940 val_print_scalar_formatted.
2941
2a5b130b
TT
29422020-03-13 Tom Tromey <tom@tromey.com>
2943
2944 * valprint.c (generic_value_print): Call generic_value_print_ptr.
2945 * valprint.c (generic_value_print_ptr): New function.
2946
abc66ce9
TT
29472020-03-13 Tom Tromey <tom@tromey.com>
2948
2949 * valprint.c (generic_value_print): Rewrite.
2950
07a32858
TT
29512020-03-13 Tom Tromey <tom@tromey.com>
2952
2953 * p-valprint.c (pascal_object_print_value_fields)
2954 (pascal_object_print_value): New functions.
2955
64d64d3a
TT
29562020-03-13 Tom Tromey <tom@tromey.com>
2957
2958 * p-valprint.c (pascal_value_print_inner): Rewrite.
2959
6a95a1f5
TT
29602020-03-13 Tom Tromey <tom@tromey.com>
2961
2962 * f-valprint.c (f_value_print_innner): Rewrite.
2963
59fcdac6
TT
29642020-03-13 Tom Tromey <tom@tromey.com>
2965
2966 * m2-valprint.c (m2_print_unbounded_array): New overload.
2967 (m2_print_unbounded_array): Update.
2968 (m2_print_array_contents): Take a struct value.
2969 (m2_value_print_inner): Rewrite.
2970
d133c3e1
TT
29712020-03-13 Tom Tromey <tom@tromey.com>
2972
2973 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
2974 (d_value_print_inner): New function.
2975 * d-lang.h (d_value_print_inner): Declare.
2976 * d-lang.c (d_language_defn): Use d_value_print_inner.
2977
23b0f06b
TT
29782020-03-13 Tom Tromey <tom@tromey.com>
2979
2980 * go-valprint.c (go_value_print_inner): New function.
2981 * go-lang.h (go_value_print_inner): Declare.
2982 * go-lang.c (go_language_defn): Use go_value_print_inner.
2983
5f56f7cb
TT
29842020-03-13 Tom Tromey <tom@tromey.com>
2985
2986 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
2987 API.
2988 (rust_val_print): Rewrite.
2989 (rust_value_print_inner): New function, from rust_val_print.
2990 (rust_language_defn): Use rust_value_print_inner.
2991
26792ee0
TT
29922020-03-13 Tom Tromey <tom@tromey.com>
2993
2994 * ada-valprint.c (ada_value_print_inner): New function.
2995 * ada-lang.h (ada_value_print_inner): Declare.
2996 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
2997
24051bbe
TT
29982020-03-13 Tom Tromey <tom@tromey.com>
2999
3000 * f-valprint.c (f_value_print_innner): New function.
3001 * f-lang.h (f_value_print_innner): Declare.
3002 * f-lang.c (f_language_defn): Use f_value_print_innner.
3003
c0941be6
TT
30042020-03-13 Tom Tromey <tom@tromey.com>
3005
3006 * p-valprint.c (pascal_value_print_inner): New function.
3007 * p-lang.h (pascal_value_print_inner): Declare.
3008 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
3009
62c4663d
TT
30102020-03-13 Tom Tromey <tom@tromey.com>
3011
3012 * m2-valprint.c (m2_value_print_inner): New function.
3013 * m2-lang.h (m2_value_print_inner): Declare.
3014 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
3015
62182190
TT
30162020-03-13 Tom Tromey <tom@tromey.com>
3017
3018 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
3019 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
3020 * c-valprint.c (c_value_print_inner): New function.
3021 * c-lang.h (c_value_print_inner): Declare.
3022 * c-lang.c (c_language_defn, cplus_language_defn)
3023 (asm_language_defn, minimal_language_defn): Use
3024 c_value_print_inner.
3025
1e592a8a
TT
30262020-03-13 Tom Tromey <tom@tromey.com>
3027
3028 * p-valprint.c (pascal_object_print_value_fields): Now static.
3029 * p-lang.h (pascal_object_print_value_fields): Don't declare.
3030
7fe471e9
TT
30312020-03-13 Tom Tromey <tom@tromey.com>
3032
3033 * c-valprint.c (c_val_print_array): Simplify.
3034
d121c6ce
TT
30352020-03-13 Tom Tromey <tom@tromey.com>
3036
3037 * valprint.c (value_print_array_elements): New function.
3038 * valprint.h (value_print_array_elements): Declare.
3039
4dba70ee
TT
30402020-03-13 Tom Tromey <tom@tromey.com>
3041
3042 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
3043 * mips-tdep.c (mips_print_register): Use
3044 value_print_scalar_formatted.
3045
4f9ae810
TT
30462020-03-13 Tom Tromey <tom@tromey.com>
3047
3048 * valprint.h (value_print_scalar_formatted): Declare.
3049 * valprint.c (value_print_scalar_formatted): New function.
3050
156bfec9
TT
30512020-03-13 Tom Tromey <tom@tromey.com>
3052
3053 * valprint.h (generic_value_print): Declare.
3054 * valprint.c (generic_value_print): New function.
3055
2b4e573d
TT
30562020-03-13 Tom Tromey <tom@tromey.com>
3057
3058 * valprint.c (do_val_print): Call la_value_print_inner, if
3059 available.
3060 * rust-lang.c (rust_language_defn): Update.
3061 * p-lang.c (pascal_language_defn): Update.
3062 * opencl-lang.c (opencl_language_defn): Update.
3063 * objc-lang.c (objc_language_defn): Update.
3064 * m2-lang.c (m2_language_defn): Update.
3065 * language.h (struct language_defn) <la_value_print_inner>: New
3066 member.
3067 * language.c (unknown_language_defn, auto_language_defn): Update.
3068 * go-lang.c (go_language_defn): Update.
3069 * f-lang.c (f_language_defn): Update.
3070 * d-lang.c (d_language_defn): Update.
3071 * c-lang.c (c_language_defn, cplus_language_defn)
3072 (asm_language_defn, minimal_language_defn): Update.
3073 * ada-lang.c (ada_language_defn): Update.
3074
a1f6a07c
TT
30752020-03-13 Tom Tromey <tom@tromey.com>
3076
3077 * c-valprint.c (c_value_print): Use common_val_print.
3078
410cf315
TT
30792020-03-13 Tom Tromey <tom@tromey.com>
3080
3081 * cp-valprint.c (cp_print_static_field): Use common_val_print.
3082
72a45c93
TT
30832020-03-13 Tom Tromey <tom@tromey.com>
3084
3085 * f-valprint.c (f77_print_array_1, f_val_print): Use
3086 common_val_print.
3087
040f66bd
TT
30882020-03-13 Tom Tromey <tom@tromey.com>
3089
3090 * riscv-tdep.c (riscv_print_one_register_info): Use
3091 common_val_print.
3092
a6e05a6c
TT
30932020-03-13 Tom Tromey <tom@tromey.com>
3094
3095 * mi/mi-main.c (output_register): Use common_val_print.
3096
3444c526
TT
30972020-03-13 Tom Tromey <tom@tromey.com>
3098
3099 * infcmd.c (default_print_one_register_info): Use
3100 common_val_print.
3101
c2a44efe
TT
31022020-03-13 Tom Tromey <tom@tromey.com>
3103
3104 * valprint.h (common_val_print_checked): Declare.
3105 * valprint.c (common_val_print_checked): New function.
3106 * stack.c (print_frame_arg): Use common_val_print_checked.
3107
b0c26e99
TT
31082020-03-13 Tom Tromey <tom@tromey.com>
3109
3110 * valprint.c (do_val_print): New function, from val_print.
3111 (val_print): Use do_val_print.
3112 (common_val_print): Use do_val_print.
3113
ce3acbe9
TT
31142020-03-13 Tom Tromey <tom@tromey.com>
3115
3116 * valprint.c (value_print): Use scoped_value_mark.
3117
96c7f873
TV
31182020-03-13 Tom de Vries <tdevries@suse.de>
3119
3120 PR symtab/25646
3121 * psymtab.c (partial_symtab::partial_symtab): Don't set
3122 globals_offset and statics_offset. Push element onto
3123 current_global_psymbols and current_static_psymbols stacks.
3124 (concat): New function.
3125 (end_psymtab_common): Set globals_offset and statics_offset. Pop
3126 element from current_global_psymbols and current_static_psymbols
3127 stacks. Concat popped elements to global_psymbols and
3128 static_symbols.
3129 (add_psymbol_to_list): Use current_global_psymbols and
3130 current_static_psymbols stacks.
3131 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
3132 current_static_psymbols fields.
3133
6ba0a321
CB
31342020-03-12 Christian Biesinger <cbiesinger@google.com>
3135
3136 * corelow.c (sniff_core_bfd): Remove.
3137 (class core_target) <m_core_vec>: Remove.
3138 (core_target::core_target): Update.
3139 (core_file_fns): Remove.
3140 (deprecated_add_core_fns): Remove.
3141 (default_core_sniffer): Remove.
3142 (sniff_core_bfd): Remove.
3143 (default_check_format): Remove.
3144 (gdb_check_format): Remove.
3145 (core_target_open): Update.
3146 (core_target::get_core_register_section): Update.
3147 (get_core_registers_cb): Update.
3148 (core_target::fetch_registers): Update.
3149 * gdbcore.h (struct core_fns): Remove.
3150 (deprecated_add_core_fns): Remove.
3151 (default_core_sniffer): Remove.
3152 (default_check_format): Remove.
3153
227031b2
TT
31542020-03-12 Tom Tromey <tom@tromey.com>
3155
3156 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
3157 CORE_ADDR.
3158 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
3159
53807e9f
TT
31602020-03-12 Tom Tromey <tom@tromey.com>
3161
3162 * remote.c (remote_target::download_tracepoint)
3163 (remote_target::enable_tracepoint)
3164 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
3165 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
3166 sprintf_vma.
3167
64f25102
TT
31682020-03-12 Tom Tromey <tom@tromey.com>
3169
3170 * symfile-mem.c: Update CORE_ADDR size assert.
3171
272cd5a3
SM
31722020-03-12 Simon Marchi <simon.marchi@efficios.com>
3173
3174 * selftest.m4: Move to gdbsupport/.
3175 * acinclude.m4: Update path to selftest.m4.
3176
74cd3f9d
SM
31772020-03-12 Simon Marchi <simon.marchi@efficios.com>
3178
3179 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
3180 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
3181 gdbarch-selfselftests.c and selftest-arch.c.
3182 (SUBDIR_UNITTESTS_OBS): Rename to...
3183 (SELFTESTS_OBS): ... this.
3184 (COMMON_SFILES): Remove disasm-selftests.c and
3185 gdbarch-selftests.c.
3186 * configure.ac: Don't add selftest-arch.{c,o} to
3187 CONFIG_{SRCS,OBS}.
3188 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
3189 preprocessor conditions.
3190
db6878ac
SM
31912020-03-12 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * configure.ac: Don't source bfd/development.sh.
3194 * selftest.m4: Modify comment.
3195 * configure: Re-generate.
3196
4d696a5c
SM
31972020-03-12 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
3200 not "true" or "false".
3201 * configure: Re-generate.
3202
8dd8e1c7
CB
32032020-03-12 Christian Biesinger <cbiesinger@google.com>
3204
3205 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
3206 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
3207 renamed to arm_nbsd_supply_gregset.
3208 (fetch_register): Update to call arm_nbsd_supply_gregset.
3209 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
3210 (arm_netbsd_nat_target::fetch_registers): Update.
3211 (fetch_elfcore_registers): Removed.
3212 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
3213 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
3214 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
3215 not require NetBSD system headers.
3216 (arm_nbsd_regset): New struct.
3217 (arm_nbsd_iterate_over_regset_sections): New function.
3218 (arm_netbsd_init_abi_common): Updated to call
3219 set_gdbarch_iterate_over_regset_sections.
3220 * arm-nbsd-tdep.h: New file.
3221
dd69bf7a
KB
32222020-03-11 Kevin Buettner <kevinb@redhat.com>
3223
3224 * symtab.c (find_pc_sect_line): Add check which prevents infinite
3225 recursion.
3226
a0761e34
SM
32272020-03-11 Simon Marchi <simon.marchi@efficios.com>
3228
3229 * configure: Re-generate.
3230
e7a82140
TT
32312020-03-11 Tom Tromey <tromey@adacore.com>
3232
3233 * ada-typeprint.c (print_choices): Fix comment.
3234
dcc050c8
AB
32352020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
3236
3237 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
3238 previous item in the list, when the list has no items.
3239
1c33af77
TV
32402020-03-11 Tom de Vries <tdevries@suse.de>
3241
3242 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
3243 PROP_LOCLIST handling code.
3244
8c95582d
AB
32452020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
3246
3247 * buildsym-legacy.c (record_line): Pass extra parameter to
3248 record_line.
3249 * buildsym.c (buildsym_compunit::record_line): Take an extra
3250 parameter, reduce duplication in the line table, and record the
3251 is_stmt flag in the line table.
3252 * buildsym.h (buildsym_compunit::record_line): Add extra
3253 parameter.
3254 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
3255 non-statement lines.
3256 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
3257 this to the symtab builder.
3258 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
3259 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
3260 through to dwarf_record_line_1.
3261 * infrun.c (process_event_stop_test): When stepping, don't stop at
3262 a non-statement instruction, and only refresh the step info when
3263 we land in the middle of a line's range. Also add an extra
3264 comment.
3265 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
3266 field.
3267 * record-btrace.c (btrace_find_line_range): Only record lines
3268 marked as is-statement.
3269 * stack.c (frame_show_address): Show the frame address if we are
3270 in a non-statement sal.
3271 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
3272 (maintenance_print_one_line_table): Print a header for the is_stmt
3273 column, and include is_stmt information in the output.
3274 * symtab.c (find_pc_sect_line): Find lines marked as statements in
3275 preference to non-statements.
3276 (find_pcs_for_symtab_line): Prefer is-statement entries.
3277 (find_line_common): Likewise.
3278 * symtab.h (struct linetable_entry): Add is_stmt field.
3279 (struct symtab_and_line): Likewise.
3280 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
3281 arranging the line table.
3282
e4003a34
TV
32832020-03-07 Tom de Vries <tdevries@suse.de>
3284
3285 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
3286 DIE.
3287
e8932576
TT
32882020-03-07 Tom Tromey <tom@tromey.com>
3289
3290 * valops.c (value_literal_complex): Remove obsolete comment.
3291 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
3292 comment.
3293
29734269
SM
32942020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3295
3296 * infrun.h: Forward-declare thread_info.
3297 (set_step_info): Add thread_info parameter, add doc.
3298 * infrun.c (set_step_info): Add thread_info parameter, move doc
3299 to header.
3300 * infrun.c (process_event_stop_test): Pass thread to
3301 set_step_info call.
3302 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
3303 set_step_info.
3304 (prepare_one_step): Add thread_info parameter, pass it to
3305 set_step_frame and prepare_one_step (recursive) call.
3306 (step_1): Pass thread to prepare_one_step call.
3307 (step_command_fsm::should_stop): Pass thread to
3308 prepare_one_step.
3309 (until_next_fsm): Pass thread to set_step_frame call.
3310 (finish_command): Pass thread to set_step_info call.
3311
b7d64b29
HD
33122020-03-06 Hannes Domani <ssbssa@yahoo.de>
3313
3314 * windows-tdep.c (windows_solib_create_inferior_hook):
3315 Check if inferior is running.
3316
09f2921c
TV
33172020-03-06 Tom de Vries <tdevries@suse.de>
3318
3319 * NEWS: Fix "the the".
3320 * ctfread.c: Same.
3321
fd760e79
TV
33222020-03-06 Tom de Vries <tdevries@suse.de>
3323
3324 * psymtab.c (psymtab_to_symtab): Don't print "done.".
3325
20ea4a60
AB
33262020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * .dir-locals.el: Add a comment referencing the other copies of
3329 this file.
3330
0afbabf0
JB
33312020-03-05 John Baldwin <jhb@FreeBSD.org>
3332
3333 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
3334 psargs.
3335
842806cb
TBA
33362020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3337
3338 * .gitattributes: New file.
3339
be1e3d3e
TT
33402020-03-04 Tom Tromey <tom@tromey.com>
3341
3342 * symmisc.c (print_symbol_bcache_statistics)
3343 (print_objfile_statistics): Update.
3344 * symfile.c (allocate_symtab): Use intern.
3345 * psymtab.c (partial_symtab::partial_symtab): Use intern.
3346 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3347 macro_cache>: Remove.
3348 <string_cache>: New member.
3349 (struct objfile) <intern>: New methods.
3350 * elfread.c (elf_symtab_read): Use intern.
3351 * dwarf2/read.c (fixup_go_packaging): Intern package name.
3352 (dwarf2_compute_name, dwarf2_physname)
3353 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
3354 names.
3355 (guess_partial_die_structure_name): Update.
3356 (partial_die_info::fixup): Intern name.
3357 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
3358 name.
3359 (dwarf2_name): Intern name. Update.
3360 * buildsym.c (buildsym_compunit::get_macro_table): Use
3361 string_cache.
3362
4e7625fd
TT
33632020-03-04 Tom Tromey <tom@tromey.com>
3364
3365 * jit.c (bfd_open_from_target_memory): Make "target" const.
3366 * corefile.c (gnutarget): Now const.
3367 * gdbcore.h (gnutarget): Now const.
3368
46f9f931
HD
33692020-03-04 Hannes Domani <ssbssa@yahoo.de>
3370
3371 * NEWS: Mention support for WOW64 processes.
3372 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
3373 (amd64_windows_segment_register_p): Remove static.
3374 (_initialize_amd64_windows_nat): Update.
3375 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
3376 * i386-windows-nat.c (context_offset): Update.
3377 (i386_mappings): Rename and remove static.
3378 (i386_windows_segment_register_p): Remove static.
3379 (_initialize_i386_windows_nat): Update.
3380 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
3381 (STATUS_WX86_SINGLE_STEP): New macro.
3382 (EnumProcessModulesEx): New macro.
3383 (Wow64SuspendThread): New macro.
3384 (Wow64GetThreadContext): New macro.
3385 (Wow64SetThreadContext): New macro.
3386 (Wow64GetThreadSelectorEntry): New macro.
3387 (windows_set_context_register_offsets): Add static.
3388 (windows_set_segment_register_p): Likewise.
3389 (windows_add_thread): Adapt for WOW64 processes.
3390 (windows_fetch_one_register): Likewise.
3391 (windows_nat_target::fetch_registers): Likewise.
3392 (windows_store_one_register): Likewise.
3393 (display_selector): Likewise.
3394 (display_selectors): Likewise.
3395 (handle_exception): Likewise.
3396 (windows_continue): Likewise.
3397 (windows_nat_target::resume): Likewise.
3398 (windows_add_all_dlls): Likewise.
3399 (do_initial_windows_stuff): Likewise.
3400 (windows_nat_target::attach): Likewise.
3401 (windows_get_exec_module_filename): Likewise.
3402 (windows_nat_target::create_inferior): Likewise.
3403 (windows_xfer_siginfo): Likewise.
3404 (_initialize_loadable): Initialize Wow64SuspendThread,
3405 Wow64GetThreadContext, Wow64SetThreadContext,
3406 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
3407 * windows-nat.h (windows_set_context_register_offsets):
3408 Remove declaration.
3409 (windows_set_segment_register_p): Likewise.
3410 (i386_windows_segment_register_p): Add declaration.
3411 (amd64_windows_segment_register_p): Likewise.
3412
440cf44e
LM
34132020-03-04 Luis Machado <luis.machado@linaro.org>
3414
3415 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
3416 in "info registers" for AArch64/ARM.
3417
3418 The change caused "info registers" to not print GPR's.
3419
3420 gdb/ChangeLog:
3421
3422 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
3423
3424 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3425 when reg->group is empty and reggroup is not.
3426
1009d92f
TT
34272020-03-03 Tom Tromey <tromey@adacore.com>
3428
3429 * dwarf2/frame.c (struct dwarf2_frame_cache)
3430 <checked_tailcall_bottom, entry_cfa_sp_offset,
3431 entry_cfa_sp_offset_p>: Remove members.
3432 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
3433 (dwarf2_frame_prev_register): Don't call
3434 dwarf2_tailcall_sniffer_first.
3435 (dwarf2_append_unwinders): Don't append tailcall unwinder.
3436 * frame-unwind.c (add_unwinder): New fuction.
3437 (frame_unwind_init): Use it. Add tailcall unwinder.
3438
5e5d66b6
AB
34392020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
3440 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3441
3442 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
3443 value should be printed as true.
3444
584cf46d
HD
34452020-03-03 Hannes Domani <ssbssa@yahoo.de>
3446
3447 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
3448 (windows_init_abi): Set and use windows_so_ops.
3449
7b973adc
SDJ
34502020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
3451
3452 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
3453 when verifying if dealing with a convenience variable.
3454
bb7b70ab
LM
34552020-03-03 Luis Machado <luis.machado@linaro.org>
3456
3457 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
3458
9822cb57
SM
34592020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3460
3461 * infrun.c (gdbarch_supports_displaced_stepping): New.
3462 (use_displaced_stepping): Break up conditions in smaller pieces.
3463 Use gdbarch_supports_displaced_stepping.
3464 (displaced_step_prepare_throw): Use
3465 gdbarch_supports_displaced_stepping.
3466
63e163f2
AB
34672020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3468
3469 * NEWS: Mention new behaviour of the history filename.
3470 * top.c (write_history_p): Add comment.
3471 (show_write_history_p): Add header comment, give a different
3472 message when history writing is on, but the history filename is
3473 empty.
3474 (history_filename): Add comment.
3475 (history_filename_empty): New function.
3476 (show_history_filename): Add header comment, give a different
3477 message when the filename is empty.
3478 (init_history): Compare history_filename against nullptr, and only
3479 read history if the filename is not empty.
3480 (set_history_filename): Add header comment, and only make
3481 non-empty filenames absolute.
3482 (init_main): Make the filename argument to 'set history filename'
3483 optional.
3484
81b86b97
CB
34852020-03-02 Christian Biesinger <cbiesinger@google.com>
3486
3487 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
3488 (arm_supply_vfpregset): ...this, and update to use VFP registers.
3489 (fetch_fp_register): Update.
3490 (fetch_fp_regs): Update.
3491 (store_fp_register): Update.
3492 (store_fp_regs): Update.
3493 (arm_netbsd_nat_target::read_description): New function.
3494 (fetch_elfcore_registers): Update.
3495
24ed6739
AB
34962020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
3499 general_thread if the stop reply is missing a thread-id.
3500 (remote_target::process_stop_reply): Use the first non-exited
3501 thread if the target didn't pass a thread-id.
3502 * infrun.c (do_target_wait): Move call to
3503 switch_to_inferior_no_thread to ....
3504 (do_target_wait_1): ... here.
3505
a84bb2a0
JT
35062020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
3507
3508 * debuginfod-support.c: Include defs.h first.
3509
658dadf0
TV
35102020-02-28 Tom de Vries <tdevries@suse.de>
3511
3512 * symfile.c (set_initial_language): Use default language for lookup.
3513
4ebe4877
SM
35142020-02-28 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
3517 reader variable, pass `this` to read_cutu_die_from_dwo.
3518
e5da1139
AM
35192020-02-27 Aaron Merey <amerey@redhat.com>
3520
3521 * source.c (open_source_file): Check for nullptr when computing
3522 srcpath.
3523
317f7127
TT
35242020-02-27 Tom Tromey <tromey@adacore.com>
3525
3526 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
3527 member.
3528 (dwarf2_add_field): Don't update nfields.
3529 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
3530
3104d9ee
AB
35312020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
3534 abs.
3535
b83470bf
TT
35362020-02-26 Tom Tromey <tom@tromey.com>
3537
3538 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
3539 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
3540 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
3541 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
3542 per_cu_data.
3543
edfe0a0c
TT
35442020-02-26 Tom Tromey <tom@tromey.com>
3545
3546 * dwarf2/index-write.c (psym_index_map): Change type.
3547 (add_address_entry_worker, write_one_signatured_type)
3548 (recursively_count_psymbols, recursively_write_psymbols)
3549 (class debug_names, psyms_seen_size, write_gdbindex)
3550 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
3551
0d79cdc4
AM
35522020-02-26 Aaron Merey <amerey@redhat.com>
3553
3554 * Makefile.in: Handle optional debuginfod support.
3555 * NEWS: Update.
3556 * README: Add --with-debuginfod summary.
3557 * config.in: Regenerate.
3558 * configure: Regenerate.
3559 * configure.ac: Handle optional debuginfod support.
3560 * debuginfod-support.c: debuginfod helper functions.
3561 * debuginfod-support.h: Ditto.
3562 * doc/gdb.texinfo: Add --with-debuginfod to configure options
3563 summary.
3564 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
3565 when a dwz file cannot be found.
3566 * elfread.c (elf_symfile_read): Query debuginfod servers when a
3567 debuginfo file cannot be found.
3568 * source.c (open_source_file): Query debuginfod servers when a
3569 source file cannot be found.
3570 * top.c (print_gdb_configuration): Include
3571 --{with,without}-debuginfod in the output.
3572
b65ce565
JG
35732020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3574
3575 * thread.c (thr_try_catch_cmd): Print thread name.
3576
d4c9a4f8
SM
35772020-02-26 Simon Marchi <simon.marchi@efficios.com>
3578
3579 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
3580 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3581 dwarf2_fetch_die_type_sect_off): Move to...
3582 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3583 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3584 dwarf2_fetch_die_type_sect_off): ... here.
3585 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3586 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3587 dwarf2_fetch_die_type_sect_off): Move doc to header file.
3588
0dce4280
TV
35892020-02-26 Tom de Vries <tdevries@suse.de>
3590
3591 PR gdb/25603
3592 * symfile.c (set_initial_language): Exit-early if
3593 language_mode == language_mode_manual.
3594
450a1bfc
SM
35952020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3596
3597 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
3598 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
3599 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
3600
9e80cfa1
AB
36012020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3602
3603 * gdbtypes.c (create_array_type_with_stride): Handle negative
3604 array strides.
3605 * valarith.c (value_subscripted_rvalue): Likewise.
3606
09624f1f
LM
36072020-02-25 Luis Machado <luis.machado@linaro.org>
3608
3609 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
3610
8cb5117c
SM
36112020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3612
3613 * loc.h (dwarf2_get_die_type): Move to...
3614 * read.h (dwarf2_get_die_type): ... here.
3615 * read.c (dwarf2_get_die_type): Move doc to header.
3616
c325c44e
JB
36172020-02-25 Joel Brobecker <brobecker@adacore.com>
3618
3619 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
3620 'gnulib/Makefile.in' to the list.
3621
4ac93832
TT
36222020-02-24 Tom Tromey <tom@tromey.com>
3623
3624 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
3625 Remove.
3626 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
3627 XOBNEWVEC.
3628
197400e8
TT
36292020-02-24 Tom Tromey <tom@tromey.com>
3630
3631 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
3632 New method.
3633 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
3634 (dw2_do_instantiate_symtab, dw2_get_file_names)
3635 (build_type_psymtab_dependencies, load_full_type_unit): Update.
3636
76935768
TT
36372020-02-24 Tom Tromey <tom@tromey.com>
3638
3639 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
3640 make_scoped_restore.
3641 (dwarf2_psymtab::read_symtab): Don't clear
3642 reading_partial_symbols.
3643
a88ef40d
TV
36442020-02-24 Tom de Vries <tdevries@suse.de>
3645
3646 PR gdb/25592
3647 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
3648
c9af6521
TV
36492020-02-24 Tom de Vries <tdevries@suse.de>
3650
3651 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
3652 commands layout next/prev/regs.
3653
5707a07a
TT
36542020-02-22 Tom Tromey <tom@tromey.com>
3655
3656 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
3657 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
3658
3b0fb49e
TT
36592020-02-22 Tom Tromey <tom@tromey.com>
3660
3661 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
3662
283be8bf
TT
36632020-02-22 Tom Tromey <tom@tromey.com>
3664
3665 * tui/tui-win.c (_initialize_tui_win): Add usage text.
3666 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
3667 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
3668 * tui/tui.c (_initialize_tui): Add usage text.
3669
ca793b96
TT
36702020-02-22 Tom Tromey <tom@tromey.com>
3671
3672 * tui/tui-win.c (tui_set_focus_command)
3673 (tui_set_win_height_command): Use error_no_arg.
3674 (_initialize_tui_win): Update help text.
3675 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
3676
432b5c40
TT
36772020-02-22 Tom Tromey <tom@tromey.com>
3678
3679 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
3680 * tui/tui-disasm.h (struct tui_disasm_window)
3681 <display_start_addr>: Declare.
3682 * tui/tui-source.h (struct tui_source_window)
3683 <display_start_addr>: Declare.
3684 * tui/tui-winsource.h (struct tui_source_window_base)
3685 <show_source_line, display_start_addr>: New methods.
3686 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
3687 Rename and move to protected section.
3688 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
3689 (tui_source_window_base::do_erase_source_content): Update.
3690 (tui_source_window_base::show_source_line): Now a method.
3691 (tui_source_window_base::show_source_content)
3692 (tui_source_window_base::tui_source_window_base)
3693 (tui_source_window_base::rerender)
3694 (tui_source_window_base::refill)
3695 (tui_source_window_base::do_scroll_horizontal)
3696 (tui_source_window_base::set_is_exec_point_at)
3697 (tui_source_window_base::update_breakpoint_info)
3698 (tui_source_window_base::update_exec_info): Update.
3699 * tui/tui-source.c (tui_source_window::set_contents)
3700 (tui_source_window::showing_source_p)
3701 (tui_source_window::do_scroll_vertical)
3702 (tui_source_window::location_matches_p)
3703 (tui_source_window::line_is_displayed): Update.
3704 (tui_source_window::display_start_addr): New method.
3705 * tui/tui-disasm.c (tui_disasm_window::set_contents)
3706 (tui_disasm_window::do_scroll_vertical)
3707 (tui_disasm_window::location_matches_p): Update.
3708 (tui_disasm_window::display_start_addr): New method.
3709
01b1af32
TT
37102020-02-22 Tom Tromey <tom@tromey.com>
3711
3712 * NEWS: Add entry for gdb.register_window_type.
3713 * tui/tui-layout.h (window_factory): New typedef.
3714 (tui_register_window): Declare.
3715 * tui/tui-layout.c (saved_tui_windows): New global.
3716 (tui_apply_current_layout): Use it.
3717 (tui_register_window): New function.
3718 * python/python.c (do_start_initialization): Call
3719 gdbpy_initialize_tui.
3720 (python_GdbMethods): Add "register_window_type" function.
3721 * python/python-internal.h (gdbpy_register_tui_window)
3722 (gdbpy_initialize_tui): Declare.
3723 * python/py-tui.c: New file.
3724 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
3725
fc96d20b
TT
37262020-02-22 Tom Tromey <tom@tromey.com>
3727
3728 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
3729
935c78c0
TT
37302020-02-22 Tom Tromey <tom@tromey.com>
3731
3732 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
3733 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
3734 * tui/tui-data.c (tui_set_win_with_focus): Remove.
3735 (tui_set_win_focus_to): Move from tui-win.c.
3736
0240c8f1
TT
37372020-02-22 Tom Tromey <tom@tromey.com>
3738
3739 * tui/tui-layout.c (make_standard_window, get_locator_window): New
3740 functions.
3741 (known_window_types): New global.
3742 (tui_get_window_by_name): Reimplement.
3743 (initialize_known_windows): New function.
3744 (validate_window_name): Rewrite.
3745 (_initialize_tui_layout): Call initialize_known_windows.
3746
fdb01f0c
TT
37472020-02-22 Tom Tromey <tom@tromey.com>
3748
3749 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
3750 Remove constants.
3751 * tui/tui-winsource.h (struct tui_source_window_base)
3752 <tui_source_window_base>: Remove parameter.
3753 * tui/tui-winsource.c
3754 (tui_source_window_base::tui_source_window_base): Remove
3755 parameter.
3756 (tui_source_window_base::refill): Update.
3757 * tui/tui-stack.h (struct tui_locator_window)
3758 <tui_locator_window>: Update.
3759 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
3760 Default the constructor.
3761 * tui/tui-regs.h (struct tui_data_item_window)
3762 <tui_data_item_window>: Default the constructor.
3763 (struct tui_data_window) <tui_data_window>: Likewise.
3764 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
3765 Default the constructor.
3766 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
3767 Default the constructor.
3768 <type>: Remove.
3769 (struct tui_win_info) <tui_win_info>: Default the constructor.
3770 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
3771 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
3772 Default the constructor.
3773
865a5aec
TT
37742020-02-22 Tom Tromey <tom@tromey.com>
3775
3776 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
3777 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
3778 * tui/tui-win.c (tui_resize_all): Don't call
3779 tui_delete_invisible_windows.
3780 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
3781 done.
3782 (tui_set_layout): Update.
3783 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
3784 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
3785 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
3786
e098d18c
TT
37872020-02-22 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
3790 correctly.
3791
eb9c8874
TT
37922020-02-22 Tom Tromey <tom@tromey.com>
3793
3794 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
3795
7eed1a8e
TT
37962020-02-22 Tom Tromey <tom@tromey.com>
3797
3798 * tui/tui-winsource.h (struct tui_source_window_iterator)
3799 <inner_iterator>: New etytypedef.
3800 <tui_source_window_iterator>: Take "end" parameter.
3801 <tui_source_window_iterator>: Take iterator.
3802 <operator*, advance>: Update.
3803 <m_iter>: Change type.
3804 <m_end>: New field.
3805 (struct tui_source_windows) <begin, end>: Update.
3806 * tui/tui-layout.c (tui_windows): New global.
3807 (tui_apply_current_layout): Clear tui_windows.
3808 (tui_layout_window::apply): Update tui_windows.
3809 * tui/tui-data.h (tui_windows): Declare.
3810 (all_tui_windows): Now inline function.
3811 (class tui_window_iterator, struct all_tui_windows): Remove.
3812
7c043ba6
TT
38132020-02-22 Tom Tromey <tom@tromey.com>
3814
3815 PR tui/17850:
3816 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
3817 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
3818 "height" argument.
3819 (class tui_layout_window) <get_sizes>: Likewise.
3820 (class tui_layout_split) <tui_layout_split>: Add "vertical"
3821 argument.
3822 <get_sizes>: Add "height" argument.
3823 <m_vertical>: New field.
3824 * tui/tui-layout.c (tui_layout_split::clone): Update.
3825 (tui_layout_split::get_sizes): Add "height" argument.
3826 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
3827 (tui_new_layout_command): Parse "-horizontal".
3828 (_initialize_tui_layout): Update help string.
3829 (tui_layout_split::specification): Add "-horizontal" when needed.
3830 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
3831 argument.
3832 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
3833 New methods.
3834
6bc56648
TT
38352020-02-22 Tom Tromey <tom@tromey.com>
3836
3837 * tui/tui-layout.h (enum tui_adjust_result): New.
3838 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
3839 (class tui_layout_window) <adjust_size>: Return
3840 tui_adjust_result. Rewrite.
3841 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
3842 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
3843
c22fef7e
TT
38442020-02-22 Tom Tromey <tom@tromey.com>
3845
3846 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
3847 parameter and return types.
3848 (class tui_layout_base) <specification>: Add "depth".
3849 (class tui_layout_window) <specification>: Add "depth".
3850 (class tui_layout_split) <specification>: Add "depth".
3851 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
3852 and return types.
3853 (tui_new_layout_command): Parse sub-layouts.
3854 (_initialize_tui_layout): Update help string.
3855 (tui_layout_window::specification): Add "depth".
3856 (add_layout_command): Update.
3857
ee325b61
TT
38582020-02-22 Tom Tromey <tom@tromey.com>
3859
3860 * NEWS: Add "tui new-layout" item.
3861 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
3862 Add new-layout command to help text.
3863 (validate_window_name): New function.
3864 (tui_new_layout_command): New function.
3865 (_initialize_tui_layout): Register "new-layout".
3866 (tui_layout_window::specification): New method.
3867 (tui_layout_window::specification): New method.
3868 * tui/tui-layout.h (class tui_layout_base) <specification>: New
3869 method.
3870 (class tui_layout_window) <specification>: New method.
3871 (class tui_layout_split) <specification>: New method.
3872
416eb92d
TT
38732020-02-22 Tom Tromey <tom@tromey.com>
3874
3875 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
3876 * tui/tui-win.c (window_name_completer): Update comment.
3877 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
3878 Declare method.
3879 (class tui_layout_window) <replace_window>: Likewise.
3880 (class tui_layout_split) <replace_window>: Likewise.
3881 (tui_set_layout): Don't declare.
3882 (tui_set_initial_layout): Declare function.
3883 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
3884 (asm_regs_layout): New globals.
3885 (tui_current_layout, show_layout): Remove.
3886 (tui_set_layout, tui_add_win_to_layout): Rewrite.
3887 (find_layout, tui_apply_layout): New function.
3888 (layout_completer): Remove.
3889 (tui_next_layout): Reimplement.
3890 (tui_next_layout_command): New function.
3891 (tui_set_initial_layout, tui_prev_layout_command): New functions.
3892 (tui_regs_layout): Reimplement.
3893 (tui_regs_layout_command): New function.
3894 (extract_display_start_addr): Rewrite.
3895 (next_layout, prev_layout): Remove.
3896 (tui_layout_window::replace_window): New method.
3897 (tui_layout_split::replace_window): New method.
3898 (destroy_layout): New function.
3899 (layout_list): New global.
3900 (add_layout_command): New function.
3901 (initialize_layouts): Update.
3902 (tui_layout_command): New function.
3903 (_initialize_tui_layout): Install "layout" commands.
3904 * tui/tui-data.h (enum tui_layout_type): Remove.
3905 (tui_current_layout): Don't declare.
3906
0dbc2fc7
TT
39072020-02-22 Tom Tromey <tom@tromey.com>
3908
3909 * tui/tui-regs.c (tui_reg_layout): Remove.
3910 (tui_reg_command): Use tui_regs_layout.
3911 * tui/tui-layout.h (tui_reg_command): Declare.
3912 * tui/tui-layout.c (tui_reg_command): New function.
3913
5afe342e
TT
39142020-02-22 Tom Tromey <tom@tromey.com>
3915
3916 * tui/tui.c (tui_rl_delete_other_windows): Call
3917 tui_remove_some_windows.
3918 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
3919 Declare method.
3920 (class tui_layout_window) <remove_windows>: New method.
3921 (class tui_layout_split) <remove_windows>: Declare.
3922 (tui_remove_some_windows): Declare.
3923 * tui/tui-layout.c (tui_remove_some_windows): New function.
3924 (tui_layout_split::remove_windows): New method.
3925
427326a8
TT
39262020-02-22 Tom Tromey <tom@tromey.com>
3927
3928 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
3929 * tui/tui-layout.h (tui_next_layout): Declare.
3930 * tui/tui-layout.c (tui_next_layout): New function.
3931
3fe12b6d
TT
39322020-02-22 Tom Tromey <tom@tromey.com>
3933
3934 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
3935 correct coordinates.
3936
59b8b5d2
TT
39372020-02-22 Tom Tromey <tom@tromey.com>
3938
3939 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
3940 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
3941 DATA_WIN case.
3942
2a3d458b
TT
39432020-02-22 Tom Tromey <tom@tromey.com>
3944
3945 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
3946 TUI_DISASM_WIN, not tui_win_list.
3947
3f0cbb04
TT
39482020-02-22 Tom Tromey <tom@tromey.com>
3949
3950 * valprint.c (generic_val_print_enum_1)
3951 (val_print_type_code_flags): Style member names.
3952 * rust-lang.c (val_print_struct, rust_print_enum)
3953 (rust_print_struct_def, rust_internal_print_type): Style member
3954 names.
3955 * p-valprint.c (pascal_object_print_value_fields): Style member
3956 names. Only call fprintf_symbol_filtered for static members.
3957 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
3958 * f-valprint.c (f_val_print): Style member names.
3959 * f-typeprint.c (f_type_print_base): Style member names.
3960 * cp-valprint.c (cp_print_value_fields): Style member names. Only
3961 call fprintf_symbol_filtered for static members.
3962 (cp_print_class_member): Style member names.
3963 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
3964 member names.
3965 * ada-valprint.c (ada_print_scalar): Style enum names.
3966 (ada_val_print_enum): Likewise.
3967 * ada-typeprint.c (print_enum_type): Style enum names.
3968
d4d947ae
TT
39692020-02-21 Tom Tromey <tom@tromey.com>
3970
3971 * psympriv.h (struct partial_symtab): Update comment.
3972
e94e944b
TT
39732020-02-21 Tom Tromey <tromey@adacore.com>
3974
3975 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
3976 type is CORE_ADDR.
3977
1eb73179
TV
39782020-02-21 Tom de Vries <tdevries@suse.de>
3979
3980 PR gdb/25534
3981 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
3982 if dependencies[i]->user != NULL.
3983
4f180d53
AT
39842020-02-21 Ali Tamur <tamur@google.com>
3985
3986 * dwarf2/read.c (dwarf2_name): Add null check.
3987
22b6cd70
TT
39882020-02-20 Tom Tromey <tom@tromey.com>
3989
3990 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
3991 ">=", in binary search.
3992 (dwarf2_find_containing_comp_unit): New overload.
3993 (run_test): New self-test.
3994 (_initialize_dwarf2_read): Register new test.
3995
bd0cf5a6
NC
39962020-02-20 Nelson Chu <nelson.chu@sifive.com>
3997
3998 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
3999 * riscv-tdep.h: Likewise.
4000 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
4001 rv32-only CSR.
4002 * features/riscv/64bit-csr.xml: Regenerated.
4003
3f702acd
SDJ
40042020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4005 Tom Tromey <tom@tromey.com>
4006
4007 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
4008 of 'fputc_unfiltered'.
4009 (putchar_unfiltered): Call 'fputc_unfiltered'.
4010 (fputc_unfiltered): Call 'fputs_unfiltered'.
4011
d13c7322
AB
40122020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
4013
4014 * config.in: Regenerate.
4015 * configure: Regenerate.
4016 * configure.ac: Add --with-python-libdir option.
4017 * main.c: Use WITH_PYTHON_LIBDIR.
4018
869d8950
TT
40192020-02-19 Tom Tromey <tom@tromey.com>
4020
4021 * symtab.c (general_symbol_info::compute_and_set_names): Use
4022 obstack_strndup. Simplify call to symbol_set_demangled_name.
4023
298e9637
SM
40242020-02-19 Simon Marchi <simon.marchi@efficios.com>
4025
4026 * dwarf2/read.c (allocate_signatured_type_table,
4027 allocate_dwo_unit_table, allocate_type_unit_groups_table,
4028 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
4029 Remove objfile parameter, update all callers.
4030
08410482
DE
40312020-02-19 Doug Evans <dje@google.com>
4032
4033 PR rust/25535
4034 * rust-lang.c (rust_print_enum): Apply embedded_offset to
4035 rust_enum_variant calculation.
4036
dfdeeca1
TT
40372020-02-19 Tom Tromey <tromey@adacore.com>
4038
4039 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
4040
2ef5453b
TT
40412020-02-19 Tom Tromey <tromey@adacore.com>
4042
4043 * ada-lang.c (cache_symbol): Use obstack_strdup.
4044
9f1528a1
AB
40452020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4046
4047 * configure: Regenerate.
4048
d3c22fa8
TT
40492020-02-19 Tom Tromey <tromey@adacore.com>
4050
4051 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
4052 NULL check.
4053
bf84f706
MR
40542020-02-19 Maciej W. Rozycki <macro@wdc.com>
4055
4056 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
4057
d1c9b20f
AB
40582020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4059
4060 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
4061 if GDBSERVER is not defined.
4062 (riscv_tdesc_cache): Likewise, also store const target_desc.
4063 (STATIC_IN_GDB): Define.
4064 (riscv_create_target_description): Update declaration with
4065 STATIC_IN_GDB.
4066 (riscv_lookup_target_description): New function, only define if
4067 GDBSERVER is not defined.
4068 * arch/riscv.h (riscv_create_target_description): Declare only
4069 when GDBSERVER is defined.
4070 (riscv_lookup_target_description): New declaration when GDBSERVER
4071 is not defined.
4072 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
4073 (riscv_linux_read_features): ...this, and return
4074 riscv_gdbarch_features instead of target_desc.
4075 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
4076 (riscv_linux_read_description): Rename to...
4077 (riscv_linux_read_features): ...this.
4078 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4079 Update to use riscv_gdbarch_features and
4080 riscv_lookup_target_description.
4081 * riscv-tdep.c (riscv_find_default_target_description): Use
4082 riscv_lookup_target_description instead of
4083 riscv_create_target_description.
4084
373d7ac0
SM
40852020-02-18 Simon Marchi <simon.marchi@efficios.com>
4086
4087 * valprint.c (generic_val_print_enum_1): When printing a flag
4088 enum with value 0 and there is no enumerator with value 0, print
4089 just "0" instead of "(unknown: 0x0)".
4090
b29a2df0
SM
40912020-02-18 Simon Marchi <simon.marchi@efficios.com>
4092
4093 * valprint.c (generic_val_print_enum_1): Print unknown part of
4094 flag enum in hex.
4095
6740f0cc
SM
40962020-02-18 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * dwarf2/read.c (update_enumeration_type_from_children): Allow
4099 flag enums to contain duplicate enumerators.
4100 * valprint.c (generic_val_print_enum_1): Update comment.
4101
edd45eb0
SM
41022020-02-18 Simon Marchi <simon.marchi@efficios.com>
4103
4104 * dwarf2/read.c: Include "count-one-bits.h".
4105 (update_enumeration_type_from_children): If an enumerator has
4106 multiple bits set, don't treat the enumeration as a "flag enum".
4107 * valprint.c (generic_val_print_enum_1): Assert that enumerators
4108 of flag enums have 0 or 1 bit set.
4109
6d0cf446
BE
41102020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4111
4112 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
4113 conversion.
4114 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4115 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4116 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4117 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4118 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4119
7001c1b7
SM
41202020-02-18 Simon Marchi <simon.marchi@efficios.com>
4121
4122 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
4123
fdb61c6c
SM
41242020-02-14 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
4127 displaced_step_closure_up.
4128 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4129 (struct displaced_step_closure_up):
4130 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4131 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4132 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
4133 Likewise.
4134 * gdbarch.sh (displaced_step_copy_insn): Likewise.
4135 * gdbarch.c, gdbarch.h: Re-generate.
4136 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
4137 displaced_step_closure_up.
4138 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4139 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4140 * infrun.h (displaced_step_closure_up): New type alias.
4141 (struct displaced_step_inferior_state) <step_closure>: Change
4142 type to displaced_step_closure_up.
4143 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
4144 displaced_step_closure_up.
4145 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4146
a4a38eb4
TT
41472020-02-14 Tom Tromey <tom@tromey.com>
4148
4149 * minidebug.c (gnu_debug_key): New global.
4150 (find_separate_debug_file_in_section): Use it.
4151
e8217e61
SM
41522020-02-14 Simon Marchi <simon.marchi@efficios.com>
4153
4154 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
4155 std::unique_ptr.
4156 * gdbarch.c: Re-generate.
4157 * gdbarch.h: Re-generate.
4158 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
4159 change.
4160 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
4161 type to std::unique_ptr.
4162 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4163 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4164 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4165 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4166 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
4167 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4168 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4169 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4170 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4171
d8d83535
SM
41722020-02-14 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
4175 std::unique_ptr.
4176 (displaced_step_clear): Rename to...
4177 (displaced_step_reset): ... this. Just call displaced->reset ().
4178 (displaced_step_clear_cleanup): Rename to...
4179 (displaced_step_reset_cleanup): ... this.
4180 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
4181 (displaced_step_fixup): Likewise.
4182 (resume_1): Likewise.
4183 (handle_inferior_event): Restore child's memory before calling
4184 displaced_step_fixup on the parent.
4185 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
4186 to std::unique_ptr.
4187 <step_closure>: Change type to std::unique_ptr.
4188
5f661e03
SM
41892020-02-14 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * arm-tdep.c: Include count-one-bits.h.
4192 (cleanup_block_store_pc): Use count_one_bits.
4193 (cleanup_block_load_pc): Use count_one_bits.
4194 (arm_copy_block_xfer): Use count_one_bits.
4195 (thumb2_copy_block_xfer): Use count_one_bits.
4196 (thumb_copy_pop_pc_16bit): Use count_one_bits.
4197 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
4198 (thumb_get_next_pcs_raw): Use count_one_bits.
4199 (arm_get_next_pcs_raw): Use count_one_bits_l.
4200 * arch/arm.c (bitcount): Remove.
4201 * arch/arm.h (bitcount): Remove.
4202
8084e579
TT
42032020-02-14 Tom Tromey <tromey@adacore.com>
4204
4205 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
4206 Update.
4207 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
4208 * dwarf2/loc.c (call_site_find_chain_1): Return
4209 unique_xmalloc_ptr.
4210 (call_site_find_chain): Likewise.
4211
258bf0ee
RB
42122020-02-14 Richard Biener <rguenther@suse.de>
4213
4214 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
4215 on expression with division operators.
4216
f98a8458
AKS
42172020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4218
4219 * MAINTAINERS (Write After Approval): Adding myself.
4220
d1437c0e
TT
42212020-02-12 Tom Tromey <tom@tromey.com>
4222
4223 * event-loop.c (event_data, gdb_event, event_handler_func):
4224 Remove.
4225
3d4560f7
TT
42262020-02-12 Tom Tromey <tom@tromey.com>
4227
4228 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
4229 (dwarf2_frame_objfile_data): Add comment.
4230 (find_comp_unit, set_comp_unit): New functions.
4231 (dwarf2_frame_find_fde): Use find_comp_unit.
4232 (dwarf2_build_frame_info): Use set_comp_unit.
4233
21982304
TT
42342020-02-12 Tom Tromey <tom@tromey.com>
4235
4236 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
4237 (comp_unit): Don't initialize objfile.
4238 (execute_cfa_program): Add text_offset parameter.
4239 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
4240 (dwarf2_frame_cache): Update.
4241 (dwarf2_build_frame_info): Don't set "objfile" member.
4242
4debb237
TT
42432020-02-12 Tom Tromey <tom@tromey.com>
4244
4245 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
4246 (decode_frame_entry): Likewise.
4247 (dwarf2_build_frame_info): Update.
4248
0d404d44
TT
42492020-02-12 Tom Tromey <tom@tromey.com>
4250
4251 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
4252 (decode_frame_entry_1): Use the comp_unit obstack.
4253
a7a3ae5c
TT
42542020-02-12 Tom Tromey <tom@tromey.com>
4255
4256 * dwarf2/frame.c (struct comp_unit): Add initializers and
4257 constructor.
4258 (dwarf2_frame_objfile_data): Store a comp_unit.
4259 (dwarf2_frame_find_fde): Update.
4260 (dwarf2_build_frame_info): Use "new".
4261
a9d65418
TT
42622020-02-12 Tom Tromey <tom@tromey.com>
4263
4264 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
4265 (dwarf2_fde_table): Typedef for std::vector.
4266 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
4267 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
4268 (decode_frame_entry): Update.
4269 (dwarf2_build_frame_info): Use "new".
4270
7559c217
CB
42712020-02-12 Christian Biesinger <cbiesinger@google.com>
4272
4273 * arm-tdep.c (arm_gdbarch_init): Update.
4274 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
4275 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
4276 have_neon, is_m>: Change to bool.
4277
aeefc73c
CB
42782020-02-12 Christian Biesinger <cbiesinger@google.com>
4279
4280 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
4281
d27b8e5f
TT
42822020-02-12 Tom Tromey <tom@tromey.com>
4283
4284 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
4285
cd5900f3
HD
42862020-02-12 Hannes Domani <ssbssa@yahoo.de>
4287
4288 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
4289 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
4290
f056b22b
TT
42912020-02-11 Tom Tromey <tom@tromey.com>
4292
4293 * psymtab.h: Update comment.
4294
f92ff6b5
TT
42952020-02-11 Tom Tromey <tom@tromey.com>
4296
4297 * gdb_obstack.h (struct auto_obstack): Use
4298 DISABLE_COPY_AND_ASSIGN.
4299
3fd6912b
TT
43002020-02-11 Tom Tromey <tom@tromey.com>
4301
4302 * dwarf2/frame.h (struct objfile): Don't forward declare.
4303
69ed9b74
CB
43042020-02-11 Christian Biesinger <cbiesinger@google.com>
4305
4306 * cris-tdep.c (cris_supply_gregset): Change signature to match
4307 what struct regset expects.
4308 (cris_regset): New struct.
4309 (fetch_core_registers): Remove.
4310 (cris_iterate_over_regset_sections): New function.
4311 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
4312 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
4313
bda874f6
CB
43142020-02-11 Christian Biesinger <cbiesinger@google.com>
4315
4316 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
4317 registers.
4318
754e1564
CB
43192020-02-11 Christian Biesinger <cbiesinger@google.com>
4320
4321 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
4322
8ddd8e0e
SM
43232020-02-11 Simon Marchi <simon.marchi@efficios.com>
4324
4325 * configure: Re-generate.
4326
898e7f60
SM
43272020-02-11 Simon Marchi <simon.marchi@efficios.com>
4328
4329 * configure: Re-generate.
4330
58df732b
SM
43312020-02-11 Simon Marchi <simon.marchi@efficios.com>
4332
4333 * acinclude: Update warning.m4 path.
4334 * warning.m4: Move to gdbsupport.
4335
da5bd37e
TT
43362020-02-11 Tom Tromey <tromey@adacore.com>
4337
4338 * remote.c (remote_console_output): Update.
4339 * printcmd.c (printf_command): Update.
4340 * event-loop.c (gdb_wait_for_event): Update.
4341 * linux-nat.c (sigchld_handler): Update.
4342 * remote-sim.c (gdb_os_write_stdout): Update.
4343 (gdb_os_flush_stdout): Update.
4344 (gdb_os_flush_stderr): Update.
4345 (gdb_os_write_stderr): Update.
4346 * exceptions.c (print_exception): Update.
4347 * remote-fileio.c (remote_fileio_func_read): Update.
4348 (remote_fileio_func_write): Update.
4349 * tui/tui.c (tui_enable): Update.
4350 * tui/tui-interp.c (tui_interp::init): Update.
4351 * utils.c (init_page_info): Update.
4352 (putchar_unfiltered, fputc_unfiltered): Update.
4353 (gdb_flush): Update.
4354 (emit_style_escape): Update.
4355 (flush_wrap_buffer, fputs_maybe_filtered): Update.
4356 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
4357 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
4358 (stderr_file::write): Update.
4359 (stderr_file::puts): Update.
4360 * ui-file.h (ui_file_isatty, ui_file_write)
4361 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
4362 (ui_file_puts): Don't declare.
4363
85f0dd3c
TV
43642020-02-10 Tom de Vries <tdevries@suse.de>
4365
4366 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
4367 sentinel to char *.
4368
2e927613
TV
43692020-02-09 Tom de Vries <tdevries@suse.de>
4370
4371 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
4372 filename if it matches "<artificial>".
4373
6bafc845
HD
43742020-02-09 Hannes Domani <ssbssa@yahoo.de>
4375
4376 * windows-tdep.c (struct enum_value_name): New struct.
4377 (create_enum): New function.
4378 (windows_get_siginfo_type): Create and use enum types.
4379
7928d571
HD
43802020-02-09 Hannes Domani <ssbssa@yahoo.de>
4381
4382 * NEWS: Mention $_siginfo support for Windows.
4383 * windows-nat.c (handle_exception): Set siginfo_er.
4384 (windows_nat_target::mourn_inferior): Reset siginfo_er.
4385 (windows_xfer_siginfo): New function.
4386 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
4387 * windows-tdep.c (struct windows_gdbarch_data): New struct.
4388 (init_windows_gdbarch_data): New function.
4389 (get_windows_gdbarch_data): New function.
4390 (windows_get_siginfo_type): New function.
4391 (windows_init_abi): Register windows_get_siginfo_type.
4392 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
4393
6751ebae
TT
43942020-02-08 Tom Tromey <tom@tromey.com>
4395
4396 * dwarf2/read.c (class cutu_reader) <cutu_reader,
4397 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
4398 <keep>: Declare method.
4399 <m_keep>: Remove member.
4400 <~cutu_reader>: Remove.
4401 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4402 (cutu_reader::cutu_reader): Update.
4403 (cutu_reader::keep): Rename from ~cutu_reader.
4404 (process_psymtab_comp_unit, build_type_psymtabs_1)
4405 (process_skeletonless_type_unit, load_partial_comp_unit)
4406 (load_full_comp_unit, dwarf2_read_addr_index)
4407 (read_signatured_type): Update.
4408
135f5437
TT
44092020-02-08 Tom Tromey <tom@tromey.com>
4410
4411 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
4412 "want_partial_unit" parameter.
4413 (process_psymtab_comp_unit): Change want_partial_unit to bool.
4414 Inline check for DW_TAG_partial_unit.
4415 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
4416
9f66ff1c
TT
44172020-02-08 Tom Tromey <tom@tromey.com>
4418
4419 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
4420 read.c.
4421 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
4422 read.c.
4423
c8a7a66f
TT
44242020-02-08 Tom Tromey <tom@tromey.com>
4425
4426 * dwarf2/read.c (read_address): Move to comp-unit.c.
4427 (dwarf2_rnglists_process, dwarf2_ranges_process)
4428 (read_attribute_value, dwarf_decode_lines_1)
4429 (var_decode_location, decode_locdesc): Update.
4430 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
4431 read.c. Remove "cu" parameter.
4432 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
4433 method.
4434
8266302d
TT
44352020-02-08 Tom Tromey <tom@tromey.com>
4436
4437 * dwarf2/read.c (read_attribute_value, read_indirect_string)
4438 (read_indirect_line_string): Update.
4439 * dwarf2/comp-unit.c (read_offset): Remove.
4440 (read_comp_unit_head): Update.
4441 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
4442 method.
4443 (read_offset): Don't declare.
4444
4057dfde
TT
44452020-02-08 Tom Tromey <tom@tromey.com>
4446
4447 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
4448 * dwarf2/read.c (struct comp_unit_head): Move to
4449 dwarf2/comp-unit.h.
4450 (enum class rcuh_kind): Move to comp-unit.h.
4451 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
4452 (read_comp_unit_head, error_check_comp_unit_head)
4453 (read_and_check_comp_unit_head): Move to comp-unit.c.
4454 (read_offset, dwarf_unit_type_name): Likewise.
4455 (create_debug_type_hash_table, read_cutu_die_from_dwo)
4456 (cutu_reader::cutu_reader, read_call_site_scope)
4457 (find_partial_die, follow_die_offset): Update.
4458 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
4459
24aa364d
TT
44602020-02-08 Tom Tromey <tom@tromey.com>
4461
4462 * dwarf2/read.c (read_offset_1): Move to leb.c.
4463 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
4464 (dwarf_decode_macro_bytes): Update.
4465 * dwarf2/leb.c (read_offset): Rename; move from read.c.
4466 * dwarf2/leb.h (read_offset): Declare.
4467
2c7d5afc
TT
44682020-02-08 Tom Tromey <tom@tromey.com>
4469
4470 * dwarf2/read.c (dwarf2_section_size): Remove.
4471 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
4472 Update.
4473 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
4474
4075cb26
TT
44752020-02-08 Tom Tromey <tom@tromey.com>
4476
4477 * dwarf2/read.c (read_initial_length): Move to leb.c.
4478 * dwarf2/leb.h (read_initial_length): Declare.
4479 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
4480 handle_nonstd parameter.
4481 * dwarf2/frame.c (read_initial_length): Remove.
4482 (decode_frame_entry_1): Update.
4483
09ba997f
TT
44842020-02-08 Tom Tromey <tom@tromey.com>
4485
4486 * dwarf2/loc.c (dwarf2_find_location_expression)
4487 (dwarf_evaluate_loc_desc::get_tls_address)
4488 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4489 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
4490 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
4491 (dwarf2_compile_property_to_c)
4492 (dwarf2_loc_desc_get_symbol_read_needs)
4493 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
4494 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
4495 (loclist_describe_location, loclist_tracepoint_var_ref)
4496 (loclist_generate_c_location): Update.
4497 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
4498 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
4499 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
4500 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
4501 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
4502 (dwarf2_per_cu_data::addr_size)
4503 (dwarf2_per_cu_data::ref_addr_size)
4504 (dwarf2_per_cu_data::text_offset)
4505 (dwarf2_per_cu_data::addr_type): Now methods.
4506 (per_cu_header_read_in): Make per_cu "const".
4507 (dwarf2_version): Remove.
4508 (dwarf2_per_cu_data::int_type): Now a method.
4509 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
4510 (set_die_type, read_array_type, read_subrange_index_type)
4511 (read_tag_string_type, read_subrange_type): Update.
4512 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
4513 offset_size, ref_addr_size, text_offset, addr_type, version,
4514 objfile, int_type, addr_sized_int_type>: Declare methods.
4515
96c738c0
TT
45162020-02-08 Tom Tromey <tom@tromey.com>
4517
4518 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
4519 Move earlier.
4520
8fdd972c
TT
45212020-02-08 Tom Tromey <tom@tromey.com>
4522
4523 * dwarf2/read.h (dwarf_line_debug): Declare.
4524 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
4525 * dwarf2/read.c: Move line_header code to new files.
4526 (dwarf_line_debug): No longer static.
4527 * dwarf2/line-header.c: New file.
4528 * dwarf2/line-header.h: New file.
4529
03075812
TT
45302020-02-08 Tom Tromey <tom@tromey.com>
4531
4532 * dwarf2/read.c (struct line_header) <file_full_name,
4533 file_file_name>: Return unique_xmalloc_ptr.
4534 (line_header::file_file_name): Update.
4535 (line_header::file_full_name): Update.
4536 (dw2_get_file_names_reader): Update.
4537 (macro_start_file): Update.
4538
bb822404
TT
45392020-02-08 Tom Tromey <tom@tromey.com>
4540
4541 * dwarf2/read.c (struct line_header) <file_full_name,
4542 file_file_name>: Declare methods.
4543 (dw2_get_file_names_reader): Update.
4544 (file_file_name): Now a method.
4545 (file_full_name): Likewise.
4546 (macro_start_file): Update.
4547
009b64fc
TT
45482020-02-08 Tom Tromey <tom@tromey.com>
4549
4550 * dwarf2/read.c (dwarf_always_disassemble)
4551 (show_dwarf_always_disassemble): Move to loc.c.
4552 (_initialize_dwarf2_read): Move "always-disassemble" registration
4553 to loc.c.
4554 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
4555 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
4556 static.
4557 (show_dwarf_always_disassemble): Move from read.c.
4558 (_initialize_dwarf2loc): Move always-disassemble from read.c.
4559
5895093f
TT
45602020-02-08 Tom Tromey <tom@tromey.com>
4561
4562 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4563 (create_quick_file_names_table): Return htab_up.
4564 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
4565 Update.
4566 * dwarf2/read.h (struct dwarf2_per_objfile)
4567 <quick_file_names_table>: Now htab_up.
4568
b3b32279
TT
45692020-02-08 Tom Tromey <tom@tromey.com>
4570
4571 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
4572
1d33d811
TT
45732020-02-08 Tom Tromey <tom@tromey.com>
4574
4575 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
4576 Rewrite.
4577 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
4578 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
4579 (abbrev_table::abbrev_table): No longer inline.
4580 (ABBREV_HASH_SIZE): Remove.
4581 (abbrev_table::m_abbrevs): Now an htab_up.
4582
86de1d91
TT
45832020-02-08 Tom Tromey <tom@tromey.com>
4584
4585 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
4586 (cutu_reader): Update.
4587 (build_type_psymtabs_1): Update.
4588 * dwarf2/abbrev.c (abbrev_table::read): Rename.
4589 (abbrev_table::alloc_abbrev): Update.
4590 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
4591 (abbrev_table::read): New static method, renamed from
4592 abbrev_table_read_table.
4593 (abbrev_table::alloc_abbrev)
4594 (abbrev_table::add_abbrev): Now private.
4595 (abbrev_table::abbrev_table): Now private.
4596 (abbrev_table::m_abbrev_obstack): Now private. Rename.
4597
0335378b
TT
45982020-02-08 Tom Tromey <tom@tromey.com>
4599
4600 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
4601 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
4602 htab_up.
4603
48b490f2
TT
46042020-02-08 Tom Tromey <tom@tromey.com>
4605
4606 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
4607 htab_up.
4608 (lookup_dwo_unit_in_dwp): Update.
4609 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
4610 on obstack.
4611
bc68fb19
TT
46122020-02-08 Tom Tromey <tom@tromey.com>
4613
4614 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
4615 obstack.
4616
d15acc42
TT
46172020-02-08 Tom Tromey <tom@tromey.com>
4618
4619 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
4620 line_header_hash.
4621 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
4622 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
4623 Change type to htab_up.
4624
eaa5fa8b
TT
46252020-02-08 Tom Tromey <tom@tromey.com>
4626
4627 * dwarf2/read.c (allocate_type_unit_groups_table): Return
4628 htab_up. Don't allocate on obstack.
4629 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
4630 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
4631 Change type to htab_up.
4632
b0b6a987
TT
46332020-02-08 Tom Tromey <tom@tromey.com>
4634
4635 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
4636 Change type to htab_up.
4637 * dwarf2/read.c (create_signatured_type_table_from_index)
4638 (create_signatured_type_table_from_debug_names)
4639 (create_all_type_units, add_type_unit)
4640 (lookup_dwo_signatured_type, lookup_signatured_type)
4641 (process_skeletonless_type_unit): Update.
4642 (create_debug_type_hash_table, create_debug_types_hash_table):
4643 Change type of types_htab.
4644 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
4645 htab_up. Don't allocate on obstack.
4646 (create_cus_hash_table): Change type of cus_htab parameter.
4647 (struct dwo_file) <cus, tus>: Now htab_up.
4648 (lookup_dwo_signatured_type, lookup_dwo_cutu)
4649 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
4650 (queue_and_load_all_dwo_tus): Update.
4651 * dwarf2/index-write.c (write_gdbindex): Update.
4652 (write_debug_names): Update.
4653
39856def
TT
46542020-02-08 Tom Tromey <tom@tromey.com>
4655
4656 * dwarf2/read.h (struct dwarf2_queue_item): Move from
4657 dwarf2/read.c. Remove "next" member. Add constructor ntad
4658 destructor.
4659 (struct dwarf2_per_objfile) <queue>: New member.
4660 * dwarf2/read.c (struct dwarf2_queue_item): Move to
4661 dwarf2/read.h.
4662 (dwarf2_queue, dwarf2_queue_tail): Remove.
4663 (class dwarf2_queue_guard): Add parameter to constructor. Use
4664 DISABLE_COPY_AND_ASSIGN.
4665 <m_per_objfile>: New member.
4666 <~dwarf2_queue_guard>: Rewrite.
4667 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
4668 Update.
4669 (~dwarf2_queue_item): New.
4670
3e225074
TT
46712020-02-08 Tom Tromey <tom@tromey.com>
4672
4673 * dwarf2/read.c (struct die_info) <has_children>: New member.
4674 (dw2_get_file_names_reader): Remove has_children.
4675 (dw2_get_file_names): Update.
4676 (read_cutu_die_from_dwo): Remove has_children.
4677 (cutu_reader::init_tu_and_read_dwo_dies)
4678 (cutu_reader::cutu_reader): Update.
4679 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
4680 Remove has_children.
4681 (build_type_psymtabs_1, process_skeletonless_type_unit)
4682 (load_partial_comp_unit, load_full_comp_unit): Update.
4683 (create_dwo_cu_reader): Remove has_children.
4684 (create_cus_hash_table, read_die_and_children): Update.
4685 (read_full_die_1,read_full_die): Remove has_children.
4686 (read_signatured_type): Update.
4687 (class cutu_reader) <has_children>: Remove.
4688
82ca8957
TT
46892020-02-08 Tom Tromey <tom@tromey.com>
4690
4691 * dwarf2/expr.c: Rename from dwarf2expr.c.
4692 * dwarf2/expr.h: Rename from dwarf2expr.h.
4693 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
4694 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
4695 * dwarf2/frame.c: Rename from dwarf2-frame.c.
4696 * dwarf2/frame.h: Rename from dwarf2-frame.h.
4697 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
4698 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
4699 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
4700 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
4701 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
4702 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
4703 * dwarf2/loc.c: Rename from dwarf2loc.c.
4704 * dwarf2/loc.h: Rename from dwarf2loc.h.
4705 * dwarf2/read.c: Rename from dwarf2read.c.
4706 * dwarf2/read.h: Rename from dwarf2read.h.
4707 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
4708 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
4709 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
4710 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
4711 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
4712 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
4713 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
4714 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
4715 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
4716 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
4717 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
4718 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
4719 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
4720 Update.
4721 * Makefile.in (COMMON_SFILES): Update.
4722 (HFILES_NO_SRCDIR): Update.
4723
9e35d499
TT
47242020-02-08 Tom Tromey <tom@tromey.com>
4725
4726 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
4727 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
4728
1eba2311
TT
47292020-02-08 Tom Tromey <tom@tromey.com>
4730
4731 * dwarf2read.h (struct die_info): Don't declare.
4732
e41c2da2
TT
47332020-02-08 Tom Tromey <tom@tromey.com>
4734
4735 * dwarf2read.h (die_info_ptr): Remove typedef.
4736
4fc6c0d5
TT
47372020-02-08 Tom Tromey <tom@tromey.com>
4738
4739 * dwarf2read.c (read_call_site_scope)
4740 (handle_data_member_location, dwarf2_add_member_fn)
4741 (mark_common_block_symbol_computed, read_common_block)
4742 (attr_to_dynamic_prop, partial_die_info::read)
4743 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
4744 (dwarf2_symbol_mark_computed, set_die_type): Update.
4745 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
4746 method.
4747 (attr_form_is_block): Don't declare.
4748 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
4749
cd6c91b4
TT
47502020-02-08 Tom Tromey <tom@tromey.com>
4751
4752 * dwarf2read.c (dwarf2_find_base_address, )
4753 (read_call_site_scope, rust_containing_type)
4754 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4755 (handle_data_member_location, dwarf2_add_member_fn)
4756 (get_alignment, read_structure_type, process_structure_scope)
4757 (mark_common_block_symbol_computed, read_common_block)
4758 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
4759 (partial_die_info::read, read_attribute_value, new_symbol)
4760 (lookup_die_type, dwarf2_get_ref_die_offset)
4761 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
4762 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
4763 (dwarf2_symbol_mark_computed): Update.
4764 * dwarf2/attribute.h (struct attribute) <value_as_address,
4765 form_is_section_offset, form_is_constant, form_is_ref>: Declare
4766 methods.
4767 (value_as_address, attr_form_is_section_offset)
4768 (attr_form_is_constant, attr_form_is_ref): Don't declare.
4769 * dwarf2/attribute.c (attribute::value_as_address)
4770 (attribute::form_is_section_offset, attribute::form_is_constant)
4771 (attribute::form_is_ref): Now methods.
4772
162dce55
TT
47732020-02-08 Tom Tromey <tom@tromey.com>
4774
4775 * dwarf2read.c (struct attribute, DW_STRING)
4776 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
4777 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
4778 (attr_form_is_block, attr_form_is_section_offset)
4779 (attr_form_is_constant, attr_form_is_ref): Move.
4780 * dwarf2/attribute.h: New file.
4781 * dwarf2/attribute.c: New file, from dwarf2read.c.
4782 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
4783
3054dd54
TT
47842020-02-08 Tom Tromey <tom@tromey.com>
4785
4786 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
4787 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
4788 Move.
4789 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
4790 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
4791 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
4792 abbrev.c.
4793 * dwarf2/abbrev.h: New file.
4794 * dwarf2/abbrev.c: New file, from dwarf2read.c.
4795 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
4796
96b79293
TT
47972020-02-08 Tom Tromey <tom@tromey.com>
4798
4799 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
4800 (dwarf2_section_size, dwarf2_get_section_info)
4801 (create_signatured_type_table_from_debug_names)
4802 (create_addrmap_from_aranges, read_debug_names_from_section)
4803 (get_gdb_index_contents_from_section, read_comp_unit_head)
4804 (error_check_comp_unit_head, read_abbrev_offset)
4805 (create_debug_type_hash_table, init_cu_die_reader)
4806 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
4807 (read_comp_units_from_section, create_cus_hash_table)
4808 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4809 (create_dwp_v2_section, dwarf2_rnglists_process)
4810 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
4811 (abbrev_table_read_table, read_indirect_string_at_offset_from)
4812 (read_indirect_string_from_dwz, read_addr_index_1)
4813 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
4814 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4815 (fill_in_loclist_baton): Update.
4816 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
4817 get_containing_section, get_bfd_owner, get_bfd_section,
4818 get_file_name, get_id, get_flags, empty, read>: Declare methods.
4819 (dwarf2_read_section, get_section_name, get_section_file_name)
4820 (get_containing_section, get_section_bfd_owner)
4821 (get_section_bfd_section, get_section_name, get_section_file_name)
4822 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
4823 declare.
4824 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
4825 (dwarf2_section_info::get_bfd_owner)
4826 (dwarf2_section_info::get_bfd_section)
4827 (dwarf2_section_info::get_name)
4828 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
4829 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
4830 (dwarf2_section_info::read): Now methods.
4831 * dwarf-index-write.c (class debug_names): Update.
4832
2c86cff9
TT
48332020-02-08 Tom Tromey <tom@tromey.com>
4834
4835 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
4836 Move to dwarf2/section.h.
4837 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
4838 (get_section_bfd_section, get_section_name)
4839 (get_section_file_name, get_section_id, get_section_flags)
4840 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
4841 dwarf2/section.c.
4842 * dwarf2/section.h: New file.
4843 * dwarf2/section.c: New file, from dwarf2read.c.
4844 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
4845
f4382c45
TT
48462020-02-08 Tom Tromey <tom@tromey.com>
4847
4848 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4849 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
4850 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
4851 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
4852 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
4853 * dwarf2/leb.h: New file, from dwarf2read.c.
4854 * dwarf2/leb.c: New file, from dwarf2read.c.
4855 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
4856 Remove.
4857 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
4858 (COMMON_SFILES): Add dwarf2/leb.c.
4859
01840b7a
JB
48602020-02-08 Joel Brobecker <brobecker@adacore.com>
4861
4862 GDB 9.1 released.
4863
dfcb27e4
IB
48642020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4865
4866 PR gdb/25190:
aac66a4c
SM
4867 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
4868 * gdb/remote.c (remote_console_output): Update.
4869 * gdb/ui-file.c (fputs_unfiltered): Rename to...
4870 (ui_file_puts): ...this.
4871 * gdb/ui-file.h (ui_file_puts): Add declaration.
4872 * gdb/utils.c (emit_style_escape): Update.
4873 (flush_wrap_buffer): Update.
4874 (fputs_maybe_filtered): Update.
4875 (fputs_unfiltered): Add function.
dfcb27e4 4876
faa17681
IB
48772020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4878
aac66a4c
SM
4879 * gdb/event-loop.c (gdb_wait_for_event): Update.
4880 * gdb/printcmd.c (printf_command): Update.
4881 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
4882 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
4883 (gdb_os_flush_stderr): Update.
4884 * gdb/remote.c (remote_console_output): Update.
4885 * gdb/ui-file.c (gdb_flush): Rename to...
4886 (ui_file_flush): ...this.
4887 (stderr_file::write): Update.
4888 (stderr_file::puts): Update.
4889 * gdb/ui-file.h (gdb_flush): Rename to...
4890 (ui_file_flush): ...this.
4891 * gdb/utils.c (gdb_flush): Add function.
4892 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 4893
5abbbe1d
TT
48942020-02-07 Tom Tromey <tromey@adacore.com>
4895
4896 PR breakpoints/24915:
4897 * source.c (find_and_open_source): Do not check basenames_may_differ.
4898
919adfe8
TT
48992020-02-07 Tom Tromey <tom@tromey.com>
4900
4901 * README: Update gdbserver documentation.
4902 * gdbserver: Move to top level.
4903 * configure.tgt (build_gdbserver): Remove.
4904 * configure.ac: Remove --enable-gdbserver.
4905 * configure: Rebuild.
4906 * Makefile.in (distclean): Don't mention gdbserver.
4907
1d5d29e7
SV
49082020-02-06 Shahab Vahedi <shahab@synopsys.com>
4909
4910 * source-cache.c (source_cache::ensure): Surround
4911 get_plain_source_lines with a try/catch.
4912 (source_cache::get_line_charpos): Get rid of try/catch
4913 and only check for the return value of "ensure".
4914 * tui/tui-source.c (tui_source_window::set_contents):
4915 Simplify "nlines" calculation.
4916
6eb1129c
SV
49172020-02-06 Shahab Vahedi <shahab@synopsys.com>
4918
4919 * MAINTAINERS (Write After Approval): Add myself.
4920
c6a42d11
CB
49212020-02-05 Christian Biesinger <cbiesinger@google.com>
4922
4923 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
4924 function call.
4925
c8ecdda6
CB
49262020-02-05 Christian Biesinger <cbiesinger@google.com>
4927
4928 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
4929
f6480e70
MR
49302020-02-05 Maciej W. Rozycki <macro@wdc.com>
4931
4932 * nat/riscv-linux-tdesc.h: New file.
4933 * nat/riscv-linux-tdesc.c: New file, taking code from...
4934 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4935 ... here.
4936 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
4937 NATDEPFILES.
4938
dcc9fbc6
AB
49392020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
4940
4941 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
4942 we don't set the fake simulator ptid to the null_ptid.
4943
719546c4
SM
49442020-02-03 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
4947 * gdbthread.h (class thread_info) <resumed>: Likewise.
4948 * infrun.c (resume_1): Likewise.
4949 (proceed): Likewise.
4950 (infrun_thread_stop_requested): Likewise.
4951 (stop_all_threads): Likewise.
4952 (handle_inferior_event): Likewise.
4953 (restart_threads): Likewise.
4954 (finish_step_over): Likewise.
4955 (keep_going_stepped_thread): Likewise.
4956 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
4957 (linux_handle_extended_wait): Likewise.
4958 * record-btrace.c (get_thread_current_frame_id): Likewise.
4959 * record-full.c (record_full_wait_1): Likewise.
4960 * remote.c (remote_target::process_initial_stop_replies): Likewise.
4961 * target.c (target_resume): Likewise.
4962 * thread.c (set_running_thread): Likewise.
4963
e409c542
AKS
49642020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4965
4966 * f-valprint.c (f77_print_array_1): Changed datatype of index
4967 variable to LONGEST from int to enable it to contain bound
4968 values correctly.
4969
ee98c0da
MR
49702020-02-03 Maciej W. Rozycki <macro@wdc.com>
4971
4972 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
4973 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
4974 offsets according to FLEN determined.
4975 (riscv_linux_nat_target::read_description): Determine FLEN
4976 dynamically.
4977 (riscv_linux_nat_target::fetch_registers): Size regset buffer
4978 according to FLEN determined.
4979 (riscv_linux_nat_target::store_registers): Likewise.
4980
aa66aac4
SV
49812020-02-01 Shahab Vahedi <shahab@synopsys.com>
4982
4983 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4984 when reg->group is empty and reggroup is not.
4985
fd9faca8
TT
49862020-01-31 Tom Tromey <tromey@adacore.com>
4987
4988 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
4989 Call beneath target's mourn_inferior after unpushing.
4990
42330a68
AB
49912020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 PR tui/9765
4994 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
4995 have enough lines to fill the screen, still return the lowest
4996 address we found.
4997
7a27a45b
AB
49982020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4999
5000 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
5001 '-', '<', and '>' commands.
5002
c47f70e2
PA
50032020-01-29 Pedro Alves <palves@redhat.com>
5004 Sergio Durigan Junior <sergiodj@redhat.com>
5005
5006 * infcmd.c (construct_inferior_arguments): Assert that
5007 'argc' is greater than 0.
5008
5133a315
LM
50092020-01-29 Luis Machado <luis.machado@linaro.org>
5010
5011 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
5012 (BRK_INSN_MASK): Define to 0xd4200000.
5013 (aarch64_program_breakpoint_here_p): New function.
5014 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
5015 * arch-utils.c (default_program_breakpoint_here_p): Moved from
5016 breakpoint.c.
5017 * arch-utils.h (default_program_breakpoint_here_p): Moved from
5018 breakpoint.h
5019 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
5020 call gdbarch_program_breakpoint_here_p.
5021 (program_breakpoint_here): Moved to arch-utils.c, renamed to
5022 default_program_breakpoint_here_p, changed return type to bool and
5023 simplified.
5024 * breakpoint.h (program_breakpoint_here): Moved prototype to
5025 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
5026 return type to bool.
5027 * gdbarch.c: Regenerate.
5028 * gdbarch.h: Regenerate.
5029 * gdbarch.sh (program_breakpoint_here_p): New method.
5030 * infrun.c (handle_signal_stop): Call
5031 gdbarch_program_breakpoint_here_p.
5032
168f8c6b
TT
50332020-01-26 Tom Tromey <tom@tromey.com>
5034
5035 * ctfread.c (struct ctf_fp_info): Reindent.
5036 (_initialize_ctfread): Remove.
5037
128a391f
TT
50382020-01-26 Tom Tromey <tom@tromey.com>
5039
5040 * psymtab.c (partial_map_expand_apply)
5041 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5042 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5043 (psym_print_stats, psym_expand_symtabs_for_function)
5044 (psym_map_symbol_filenames, psym_map_matching_symbols)
5045 (psym_expand_symtabs_matching)
5046 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5047 (maintenance_check_psymtabs): Use new methods.
5048 * psympriv.h (struct partial_symtab) <readin_p,
5049 get_compunit_symtab>: New methods.
5050 <readin, compunit_symtab>: Remove members.
5051 (struct standard_psymtab): New.
5052 (struct legacy_psymtab): Derive from standard_psymtab.
5053 * dwarf2read.h (struct dwarf2_psymtab): Derive from
5054 standard_psymtab.
5055 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
5056
0494dbec
TT
50572020-01-26 Tom Tromey <tom@tromey.com>
5058
5059 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
5060 read_dependencies. Add assert.
5061 * psymtab.c (partial_symtab::read_dependencies): New method.
5062 * psympriv.h (struct partial_symtab) <read_dependencies>: New
5063 method.
5064 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
5065 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
5066 read_dependencies.
5067 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
5068 Add assert.
5069
8566b89b
TT
50702020-01-26 Tom Tromey <tom@tromey.com>
5071
5072 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
5073 Call expand_psymtab.
5074 (xcoff_read_symtab): Call expand_psymtab.
5075 (xcoff_start_psymtab, xcoff_end_psymtab): Set
5076 legacy_expand_psymtab.
5077 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
5078 method.
5079 (struct legacy_psymtab) <expand_psymtab>: Implement.
5080 <legacy_expand_psymtab>: New member.
5081 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
5082 (parse_partial_symbols): Set legacy_expand_psymtab.
5083 (psymtab_to_symtab_1): Change argument order. Call
5084 expand_psymtab.
5085 (new_psymtab): Set legacy_expand_psymtab.
5086 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
5087 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
5088 expand_psymtab.
5089 (dwarf2_psymtab::expand_psymtab): Rename from
5090 psymtab_to_symtab_1. Call expand_psymtab.
5091 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
5092 (dbx_end_psymtab): Likewise.
5093 (dbx_psymtab_to_symtab_1): Change argument order. Call
5094 expand_psymtab.
5095 (dbx_read_symtab): Call expand_psymtab.
5096 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
5097 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
5098 (ctf_psymtab::read_symtab): Call expand_psymtab.
5099
077cbab2
TT
51002020-01-26 Tom Tromey <tom@tromey.com>
5101
5102 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
5103 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
5104 messages.
5105 * mdebugread.c (mdebug_read_symtab): Remove prints.
5106 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
5107 assert.
5108 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
5109
891813be
TT
51102020-01-26 Tom Tromey <tom@tromey.com>
5111
5112 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
5113 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
5114 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
5115 legacy_symtab.
5116 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
5117 * psymtab.c (psymtab_to_symtab): Call method.
5118 (dump_psymtab): Update.
5119 * psympriv.h (struct partial_symtab): Add virtual destructor.
5120 <read_symtab>: New method.
5121 (struct legacy_symtab): New.
5122 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
5123 (struct pst_map) <pst>: Now a legacy_psymtab.
5124 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
5125 (new_psymtab): Use legacy_psymtab.
5126 * dwarf2read.h (struct dwarf2_psymtab): New.
5127 (struct dwarf2_per_cu_data) <psymtab>: Use it.
5128 * dwarf2read.c (dwarf2_create_include_psymtab)
5129 (dwarf2_build_include_psymtabs, create_type_unit_group)
5130 (create_partial_symtab, process_psymtab_comp_unit_reader)
5131 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
5132 (set_partial_user): Use dwarf2_psymtab.
5133 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
5134 (psymtab_to_symtab_1, process_full_comp_unit)
5135 (process_full_type_unit, dwarf2_ranges_read)
5136 (dwarf2_get_pc_bounds, psymtab_include_file_name)
5137 (dwarf_decode_lines): Use dwarf2_psymtab.
5138 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
5139 (add_address_entry_worker, write_one_signatured_type)
5140 (recursively_count_psymbols, recursively_write_psymbols)
5141 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
5142 (write_debug_names): Likewise.
5143 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
5144 <pst>: Now a legacy_psymtab.
5145 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
5146 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
5147 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
5148 * ctfread.c (struct ctf_psymtab): New.
5149 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
5150 ctf_psymtab.
5151 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
5152 (create_partial_symtab): Return a ctf_psymtab.
5153 (scan_partial_symbols): Update.
5154
c3693a1d
TT
51552020-01-26 Tom Tromey <tom@tromey.com>
5156
5157 * xcoffread.c (xcoff_start_psymtab): Use new.
5158 * psymtab.c (partial_symtab::partial_symtab): New constructor,
5159 renamed from start_psymtab_common.
5160 * psympriv.h (struct partial_symtab): Add new constructor.
5161 (start_psymtab_common): Don't declare.
5162 * mdebugread.c (parse_partial_symbols): Use new.
5163 * dwarf2read.c (create_partial_symtab): Use new.
5164 * dbxread.c (start_psymtab): Use new.
5165 * ctfread.c (create_partial_symtab): Use new.
5166
32caafd0
TT
51672020-01-26 Tom Tromey <tom@tromey.com>
5168
5169 * xcoffread.c (xcoff_end_psymtab): Use new.
5170 * psymtab.c (start_psymtab_common): Use new.
5171 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
5172 Update.
5173 * psympriv.h (struct partial_symtab): Add parameters to
5174 constructor. Don't inline.
5175 (allocate_psymtab): Don't declare.
5176 * mdebugread.c (new_psymtab): Use new.
5177 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
5178 * dbxread.c (dbx_end_psymtab): Use new.
5179
abaa2f23
TT
51802020-01-26 Tom Tromey <tom@tromey.com>
5181
5182 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
5183 allocate_psymtab. Update documentation.
5184 * psymtab.c (psymtab_storage::install_psymtab): Rename from
5185 allocate_psymtab. Do not use new.
5186 (allocate_psymtab): Use new. Update.
5187
6d94535f
TT
51882020-01-26 Tom Tromey <tom@tromey.com>
5189
5190 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5191 * psymtab.c (psym_print_stats): Update.
5192 * psympriv.h (struct partial_symtab) <readin,
5193 psymtabs_addrmap_supported, anonymous>: Now bool.
5194 * mdebugread.c (psymtab_to_symtab_1): Update.
5195 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
5196 (build_type_psymtabs_reader, psymtab_to_symtab_1)
5197 (process_full_comp_unit, process_full_type_unit): Update.
5198 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5199 * ctfread.c (psymtab_to_symtab): Update.
5200
6f17252b
TT
52012020-01-26 Tom Tromey <tom@tromey.com>
5202
5203 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
5204 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
5205 * psymtab.c (psymtab_storage): Delete psymtabs.
5206 (psymtab_storage::allocate_psymtab): Use new.
5207 (psymtab_storage::discard_psymtab): Use delete.
5208 * psympriv.h (struct partial_symtab): Add constructor and
5209 initializers.
5210
f6f1cebc
TT
52112020-01-26 Tom Tromey <tom@tromey.com>
5212
5213 * machoread.c: Do not include psympriv.h.
5214
e47e48f6
PW
52152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5216
5217 * NEWS: Mention the new option and the set/show commands.
5218
a2fedca9
PW
52192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5220
5221 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
5222 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
5223 (validate_exec_file): New variables, enums, functions.
5224 (exec_file_locate_attach, print_section_info): Style the filenames.
5225 (_initialize_exec): Install show_exec_file_mismatch_command and
5226 set_exec_file_mismatch_command.
5227 * gdbcore.h (validate_exec_file): Declare.
5228 * infcmd.c (attach_command): Call validate_exec_file.
5229 * remote.c ( remote_target::remote_add_inferior): Likewise.
5230
7ffa82e1
AB
52312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5232
5233 * frame.c (find_frame_sal): Move call to get_next_frame into more
5234 inner scope.
5235 * inline-frame.c (inilne_state) <inline_state>: Update argument
5236 types.
5237 (inilne_state) <skipped_symbol>: Rename to...
5238 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
5239 (skip_inline_frames): Build vector of skipped symbols and use this
5240 to reate the inline_state.
5241 (inline_skipped_symbol): Add a comment and some assertions, fetch
5242 skipped symbol from the list.
5243
3d92a3e3
AB
52442020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5245
5246 * buildsym.c (lte_is_less_than): Delete.
5247 (buildsym_compunit::end_symtab_with_blockvector): Create local
5248 lambda function to sort line table entries, and use
5249 std::stable_sort instead of std::sort.
5250 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
5251 markers when looking for a previous line.
5252
94a72be7
AB
52532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5254
5255 * dwarf2read.c (lnp_state_machine::record_line): Include
5256 end_sequence parameter in debug print out. Record the line if we
5257 are at an end_sequence marker even if it's not the start of a
5258 statement.
5259 * symmisc.c (maintenance_print_one_line_table): Print end of
5260 sequence markers with 'END' not '0'.
5261
53af73bf
PA
52622020-01-24 Pedro Alves <palves@redhat.com>
5263
5264 PR gdb/25410
5265 * thread.c (scoped_restore_current_thread::restore): Use
5266 switch_to_inferior_no_thread.
5267 * exec.c: Include "progspace-and-thread.h".
5268 (add_target_sections, remove_target_sections):
5269 scoped_restore_current_pspace_and_thread instead of
5270 scoped_restore_current_thread.
5271 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
5272 and aspace to the inferior before calling clone_program_space.
5273 Remove stale comment.
5274
3050c6f4
CB
52752020-01-24 Christian Biesinger <cbiesinger@google.com>
5276
5277 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
5278 (arm_netbsd_nat_target::fetch_registers): ...this.
5279 (arm_nbsd_nat_target::store_registers): Rename to...
5280 (arm_netbsd_nat_target::store_registers): ...this.
5281
73685c7e
CB
52822020-01-24 Christian Biesinger <cbiesinger@google.com>
5283
5284 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5285 register_t.
5286
89203d40
CB
52872020-01-24 Christian Biesinger <cbiesinger@google.com>
5288
5289 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
5290 Update comment.
5291 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
5292 Likewise.
5293 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
5294 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
5295 the correct replacement (iterate_over_regset_sections).
5296 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
5297 Update comment.
5298
1ba1ac88
AB
52992020-01-24 Graham Markall <graham.markall@embecosm.com>
5300
5301 PR gdb/23718
5302 * gdb/python/python.c (execute_gdb_command): Call
5303 async_enable_stdin in catch block.
5304
f3364a6d
AB
53052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5306
5307 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
5308 SWITCH_THRU_ALL_UIS.
5309
733d0a67
AB
53102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5311
5312 PR tui/9765
5313 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
5314 comment, add extra parameter, and update to store previous symbol
5315 when appropriate.
5316 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
5317 add extra parameter.
5318 * tui/tui-disasm.c (tui_disassemble): Update header comment,
5319 remove unneeded parameter, add try/catch around gdb_print_insn,
5320 rewrite to add items to asm_lines vector.
5321 (tui_find_backward_disassembly_start_address): New function.
5322 (tui_find_disassembly_address): Updated throughout.
5323 (tui_disasm_window::set_contents): Update for changes to
5324 tui_disassemble.
5325 (tui_disasm_window::do_scroll_vertical): No need to adjust the
5326 number of lines to scroll.
5327
b3b3bada
SM
53282020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5329
5330 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
5331 (SECT_OFF_DATA): Likewise.
5332 (SECT_OFF_RODATA): Likewise.
5333 (SECT_OFF_TEXT): Likewise.
5334 (SECT_OFF_BSS): Likewise.
5335 (struct objfile) <text_section_offset, data_section_offset>: New
5336 methods.
5337 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
5338 objfile::text_section_offset.
5339 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
5340 * coffread.c (coff_symtab_read): Likewise.
5341 (enter_linenos): Likewise.
5342 (process_coff_symbol): Likewise.
5343 * ctfread.c (get_objfile_text_range): Likewise.
5344 * dtrace-probe.c (dtrace_probe::get_relocated_address):
5345 Use objfile::data_section_offset.
5346 * dwarf2-frame.c (execute_cfa_program): Use
5347 objfile::text_section_offset.
5348 (dwarf2_frame_find_fde): Likewise.
5349 * dwarf2read.c (create_addrmap_from_index): Likewise.
5350 (create_addrmap_from_aranges): Likewise.
5351 (dw2_find_pc_sect_compunit_symtab): Likewise.
5352 (process_psymtab_comp_unit_reader): Likewise.
5353 (add_partial_symbol): Likewise.
5354 (add_partial_subprogram): Likewise.
5355 (process_full_comp_unit): Likewise.
5356 (read_file_scope): Likewise.
5357 (read_func_scope): Likewise.
5358 (read_lexical_block_scope): Likewise.
5359 (read_call_site_scope): Likewise.
5360 (dwarf2_rnglists_process): Likewise.
5361 (dwarf2_ranges_process): Likewise.
5362 (dwarf2_ranges_read): Likewise.
5363 (dwarf_decode_lines_1): Likewise.
5364 (new_symbol): Likewise.
5365 (dwarf2_fetch_die_loc_sect_off): Likewise.
5366 (dwarf2_per_cu_text_offset): Likewise.
5367 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5368 * hppa-tdep.c (read_unwind_info): Likewise.
5369 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
5370 * psympriv.h (struct partial_symtab): Likewise.
5371 * psymtab.c (find_pc_sect_psymtab): Likewise.
5372 * solib-svr4.c (enable_break): Likewise.
5373 * stap-probe.c (relocate_address): Use
5374 objfile::data_section_offset.
5375 * xcoffread.c (enter_line_range): Use
5376 objfile::text_section_offset.
5377 (read_xcoff_symtab): Likewise.
5378
ab53f382
SM
53792020-01-23 Simon Marchi <simon.marchi@efficios.com>
5380
5381 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
5382 declaration to narrower scopes.
5383
e7eee665
SM
53842020-01-23 Simon Marchi <simon.marchi@efficios.com>
5385
5386 * darwin-nat.h (struct darwin_exception_msg, enum
5387 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
5388 Move up.
5389 (class darwin_nat_target) <wait_1, check_new_threads,
5390 decode_exception_message, decode_message, stop_inferior,
5391 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
5392 * darwin-nat.c (darwin_check_new_threads): Rename to...
5393 (darwin_nat_target::check_new_threads): ... this.
5394 (darwin_suspend_inferior_it): Remove.
5395 (darwin_decode_exception_message): Rename to...
5396 (darwin_nat_target::decode_exception_message): ... this.
5397 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
5398 (darwin_decode_message): Rename to...
5399 (darwin_nat_target::decode_message): ... this.
5400 (cancel_breakpoint): Rename to...
5401 (darwin_nat_target::cancel_breakpoint): ... this.
5402 (darwin_wait): Rename to...
5403 (darwin_nat_target::wait_1): ... this. Use range-based for loop
5404 instead of iterate_over_inferiors.
5405 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
5406 (darwin_stop_inferior): Rename to...
5407 (darwin_nat_target::stop_inferior): ... this.
5408 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
5409 (darwin_init_thread_list): Rename to...
5410 (darwin_nat_target::init_thread_list): ... this.
5411 (darwin_ptrace_him): Rename to...
5412 (darwin_nat_target::ptrace_him): ... this.
5413 (darwin_nat_target::create_inferior): Pass lambda function to
5414 fork_inferior.
5415 (darwin_nat_target::detach): Call stop_inferior instead of
5416 darwin_stop_inferior.
5417 * fork-inferior.h (fork_inferior): Change init_trace_fun
5418 parameter to gdb::function_view.
5419 * fork-inferior.c (fork_inferior): Likewise.
5420
c162ed3e
HD
54212020-01-23 Hannes Domani <ssbssa@yahoo.de>
5422
5423 * i386-cygwin-tdep.c (core_process_module_section): Update.
5424 * windows-nat.c (struct lm_info_windows): Add text_offset.
5425 (windows_xfer_shared_libraries): Update.
5426 * windows-tdep.c (windows_xfer_shared_library):
5427 Add text_offset_cached argument.
5428 * windows-tdep.h (windows_xfer_shared_library): Update.
5429
a1237872
SM
54302020-01-21 Simon Marchi <simon.marchi@efficios.com>
5431
5432 * gdbarch.sh: Add declaration for _initialize_gdbarch.
5433
b3ee6dd9
SM
54342020-01-21 Simon Marchi <simon.marchi@efficios.com>
5435
5436 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
5437 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
5438 replace with range-based for.
5439 (gdbsim_interrupt_inferior): Remove.
5440 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
5441 with a range-based for. Inline code from
5442 gdbsim_interrupt_inferior.
5443
f9fac3c8
SM
54442020-01-21 Simon Marchi <simon.marchi@efficios.com>
5445
5446 * infrun.c (proceed): Fix indentation.
5447
f6474de9
TT
54482020-01-21 Tom Tromey <tromey@adacore.com>
5449
5450 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
5451 * python/python.c (python_extension_ops): Update.
5452 (gdbpy_colorize): New function.
5453 * python/lib/gdb/__init__.py (colorize): New function.
5454 * extension.h (ext_lang_colorize): Declare.
5455 * extension.c (ext_lang_colorize): New function.
5456 * extension-priv.h (struct extension_language_ops) <colorize>: New
5457 member.
5458 * cli/cli-style.c (_initialize_cli_style): Update help text.
5459
f0c702d4
LM
54602020-01-21 Luis Machado <luis.machado@linaro.org>
5461
5462 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
5463 <cond>: Change type to bool.
5464 (aarch64_displaced_step_b_cond): Update cond to use bool type.
5465 (aarch64_displaced_step_cb): Likewise.
5466 (aarch64_displaced_step_tb): Likewise.
5467
1ab139e5
LM
54682020-01-21 Luis Machado <luis.machado@linaro.org>
5469
5470 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
5471 output.
5472
0c271889
LM
54732020-01-21 Luis Machado <luis.machado@linaro.org>
5474
5475 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
5476 <pc_adjust>: Adjust the documentation.
5477 (aarch64_displaced_step_fixup): Check if PC really moved before
5478 adjusting it.
5479
4d89c1c7
TT
54802020-01-19 Tom Tromey <tom@tromey.com>
5481
5482 * disasm.c (~gdb_disassembler): New destructor.
5483 (gdb_buffered_insn_length): Call disassemble_free_target.
5484 * disasm.h (class gdb_disassembler): Declare destructor. Use
5485 DISABLE_COPY_AND_ASSIGN.
5486
c0ab21c2
TT
54872020-01-19 Tom Tromey <tom@tromey.com>
5488
5489 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
5490 (die_reader_func_ftype): Remove.
5491 (cutu_reader): New class.
5492 (dw2_get_file_names_reader): Remove "data" parameter.
5493 (dw2_get_file_names): Use cutu_reader.
5494 (create_debug_type_hash_table): Update.
5495 (read_cutu_die_from_dwo): Update comment.
5496 (lookup_dwo_unit): Add dwo_name parameter.
5497 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
5498 die_reader_func_ftype and data parameters.
5499 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
5500 Remove die_reader_func_ftype and data parameters.
5501 (~cutu_reader): New; from init_cutu_and_read_dies.
5502 (cutu_reader::cutu_reader): Rename from
5503 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
5504 and data parameters.
5505 (init_cutu_and_read_dies_simple): Remove.
5506 (struct process_psymtab_comp_unit_data): Remove.
5507 (process_psymtab_comp_unit_reader): Remove data parameter; add
5508 want_partial_unit and pretend_language parameters.
5509 (process_psymtab_comp_unit): Use cutu_reader.
5510 (build_type_psymtabs_reader): Remove data parameter.
5511 (build_type_psymtabs_1): Use cutu_reader.
5512 (process_skeletonless_type_unit): Likewise.
5513 (load_partial_comp_unit_reader): Remove.
5514 (load_partial_comp_unit): Use cutu_reader.
5515 (load_full_comp_unit_reader): Remove.
5516 (load_full_comp_unit): Use cutu_reader.
5517 (struct create_dwo_cu_data): Remove.
5518 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
5519 dwo_unit parameters.
5520 (create_cus_hash_table): Use cutu_reader.
5521 (struct dwarf2_read_addr_index_data): Remove.
5522 (dwarf2_read_addr_index_reader): Remove.
5523 (dwarf2_read_addr_index): Use cutu_reader.
5524 (read_signatured_type_reader): Remove.
5525 (read_signatured_type): Use cutu_reader.
5526
45bbae5c
TT
55272020-01-19 Tom Tromey <tom@tromey.com>
5528
5529 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
5530 * tui/tui-wingeneral.h (class tui_suppress_output): New.
5531 (tui_wrefresh): Declare.
5532 * tui/tui-wingeneral.c (suppress_output): New global.
5533 (tui_suppress_output, ~tui_suppress_output): New constructor and
5534 destructor.
5535 (tui_wrefresh): New function.
5536 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
5537 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
5538 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
5539 method.
5540 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
5541 tui_wrefresh.
5542 (tui_data_window::no_refresh): New method.
5543 (tui_data_item_window::refresh_window): Call tui_wrefresh.
5544 (tui_reg_command): Use tui_suppress_output
5545 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
5546 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
5547 method.
5548 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
5549
4f13c1c0
TT
55502020-01-19 Tom Tromey <tom@tromey.com>
5551
5552 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5553 Handle case where symtab is null.
5554
fa47e446
SM
55552020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5556
5557 * linux-fork.c (one_fork_p): Simplify.
5558
26f42329
SM
55592020-01-17 Simon Marchi <simon.marchi@efficios.com>
5560
5561 * top.c (struct qt_args): Remove.
5562 (kill_or_detach): Change return type to void, replace `void *`
5563 parameter with a proper one.
5564 (print_inferior_quit_action): Likewise.
5565 (quit_confirm): Use range-based for loop to iterate over inferiors.
5566 (quit_force): Likewise.
5567
a9ac81b1
SM
55682020-01-17 Simon Marchi <simon.marchi@efficios.com>
5569
5570 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
5571 `void *` parameter with proper parameters.
5572 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
5573 (print_one_inferior): Change return type to void, replace `void *`
5574 parameter with proper parameters.
5575 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
5576 inferiors.
5577 (get_other_inferior): Remove.
5578 (mi_cmd_remove_inferior): Use range-based loop to iterate over
5579 inferiors.
5580
788eca49
SM
55812020-01-17 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * mi/mi-interp.c (report_initial_inferior): Remove.
5584 (mi_interp::init): Use range-based for to iterate over inferiors.
5585
d9bc85b6
SM
55862020-01-17 Simon Marchi <simon.marchi@efficios.com>
5587
5588 * python/py-inferior.c (build_inferior_list): Remove.
5589 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
5590
40c94099
CB
55912020-01-16 Christian Biesinger <cbiesinger@google.com>
5592
5593 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
5594 (btrace_stitch_trace): Likewise.
5595 * charset.c (intermediate_encoding): Likewise (vaild).
5596 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
5597 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
5598 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
5599
e0cdfe3c
HD
56002020-01-16 Hannes Domani <ssbssa@yahoo.de>
5601
5602 * windows-tdep.c (windows_get_tlb_type):
5603 Add rtl_user_process_parameters type.
5604
790f1718 56052020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 5606 Norbert Lange <nolange79@gmail.com>
790f1718
PA
5607
5608 PR build/24805
5609 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
5610 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
5611 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
5612 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
5613 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
5614 (ps_plog): Redeclare exported functions with default visibility.
5615
3112ed97
NA
56162020-01-16 Nitika Achra <Nitika.Achra@amd.com>
5617
5618 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
5619 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
5620
8dc3273e
SM
56212020-01-15 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * infcmd.c (post_create_inferior): Use get_thread_regcache
5624 instead of get_current_regcache.
5625
ff47f4f0
TT
56262020-01-14 Tom Tromey <tom@tromey.com>
5627
5628 PR symtab/12535:
5629 * python/python.c (gdbpy_decode_line): Treat empty string the same
5630 as no argument.
5631
975f45b7
TT
56322020-01-14 Tom Tromey <tom@tromey.com>
5633
5634 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
5635
25e57356
TT
56362020-01-14 Tom Tromey <tom@tromey.com>
5637
5638 * nat/linux-btrace.c: Don't include <config.h>.
5639 * nat/linux-ptrace.c: Don't include <config.h>.
5640 * nat/x86-linux-dregs.c: Don't include <config.h>.
5641
05ea2a05
TT
56422020-01-14 Tom Tromey <tom@tromey.com>
5643
5644 * configure: Rebuild.
5645 * configure.ac: Move many checks to ../gdbsupport/common.m4.
5646
01027315
TT
56472020-01-14 Tom Tromey <tom@tromey.com>
5648
5649 * nat/x86-linux-dregs.c: Include configh.h.
5650 * nat/linux-ptrace.c: Include configh.h.
5651 * nat/linux-btrace.c: Include configh.h.
5652 * defs.h: Include config.h, bfd.h.
5653 * configure.ac: Don't source common.host.
5654 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
5655 * configure: Rebuild.
5656 * acinclude.m4: Update path.
5657 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
5658 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
5659 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
5660 (CLIBS): Add LIBSUPPORT.
5661 (CDEPS): Likewise.
5662 (COMMON_SFILES): Remove gdbsupport files.
5663 (HFILES_NO_SRCDIR): Likewise.
5664 (stamp-version): Update path to create-version.sh.
5665 (ALLDEPFILES): Remove gdbsupport files.
5666
b2ceabe8
TT
56672020-01-14 Tom Tromey <tom@tromey.com>
5668
5669 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
5670 USE_WIN32API when needed.
5671 * configure.ac (USE_WIN32API): Don't define.
5672 (WIN32LIBS): Use WIN32APILIBS.
5673 * configure: Rebuild.
5674
25c51f71
TT
56752020-01-14 Tom Tromey <tom@tromey.com>
5676
5677 * configure: Rebuild.
5678 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
5679
717c684d
BE
56802020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5681
5682 * skip.c (skip_function_command): Make skip w/o arguments use the
5683 name of the inlined function if pc is inside any inlined function.
5684
7da6a5b9
LM
56852020-01-14 Luis Machado <luis.machado@linaro.org>
5686
5687 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
5688 * infrun.c (resume_1): Likewise.
5689 (handle_inferior_event): Remove stale comment.
5690 * linux-nat.c (linux_nat_target::resume): Update comments.
5691 (save_stop_reason): Likewise.
5692 (linux_nat_filter_event): Likewise.
5693 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
5694
44e4c775
AB
56952020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5696
5697 * elfread.c (record_minimal_symbol): Set section index to 0 for
5698 non-allocatable sections.
5699
18a8505e
AT
5700
57012020-01-13 Ali Tamur <tamur@google.com>
5702
5703 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
5704 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
5705 to gdb::optional. Update comments.
5706 (dwo_file): Update comments.
5707 (read_attribute): Update API to take an additional out parameter,
5708 need_reprocess. This is used to mark attributes that need other
5709 attributes (e.g. str_offsets_base) for correct computation which may not
5710 have been read yet.
5711 (read_attribute_reprocess): New function declaration.
5712 (read_addr_index): Likewise.
5713 (read_dwo_str_index): Likewise.
5714 (read_stub_str_index): Likewise.
5715 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
5716 (lookup_addr_base): New function definition.
5717 (lookup_ranges_base): Likewise.
5718 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
5719 lookup_ranges_base.
5720 (init_cutu_and_read_dies): Update comments.
5721 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
5722 unit. This is used to inherit parent's str_offsets_base and addr_base.
5723 Update comments.
5724 (init_cutu_and_read_dies_simple): Reflect API changes.
5725 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
5726 (create_cus_hash_table): Change API to take parent compile unit.
5727 Reflect API changes.
5728 (open_and_init_dwo_file): Reflect API changes.
5729 (dwarf2_get_pc_bounds): Update comments.
5730 (dwarf2_record_block_ranges): Likewise.
5731 (read_full_die_1): Change implementation to reprocess attributes that
5732 need str_offsets_base and addr_base.
5733 (partial_die_info::read): Likewise.
5734 (read_attribute_reprocess): New function definition.
5735 (read_attribute_value): Change API to take an additional out parameter,
5736 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
5737 when a non-dwo compile unit has index based attributes.
5738 (read_attribute): Reflect API changes.
5739 (read_addr_index_1): Reflect API changes. Update comments.
5740 (dwarf2_read_addr_index_data): Reflect API changes.
5741 (dwarf2_read_addr_index): Likewise.
5742 (read_str_index): Change API and implementation. This becomes a helper
5743 to be used by the new string index related methods. Update error
5744 message and comments.
5745 (read_dwo_str_index): New function definition.
5746 (read_stub_str_index): Likewise.
5747 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
5748 * symfile.h (dwarf2_debug_sections): Likewise.
5749 * xcoffread.c (dwarf2_debug_sections): Likewise.
5750
0cac9354
SM
57512020-01-13 Simon Marchi <simon.marchi@efficios.com>
5752
5753 * gdbcore.h (struct core_fns) <core_read_registers>: Change
5754 core_reg_sect type to gdb_byte *.
5755 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
5756 * cris-tdep.c (fetch_core_registers): Likewise.
5757 * corelow.c (core_target::get_core_register_section): Change
5758 type of `contents` to gdb::byte_vector.
5759
9a6d629c
AB
57602020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5761
5762 * tui/tui-wingeneral.c (box_win): Position the title in the center
5763 of the border.
5764
d8b2f9e3
SM
57652020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5766
5767 * corelow.c (core_target::get_core_register_section): Use
5768 std::vector instead of alloca.
5769
bb564c58
SM
57702020-01-13 Simon Marchi <simon.marchi@efficios.com>
5771
5772 * warning.m4: Add -Wmissing-declarations to build_warnings.
5773 * configure: Re-generate.
5774
6b366111
SM
57752020-01-13 Simon Marchi <simon.marchi@efficios.com>
5776
5777 * python/python.c (init__gdb_module): Add declaration.
5778
6c265988
SM
57792020-01-13 Simon Marchi <simon.marchi@efficios.com>
5780
5781 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
5782 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
5783 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
5784 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
5785 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
5786 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
5787 * ada-exp.y (_initialize_ada_exp): Add declaration.
5788 * ada-lang.c (_initialize_ada_language): Add declaration.
5789 * ada-tasks.c (_initialize_tasks): Add declaration.
5790 * agent.c (_initialize_agent): Add declaration.
5791 * aix-thread.c (_initialize_aix_thread): Add declaration.
5792 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
5793 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
5794 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
5795 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
5796 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
5797 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5798 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
5799 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
5800 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
5801 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
5802 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
5803 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
5804 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
5805 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
5806 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
5807 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
5808 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
5809 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
5810 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
5811 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
5812 * annotate.c (_initialize_annotate): Add declaration.
5813 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
5814 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
5815 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
5816 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
5817 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
5818 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
5819 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
5820 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
5821 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
5822 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
5823 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
5824 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
5825 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5826 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
5827 * auto-load.c (_initialize_auto_load): Add declaration.
5828 * auxv.c (_initialize_auxv): Add declaration.
5829 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
5830 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
5831 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
5832 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
5833 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
5834 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
5835 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
5836 * breakpoint.c (_initialize_breakpoint): Add declaration.
5837 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
5838 * btrace.c (_initialize_btrace): Add declaration.
5839 * charset.c (_initialize_charset): Add declaration.
5840 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
5841 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5842 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5843 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
5844 * cli/cli-script.c (_initialize_cli_script): Add declaration.
5845 * cli/cli-style.c (_initialize_cli_style): Add declaration.
5846 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
5847 * coffread.c (_initialize_coffread): Add declaration.
5848 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
5849 * compile/compile.c (_initialize_compile): Add declaration.
5850 * complaints.c (_initialize_complaints): Add declaration.
5851 * completer.c (_initialize_completer): Add declaration.
5852 * copying.c (_initialize_copying): Add declaration.
5853 * corefile.c (_initialize_core): Add declaration.
5854 * corelow.c (_initialize_corelow): Add declaration.
5855 * cp-abi.c (_initialize_cp_abi): Add declaration.
5856 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
5857 * cp-support.c (_initialize_cp_support): Add declaration.
5858 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
5859 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
5860 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
5861 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
5862 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
5863 * ctfread.c (_initialize_ctfread): Add declaration.
5864 * d-lang.c (_initialize_d_language): Add declaration.
5865 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
5866 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
5867 * dbxread.c (_initialize_dbxread): Add declaration.
5868 * dcache.c (_initialize_dcache): Add declaration.
5869 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
5870 * disasm.c (_initialize_disasm): Add declaration.
5871 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
5872 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
5873 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
5874 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
5875 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
5876 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
5877 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
5878 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
5879 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
5880 * elfread.c (_initialize_elfread): Add declaration.
5881 * exec.c (_initialize_exec): Add declaration.
5882 * extension.c (_initialize_extension): Add declaration.
5883 * f-lang.c (_initialize_f_language): Add declaration.
5884 * f-valprint.c (_initialize_f_valprint): Add declaration.
5885 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
5886 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
5887 * filesystem.c (_initialize_filesystem): Add declaration.
5888 * findcmd.c (_initialize_mem_search): Add declaration.
5889 * findvar.c (_initialize_findvar): Add declaration.
5890 * fork-child.c (_initialize_fork_child): Add declaration.
5891 * frame-base.c (_initialize_frame_base): Add declaration.
5892 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5893 * frame.c (_initialize_frame): Add declaration.
5894 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
5895 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
5896 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
5897 * gcore.c (_initialize_gcore): Add declaration.
5898 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
5899 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
5900 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
5901 * gdbarch.c (_initialize_gdbarch): Add declaration.
5902 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
5903 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
5904 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
5905 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
5906 * go-lang.c (_initialize_go_language): Add declaration.
5907 * go32-nat.c (_initialize_go32_nat): Add declaration.
5908 * guile/guile.c (_initialize_guile): Add declaration.
5909 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5910 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
5911 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
5912 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
5913 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
5914 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
5915 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
5916 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
5917 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
5918 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
5919 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
5920 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
5921 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
5922 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
5923 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
5924 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
5925 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
5926 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
5927 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
5928 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
5929 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
5930 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
5931 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
5932 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
5933 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
5934 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
5935 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
5936 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
5937 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
5938 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
5939 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
5940 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
5941 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
5942 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
5943 * infcall.c (_initialize_infcall): Add declaration.
5944 * infcmd.c (_initialize_infcmd): Add declaration.
5945 * inflow.c (_initialize_inflow): Add declaration.
5946 * infrun.c (_initialize_infrun): Add declaration.
5947 * interps.c (_initialize_interpreter): Add declaration.
5948 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
5949 * jit.c (_initialize_jit): Add declaration.
5950 * language.c (_initialize_language): Add declaration.
5951 * linux-fork.c (_initialize_linux_fork): Add declaration.
5952 * linux-nat.c (_initialize_linux_nat): Add declaration.
5953 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
5954 * linux-thread-db.c (_initialize_thread_db): Add declaration.
5955 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
5956 * m2-lang.c (_initialize_m2_language): Add declaration.
5957 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
5958 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
5959 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
5960 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
5961 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5962 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
5963 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
5964 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
5965 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
5966 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5967 * machoread.c (_initialize_machoread): Add declaration.
5968 * macrocmd.c (_initialize_macrocmd): Add declaration.
5969 * macroscope.c (_initialize_macroscope): Add declaration.
5970 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
5971 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
5972 * maint.c (_initialize_maint_cmds): Add declaration.
5973 * mdebugread.c (_initialize_mdebugread): Add declaration.
5974 * memattr.c (_initialize_mem): Add declaration.
5975 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
5976 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
5977 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
5978 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
5979 * mi/mi-main.c (_initialize_mi_main): Add declaration.
5980 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
5981 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
5982 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
5983 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
5984 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
5985 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
5986 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
5987 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
5988 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
5989 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5990 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
5991 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
5992 * mipsread.c (_initialize_mipsread): Add declaration.
5993 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
5994 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
5995 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
5996 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
5997 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
5998 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
5999 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
6000 * nto-procfs.c (_initialize_procfs): Add declaration.
6001 * objc-lang.c (_initialize_objc_language): Add declaration.
6002 * observable.c (_initialize_observer): Add declaration.
6003 * opencl-lang.c (_initialize_opencl_language): Add declaration.
6004 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
6005 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
6006 * osabi.c (_initialize_gdb_osabi): Add declaration.
6007 * osdata.c (_initialize_osdata): Add declaration.
6008 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6009 * parse.c (_initialize_parse): Add declaration.
6010 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
6011 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
6012 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
6013 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
6014 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
6015 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
6016 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
6017 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
6018 * printcmd.c (_initialize_printcmd): Add declaration.
6019 * probe.c (_initialize_probe): Add declaration.
6020 * proc-api.c (_initialize_proc_api): Add declaration.
6021 * proc-events.c (_initialize_proc_events): Add declaration.
6022 * proc-service.c (_initialize_proc_service): Add declaration.
6023 * procfs.c (_initialize_procfs): Add declaration.
6024 * producer.c (_initialize_producer): Add declaration.
6025 * psymtab.c (_initialize_psymtab): Add declaration.
6026 * python/python.c (_initialize_python): Add declaration.
6027 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
6028 * record-btrace.c (_initialize_record_btrace): Add declaration.
6029 * record-full.c (_initialize_record_full): Add declaration.
6030 * record.c (_initialize_record): Add declaration.
6031 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
6032 * regcache.c (_initialize_regcache): Add declaration.
6033 * reggroups.c (_initialize_reggroup): Add declaration.
6034 * remote-notif.c (_initialize_notif): Add declaration.
6035 * remote-sim.c (_initialize_remote_sim): Add declaration.
6036 * remote.c (_initialize_remote): Add declaration.
6037 * reverse.c (_initialize_reverse): Add declaration.
6038 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
6039 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
6040 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
6041 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
6042 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
6043 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
6044 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
6045 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
6046 Add declaration.
6047 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
6048 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
6049 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
6050 * rust-exp.y (_initialize_rust_exp): Add declaration.
6051 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
6052 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
6053 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
6054 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
6055 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
6056 * score-tdep.c (_initialize_score_tdep): Add declaration.
6057 * ser-go32.c (_initialize_ser_dos): Add declaration.
6058 * ser-mingw.c (_initialize_ser_windows): Add declaration.
6059 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
6060 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
6061 * ser-uds.c (_initialize_ser_socket): Add declaration.
6062 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
6063 * serial.c (_initialize_serial): Add declaration.
6064 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
6065 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
6066 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
6067 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
6068 * skip.c (_initialize_step_skip): Add declaration.
6069 * sol-thread.c (_initialize_sol_thread): Add declaration.
6070 * solib-aix.c (_initialize_solib_aix): Add declaration.
6071 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
6072 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
6073 * solib-frv.c (_initialize_frv_solib): Add declaration.
6074 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6075 * solib-target.c (_initialize_solib_target): Add declaration.
6076 * solib.c (_initialize_solib): Add declaration.
6077 * source-cache.c (_initialize_source_cache): Add declaration.
6078 * source.c (_initialize_source): Add declaration.
6079 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
6080 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
6081 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
6082 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
6083 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
6084 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
6085 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
6086 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
6087 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
6088 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
6089 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
6090 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
6091 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
6092 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
6093 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
6094 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
6095 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
6096 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
6097 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
6098 * stabsread.c (_initialize_stabsread): Add declaration.
6099 * stack.c (_initialize_stack): Add declaration.
6100 * stap-probe.c (_initialize_stap_probe): Add declaration.
6101 * std-regs.c (_initialize_frame_reg): Add declaration.
6102 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
6103 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
6104 * symfile.c (_initialize_symfile): Add declaration.
6105 * symmisc.c (_initialize_symmisc): Add declaration.
6106 * symtab.c (_initialize_symtab): Add declaration.
6107 * target.c (_initialize_target): Add declaration.
6108 * target-connection.c (_initialize_target_connection): Add
6109 declaration.
6110 * target-dcache.c (_initialize_target_dcache): Add declaration.
6111 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
6112 * thread.c (_initialize_thread): Add declaration.
6113 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
6114 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
6115 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
6116 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
6117 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
6118 * tracectf.c (_initialize_ctf): Add declaration.
6119 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
6120 * tracefile.c (_initialize_tracefile): Add declaration.
6121 * tracepoint.c (_initialize_tracepoint): Add declaration.
6122 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
6123 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
6124 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
6125 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
6126 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
6127 * tui/tui-win.c (_initialize_tui_win): Add declaration.
6128 * tui/tui.c (_initialize_tui): Add declaration.
6129 * typeprint.c (_initialize_typeprint): Add declaration.
6130 * ui-style.c (_initialize_ui_style): Add declaration.
6131 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
6132 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
6133 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
6134 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
6135 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
6136 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
6137 * unittests/filtered_iterator-selftests.c
6138 (_initialize_filtered_iterator_selftests): Add declaration.
6139 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
6140 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
6141 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
6142 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
6143 * unittests/main-thread-selftests.c
6144 (_initialize_main_thread_selftests): Add declaration.
6145 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
6146 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
6147 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
6148 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
6149 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
6150 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
6151 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
6152 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
6153 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
6154 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
6155 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
6156 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
6157 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
6158 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
6159 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
6160 declaration.
6161 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
6162 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
6163 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
6164 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
6165 * user-regs.c (_initialize_user_regs): Add declaration.
6166 * utils.c (_initialize_utils): Add declaration.
6167 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
6168 * valops.c (_initialize_valops): Add declaration.
6169 * valprint.c (_initialize_valprint): Add declaration.
6170 * value.c (_initialize_values): Add declaration.
6171 * varobj.c (_initialize_varobj): Add declaration.
6172 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
6173 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
6174 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6175 * windows-nat.c (_initialize_windows_nat): Add declaration.
6176 (_initialize_check_for_gdb_ini): Add declaration.
6177 (_initialize_loadable): Add declaration.
6178 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
6179 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
6180 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
6181 * xcoffread.c (_initialize_xcoffread): Add declaration.
6182 * xml-support.c (_initialize_xml_support): Add declaration.
6183 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
6184 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
6185 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
6186 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
6187
e2de1eec
SM
61882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * regformats/regdat.sh: Generate declaration for init function.
6191
e0037b4c
SM
61922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
6195 up.
6196 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
6197 close_one_inferior>: New methods.
6198 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
6199 pass down target to find_inferior_pid.
6200 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
6201 Pass down target to find_inferior_ptid.
6202 (gdbsim_target::create_inferior): Pass down target to
6203 add_thread_silent.
6204 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
6205 target down to find_inferior_ptid and switch_to_thread.
6206 (gdbsim_target::close): Update to call close_one_inferior.
6207 (struct resume_data): Remove.
6208 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
6209 directly, rather than through a void pointer.
6210 (gdbsim_target::resume): Update to call resume_one_inferior.
6211
58920b5b
SM
62122020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6213
6214 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
6215
4ec89149
PA
62162020-01-12 Pedro Alves <palves@redhat.com>
6217
6218 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
6219 directly for the current inferior instead of
6220 discard_all_inferiors.
6221 (discard_all_inferiors): Delete.
6222
7c392d1d
TT
62232020-01-11 Tom Tromey <tom@tromey.com>
6224
6225 * tui/tui-wingeneral.c (box_win): Check cli_styling.
6226 * tui/tui-winsource.c (tui_source_window_base::refill): Use
6227 deprecated_safe_get_selected_frame.
6228
d9ebdab7
TBA
62292020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6230
6231 * inferior.c (print_inferior): Switch inferior before printing it.
6232
f3c469b9
PA
62332020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
6234 Pedro Alves <palves@redhat.com>
6235
6236 * progspace-and-thread.c (switch_to_program_space_and_thread):
6237 Assert there's an inferior for PSPACE. Use
6238 switch_to_inferior_no_thread to switch the inferior too.
6239 * progspace.c (program_space::~program_space): Call
6240 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
6241 (program_space::free_all_objfiles): Don't call clear_symtab_users
6242 here.
6243 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
6244
65c574f6
PA
62452020-01-10 Pedro Alves <palves@redhat.com>
6246
6247 * NEWS: Mention multi-target debugging, "info connections", and
6248 "add-inferior -no-connection".
6249
2f4fcf00
PA
62502020-01-10 Pedro Alves <palves@redhat.com>
6251
6252 * infrun.c: Include "target-connection.h".
6253 (check_multi_target_resumption): New.
6254 (proceed): Call it.
6255 * target-connection.c (make_target_connection_string): Make
6256 extern.
6257 * target-connection.h (make_target_connection_string): Declare.
6258
121b3efd
PA
62592020-01-10 Pedro Alves <palves@redhat.com>
6260
6261 * Makefile.in (COMMON_SFILES): Add target-connection.c.
6262 * inferior.c (uiout_field_connection): New function.
6263 (print_inferior): Add new "connection-id" column.
6264 (add_inferior_command): Show connection number/string of added
6265 inferior.
6266 * process-stratum-target.h
6267 (process_stratum_target::connection_string): New virtual method.
6268 (process_stratum_target::connection_number): New field.
6269 * remote.c (remote_target::connection_string): New override.
6270 * target-connection.c: New file.
6271 * target-connection.h: New file.
6272 * target.c (decref_target): Remove process_stratum targets from
6273 the connection list.
6274 (target_stack::push): Add process_stratum targets to the
6275 connection list.
6276
4f837581
PA
62772020-01-10 Pedro Alves <palves@redhat.com>
6278
6279 Revert:
6280 2016-04-12 Pedro Alves <palves@redhat.com>
6281 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6282 Remove references to name.
6283 * serial.h (struct serial) <name>: Delete.
6284
f4ec508e
PA
62852020-01-10 Pedro Alves <palves@redhat.com>
6286
6287 * gdbarch-selftests.c (register_to_value_test): Remove "target
6288 already pushed" check.
6289
5b6d1e4f
PA
62902020-01-10 Pedro Alves <palves@redhat.com>
6291 John Baldwin <jhb@FreeBSD.org>
6292
6293 * aarch64-linux-nat.c
6294 (aarch64_linux_nat_target::thread_architecture): Adjust.
6295 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
6296 (task_command_1): Likewise.
6297 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
6298 (aix_thread_target::wait, aix_thread_target::fetch_registers)
6299 (aix_thread_target::store_registers)
6300 (aix_thread_target::thread_alive): Adjust.
6301 * amd64-fbsd-tdep.c: Include "inferior.h".
6302 (amd64fbsd_get_thread_local_address): Pass down target.
6303 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
6304 thread's gdbarch instead of target_gdbarch.
6305 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
6306 get_last_target_status.
6307 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6308 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
6309 inferiors.
6310 (update_inserted_breakpoint_locations): Skip if inferiors with no
6311 execution.
6312 (update_global_location_list): When handling moribund locations,
6313 find representative inferior for location's pspace, and use thread
6314 count of its process_stratum target.
6315 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
6316 * bsd-uthread.c (bsd_uthread_target::wait): Use
6317 as_process_stratum_target and adjust thread_change_ptid and
6318 add_thread calls.
6319 (bsd_uthread_target::update_thread_list): Use
6320 as_process_stratum_target and adjust find_thread_ptid,
6321 thread_change_ptid and add_thread calls.
6322 * btrace.c (maint_btrace_packet_history_cmd): Adjust
6323 find_thread_ptid call.
6324 * corelow.c (add_to_thread_list): Adjust add_thread call.
6325 (core_target_open): Adjust add_thread_silent and thread_count
6326 calls.
6327 (core_target::pid_to_str): Adjust find_inferior_ptid call.
6328 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
6329 * event-top.c (async_disconnect): Pop targets from all inferiors.
6330 * exec.c (add_target_sections): Push exec target on all inferiors
6331 sharing the program space.
6332 (remove_target_sections): Remove the exec target from all
6333 inferiors sharing the program space.
6334 (exec_on_vfork): New.
6335 * exec.h (exec_on_vfork): Declare.
6336 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
6337 Pass it down.
6338 (fbsd_nat_target::update_thread_list): Adjust.
6339 (fbsd_nat_target::resume): Adjust.
6340 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
6341 down.
6342 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
6343 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
6344 get_thread_arch_regcache call.
6345 * fork-child.c (gdb_startup_inferior): Pass target down to
6346 startup_inferior and set_executing.
6347 * gdbthread.h (struct process_stratum_target): Forward declare.
6348 (add_thread, add_thread_silent, add_thread_with_info)
6349 (in_thread_list): Add process_stratum_target parameter.
6350 (find_thread_ptid(inferior*, ptid_t)): New overload.
6351 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
6352 parameter.
6353 (all_threads()): Delete overload.
6354 (all_threads, all_non_exited_threads): Add process_stratum_target
6355 parameter.
6356 (all_threads_safe): Use brace initialization.
6357 (thread_count): Add process_stratum_target parameter.
6358 (set_resumed, set_running, set_stop_requested, set_executing)
6359 (threads_are_executing, finish_thread_state): Add
6360 process_stratum_target parameter.
6361 (switch_to_thread): Use is_current_thread.
6362 * i386-fbsd-tdep.c: Include "inferior.h".
6363 (i386fbsd_get_thread_local_address): Pass down target.
6364 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
6365 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
6366 have_inferiors check.
6367 * inf-ptrace.c (inf_ptrace_target::create_inferior)
6368 (inf_ptrace_target::attach): Adjust.
6369 * infcall.c (run_inferior_call): Adjust.
6370 * infcmd.c (run_command_1): Pass target to
6371 scoped_finish_thread_state.
6372 (proceed_thread_callback): Skip inferiors with no execution.
6373 (continue_command): Rename 'all_threads' local to avoid hiding
6374 'all_threads' function. Adjust get_last_target_status call.
6375 (prepare_one_step): Adjust set_running call.
6376 (signal_command): Use user_visible_resume_target. Compare thread
6377 pointers instead of inferior_ptid.
6378 (info_program_command): Adjust to pass down target.
6379 (attach_command): Mark target's 'thread_executing' flag.
6380 (stop_current_target_threads_ns): New, factored out from ...
6381 (interrupt_target_1): ... this. Switch inferior before making
6382 target calls.
6383 * inferior-iter.h
6384 (struct all_inferiors_iterator, struct all_inferiors_range)
6385 (struct all_inferiors_safe_range)
6386 (struct all_non_exited_inferiors_range): Filter on
6387 process_stratum_target too. Remove explicit.
6388 * inferior.c (inferior::inferior): Push dummy target on target
6389 stack.
6390 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
6391 Add process_stratum_target parameter, and pass it down.
6392 (have_live_inferiors): Adjust.
6393 (switch_to_inferior_and_push_target): New.
6394 (add_inferior_command, clone_inferior_command): Handle
6395 "-no-connection" parameter. Use
6396 switch_to_inferior_and_push_target.
6397 (_initialize_inferior): Mention "-no-connection" option in
6398 the help of "add-inferior" and "clone-inferior" commands.
6399 * inferior.h: Include "process-stratum-target.h".
6400 (interrupt_target_1): Use bool.
6401 (struct inferior) <push_target, unpush_target, target_is_pushed,
6402 find_target_beneath, top_target, process_target, target_at,
6403 m_stack>: New.
6404 (discard_all_inferiors): Delete.
6405 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
6406 (all_inferiors, all_non_exited_inferiors): Add
6407 process_stratum_target parameter.
6408 * infrun.c: Include "gdb_select.h" and <unordered_map>.
6409 (target_last_proc_target): New global.
6410 (follow_fork_inferior): Push target on new inferior. Pass target
6411 to add_thread_silent. Call exec_on_vfork. Handle target's
6412 reference count.
6413 (follow_fork): Adjust get_last_target_status call. Also consider
6414 target.
6415 (follow_exec): Push target on new inferior.
6416 (struct execution_control_state) <target>: New field.
6417 (user_visible_resume_target): New.
6418 (do_target_resume): Call target_async.
6419 (resume_1): Set target's threads_executing flag. Consider resume
6420 target.
6421 (commit_resume_all_targets): New.
6422 (proceed): Also consider resume target. Skip threads of inferiors
6423 with no execution. Commit resumtion in all targets.
6424 (start_remote): Pass current inferior to wait_for_inferior.
6425 (infrun_thread_stop_requested): Consider target as well. Pass
6426 thread_info pointer to clear_inline_frame_state instead of ptid.
6427 (infrun_thread_thread_exit): Consider target as well.
6428 (random_pending_event_thread): New inferior parameter. Use it.
6429 (do_target_wait): Rename to ...
6430 (do_target_wait_1): ... this. Add inferior parameter, and pass it
6431 down.
6432 (threads_are_resumed_pending_p, do_target_wait): New.
6433 (prepare_for_detach): Adjust calls.
6434 (wait_for_inferior): New inferior parameter. Handle it. Use
6435 do_target_wait_1 instead of do_target_wait.
6436 (fetch_inferior_event): Adjust. Switch to representative
6437 inferior. Pass target down.
6438 (set_last_target_status): Add process_stratum_target parameter.
6439 Save target in global.
6440 (get_last_target_status): Add process_stratum_target parameter and
6441 handle it.
6442 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
6443 (context_switch): Check inferior_ptid == null_ptid before calling
6444 inferior_thread().
6445 (get_inferior_stop_soon): Pass down target.
6446 (wait_one): Rename to ...
6447 (poll_one_curr_target): ... this.
6448 (struct wait_one_event): New.
6449 (wait_one): New.
6450 (stop_all_threads): Adjust.
6451 (handle_no_resumed, handle_inferior_event): Adjust to consider the
6452 event's target.
6453 (switch_back_to_stepped_thread): Also consider target.
6454 (print_stop_event): Update.
6455 (normal_stop): Update. Also consider the resume target.
6456 * infrun.h (wait_for_inferior): Remove declaration.
6457 (user_visible_resume_target): New declaration.
6458 (get_last_target_status, set_last_target_status): New
6459 process_stratum_target parameter.
6460 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6461 process_stratum_target parameter, and use it.
6462 (clear_inline_frame_state (thread_info*)): New.
6463 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6464 process_stratum_target parameter.
6465 (clear_inline_frame_state (thread_info*)): Declare.
6466 * linux-fork.c (delete_checkpoint_command): Pass target down to
6467 find_thread_ptid.
6468 (checkpoint_command): Adjust.
6469 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
6470 instead of just tweaking inferior_ptid.
6471 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
6472 (exit_lwp): Pass target down to find_thread_ptid.
6473 (attach_proc_task_lwp_callback): Pass target down to
6474 add_thread/set_running/set_executing.
6475 (linux_nat_target::attach): Pass target down to
6476 thread_change_ptid.
6477 (get_detach_signal): Pass target down to find_thread_ptid.
6478 Consider last target status's target.
6479 (linux_resume_one_lwp_throw, resume_lwp)
6480 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
6481 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
6482 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
6483 (linux_nat_target::async_wait_fd): New.
6484 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
6485 target down.
6486 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
6487 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
6488 * linux-thread-db.c (struct thread_db_info::process_target): New
6489 field.
6490 (add_thread_db_info): Save target.
6491 (get_thread_db_info): New process_stratum_target parameter. Also
6492 match target.
6493 (delete_thread_db_info): New process_stratum_target parameter.
6494 Also match target.
6495 (thread_from_lwp): Adjust to pass down target.
6496 (thread_db_notice_clone): Pass down target.
6497 (check_thread_db_callback): Pass down target.
6498 (try_thread_db_load_1): Always push the thread_db target.
6499 (try_thread_db_load, record_thread): Pass target down.
6500 (thread_db_target::detach): Pass target down. Always unpush the
6501 thread_db target.
6502 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
6503 target down. Always unpush the thread_db target.
6504 (find_new_threads_callback, thread_db_find_new_threads_2)
6505 (thread_db_target::update_thread_list): Pass target down.
6506 (thread_db_target::pid_to_str): Pass current inferior down.
6507 (thread_db_target::get_thread_local_address): Pass target down.
6508 (thread_db_target::resume, maintenance_check_libthread_db): Pass
6509 target down.
6510 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
6511 * procfs.c (procfs_target::procfs_init_inferior): Declare.
6512 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
6513 (procfs_init_inferior): Rename to ...
6514 (procfs_target::procfs_init_inferior): ... this and adjust.
6515 (procfs_target::create_inferior, procfs_notice_thread)
6516 (procfs_do_thread_registers): Adjust.
6517 * ppc-fbsd-tdep.c: Include "inferior.h".
6518 (ppcfbsd_get_thread_local_address): Pass down target.
6519 * proc-service.c (ps_xfer_memory): Switch current inferior and
6520 program space as well.
6521 (get_ps_regcache): Pass target down.
6522 * process-stratum-target.c
6523 (process_stratum_target::thread_address_space)
6524 (process_stratum_target::thread_architecture): Pass target down.
6525 * process-stratum-target.h
6526 (process_stratum_target::threads_executing): New field.
6527 (as_process_stratum_target): New.
6528 * ravenscar-thread.c
6529 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
6530 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
6531 down.
6532 * record-btrace.c (record_btrace_target::info_record): Adjust.
6533 (record_btrace_target::record_method)
6534 (record_btrace_target::record_is_replaying)
6535 (record_btrace_target::fetch_registers)
6536 (get_thread_current_frame_id, record_btrace_target::resume)
6537 (record_btrace_target::wait, record_btrace_target::stop): Pass
6538 target down.
6539 * record-full.c (record_full_wait_1): Switch to event thread.
6540 Pass target down.
6541 * regcache.c (regcache::regcache)
6542 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
6543 process_stratum_target parameter and handle it.
6544 (current_thread_target): New global.
6545 (get_thread_regcache): Add process_stratum_target parameter and
6546 handle it. Switch inferior before calling target method.
6547 (get_thread_regcache): Pass target down.
6548 (get_thread_regcache_for_ptid): Pass target down.
6549 (registers_changed_ptid): Add process_stratum_target parameter and
6550 handle it.
6551 (registers_changed_thread, registers_changed): Pass target down.
6552 (test_get_thread_arch_aspace_regcache): New.
6553 (current_regcache_test): Define a couple local test_target_ops
6554 instances and use them for testing.
6555 (readwrite_regcache): Pass process_stratum_target parameter.
6556 (cooked_read_test, cooked_write_test): Pass mock_target down.
6557 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
6558 (get_thread_arch_aspace_regcache): Add process_stratum_target
6559 parameter.
6560 (regcache::target): New method.
6561 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
6562 (regcache::registers_changed_ptid): Add process_stratum_target
6563 parameter.
6564 (regcache::m_target): New field.
6565 (registers_changed_ptid): Add process_stratum_target parameter.
6566 * remote.c (remote_state::supports_vCont_probed): New field.
6567 (remote_target::async_wait_fd): New method.
6568 (remote_unpush_and_throw): Add remote_target parameter.
6569 (get_current_remote_target): Adjust.
6570 (remote_target::remote_add_inferior): Push target.
6571 (remote_target::remote_add_thread)
6572 (remote_target::remote_notice_new_inferior)
6573 (get_remote_thread_info): Pass target down.
6574 (remote_target::update_thread_list): Skip threads of inferiors
6575 bound to other targets. (remote_target::close): Don't discard
6576 inferiors. (remote_target::add_current_inferior_and_thread)
6577 (remote_target::process_initial_stop_replies)
6578 (remote_target::start_remote)
6579 (remote_target::remote_serial_quit_handler): Pass down target.
6580 (remote_target::remote_unpush_target): New remote_target
6581 parameter. Unpush the target from all inferiors.
6582 (remote_target::remote_unpush_and_throw): New remote_target
6583 parameter. Pass it down.
6584 (remote_target::open_1): Check whether the current inferior has
6585 execution instead of checking whether any inferior is live. Pass
6586 target down.
6587 (remote_target::remote_detach_1): Pass down target. Use
6588 remote_unpush_target.
6589 (extended_remote_target::attach): Pass down target.
6590 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
6591 (remote_target::append_resumption): Pass down target.
6592 (remote_target::append_pending_thread_resumptions)
6593 (remote_target::remote_resume_with_hc, remote_target::resume)
6594 (remote_target::commit_resume): Pass down target.
6595 (remote_target::remote_stop_ns): Check supports_vCont_probed.
6596 (remote_target::interrupt_query)
6597 (remote_target::remove_new_fork_children)
6598 (remote_target::check_pending_events_prevent_wildcard_vcont)
6599 (remote_target::remote_parse_stop_reply)
6600 (remote_target::process_stop_reply): Pass down target.
6601 (first_remote_resumed_thread): New remote_target parameter. Pass
6602 it down.
6603 (remote_target::wait_as): Pass down target.
6604 (unpush_and_perror): New remote_target parameter. Pass it down.
6605 (remote_target::readchar, remote_target::remote_serial_write)
6606 (remote_target::getpkt_or_notif_sane_1)
6607 (remote_target::kill_new_fork_children, remote_target::kill): Pass
6608 down target.
6609 (remote_target::mourn_inferior): Pass down target. Use
6610 remote_unpush_target.
6611 (remote_target::core_of_thread)
6612 (remote_target::remote_btrace_maybe_reopen): Pass down target.
6613 (remote_target::pid_to_exec_file)
6614 (remote_target::thread_handle_to_thread_info): Pass down target.
6615 (remote_target::async_wait_fd): New.
6616 * riscv-fbsd-tdep.c: Include "inferior.h".
6617 (riscv_fbsd_get_thread_local_address): Pass down target.
6618 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
6619 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
6620 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
6621 Adjust.
6622 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
6623 * solib-svr4.c (enable_break): Pass down target.
6624 * spu-multiarch.c (parse_spufs_run): Pass down target.
6625 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
6626 * target-delegates.c: Regenerate.
6627 * target.c (g_target_stack): Delete.
6628 (current_top_target): Return the current inferior's top target.
6629 (target_has_execution_1): Refer to the passed-in inferior's top
6630 target.
6631 (target_supports_terminal_ours): Check whether the initial
6632 inferior was already created.
6633 (decref_target): New.
6634 (target_stack::push): Incref/decref the target.
6635 (push_target, push_target, unpush_target): Adjust.
6636 (target_stack::unpush): Defref target.
6637 (target_is_pushed): Return bool. Adjust to refer to the current
6638 inferior's target stack.
6639 (dispose_inferior): Delete, and inline parts ...
6640 (target_preopen): ... here. Only dispose of the current inferior.
6641 (target_detach): Hold strong target reference while detaching.
6642 Pass target down.
6643 (target_thread_name): Add assertion.
6644 (target_resume): Pass down target.
6645 (target_ops::beneath, find_target_at): Adjust to refer to the
6646 current inferior's target stack.
6647 (get_dummy_target): New.
6648 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
6649 has a thread running.
6650 (initialize_targets): Rename to ...
6651 (_initialize_target): ... this.
6652 * target.h: Include "gdbsupport/refcounted-object.h".
6653 (struct target_ops): Inherit refcounted_object.
6654 (target_ops::shortname, target_ops::longname): Make const.
6655 (target_ops::async_wait_fd): New method.
6656 (decref_target): Declare.
6657 (struct target_ops_ref_policy): New.
6658 (target_ops_ref): New typedef.
6659 (get_dummy_target): Declare function.
6660 (target_is_pushed): Return bool.
6661 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
6662 (all_matching_threads_iterator::all_matching_threads_iterator):
6663 Handle filter target.
6664 * thread-iter.h (struct all_matching_threads_iterator, struct
6665 all_matching_threads_range, class all_non_exited_threads_range):
6666 Filter by target too. Remove explicit.
6667 * thread.c (threads_executing): Delete.
6668 (inferior_thread): Pass down current inferior.
6669 (clear_thread_inferior_resources): Pass down thread pointer
6670 instead of ptid_t.
6671 (add_thread_silent, add_thread_with_info, add_thread): Add
6672 process_stratum_target parameter. Use it for thread and inferior
6673 searches.
6674 (is_current_thread): New.
6675 (thread_info::deletable): Use it.
6676 (find_thread_ptid, thread_count, in_thread_list)
6677 (thread_change_ptid, set_resumed, set_running): New
6678 process_stratum_target parameter. Pass it down.
6679 (set_executing): New process_stratum_target parameter. Pass it
6680 down. Adjust reference to 'threads_executing'.
6681 (threads_are_executing): New process_stratum_target parameter.
6682 Adjust reference to 'threads_executing'.
6683 (set_stop_requested, finish_thread_state): New
6684 process_stratum_target parameter. Pass it down.
6685 (switch_to_thread): Also match inferior.
6686 (switch_to_thread): New process_stratum_target parameter. Pass it
6687 down.
6688 (update_threads_executing): Reimplement.
6689 * top.c (quit_force): Pop targets from all inferior.
6690 (gdb_init): Don't call initialize_targets.
6691 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
6692 Declare.
6693 (windows_add_thread, windows_delete_thread): Adjust.
6694 (get_windows_debug_event): Rename to ...
6695 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
6696 * tracefile-tfile.c (tfile_target_open): Pass down target.
6697 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
6698 Forward declare.
6699 (switch_to_thread): Add process_stratum_target parameter.
6700 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
6701 parameter. Use it.
6702 (mi_on_resume): Pass target down.
6703 * nat/fork-inferior.c (startup_inferior): Add
6704 process_stratum_target parameter. Pass it down.
6705 * nat/fork-inferior.h (startup_inferior): Add
6706 process_stratum_target parameter.
6707 * python/py-threadevent.c (py_get_event_thread): Pass target down.
6708
75c6c844
PA
67092020-01-10 Pedro Alves <palves@redhat.com>
6710
6711 * remote.c (remote_target::start_remote): Don't set inferior_ptid
6712 directly. Instead find the first thread in the thread list and
6713 use switch_to_thread.
6714
78f2c40a
PA
67152020-01-10 Pedro Alves <palves@redhat.com>
6716
6717 * remote.c (remote_target::remote_add_inferior): Don't bind a
6718 process to the current inferior if the current inferior is already
6719 bound to a process.
6720
e7af6c70
TBA
67212020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6722 Pedro Alves <palves@redhat.com>
6723
6724 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
6725 If no process is specified, return null_ptid instead of
6726 inferior_ptid.
6727 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
6728 TARGET_WAITKIND_SIGNALLED with no pid.
6729
31ba933e
PA
67302020-01-10 Pedro Alves <palves@redhat.com>
6731
6732 * remote.c (first_remote_resumed_thread): New.
6733 (remote_target::wait_as): Use it as default event_ptid instead of
6734 inferior_ptid.
6735
735fc2ca
PA
67362020-01-10 Pedro Alves <palves@redhat.com>
6737
6738 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
6739
c17e02e1
PA
67402020-01-10 Pedro Alves <palves@redhat.com>
6741
6742 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
6743 not -1.
6744
ab1ddbcf
PA
67452020-01-10 Pedro Alves <palves@redhat.com>
6746
6747 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
6748 ptid to get_last_target_status.
6749 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
6750 ptid to get_last_target_status.
6751 * infcmd.c (continue_command): Don't pass a target_waitstatus to
6752 get_last_target_status.
6753 (info_program_command): Don't pass a target_waitstatus to
6754 get_last_target_status.
6755 * infrun.c (init_wait_for_inferior): Use
6756 nullify_last_target_wait_ptid.
6757 (get_last_target_status): Handle nullptr arguments.
6758 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
6759 (print_stop_event): Don't pass a ptid to get_last_target_status.
6760 (normal_stop): Don't pass a ptid to get_last_target_status.
6761 * infrun.h (get_last_target_status, set_last_target_status): Move
6762 comments here and update.
6763 (nullify_last_target_wait_ptid): Declare.
6764 * linux-fork.c (fork_load_infrun_state): Remove local extern
6765 declaration of nullify_last_target_wait_ptid.
6766 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
6767 to get_last_target_status.
6768
f3f8ece4
PA
67692020-01-10 Pedro Alves <palves@redhat.com>
6770
6771 * gdbthread.h (scoped_restore_current_thread)
6772 <dont_restore, restore, m_dont_restore>: Declare.
6773 * thread.c (thread_alive): Add assertion. Return bool.
6774 (switch_to_thread_if_alive): New.
6775 (prune_threads): Switch inferior/thread.
6776 (print_thread_info_1): Switch thread before calling target methods.
6777 (scoped_restore_current_thread::restore): New, factored out from
6778 ...
6779 (scoped_restore_current_thread::~scoped_restore_current_thread):
6780 ... this.
6781 (scoped_restore_current_thread::scoped_restore_current_thread):
6782 Add assertion.
6783 (thread_apply_all_command, thread_select): Use
6784 switch_to_thread_if_alive.
6785 * infrun.c (proceed, restart_threads, handle_signal_stop)
6786 (switch_back_to_stepped_thread): Switch current thread before
6787 calling target methods.
6788
db2d40f7
PA
67892020-01-10 Pedro Alves <palves@redhat.com>
6790
6791 * inferior.c (switch_to_inferior_no_thread): New function,
6792 factored out from ...
6793 (inferior_command): ... here.
6794 * inferior.h (switch_to_inferior_no_thread): Declare.
6795 * mi/mi-main.c (run_one_inferior): Use
6796 switch_to_inferior_no_thread.
6797
bd420a2d
PA
67982020-01-10 Pedro Alves <palves@redhat.com>
6799
6800 * infcmd.c (kill_command): Remove dead code.
6801
ddf5db90
PA
68022020-01-10 Pedro Alves <palves@redhat.com>
6803
6804 * remote.c (remote_target::mourn_inferior): No longer check
6805 whether the target is running.
6806
5018ce90
PA
68072020-01-10 Pedro Alves <palves@redhat.com>
6808
6809 * corelow.c (core_target::has_execution): Change parameter type to
6810 inferior pointer.
6811 * inferior.c (number_of_live_inferiors): Use
6812 inferior::has_execution instead of target_has_execution_1.
6813 * inferior.h (inferior::has_execution): New.
6814 * linux-thread-db.c (thread_db_target::update_thread_list): Use
6815 inferior::has_execution instead of target_has_execution_1.
6816 * process-stratum-target.c
6817 (process_stratum_target::has_execution): Change parameter type to
6818 inferior pointer. Check the inferior's PID instead of
6819 inferior_ptid.
6820 * process-stratum-target.h
6821 (process_stratum_target::has_execution): Change parameter type to
6822 inferior pointer.
6823 * record-full.c (record_full_core_target::has_execution): Change
6824 parameter type to inferior pointer.
6825 * target.c (target_has_execution_1): Change parameter type to
6826 inferior pointer.
6827 (target_has_execution_current): Adjust.
6828 * target.h (target_ops::has_execution): Change parameter type to
6829 inferior pointer.
6830 (target_has_execution_1): Change parameter type to inferior
6831 pointer. Change return type to bool.
6832 * tracefile.h (tracefile_target::has_execution): Change parameter
6833 type to inferior pointer.
6834
74375d18
PA
68352020-01-10 Pedro Alves <palves@redhat.com>
6836
6837 * exceptions.c (print_flush): Remove current_top_target() check.
6838
acdf84a6
PA
68392020-01-10 Pedro Alves <palves@redhat.com>
6840
6841 * remote.c (show_remote_exec_file): Show the current inferior's
6842 exec-file instead of the command variable's value.
6843
ec506636
PA
68442020-01-10 Pedro Alves <palves@redhat.com>
6845
6846 * record-full.c (record_full_resume_ptid): New global.
6847 (record_full_target::resume): Set it.
6848 (record_full_wait_1): Use record_full_resume_ptid instead of
6849 inferior_ptid.
6850
873657b9
PA
68512020-01-10 Pedro Alves <palves@redhat.com>
6852
6853 * gdbthread.h (scoped_restore_current_thread)
6854 <dont_restore, restore, m_dont_restore>: Declare.
6855 * thread.c (thread_alive): Add assertion. Return bool.
6856 (switch_to_thread_if_alive): New.
6857 (prune_threads): Switch inferior/thread.
6858 (print_thread_info_1): Switch thread before calling target methods.
6859 (scoped_restore_current_thread::restore): New, factored out from
6860 ...
6861 (scoped_restore_current_thread::~scoped_restore_current_thread):
6862 ... this.
6863 (scoped_restore_current_thread::scoped_restore_current_thread):
6864 Add assertion.
6865 (thread_apply_all_command, thread_select): Use
6866 switch_to_thread_if_alive.
6867
7f0ae84c
GB
68682020-01-10 George Barrett <bob@bob131.so>
6869
6870 * stap-probe.c (stap_modify_semaphore): Don't check for null
6871 semaphores.
6872 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
6873 for null semaphores.
6874
f5a7c406
AB
68752020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6876
6877 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
6878 all source windows, and maintain horizontal scroll status while
6879 doing so.
6880
9ae6bf64
TT
68812020-01-09 Tom Tromey <tom@tromey.com>
6882
6883 PR tui/18932:
6884 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
6885 update_source_window, not print_source_lines.
6886
b2efe70c
AB
68872020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6888
6889 * tui/tui.c (tui_enable): Register tui hooks after calling
6890 tui_display_main.
6891
5f23a082
CB
68922020-01-09 Christian Biesinger <cbiesinger@google.com>
6893
6894 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
6895
3061113b
SM
68962020-01-08 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * thread.c (print_thread_info_1): Fix indentation.
6899
57d75002
CB
69002020-01-09 Christian Biesinger <cbiesinger@google.com>
6901
6902 * symtab.c (general_symbol_info::compute_and_set_names): Move the
6903 unique_xmalloc_ptr outside the if to always free the demangled name.
6904
6a053cb1
TT
69052020-01-08 Tom Tromey <tromey@adacore.com>
6906
6907 * xcoffread.c (enter_line_range, read_xcoff_symtab)
6908 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
6909 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
6910 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
6911 Remove.
6912 (section_offsets): New typedef.
6913 * symtab.c (fixup_section, get_msymbol_address): Update.
6914 * symmisc.c (dump_msymbols): Update.
6915 * symfile.h (relative_addr_info_to_section_offsets)
6916 (symfile_map_offsets_to_segments): Update.
6917 * symfile.c (build_section_addr_info_from_objfile)
6918 (init_objfile_sect_indices): Update.
6919 (struct place_section_arg): Change type of "offsets".
6920 (place_section): Update.
6921 (relative_addr_info_to_section_offsets): Change type of
6922 "section_offsets". Remove "num_sections" parameter.
6923 (default_symfile_offsets, syms_from_objfile_1)
6924 (set_objfile_default_section_offset): Update.
6925 (reread_symbols): No need to preserve section offsets by hand.
6926 (symfile_map_offsets_to_segments): Change type of "offsets".
6927 * stap-probe.c (relocate_address): Update.
6928 * stabsread.h (process_one_symbol): Update.
6929 * solib-target.c (struct lm_info_target) <offsets>: Change type.
6930 (solib_target_relocate_section_addresses): Update.
6931 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
6932 Update.
6933 * solib-frv.c (frv_relocate_main_executable): Update.
6934 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6935 * solib-aix.c (solib_aix_get_section_offsets): Change return
6936 type.
6937 (solib_aix_solib_create_inferior_hook): Update.
6938 * remote.c (remote_target::get_offsets): Update.
6939 * psymtab.c (find_pc_sect_psymtab): Update.
6940 * psympriv.h (struct partial_symbol) <address, text_low,
6941 text_high>: Update.
6942 * objfiles.h (obj_section_offset): Update.
6943 (struct objfile) <section_offsets>: Change type.
6944 <num_sections>: Remove.
6945 (objfile_relocate): Update.
6946 * objfiles.c (entry_point_address_query): Update
6947 (relocate_one_symbol): Change type of "section_offsets".
6948 (objfile_relocate1, objfile_relocate1): Change type of
6949 "new_offsets".
6950 (objfile_rebase1): Update.
6951 * mipsread.c (mipscoff_symfile_read): Update.
6952 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
6953 parameter.
6954 * mdebugread.c (parse_symbol): Change type of "section_offsets".
6955 (parse_external, psymtab_to_symtab_1): Update.
6956 * machoread.c (macho_symfile_offsets): Update.
6957 * ia64-tdep.c (ia64_find_unwind_table): Update.
6958 * hppa-tdep.c (read_unwind_info): Update.
6959 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
6960 * dwarf2read.c (create_addrmap_from_index)
6961 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6962 (process_psymtab_comp_unit_reader, add_partial_symbol)
6963 (add_partial_subprogram, process_full_comp_unit)
6964 (read_file_scope, read_func_scope, read_lexical_block_scope)
6965 (read_call_site_scope, dwarf2_rnglists_process)
6966 (dwarf2_ranges_process, dwarf2_ranges_read)
6967 (dwarf_decode_lines_1, var_decode_location, new_symbol)
6968 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
6969 Update.
6970 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
6971 Update.
6972 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
6973 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
6974 (process_one_symbol): Change type of "section_offsets".
6975 * ctfread.c (get_objfile_text_range): Update.
6976 * coffread.c (coff_symtab_read, enter_linenos)
6977 (process_coff_symbol): Update.
6978 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6979 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
6980
456e800a
TT
69812020-01-08 Tom Tromey <tromey@adacore.com>
6982
6983 * dwarf2read.c (parse_macro_definition): Use std::string.
6984 (parse_macro_definition): Likewise.
6985
6dfa2fc2
TT
69862020-01-08 Tom Tromey <tromey@adacore.com>
6987
6988 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
6989 (ATTR_ALLOC_CHUNK): Remove.
6990
421d1616
TT
69912020-01-08 Tom Tromey <tromey@adacore.com>
6992
6993 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
6994
43816ebc
TT
69952020-01-08 Tom Tromey <tromey@adacore.com>
6996
6997 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
6998 (dwarf2_compute_name, open_dwo_file): Likewise.
6999 (process_enumeration_scope): Use std::vector.
7000 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
7001 (partial_die_info::fixup, dwarf2_start_subfile)
7002 (guess_full_die_structure_name, dwarf2_name): Likewise.
7003 (determine_prefix): Update.
7004 (guess_full_die_structure_name): Make return type const.
7005 (partial_die_full_name): Return unique_xmalloc_ptr.
7006 (DW_FIELD_ALLOC_CHUNK): Remove.
7007
4212d509
TT
70082020-01-07 Tom Tromey <tromey@adacore.com>
7009
7010 PR build/24937:
7011 * stap-probe.c (class stap_static_probe_ops): Add constructor.
7012
06a6207a
JT
70132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7014
7015 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
7016
153d79c4
AB
70172020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * stack.c (print_frame_info): Move disassemble_next_line code
7020 inside source_print block.
7021
66182876
EZ
70222020-01-06 Eli Zaretskii <eliz@gnu.org>
7023
7024 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
7025 gdb/signals.h, as we are now using native signal symbols.
7026
cbfa8581
SV
70272020-01-06 Shahab Vahedi <shahab@synopsys.com>
7028
7029 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
7030 overflow by an early check of content vs threshold.
aac66a4c 7031 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
7032 Likewise.
7033
3f602821
EZ
70342020-01-06 Eli Zaretskii <eliz@gnu.org>
7035
7036 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
7037
a08c904d
JT
70382020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7039
7040 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
7041 export table if no section contains it's RVA.
7042
89a65580
EZ
70432020-01-06 Eli Zaretskii <eliz@gnu.org>
7044
7045 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
7046
8b7fcda2
HD
70472020-01-06 Hannes Domani <ssbssa@yahoo.de>
7048
7049 * source.c (print_source_lines_base): Set last_line_listed.
7050
a61b4f69
SV
70512020-01-06 Shahab Vahedi <shahab@synopsys.com>
7052
7053 * tui/tui-disasm.c: Remove trailing spaces.
7054
559e7e50
EZ
70552020-01-06 Eli Zaretskii <eliz@gnu.org>
7056 Pedro Alves <palves@redhat.com>
7057
7058 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
7059 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
7060 (windows_gdb_signal_to_target): New function, uses the above
7061 enumeration to convert GDB internal signal codes to equivalent
7062 Windows codes.
7063 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
7064 * windows-nat.c: Include "gdb_wait.h".
7065 (get_windows_debug_event): Extract the fatal exception from the
7066 exit status and convert to the equivalent Posix signal number.
7067 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
7068 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
7069 * gdbsupport/gdb_wait.c: New file, implements
7070 windows_status_to_termsig.
7071 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
7072 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
7073
f2302a34
AB
70742020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
7075
7076 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
7077 show_layout.
7078
6a5206eb
LM
70792020-01-05 Luis Machado <luis.machado@linaro.org>
7080
7081 * aarch64-linux-nat.c
7082 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
7083 and bfd_mach_aarch64.
7084
6ec1d75e
PW
70852020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7086
7087 * ui-file.c (stdio_file::can_emit_style_escape)
7088 (tee_file::can_emit_style_escape): Ensure style is used also on
7089 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
7090 to gdb_stdout.
7091 * main.c (set_gdb_data_directory): Use file style to output the
7092 warning that the given pathname is not a directory.
7093 * top.c (show_history_filename, gdb_safe_append_history)
7094 (show_gdb_datadir): Use file style.
7095
44f81a76
HD
70962020-01-03 Hannes Domani <ssbssa@yahoo.de>
7097
7098 * solib-target.c (struct lm_info_target):
7099 Change offsets to be a unique_xmalloc_ptr.
7100 (solib_target_relocate_section_addresses): Update.
7101
25057eb0
HD
71022020-01-03 Hannes Domani <ssbssa@yahoo.de>
7103
7104 * windows-nat.c (windows_clear_solib): Free so_list linked list.
7105
6e2118f5
BE
71062020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7107
7108 * MAINTAINERS (Write After Approval): Add myself.
7109
8133c7dc
LM
71102020-01-02 Luis Machado <luis.machado@linaro.org>
7111
7112 * proc-service.c (get_ps_regcache): Remove reference to obsolete
7113 Cell BE architecture.
7114 * target.h (struct target_ops) <thread_architecture>: Likewise.
7115
48189bec
HD
71162020-01-01 Hannes Domani <ssbssa@yahoo.de>
7117
7118 * Makefile.in: Use INSTALL_PROGRAM_ENV.
7119
ead1063b
HD
71202020-01-01 Hannes Domani <ssbssa@yahoo.de>
7121
7122 * MAINTAINERS (Write After Approval): Add myself.
7123
e5d78223
JB
71242020-01-01 Joel Brobecker <brobecker@adacore.com>
7125
7126 * gdbarch.sh: Update copyright year range of generated files.
7127
b811d2c2
JB
71282020-01-01 Joel Brobecker <brobecker@adacore.com>
7129
7130 Update copyright year range in all GDB files.
7131
5f4def5c
JB
71322020-01-01 Joel Brobecker <brobecker@adacore.com>
7133
7134 * copyright.py: Convert to Python 3.
7135
51fd4002
JB
71362020-01-01 Joel Brobecker <brobecker@adacore.com>
7137
7138 * copyright.py: Adapt after move of gnulib directory from gdb
7139 directory to toplevel directory.
7140
5fb651f2
JB
71412020-01-01 Joel Brobecker <brobecker@adacore.com>
7142
7143 * copyright.py (main): Exit if run from the wrong directory.
7144
5dd8bf88
JB
71452020-01-01 Joel Brobecker <brobecker@adacore.com>
7146
7147 * top.c (print_gdb_version): Change copyright year to 2020.
7148
9f71dacb 71492020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 7150
9f71dacb 7151 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 7152
9f71dacb 7153For older changes see ChangeLog-2019.
c906108c
SS
7154\f
7155Local Variables:
7156mode: change-log
7157left-margin: 8
7158fill-column: 74
7159version-control: never
57da7796 7160coding: utf-8
c906108c 7161End: