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