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