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