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