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