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