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