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