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