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