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