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