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