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