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