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