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