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