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