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