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