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