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