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