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