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