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