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