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