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