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