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