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