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