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