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