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