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