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