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