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