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