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