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