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