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