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