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