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