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