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