1 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
3 * windows-nat.c (windows_nat_target::wait): Remove a spurious
4 target_terminal::ours().
6 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
8 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
11 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
13 * breakpoint.c (update_inserted_breakpoint_locations): Remove
16 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
20 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
21 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
22 * sol-thread.c (ps_pdmodel): Don't guard definition.
24 * procfs.c: Fix formatting.
26 * procfs.c (sysset_t_alloc): Remove.
27 (create_procinfo): Use XNEW instead of sysset_t_alloc.
28 (procfs_debug_inferior): Likewise.
29 (procfs_set_exec_trap): Likewise.
30 (proc_set_traced_sysentry): Don't allocate argp dynamically.
31 (proc_set_traced_sysexit): Likewise.
33 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
34 (dead_procinfo): Likewise.
35 (proc_warn): Likewise.
36 (proc_error): Likewise.
37 (proc_get_LDT_entry): Likewise.
38 (do_attach): Likewise.
39 (procfs_target::pid_to_str): Likewise.
40 (iterate_over_mappings): Likewise.
42 * procfs.c (create_procinfo): Fix ARI warning.
43 (proc_get_status): Likewise.
44 (proc_stop_process): Likewise.
45 (proc_run_process): Likewise.
46 (proc_kill): Likewise.
47 (proc_get_LDT_entry): Likewise.
48 (procfs_find_LDT_entry): Likewise.
49 (proc_update_threads): Likewise.
50 (proc_iterate_over_threads): Likewise.
51 (do_attach): Likewise.
52 (procfs_xfer_memory): Likewise.
53 (invalidate_cache): Likewise.
54 (procfs_target::resume): Likewise.
55 (procfs_init_inferior): Likewise.
56 (procfs_set_exec_trap): Likewise.
57 (procfs_target::thread_alive): Likewise.
58 (procfs_target::pid_to_exec_file): Likewise.
59 (iterate_over_mappings): Likewise.
60 (procfs_target::make_corefile_notes): Likewise.
61 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
63 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
64 (procfs_find_LDT_entry): Likewise.
65 * sol-thread.c (ps_lgetLDT): Likewise.
67 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
70 * procfs.c (procfs_target): Declare pid_to_exec_file.
71 (procfs_target::pid_to_exec_file): New.
73 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
75 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
77 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
78 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
80 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
82 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
83 (supply_fpregset, fill_fpregset): Move ...
84 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
85 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
86 Remove references to ioctl-based procfs.
88 Remove PR_MODEL_NATIVE guards.
89 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
90 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
92 2018-09-19 Xavier Roirand <roirand@adacore.com>
95 * solib-darwin.c (darwin_get_dyld_bfd): New function.
96 (darwin_solib_get_all_image_info_addr_at_init): Update call.
97 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
99 2018-09-19 John Baldwin <jhb@FreeBSD.org>
101 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
102 (fbsd_print_sockaddr_in6): Likewise.
104 2018-09-19 Richard Bunt <richard.bunt@arm.com>
105 Chris January <chris.january@arm.com>
107 * eval.c (skip_undetermined_arglist): Skip argument list helper.
108 (evaluate_subexp_standard): Return a dummy type when
109 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
110 OP_F77_UNDETERMINED_ARGLIST case.
111 * expression.h (enum noside): Update comment.
113 2018-09-19 George Vasick <george.vasick@oracle.com>
115 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
117 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
118 April Chin <april.chin@oracle.com>
119 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
121 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
123 (create_procinfo): Print pids in /proc without leading zeros.
125 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
127 * nios2-tdep.c (nios2_gcc_target_options): New.
128 (nios2_gdb_arch_init): Install new hook.
130 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
132 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
134 * update-gnulib.sh: Apply patch.
135 * configure: Re-generate.
137 2018-09-18 John Baldwin <jhb@FreeBSD.org>
139 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
140 description. Make "info proc" command descriptions more
143 2018-09-18 John Baldwin <jhb@FreeBSD.org>
145 * NEWS: Mention 'info proc files' command.
147 2018-09-18 John Baldwin <jhb@FreeBSD.org>
149 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
150 descriptors for IP_FILES and IP_ALL.
152 2018-09-18 John Baldwin <jhb@FreeBSD.org>
154 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
155 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
156 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
157 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
158 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
159 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
160 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
161 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
162 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
163 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
164 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
165 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
166 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
167 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
168 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
169 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
170 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
171 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
172 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
173 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
174 (struct fbsd_sockaddr_un): New types.
175 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
176 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
177 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
178 (fbsd_core_info_proc_files): New functions.
179 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
181 * fbsd-tdep.h (fbsd_info_proc_files_header)
182 (fbsd_info_proc_files_entry): New.
184 2018-09-18 John Baldwin <jhb@FreeBSD.org>
186 * defs.h (enum info_proc_what) [IP_FILES]: New value.
187 * infcmd.c (info_proc_cmd_files): New function.
188 (_initialize_infcmd): Register 'info proc files' command.
190 2018-09-18 John Baldwin <jhb@FreeBSD.org>
192 * gnulib/aclocal-m4-deps.mk: Re-generate.
193 * gnulib/aclocal.m4: Re-generate.
194 * gnulib/config.in: Re-generate.
195 * gnulib/configure: Re-generate.
196 * gnulib/import/Makefile.am: Re-generate.
197 * gnulib/import/Makefile.in: Re-generate.
198 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
199 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
200 * gnulib/import/arpa_inet.in.h: New file.
201 * gnulib/import/inet_ntop.c: New file.
202 * gnulib/import/m4/arpa_inet_h.m4: New file.
203 * gnulib/import/m4/inet_ntop.m4: New file.
204 * gnulib/import/m4/netinet_in_h.m4: New file.
205 * gnulib/import/m4/socklen.m4: New file.
206 * gnulib/import/m4/sockpfaf.m4: New file.
207 * gnulib/import/m4/stdalign.m4: New file.
208 * gnulib/import/m4/sys_uio_h.m4: New file.
209 * gnulib/import/netinet_in.in.h: New file.
210 * gnulib/import/stdalign.in.h: New file.
211 * gnulib/import/sys_socket.c: New file.
212 * gnulib/import/sys_socket.in.h: New file.
213 * gnulib/import/sys_uio.in.h: New file.
214 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
217 2018-09-18 John Baldwin <jhb@FreeBSD.org>
219 * gnulib/aclocal-m4-deps.mk: New file.
220 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
223 2018-09-18 John Baldwin <jhb@FreeBSD.org>
225 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
228 2018-09-18 Tom Tromey <tom@tromey.com>
230 * compile/compile-object-load.c (struct
231 link_hash_table_cleanup_data): Add constructor and destructor.
232 Use DISABLE_COPY_AND_ASSIGN.
233 (~link_hash_table_cleanup_data): Rename from
234 link_hash_table_free. Now a destructor.
235 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
237 2018-09-18 Tom Tromey <tom@tromey.com>
239 * compile/compile-object-run.c (do_module_cleanup): Use delete.
240 * compile/compile-object-load.c (struct munmap_list): Move to
242 (munmap_list::add): Rename from munmap_list_add; rewrite.
243 (munmap_list::~munmap_list): Rename from munmap_list_free.
244 (munmap_listp_free_cleanup): Remove.
245 (compile_object_load): Update.
246 * compile/compile-object-load.h (struct munmap_list): Move from
247 compile-object-load.c. Rewrite.
249 2018-09-18 Alan Hayward <alan.hayward@arm.com>
251 * aarch64-tdep.c (pass_in_v): Use register size.
252 (aarch64_extract_return_value): Likewise.
253 (aarch64_store_return_value): Likewise.
255 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
257 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
260 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
262 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
265 2018-09-17 Tom Tromey <tom@tromey.com>
268 * configure: Rebuild.
269 * configure.ac: Conditionally use -DNDEBUG for Python.
271 2018-09-17 Tom Tromey <tom@tromey.com>
273 * configure: Rebuild.
274 * configure.ac: Use gmp as a library dependency when checking for
277 2018-09-17 Pedro Alves <palves@redhat.com>
279 * python/py-inferior.c (find_inferior_object): Delete.
281 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
283 * compile/compile-cplus-types.c
284 (compile_cplus_instance::enter_scope): Don't use new_scope after
287 2018-09-17 Tom Tromey <tom@tromey.com>
289 * common/pathstuff.c (get_standard_cache_dir): Use
290 ~/Library/Caches on macOS.
291 * common/pathstuff.h (get_standard_cache_dir): Update comment.
293 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
296 * breakpoint.c (commands_cmd_element): New.
297 (_initialize_breakpoint): Assign commands_cmd_element.
298 * breakpoint.h (commands_cmd_element): New.
299 * cli/cli-script.c (while_cmd_element, if_command,
300 define_cmd_element): New.
301 (command_name_equals): Remove.
302 (process_next_line): Compare commands by pointer, not by name.
303 (_initialize_cli_script): Assign the various cmd_list_element
305 * compile/compile.c (compile_cmd_element): New.
306 (_initialize_compile): Assign compile_cmd_element.
307 * compile/compile.h (compile_cmd_element): New.
308 * guile/guile.c (guile_cmd_element): New.
309 (install_gdb_commands): Assign guile_cmd_element.
310 * guile/guile.h (guile_cmd_element): New.
311 * python/python.c (python_cmd_element): New.
312 (_initialize_python): Assign python_cmd_element.
313 * python/python.h (python_cmd_element): New.
314 * tracepoint.c (while_stepping_cmd_element): New.
315 (_initialize_tracepoint): Assign while_stepping_cmd_element.
316 * tracepoint.h (while_stepping_cmd_element): New.
318 2018-09-17 Tom Tromey <tom@tromey.com>
320 * infrun.c (save_infcall_suspend_state): Return
321 infcall_suspend_state_up.
322 (save_infcall_control_state): Return infcall_control_state_up.
323 * inferior.h (save_infcall_suspend_state)
324 (save_infcall_control_state): Declare later. Return unique
327 2018-09-17 Tom Tromey <tom@tromey.com>
329 * infrun.c (struct stop_context): Declare constructor,
330 destructor, "changed" method.
331 (stop_context::stop_context): Rename from save_stop_context.
332 (stop_context::~stop_context): Rename from
333 release_stop_context_cleanup.
334 (normal_stop): Update.
335 (stop_context::changed): Rename from stop_context_changed. Return
338 2018-09-17 Tom Tromey <tom@tromey.com>
340 * inferior.h (struct infcall_suspend_state_deleter): New.
341 (infcall_suspend_state_up): New typedef.
342 (struct infcall_control_state_deleter): New.
343 (infcall_control_state_up): New typedef.
344 (make_cleanup_restore_infcall_suspend_state)
345 (make_cleanup_restore_infcall_control_state): Don't declare.
346 * infcall.c (call_function_by_hand_dummy): Update.
347 * infrun.c (do_restore_infcall_suspend_state_cleanup)
348 (make_cleanup_restore_infcall_suspend_state): Remove.
349 (do_restore_infcall_control_state_cleanup)
350 (make_cleanup_restore_infcall_control_state): Remove.
352 2018-09-17 Tom Tromey <tom@tromey.com>
354 * gdbthread.h (struct thread_control_state): Add initializer.
355 (class thread_info) <control>: Remove initializer.
356 * inferior.h (struct inferior_control_state): Add initializer.
357 (class inferior) <control>: Remove initializer.
358 (exit_inferior_1): Update.
359 * infrun.c (struct infcall_control_state): Add constructors.
360 (save_infcall_control_state): Use new.
361 (restore_infcall_control_state, discard_infcall_control_state):
364 2018-09-17 Tom Tromey <tom@tromey.com>
366 * infrun.c (struct infcall_suspend_state) <registers>: Now a
368 <siginfo_data>: Now a unique_xmalloc_ptr.
369 (save_infcall_suspend_state, restore_infcall_suspend_state)
370 (discard_infcall_suspend_state)
371 (get_infcall_suspend_state_regcache): Update.
373 2018-09-17 Tom Tromey <tom@tromey.com>
375 * gdbthread.h (struct thread_suspend_state): Add initializers.
376 (class thread_info) <suspend>: Remove initializer.
377 * infrun.c (struct infcall_suspend_state): Add initializers.
378 (save_infcall_suspend_state): Use new.
379 (discard_infcall_suspend_state): Use delete.
381 2018-09-16 Tom Tromey <tom@tromey.com>
383 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
385 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
386 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
387 (py_varobj_iter_new): Likewise.
388 (py_varobj_get_iterator): Use gdbpy_ref.
390 2018-09-16 Tom Tromey <tom@tromey.com>
392 * python/py-threadevent.c (py_get_event_thread): Simplify.
393 * python/py-inferior.c (infpy_thread_from_thread_handle):
394 Return immediately after calling thread_to_thread_object. Use
396 (thread_to_thread_object): Set the exception on a NULL return.
398 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
400 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
402 2018-09-16 Tom Tromey <tom@tromey.com>
404 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
407 2018-09-16 Tom Tromey <tom@tromey.com>
409 * python/python-internal.h (thread_to_thread_object): Change
411 * python/py-inferior.c (thread_to_thread_object): Return a new
413 (infpy_thread_from_thread_handle): Update.
414 * python/py-infthread.c (gdbpy_selected_thread): Update.
415 * python/py-stopevent.c (create_stop_event_object): Update.
416 * python/py-threadevent.c (py_get_event_thread): Return a new
418 (py_get_event_thread): Update.
419 * python/py-event.h (py_get_event_thread): Change return type.
420 * python/py-continueevent.c (create_continue_event_object):
423 2018-09-16 Tom Tromey <tom@tromey.com>
425 * python/py-progspace.c (pspy_get_objfiles): Update.
426 * python/python-internal.h (objfile_to_objfile_object): Change
428 * python/py-newobjfileevent.c (create_new_objfile_event_object):
430 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
432 * python/python.c (gdbpy_get_current_objfile): Update.
433 (gdbpy_objfiles): Update.
434 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
436 (objfile_to_objfile_object): Return a new reference.
437 * python/py-symtab.c (stpy_get_objfile): Update.
438 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
441 2018-09-16 Tom Tromey <tom@tromey.com>
443 * python/py-inferior.c (infpy_get_progspace): Update.
444 * python/python-internal.h (pspace_to_pspace_object): Change
446 * python/py-newobjfileevent.c
447 (create_clear_objfiles_event_object): Update.
448 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
450 * python/python.c (gdbpy_get_current_progspace): Update.
451 (gdbpy_progspaces): Update.
452 * python/py-progspace.c (pspace_to_pspace_object): Return a new
454 * python/py-objfile.c (objfpy_get_progspace): Update.
455 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
458 2018-09-16 Tom Tromey <tom@tromey.com>
460 * python/lib/gdb/__init__.py (current_progspace, objfiles)
461 (solib_name, block_for_pc, find_pc_line): New functions.
462 (execute_unwinders): Update.
463 * python/py-block.c (gdbpy_block_for_pc): Remove.
464 * python/py-inferior.c (infpy_get_progspace): New function.
465 (inferior_object_getset) <progspace>: Add.
466 * python/py-progspace.c (pspy_objfiles): Rewrite.
467 (pspy_solib_name, pspy_block_for_pc)
468 (pspy_find_pc_line, pspy_is_valid): New functions.
469 (progspace_object_methods): Add entries for solib_name,
470 block_for_pc, find_pc_line, is_valid.
471 * python/python-internal.h (gdbpy_block_for_pc)
472 (build_objfiles_list): Don't declare.
473 * python/python.c: Don't include solib.h.
474 (gdbpy_solib_name, gdbpy_find_pc_line)
475 (gdbpy_get_current_progspace, build_objfiles_list)
476 (gdbpy_objfiles): Remove.
477 (GdbMethods) <current_progspace, objfiles, block_for_pc,
478 solib_name, find_pc_line>: Remove entries.
480 2018-09-16 Tom Tromey <tom@tromey.com>
482 * top.c (new_ui_command): Use GNU style for metasyntactic
484 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
486 * maint.c (maintenance_translate_address): Remove "<>" around
488 * interps.c (interpreter_exec_cmd): Use GNU style for
489 metasyntactic variables.
490 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
491 metasyntactic variables.
492 * tracepoint.c (tfind_range_command): Use GNU style for
493 metasyntactic variables.
494 (tfind_outside_command): Likewise.
495 (_initialize_tracepoint): Likewise.
496 * remote.c (extended_remote_target::create_inferior): Use GNU
497 style for metasyntactic variables.
498 * sparc64-tdep.c (adi_examine_command): Use GNU style for
499 metasyntactic variables.
500 (adi_assign_command): Likewise.
502 2018-09-16 Tom Tromey <tom@tromey.com>
504 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
505 metasyntactic variables. Print message if no disassembler options
508 2018-09-15 Tom Tromey <tom@tromey.com>
510 * infcmd.c (get_inferior_args): Return const char *.
511 * inferior.h (get_inferior_args): Return type now const.
512 * linux-tdep.c (linux_fill_prpsinfo): Update.
513 * procfs.c (procfs_target::make_corefile_notes): Update.
515 2018-09-07 Tom Tromey <tom@tromey.com>
517 * python/python.c (execute_gdb_command): Call bpstat_do_actions
520 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
522 * nios2-tdep.c (nios2_type_align): New.
523 (nios2_gdb_arch_init): Install type_align hook.
525 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
527 * eval.c (fake_method::fake_method): Call xzalloc directly for a
528 type that is neither object file owned, nor gdbarch owned.
529 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
531 (alloc_type_instance): Allocate non-objfile owned types on the
533 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
534 using TYPE_ALLOC to ensure memory is allocated on the correct
536 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
537 obstack, or the gdbarch obstack.
538 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
540 2018-09-14 Tom Tromey <tom@tromey.com>
542 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
545 2018-09-14 Tom Tromey <tom@tromey.com>
547 * nat/fork-inferior.c (get_startup_shell): Remove "static".
549 2018-09-13 Tom Tromey <tom@tromey.com>
551 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
554 2018-09-13 Tom Tromey <tom@tromey.com>
556 * exec.c (try_open_exec_file): Use std::string.
558 2018-09-13 Tom Tromey <tom@tromey.com>
560 * utils.h (gdb_bfd_errmsg): Return std::string.
561 * exec.c (exec_file_attach): Update.
562 * compile/compile-object-load.c (compile_object_load): Update.
563 * utils.c (gdb_bfd_errmsg): Return std::string.
565 2018-09-13 Tom Tromey <tom@tromey.com>
567 * procfs.c (struct procinfo_deleter): New.
568 (procinfo_up): New typedef.
569 (do_destroy_procinfo_cleanup): Remove.
570 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
572 2018-09-13 Tom Tromey <tom@tromey.com>
574 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
576 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
577 2018-09-13 Tom Tromey <tom@tromey.com>
579 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
580 (pspy_get_objfiles): New function.
581 (progspace_object_methods): New.
582 (pspace_object_type): Add tp_methods callback.
583 * python/python-internal.h (build_objfiles_list): New
585 * python/python.c (build_objfiles_list): New function.
586 (gdbpy_objfiles): Implement using build_objfiles_list.
587 * NEWS: Mention the Progspace.objfiles method.
589 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
591 * python/py-inferior.c (infpy_get_progspace): New function.
592 (inferior_object_getset): Add progspace property.
593 * NEWS: Mention the new property.
595 2018-09-13 Tom Tromey <tom@tromey.com>
598 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
600 2018-09-13 Tom Tromey <tom@tromey.com>
603 * rust-lang.c (rust_enum_variant): Now static.
604 (rust_empty_enum_p): New function.
605 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
608 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
610 * python/py-inferior.c (infpy_repr): New.
611 (inferior_object_type): Register infpy_repr.
612 * python/py-objfile.c (objfpy_repr): New.
613 (objfile_object_type): Register objfpy_repr.
615 2018-09-12 John Baldwin <jhb@FreeBSD.org>
617 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
619 2018-09-12 John Baldwin <jhb@FreeBSD.org>
621 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
624 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
626 * common/common-utils.c: Don't include '<sys/stat.h>'.
627 (is_regular_file): Move to...
628 * common/filestuff.c (is_regular_file): ... here.
629 * common/common-utils.h (is_regular_file): Move to...
630 * common/filestuff.h (is_regular_file): ... here.
632 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
634 * skip.c (debug_skip): New variable.
635 (skiplist_entry::do_skip_file_p): Add debug output.
636 (skiplist_entry::do_skip_gfile_p): Likewise.
637 (skiplist_entry::skip_function_p): Likewise.
638 (_initialize_step_skip): Create debug command.
639 * NEWS: Mention set/show debug skip.
641 2018-09-11 Xavier Roirand <roirand@adacore.com>
643 * darwin-nat.c (should_disable_startup_with_shell):
645 (darwin_nat_target::create_inferior): Add call.
647 2018-09-11 Xavier Roirand <roirand@adacore.com>
649 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
650 inf_port, msg_state>: Initialize.
651 (struct darwin_thread_info) <signaled, single_step>: Change
653 (struct darwin_thread_info) <event>: Initialize.
655 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
659 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
662 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
665 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
669 * gnulib/aclocal.m4: Regenerate.
670 * gnulib/config.in: Regenerate.
671 * gnulib/configure: Regenerate.
672 * gnulib/import/Makefile.am: Update.
673 * gnulib/import/Makefile.in: Update.
674 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
675 * gnulib/import/_Noreturn.h: ... this.
676 * gnulib/import/alloca.in.h: Update.
677 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
678 * gnulib/import/arg-nonnull.h: ... this.
679 * gnulib/import/assure.h: Update.
680 * gnulib/import/at-func.c: Update.
681 * gnulib/import/basename-lgpl.c: Update.
682 * gnulib/import/extra/snippet/c++defs.h: Rename to...
683 * gnulib/import/c++defs.h: ... this.
684 * gnulib/import/canonicalize-lgpl.c: Update.
685 * gnulib/import/cdefs.h: Update.
686 * gnulib/import/chdir-long.c: Update.
687 * gnulib/import/chdir-long.h: Update.
688 * gnulib/import/cloexec.c: Update.
689 * gnulib/import/cloexec.h: Update.
690 * gnulib/import/close.c: Update.
691 * gnulib/import/closedir.c: Update.
692 * gnulib/import/config.charset: Update.
693 * gnulib/import/dirent-private.h: Update.
694 * gnulib/import/dirent.in.h: Update.
695 * gnulib/import/dirfd.c: Update.
696 * gnulib/import/dirname-lgpl.c: Update.
697 * gnulib/import/dirname.h: Update.
698 * gnulib/import/dosname.h: Update.
699 * gnulib/import/dup-safer-flag.c: Update.
700 * gnulib/import/dup-safer.c: Update.
701 * gnulib/import/dup.c: Update.
702 * gnulib/import/dup2.c: Update.
703 * gnulib/import/errno.in.h: Update.
704 * gnulib/import/error.c: Update.
705 * gnulib/import/error.h: Update.
706 * gnulib/import/exitfail.c: Update.
707 * gnulib/import/exitfail.h: Update.
708 * gnulib/import/extra/update-copyright: Update.
709 * gnulib/import/fchdir.c: Update.
710 * gnulib/import/fcntl.c: Update.
711 * gnulib/import/fcntl.in.h: Update.
712 * gnulib/import/fd-hook.c: Update.
713 * gnulib/import/fd-hook.h: Update.
714 * gnulib/import/fd-safer-flag.c: Update.
715 * gnulib/import/fd-safer.c: Update.
716 * gnulib/import/fdopendir.c: Update.
717 * gnulib/import/filename.h: Update.
718 * gnulib/import/filenamecat-lgpl.c: Update.
719 * gnulib/import/filenamecat.h: Update.
720 * gnulib/import/flexmember.h: Update.
721 * gnulib/import/float+.h: Update.
722 * gnulib/import/float.c: Update.
723 * gnulib/import/float.in.h: Update.
724 * gnulib/import/fnmatch.c: Update.
725 * gnulib/import/fnmatch.in.h: Update.
726 * gnulib/import/fnmatch_loop.c: Update.
727 * gnulib/import/fpucw.h: Update.
728 * gnulib/import/frexp.c: Update.
729 * gnulib/import/frexpl.c: Update.
730 * gnulib/import/fstat.c: Update.
731 * gnulib/import/fstatat.c: Update.
732 * gnulib/import/getcwd-lgpl.c: Update.
733 * gnulib/import/getcwd.c: Update.
734 * gnulib/import/getdtablesize.c: Update.
735 * gnulib/import/getlogin_r.c: Update.
736 * gnulib/import/getprogname.c: Update.
737 * gnulib/import/getprogname.h: Update.
738 * gnulib/import/gettext.h: Update.
739 * gnulib/import/gettimeofday.c: Update.
740 * gnulib/import/glob-libc.h: Update.
741 * gnulib/import/glob.c: Update.
742 * gnulib/import/glob.in.h: Update.
743 * gnulib/import/glob_internal.h: Update.
744 * gnulib/import/glob_pattern_p.c: Update.
745 * gnulib/import/globfree.c: Update.
746 * gnulib/import/hard-locale.c: Update.
747 * gnulib/import/hard-locale.h: Update.
748 * gnulib/import/intprops.h: Update.
749 * gnulib/import/inttypes.in.h: Update.
750 * gnulib/import/isnan.c: Update.
751 * gnulib/import/isnand-nolibm.h: Update.
752 * gnulib/import/isnand.c: Update.
753 * gnulib/import/isnanl-nolibm.h: Update.
754 * gnulib/import/isnanl.c: Update.
755 * gnulib/import/itold.c: Update.
756 * gnulib/import/libc-config.h: Update.
757 * gnulib/import/limits.in.h: Update.
758 * gnulib/import/localcharset.c: Update.
759 * gnulib/import/localcharset.h: Update.
760 * gnulib/import/localtime-buffer.c: Update.
761 * gnulib/import/localtime-buffer.h: Update.
762 * gnulib/import/lstat.c: Update.
763 * gnulib/import/m4/00gnulib.m4: Update.
764 * gnulib/import/m4/__inline.m4: Update.
765 * gnulib/import/m4/absolute-header.m4: Update.
766 * gnulib/import/m4/alloca.m4: Update.
767 * gnulib/import/m4/builtin-expect.m4: Update.
768 * gnulib/import/m4/canonicalize.m4: Update.
769 * gnulib/import/m4/chdir-long.m4: Update.
770 * gnulib/import/m4/close.m4: Update.
771 * gnulib/import/m4/closedir.m4: Update.
772 * gnulib/import/m4/configmake.m4: Update.
773 * gnulib/import/m4/d-ino.m4: Update.
774 * gnulib/import/m4/d-type.m4: Update.
775 * gnulib/import/m4/dirent_h.m4: Update.
776 * gnulib/import/m4/dirfd.m4: Update.
777 * gnulib/import/m4/dirname.m4: Update.
778 * gnulib/import/m4/double-slash-root.m4: Update.
779 * gnulib/import/m4/dup.m4: Update.
780 * gnulib/import/m4/dup2.m4: Update.
781 * gnulib/import/m4/eealloc.m4: Update.
782 * gnulib/import/m4/environ.m4: Update.
783 * gnulib/import/m4/errno_h.m4: Update.
784 * gnulib/import/m4/error.m4: Update.
785 * gnulib/import/m4/exponentd.m4: Update.
786 * gnulib/import/m4/exponentl.m4: Update.
787 * gnulib/import/m4/extensions.m4: Update.
788 * gnulib/import/m4/extern-inline.m4: Update.
789 * gnulib/import/m4/fchdir.m4: Update.
790 * gnulib/import/m4/fcntl-o.m4: Update.
791 * gnulib/import/m4/fcntl.m4: Update.
792 * gnulib/import/m4/fcntl_h.m4: Update.
793 * gnulib/import/m4/fdopendir.m4: Update.
794 * gnulib/import/m4/filenamecat.m4: Update.
795 * gnulib/import/m4/flexmember.m4: Update.
796 * gnulib/import/m4/float_h.m4: Update.
797 * gnulib/import/m4/fnmatch.m4: Update.
798 * gnulib/import/m4/fnmatch_h.m4: Update.
799 * gnulib/import/m4/fpieee.m4: Update.
800 * gnulib/import/m4/frexp.m4: Update.
801 * gnulib/import/m4/frexpl.m4: Update.
802 * gnulib/import/m4/fstat.m4: Update.
803 * gnulib/import/m4/fstatat.m4: Update.
804 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
805 * gnulib/import/m4/getcwd-path-max.m4: Update.
806 * gnulib/import/m4/getcwd.m4: Update.
807 * gnulib/import/m4/getdtablesize.m4: Update.
808 * gnulib/import/m4/getlogin.m4: Update.
809 * gnulib/import/m4/getlogin_r.m4: Update.
810 * gnulib/import/m4/getpagesize.m4: Update.
811 * gnulib/import/m4/getprogname.m4: Update.
812 * gnulib/import/m4/gettimeofday.m4: Update.
813 * gnulib/import/m4/glibc21.m4: Update.
814 * gnulib/import/m4/glob.m4: Update.
815 * gnulib/import/m4/glob_h.m4: Update.
816 * gnulib/import/m4/gnulib-cache.m4: Update.
817 * gnulib/import/m4/gnulib-common.m4: Update.
818 * gnulib/import/m4/gnulib-comp.m4: Update.
819 * gnulib/import/m4/gnulib-tool.m4: Update.
820 * gnulib/import/m4/hard-locale.m4: Update.
821 * gnulib/import/m4/include_next.m4: Update.
822 * gnulib/import/m4/inttypes-pri.m4: Update.
823 * gnulib/import/m4/inttypes.m4: Update.
824 * gnulib/import/m4/isnand.m4: Update.
825 * gnulib/import/m4/isnanl.m4: Update.
826 * gnulib/import/m4/largefile.m4: Update.
827 * gnulib/import/m4/limits-h.m4: Update.
828 * gnulib/import/m4/localcharset.m4: Update.
829 * gnulib/import/m4/locale-fr.m4: Update.
830 * gnulib/import/m4/locale-ja.m4: Update.
831 * gnulib/import/m4/locale-zh.m4: Update.
832 * gnulib/import/m4/localtime-buffer.m4: Update.
833 * gnulib/import/m4/longlong.m4: Update.
834 * gnulib/import/m4/lstat.m4: Update.
835 * gnulib/import/m4/malloc.m4: Update.
836 * gnulib/import/m4/malloca.m4: Update.
837 * gnulib/import/m4/math_h.m4: Update.
838 * gnulib/import/m4/mbrtowc.m4: Update.
839 * gnulib/import/m4/mbsinit.m4: Update.
840 * gnulib/import/m4/mbsrtowcs.m4: Update.
841 * gnulib/import/m4/mbstate_t.m4: Update.
842 * gnulib/import/m4/memchr.m4: Update.
843 * gnulib/import/m4/memmem.m4: Update.
844 * gnulib/import/m4/mempcpy.m4: Update.
845 * gnulib/import/m4/memrchr.m4: Update.
846 * gnulib/import/m4/mkdir.m4: Update.
847 * gnulib/import/m4/mkstemp.m4: Update.
848 * gnulib/import/m4/mmap-anon.m4: Update.
849 * gnulib/import/m4/mode_t.m4: Update.
850 * gnulib/import/m4/msvc-inval.m4: Update.
851 * gnulib/import/m4/msvc-nothrow.m4: Update.
852 * gnulib/import/m4/multiarch.m4: Update.
853 * gnulib/import/m4/nocrash.m4: Update.
854 * gnulib/import/m4/off_t.m4: Update.
855 * gnulib/import/m4/onceonly.m4: Update.
856 * gnulib/import/m4/open-cloexec.m4: Update.
857 * gnulib/import/m4/open.m4: Update.
858 * gnulib/import/m4/openat.m4: Update.
859 * gnulib/import/m4/opendir.m4: Update.
860 * gnulib/import/m4/pathmax.m4: Update.
861 * gnulib/import/m4/rawmemchr.m4: Update.
862 * gnulib/import/m4/readdir.m4: Update.
863 * gnulib/import/m4/readlink.m4: Update.
864 * gnulib/import/m4/realloc.m4: Update.
865 * gnulib/import/m4/rename.m4: Update.
866 * gnulib/import/m4/rewinddir.m4: Update.
867 * gnulib/import/m4/rmdir.m4: Update.
868 * gnulib/import/m4/save-cwd.m4: Update.
869 * gnulib/import/m4/secure_getenv.m4: Update.
870 * gnulib/import/m4/setenv.m4: Update.
871 * gnulib/import/m4/signal_h.m4: Update.
872 * gnulib/import/m4/ssize_t.m4: Update.
873 * gnulib/import/m4/stat-time.m4: Update.
874 * gnulib/import/m4/stat.m4: Update.
875 * gnulib/import/m4/std-gnu11.m4: Update.
876 * gnulib/import/m4/stdbool.m4: Update.
877 * gnulib/import/m4/stddef_h.m4: Update.
878 * gnulib/import/m4/stdint.m4: Update.
879 * gnulib/import/m4/stdio_h.m4: Update.
880 * gnulib/import/m4/stdlib_h.m4: Update.
881 * gnulib/import/m4/strchrnul.m4: Update.
882 * gnulib/import/m4/strdup.m4: Update.
883 * gnulib/import/m4/strerror.m4: Update.
884 * gnulib/import/m4/string_h.m4: Update.
885 * gnulib/import/m4/strstr.m4: Update.
886 * gnulib/import/m4/strtok_r.m4: Update.
887 * gnulib/import/m4/sys_socket_h.m4: Update.
888 * gnulib/import/m4/sys_stat_h.m4: Update.
889 * gnulib/import/m4/sys_time_h.m4: Update.
890 * gnulib/import/m4/sys_types_h.m4: Update.
891 * gnulib/import/m4/tempname.m4: Update.
892 * gnulib/import/m4/time_h.m4: Update.
893 * gnulib/import/m4/unistd-safer.m4: Update.
894 * gnulib/import/m4/unistd_h.m4: Update.
895 * gnulib/import/m4/warn-on-use.m4: Update.
896 * gnulib/import/m4/wchar_h.m4: Update.
897 * gnulib/import/m4/wchar_t.m4: Update.
898 * gnulib/import/m4/wctype_h.m4: Update.
899 * gnulib/import/m4/wint_t.m4: Update.
900 * gnulib/import/malloc.c: Update.
901 * gnulib/import/malloc/scratch_buffer.h: Update.
902 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
903 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
904 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
905 * gnulib/import/malloca.c: Update.
906 * gnulib/import/malloca.h: Update.
907 * gnulib/import/malloca.valgrind: Update.
908 * gnulib/import/math.in.h: Update.
909 * gnulib/import/mbrtowc.c: Update.
910 * gnulib/import/mbsinit.c: Update.
911 * gnulib/import/mbsrtowcs-impl.h: Update.
912 * gnulib/import/mbsrtowcs-state.c: Update.
913 * gnulib/import/mbsrtowcs.c: Update.
914 * gnulib/import/memchr.c: Update.
915 * gnulib/import/memmem.c: Update.
916 * gnulib/import/mempcpy.c: Update.
917 * gnulib/import/memrchr.c: Update.
918 * gnulib/import/mkdir.c: Update.
919 * gnulib/import/mkstemp.c: Update.
920 * gnulib/import/msvc-inval.c: Update.
921 * gnulib/import/msvc-inval.h: Update.
922 * gnulib/import/msvc-nothrow.c: Update.
923 * gnulib/import/msvc-nothrow.h: Update.
924 * gnulib/import/open.c: Update.
925 * gnulib/import/openat-die.c: Update.
926 * gnulib/import/openat-priv.h: Update.
927 * gnulib/import/openat-proc.c: Update.
928 * gnulib/import/openat.c: Update.
929 * gnulib/import/openat.h: Update.
930 * gnulib/import/opendir.c: Update.
931 * gnulib/import/pathmax.h: Update.
932 * gnulib/import/pipe-safer.c: Update.
933 * gnulib/import/rawmemchr.c: Update.
934 * gnulib/import/readdir.c: Update.
935 * gnulib/import/readlink.c: Update.
936 * gnulib/import/realloc.c: Update.
937 * gnulib/import/ref-add.sin: Update.
938 * gnulib/import/ref-del.sin: Update.
939 * gnulib/import/rename.c: Update.
940 * gnulib/import/rewinddir.c: Update.
941 * gnulib/import/rmdir.c: Update.
942 * gnulib/import/same-inode.h: Update.
943 * gnulib/import/save-cwd.c: Update.
944 * gnulib/import/save-cwd.h: Update.
945 * gnulib/import/scratch_buffer.h: Update.
946 * gnulib/import/secure_getenv.c: Update.
947 * gnulib/import/setenv.c: Update.
948 * gnulib/import/signal.in.h: Update.
949 * gnulib/import/stat-time.c: Update.
950 * gnulib/import/stat-time.h: Update.
951 * gnulib/import/stat-w32.c: Update.
952 * gnulib/import/stat-w32.h: Update.
953 * gnulib/import/stat.c: Update.
954 * gnulib/import/stdbool.in.h: Update.
955 * gnulib/import/stddef.in.h: Update.
956 * gnulib/import/stdint.in.h: Update.
957 * gnulib/import/stdio.in.h: Update.
958 * gnulib/import/stdlib.in.h: Update.
959 * gnulib/import/str-two-way.h: Update.
960 * gnulib/import/strchrnul.c: Update.
961 * gnulib/import/strdup.c: Update.
962 * gnulib/import/streq.h: Update.
963 * gnulib/import/strerror-override.c: Update.
964 * gnulib/import/strerror-override.h: Update.
965 * gnulib/import/strerror.c: Update.
966 * gnulib/import/string.in.h: Update.
967 * gnulib/import/stripslash.c: Update.
968 * gnulib/import/strnlen1.c: Update.
969 * gnulib/import/strnlen1.h: Update.
970 * gnulib/import/strstr.c: Update.
971 * gnulib/import/strtok_r.c: Update.
972 * gnulib/import/sys_stat.in.h: Update.
973 * gnulib/import/sys_time.in.h: Update.
974 * gnulib/import/sys_types.in.h: Update.
975 * gnulib/import/tempname.c: Update.
976 * gnulib/import/tempname.h: Update.
977 * gnulib/import/time.in.h: Update.
978 * gnulib/import/unistd--.h: Update.
979 * gnulib/import/unistd-safer.h: Update.
980 * gnulib/import/unistd.in.h: Update.
981 * gnulib/import/unsetenv.c: Update.
982 * gnulib/import/verify.h: Update.
983 * gnulib/import/extra/snippet/warn-on-use.h: Update.
984 * gnulib/import/wchar.in.h: Update.
985 * gnulib/import/wctype.in.h: Update.
986 * gnulib/import/xalloc-oversized.h: Update.
987 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
988 "53e2c179f26a890fa6685af4b6c1397ee370433b".
990 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
992 * record-btrace.c (get_thread_current_frame): Remove
995 2018-09-10 Jerome Guitton <guitton@adacore.com>
997 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
998 with check_tag to 1 if and only if the type is tagged and the
999 component being searched cannot been found in the current
1000 view. Otherwise, always call ada_to_fixed_type with
1003 2018-09-10 Xavier Roirand <roirand@adacore.com>
1005 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1007 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1008 * ada-varobj.c (ada_varobj_get_number_of_children,
1009 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1011 2018-09-10 Xavier Roirand <roirand@adacore.com>
1013 * ada-valprint.c (ada_value_print): Use type instead of
1016 2018-09-10 Xavier Roirand <roirand@adacore.com>
1018 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1019 an array of access to unconstrained array.
1021 2018-09-10 Xavier Roirand <roirand@adacore.com>
1023 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1024 (ada_check_typedef): Use it.
1026 2018-09-10 Xavier Roirand <roirand@adacore.com>
1028 * ada-varobj.c (ada_varobj_describe_struct_child)
1029 (ada_varobj_describe_child): Handle union case like struct one.
1031 2018-09-10 Tom Tromey <tom@tromey.com>
1034 * python/python.c (_initialize_python): Make example in "python"
1035 help work in Python 3.
1037 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1039 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1040 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1041 $(EXEEXT) to the script, as it is not a program.
1043 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1045 * python/py-prettyprint.c (pretty_print_one_value): Return
1047 (print_string_repr): Adjust.
1048 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1049 * python/python-internal.h (apply_varobj_pretty_printer): Return
1051 * varobj.c (varobj_value_get_print_value): Adjust.
1053 2018-09-08 Tom Tromey <tom@tromey.com>
1056 * python/py-prettyprint.c (pretty_print_one_value): Check for
1059 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1061 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1062 replace_operator_with_call.
1064 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1066 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1068 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1070 * ada-typeprint.c (print_range): Print the bounds using TYPE
1071 rather than its TYPE_TARGET_TYPE.
1073 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1075 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1076 call to ada_to_fixed_value_create.
1078 2018-09-08 Jerome Guitton <guitton@adacore.com>
1080 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1082 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1084 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1087 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1089 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1090 Move update of loop variable "fi".
1092 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1094 * ada-lang.c (value_assign_to_component): In the case of
1095 big-endian targets, extract the bits of the given VAL
1096 using an src_offset of zero if container is not a scalar.
1098 2018-09-06 Simon Ser <contact@emersion.fr>
1101 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1102 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1103 * fbsd-tdep.c (fbsd_make_note_desc): New.
1104 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1105 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1106 * target.h (enum target_object) Add FreeBSD-specific
1107 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1109 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1111 * compile/compile-c.h (generate_c_for_variable_locations):
1112 Change reference to pointer.
1113 * compile/compile-c-support.c (compile_program) <compute>:
1115 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1116 (generate_c_for_for_one_variable): Likewise
1117 (generate_c_for_variable_locations): Likewise
1118 * compile/compile-c-types.c (compile_c_instance::convert_type):
1120 * compile/compile-cplus-symbols.c (convert_one_symbol):
1121 std::move the scope passed to enter_scope.
1122 * compile/compile-cplus-types.c
1123 (compile_cplus_instance::enter_scope): Make parameter
1125 (compile_cplus_instance::new_scope): Change reference to
1127 (compile_cplus_instance::convert_type): Likewise
1128 (compile_cplus_convert_typedef): std::move the scope passed to
1130 (compile_cplus_convert_struct_or_union): Likewise.
1131 (compile_cplus_convert_enum): Likewise.
1132 (compile_cplus_convert_namespace): Likewise.
1133 * compile/compile-cplus.h (compile_cplus_instance)
1134 <enter_scope>: Make parameter rvalue-reference.
1135 * compile/compile-internal.h (compile_instance)
1136 <get_cached_type>: Likewise
1137 * compile/compile-loc2c.c (push): Likewise
1141 (print_label): Likewise
1142 (pushf_register_address): Likewise
1143 (pushf_register): Likewise
1144 (do_compile_dwarf_expr_to_c): Likewise
1145 (compile_dwarf_expr_to_c): Likewise
1146 (compile_dwarf_bounds_to_c): Likewise
1147 * compile/compile.c (compile_instance::get_cached_type):
1149 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1150 (compile_dwarf_bounds_to_c): Likewise
1151 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1152 (dwarf2_compile_property_to_c): Likewise
1153 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1154 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1157 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1159 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1160 * tui/tui-data.c (init_content_element): Don't initialize it.
1162 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1164 * tui/tui-data.h (struct tui_win_info)
1165 <detail::opaque>: Remove.
1166 * tui/tui-data.c (init_win_info): Remove assignment.
1168 2018-09-05 Tom Tromey <tom@tromey.com>
1170 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1171 -Wformat-nonliteral.
1172 * target-float.c (host_float_ops<T>::to_string)
1173 (host_float_ops<T>::from_string): Use
1174 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1175 * configure: Rebuild.
1177 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1179 * printcmd.c (printf_c_string): Use
1180 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1181 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1183 2018-09-05 Tom Tromey <tom@tromey.com>
1185 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1187 2018-09-05 Tom de Vries <tdevries@suse.de>
1189 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1190 with resolve_abstract_p == true.
1191 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1192 defaulting to false. Propagate resolve_abstract_p to
1193 dwarf2_fetch_die_loc_sect_off.
1194 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1195 parameter, defaulting to false.
1196 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1197 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1199 * dwarf2read.h (struct die_info): Forward-declare.
1200 (die_info_ptr): New typedef.
1201 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1203 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1207 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1208 Pedro Alves <palves@redhat.com>
1210 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1211 "aclocal-m4-deps.mk". Include file here.
1212 $(srcdir)/aclocal.m4: Add "configure.ac".
1213 * gnulib/aclocal-m4-deps.mk: New file.
1214 * gnulib/update-gnulib.sh: Automatically update
1215 "aclocal-m4-deps.mk".
1217 2018-09-04 Tom Tromey <tom@tromey.com>
1219 * configure: Rebuild.
1220 * configure.ac: Remove multi-ice code.
1222 2018-09-04 Tom Tromey <tom@tromey.com>
1224 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1225 (ada-exp.o): Update.
1227 2018-09-04 Tom Tromey <tom@tromey.com>
1229 * Makefile.in (printcmd.o, target-float.o): Remove.
1230 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1232 2018-09-04 Tom Tromey <tom@tromey.com>
1234 * gnulib/Makefile.in: Remove obsolete comment.
1235 * Makefile.in: Remove obsolete comment.
1237 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1239 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1242 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1244 * riscv-tdep.c: Add 'prologue-value.h' include.
1245 (struct riscv_unwind_cache): New struct.
1246 (riscv_debug_unwinder): New global.
1247 (riscv_scan_prologue): Update arguments, capture register details
1249 (riscv_skip_prologue): Reformat arguments line, move end of
1250 prologue calculation into riscv_scan_prologue.
1251 (riscv_frame_cache): Update return type, create
1252 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1254 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1255 (riscv_frame_prev_register): Use the trad_frame within the
1257 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1260 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1262 * trad-frame.h (trad_frame_set_realreg): Declare.
1263 (trad_frame_set_addr): Declare.
1264 * trad-frame.c (trad_frame_set_realreg): Define new function.
1265 (trad_frame_set_addr): Define new function.
1266 (trad_frame_set_reg_realreg): Use new function.
1267 (trad_frame_set_reg_addr): Use new function.
1269 2018-09-01 Keith Seitz <keiths@redhat.com>
1271 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1272 pulongest instead of "%lld".
1273 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1276 2018-08-31 Tom Tromey <tom@tromey.com>
1278 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1281 2018-08-31 Pedro Alves <palves@redhat.com>
1283 * gdbarch.h: Regenerate.
1285 2018-08-31 Pedro Alves <palves@redhat.com>
1287 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1288 * target.h (Hardware watchpoint interfaces): Describe
1289 continuable/steppable/non-steppable watchpoints.
1290 * gdbarch.h, gdbarch.c: Regenerate.
1292 2018-08-31 Pedro Alves <palves@redhat.com>
1294 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1297 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1298 * target.h (target_ops::have_continuable_watchpoint): Delete.
1299 (target_have_continuable_watchpoint): Delete.
1300 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1301 * target-delegates.c: Regenerate.
1303 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1305 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1306 the files present in "gnulib/import/m4/".
1308 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1310 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1311 c.sw, c.swsp, and c.sdsp.
1313 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1315 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1316 (riscv_read_misa_reg): Don't cache value read into inferior data.
1317 (riscv_new_inferior_data): Delete.
1318 (riscv_inferior_data_cleanup): Delete.
1319 (riscv_inferior_data): Delete.
1320 (riscv_invalidate_inferior_data): Delete.
1321 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1323 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1325 * compile/compile-cplus-types.c
1326 (compile_cplus_instance::leave_scope): Take the address of scope
1328 (compile_cplus_instance::convert_qualified_base): Compare quals
1331 2018-08-30 Keith Seitz <keiths@redhat.com>
1333 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1334 Use "%s" and host_address_to_string instead of "%p" in printf.
1336 2018-08-29 Keith Seitz <keiths@redhat.com>
1338 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1339 and compile-cplus-types.c.
1340 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1341 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1342 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1344 * compile/compile-c-support.c: Include compile-cplus.h.
1345 (load_libcompile): Templatize.
1346 (get_compile_context): "New" function.
1347 (c_get_compile_context): Use get_compile_context.
1348 (cplus_get_compile_context): New function.
1349 (cplus_push_user_expression, cplus_pop_user_expression)
1350 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1351 (cplus_compute_program): Define new structs/functions.
1352 * compile/compile-cplus-symmbols.c: New file.
1353 * compile/compile-cplus-types.c: New file.
1354 * compile/compile-cplus.h: New file.
1355 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1357 * compile/compile-object-load.c (get_out_value_type): Use
1358 strncmp_iw when comparing symbol names.
1359 (compile_object_load): Add mst_bss and mst_data.
1360 * compile/compile.c (_initialize_compile): Remove
1361 -Wno-implicit-function-declaration from `compile_args'.
1362 * compile/gcc-cp-plugin.h: New file.
1363 * NEWS: Mention C++ compile support and new debug options.
1365 2018-08-29 Keith Seitz <keiths@redhat.com>
1367 * linespec.c (collect_info::add_symbol): Make virtual.
1368 (struct symbol_searcher_collect_info): New struct.
1369 (symbol_searcher::find_all_symbols): New method.
1370 * symtab.h (class symbol_searcher): New class.
1372 2018-08-29 Keith Seitz <keiths@redhat.com>
1374 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1375 Change to vector of block_symbol. Update all users.
1376 (struct collect_info) <symbols>: Likewise.
1377 (collect_info::add_symbol): Take block_symbol as argument.
1379 (decode_compound_collector) <m_symbols>: Change type to vector
1380 of block_symbol. Update all users.
1381 (decode_compound_collector::operator ()): Change parameter type
1383 (find_method, find_function_symbols, find_linespec_symbols)
1384 (find_label_symbols_in_block, find_label_symbols): Change symbol
1385 vectors to block_symbol vectors.
1386 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1389 2018-08-29 Keith Seitz <keiths@redhat.com>
1391 * linespec.c (symbolp): Remove typedef and VEC definitions.
1392 (bound_minimal_symbol_d): Likewise.
1394 2018-08-29 Keith Seitz <keiths@redhat.com>
1396 * linespec.c (decode_compound_collector::decode_compound_collector):
1397 Remove initialization for `m_symtabs'.
1398 (decode_compound_collector::release_symbols): Change return type
1399 to std::vector. Update all callers.
1400 (class decode_compound_collector) <m_symbols>: Change type to
1402 (lookup_prefix_sym): Change return type to std::vector. Update all
1404 (compare_symbols): Remove.
1405 (std_compare_symbols): Rename to `compare_symbols'.
1406 (find_method): Change `sym_classes' parameter to std::vector.
1407 Update all callers. Use std::sort to sort sym_classes.
1408 (find_linespec_symbols): Remove cleanup.
1410 2018-08-29 Keith Seitz <keiths@redhat.com>
1412 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1413 std::vector. Update all users.
1414 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1415 (struct collect_info) <minimal_symbols>: Likewise.
1416 (compare_msymbols): Return bool. Change parameters to const
1417 bound_minimal_symbol references.
1418 (find_method, find_function_symbols, find_linespec_symbols): Change
1419 `minsyms' parameter to std::vector. Update all callers.
1421 2018-08-29 Keith Seitz <keiths@redhat.com>
1423 * linespec.c (struct linespec) <label_symbols>: Change type to
1424 std::vector. Update all users.
1425 (find_label_symbols_in_block): Change `result' parameter to
1426 std::vector. Update all callers.
1427 (find_label_symbols): Return std::vector. Update all callers.
1429 2018-08-29 Keith Seitz <keiths@redhat.com>
1431 * linespec.c (struct linespec) <function_symbols>: Change type to
1432 std::vector. Update all users.
1433 (struct collect_info) <function_symbols>: Likewise.
1434 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1435 (std_compare_symbols): New function.
1436 (find_method, find_function_symbols, find_linespec_symbols)
1437 (find_label_symbols_in_block): Change `symbols' parameter to
1438 std::vector. Update all callers.
1439 (find_label_symbols): Likewise for `function_symbols' and
1442 2018-08-29 Keith Seitz <keiths@redhat.com>
1444 * linespec.c (symtab_vector_up): Define.
1445 (struct linespec) <file_symtabs>: Change type to std::vector *.
1447 (struct collect_info) <file_symtabs>: Likewise.
1448 (collect_symtabs_from_filename): Return symtab_vector_up.
1450 (decode_objc): Remove cleanup.
1451 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1452 (symtab_collector::release_symtabs): Return symtab_vector_up.
1454 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1456 (collect_symtabs_from_filename, symtabs_from_filename): Return
1457 symtab_vector_up. Update all callers.
1459 2018-08-29 Tom Tromey <tom@tromey.com>
1461 * csky-tdep.c (csky_analyze_prologue): Use
1462 core_addr_to_string_nz.
1464 2018-08-29 Tom Tromey <tom@tromey.com>
1466 * windows-nat.c (struct xlate_exception) <them>: Change type to
1468 (xlate): Fix formatting. Remove last entry.
1469 (struct xlate_exception, xlate): Comment out.
1470 (windows_nat_target::resume): Use ranged for.
1472 2018-08-29 Jim Wilson <jimw@sifive.com>
1474 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1475 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1477 (riscv_linux_nat_target::store_registers): Likewise.
1479 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1483 * gnulib/aclocal.m4: Regenerate.
1484 * gnulib/config.in: Regenerate.
1485 * gnulib/configure: Regenerate.
1486 * gnulib/import/Makefile.am: Update.
1487 * gnulib/import/Makefile.in: Update.
1488 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1489 * gnulib/import/_Noreturn.h: ... this.
1490 * gnulib/import/alloca.in.h: Update.
1491 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1492 * gnulib/import/arg-nonnull.h: ... this.
1493 * gnulib/import/assure.h: Update.
1494 * gnulib/import/at-func.c: Update.
1495 * gnulib/import/basename-lgpl.c: Update.
1496 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1497 * gnulib/import/c++defs.h: ... this.
1498 * gnulib/import/canonicalize-lgpl.c: Update.
1499 * gnulib/import/cdefs.h: Update.
1500 * gnulib/import/chdir-long.c: Update.
1501 * gnulib/import/chdir-long.h: Update.
1502 * gnulib/import/cloexec.c: Update.
1503 * gnulib/import/cloexec.h: Update.
1504 * gnulib/import/close.c: Update.
1505 * gnulib/import/closedir.c: Update.
1506 * gnulib/import/config.charset: Update.
1507 * gnulib/import/dirent-private.h: Update.
1508 * gnulib/import/dirent.in.h: Update.
1509 * gnulib/import/dirfd.c: Update.
1510 * gnulib/import/dirname-lgpl.c: Update.
1511 * gnulib/import/dirname.h: Update.
1512 * gnulib/import/dosname.h: Update.
1513 * gnulib/import/dup-safer-flag.c: Update.
1514 * gnulib/import/dup-safer.c: Update.
1515 * gnulib/import/dup.c: Update.
1516 * gnulib/import/dup2.c: Update.
1517 * gnulib/import/errno.in.h: Update.
1518 * gnulib/import/error.c: Update.
1519 * gnulib/import/error.h: Update.
1520 * gnulib/import/exitfail.c: Update.
1521 * gnulib/import/exitfail.h: Update.
1522 * gnulib/import/extra/update-copyright: Update.
1523 * gnulib/import/fchdir.c: Update.
1524 * gnulib/import/fcntl.c: Update.
1525 * gnulib/import/fcntl.in.h: Update.
1526 * gnulib/import/fd-hook.c: Update.
1527 * gnulib/import/fd-hook.h: Update.
1528 * gnulib/import/fd-safer-flag.c: Update.
1529 * gnulib/import/fd-safer.c: Update.
1530 * gnulib/import/fdopendir.c: Update.
1531 * gnulib/import/filename.h: Update.
1532 * gnulib/import/filenamecat-lgpl.c: Update.
1533 * gnulib/import/filenamecat.h: Update.
1534 * gnulib/import/flexmember.h: Update.
1535 * gnulib/import/float+.h: Update.
1536 * gnulib/import/float.c: Update.
1537 * gnulib/import/float.in.h: Update.
1538 * gnulib/import/fnmatch.c: Update.
1539 * gnulib/import/fnmatch.in.h: Update.
1540 * gnulib/import/fnmatch_loop.c: Update.
1541 * gnulib/import/fpucw.h: Update.
1542 * gnulib/import/frexp.c: Update.
1543 * gnulib/import/frexpl.c: Update.
1544 * gnulib/import/fstat.c: Update.
1545 * gnulib/import/fstatat.c: Update.
1546 * gnulib/import/getcwd-lgpl.c: Update.
1547 * gnulib/import/getcwd.c: Update.
1548 * gnulib/import/getdtablesize.c: Update.
1549 * gnulib/import/getlogin_r.c: Update.
1550 * gnulib/import/getprogname.c: Update.
1551 * gnulib/import/getprogname.h: Update.
1552 * gnulib/import/gettext.h: Update.
1553 * gnulib/import/gettimeofday.c: Update.
1554 * gnulib/import/glob-libc.h: Update.
1555 * gnulib/import/glob.c: Update.
1556 * gnulib/import/glob.in.h: Update.
1557 * gnulib/import/glob_internal.h: Update.
1558 * gnulib/import/glob_pattern_p.c: Update.
1559 * gnulib/import/globfree.c: Update.
1560 * gnulib/import/hard-locale.c: Update.
1561 * gnulib/import/hard-locale.h: Update.
1562 * gnulib/import/intprops.h: Update.
1563 * gnulib/import/inttypes.in.h: Update.
1564 * gnulib/import/isnan.c: Update.
1565 * gnulib/import/isnand-nolibm.h: Update.
1566 * gnulib/import/isnand.c: Update.
1567 * gnulib/import/isnanl-nolibm.h: Update.
1568 * gnulib/import/isnanl.c: Update.
1569 * gnulib/import/itold.c: Update.
1570 * gnulib/import/libc-config.h: Update.
1571 * gnulib/import/limits.in.h: Update.
1572 * gnulib/import/localcharset.c: Update.
1573 * gnulib/import/localcharset.h: Update.
1574 * gnulib/import/localtime-buffer.c: Update.
1575 * gnulib/import/localtime-buffer.h: Update.
1576 * gnulib/import/lstat.c: Update.
1577 * gnulib/import/m4/00gnulib.m4: Update.
1578 * gnulib/import/m4/__inline.m4: Update.
1579 * gnulib/import/m4/absolute-header.m4: Update.
1580 * gnulib/import/m4/alloca.m4: Update.
1581 * gnulib/import/m4/builtin-expect.m4: Update.
1582 * gnulib/import/m4/canonicalize.m4: Update.
1583 * gnulib/import/m4/chdir-long.m4: Update.
1584 * gnulib/import/m4/close.m4: Update.
1585 * gnulib/import/m4/closedir.m4: Update.
1586 * gnulib/import/m4/configmake.m4: Update.
1587 * gnulib/import/m4/d-ino.m4: Update.
1588 * gnulib/import/m4/d-type.m4: Update.
1589 * gnulib/import/m4/dirent_h.m4: Update.
1590 * gnulib/import/m4/dirfd.m4: Update.
1591 * gnulib/import/m4/dirname.m4: Update.
1592 * gnulib/import/m4/double-slash-root.m4: Update.
1593 * gnulib/import/m4/dup.m4: Update.
1594 * gnulib/import/m4/dup2.m4: Update.
1595 * gnulib/import/m4/eealloc.m4: Update.
1596 * gnulib/import/m4/environ.m4: Update.
1597 * gnulib/import/m4/errno_h.m4: Update.
1598 * gnulib/import/m4/error.m4: Update.
1599 * gnulib/import/m4/exponentd.m4: Update.
1600 * gnulib/import/m4/exponentl.m4: Update.
1601 * gnulib/import/m4/extensions.m4: Update.
1602 * gnulib/import/m4/extern-inline.m4: Update.
1603 * gnulib/import/m4/fchdir.m4: Update.
1604 * gnulib/import/m4/fcntl-o.m4: Update.
1605 * gnulib/import/m4/fcntl.m4: Update.
1606 * gnulib/import/m4/fcntl_h.m4: Update.
1607 * gnulib/import/m4/fdopendir.m4: Update.
1608 * gnulib/import/m4/filenamecat.m4: Update.
1609 * gnulib/import/m4/flexmember.m4: Update.
1610 * gnulib/import/m4/float_h.m4: Update.
1611 * gnulib/import/m4/fnmatch.m4: Update.
1612 * gnulib/import/m4/fnmatch_h.m4: Update.
1613 * gnulib/import/m4/fpieee.m4: Update.
1614 * gnulib/import/m4/frexp.m4: Update.
1615 * gnulib/import/m4/frexpl.m4: Update.
1616 * gnulib/import/m4/fstat.m4: Update.
1617 * gnulib/import/m4/fstatat.m4: Update.
1618 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1619 * gnulib/import/m4/getcwd-path-max.m4: Update.
1620 * gnulib/import/m4/getcwd.m4: Update.
1621 * gnulib/import/m4/getdtablesize.m4: Update.
1622 * gnulib/import/m4/getlogin.m4: Update.
1623 * gnulib/import/m4/getlogin_r.m4: Update.
1624 * gnulib/import/m4/getpagesize.m4: Update.
1625 * gnulib/import/m4/getprogname.m4: Update.
1626 * gnulib/import/m4/gettimeofday.m4: Update.
1627 * gnulib/import/m4/glibc21.m4: Update.
1628 * gnulib/import/m4/glob.m4: Update.
1629 * gnulib/import/m4/glob_h.m4: Update.
1630 * gnulib/import/m4/gnulib-cache.m4: Update.
1631 * gnulib/import/m4/gnulib-common.m4: Update.
1632 * gnulib/import/m4/gnulib-comp.m4: Update.
1633 * gnulib/import/m4/gnulib-tool.m4: Update.
1634 * gnulib/import/m4/hard-locale.m4: Update.
1635 * gnulib/import/m4/include_next.m4: Update.
1636 * gnulib/import/m4/inttypes-pri.m4: Update.
1637 * gnulib/import/m4/inttypes.m4: Update.
1638 * gnulib/import/m4/isnand.m4: Update.
1639 * gnulib/import/m4/isnanl.m4: Update.
1640 * gnulib/import/m4/largefile.m4: Update.
1641 * gnulib/import/m4/limits-h.m4: Update.
1642 * gnulib/import/m4/localcharset.m4: Update.
1643 * gnulib/import/m4/locale-fr.m4: Update.
1644 * gnulib/import/m4/locale-ja.m4: Update.
1645 * gnulib/import/m4/locale-zh.m4: Update.
1646 * gnulib/import/m4/localtime-buffer.m4: Update.
1647 * gnulib/import/m4/longlong.m4: Update.
1648 * gnulib/import/m4/lstat.m4: Update.
1649 * gnulib/import/m4/malloc.m4: Update.
1650 * gnulib/import/m4/malloca.m4: Update.
1651 * gnulib/import/m4/math_h.m4: Update.
1652 * gnulib/import/m4/mbrtowc.m4: Update.
1653 * gnulib/import/m4/mbsinit.m4: Update.
1654 * gnulib/import/m4/mbsrtowcs.m4: Update.
1655 * gnulib/import/m4/mbstate_t.m4: Update.
1656 * gnulib/import/m4/memchr.m4: Update.
1657 * gnulib/import/m4/memmem.m4: Update.
1658 * gnulib/import/m4/mempcpy.m4: Update.
1659 * gnulib/import/m4/memrchr.m4: Update.
1660 * gnulib/import/m4/mkdir.m4: Update.
1661 * gnulib/import/m4/mkstemp.m4: Update.
1662 * gnulib/import/m4/mmap-anon.m4: Update.
1663 * gnulib/import/m4/mode_t.m4: Update.
1664 * gnulib/import/m4/msvc-inval.m4: Update.
1665 * gnulib/import/m4/msvc-nothrow.m4: Update.
1666 * gnulib/import/m4/multiarch.m4: Update.
1667 * gnulib/import/m4/nocrash.m4: Update.
1668 * gnulib/import/m4/off_t.m4: Update.
1669 * gnulib/import/m4/onceonly.m4: Update.
1670 * gnulib/import/m4/open-cloexec.m4: Update.
1671 * gnulib/import/m4/open.m4: Update.
1672 * gnulib/import/m4/openat.m4: Update.
1673 * gnulib/import/m4/opendir.m4: Update.
1674 * gnulib/import/m4/pathmax.m4: Update.
1675 * gnulib/import/m4/rawmemchr.m4: Update.
1676 * gnulib/import/m4/readdir.m4: Update.
1677 * gnulib/import/m4/readlink.m4: Update.
1678 * gnulib/import/m4/realloc.m4: Update.
1679 * gnulib/import/m4/rename.m4: Update.
1680 * gnulib/import/m4/rewinddir.m4: Update.
1681 * gnulib/import/m4/rmdir.m4: Update.
1682 * gnulib/import/m4/save-cwd.m4: Update.
1683 * gnulib/import/m4/secure_getenv.m4: Update.
1684 * gnulib/import/m4/setenv.m4: Update.
1685 * gnulib/import/m4/signal_h.m4: Update.
1686 * gnulib/import/m4/ssize_t.m4: Update.
1687 * gnulib/import/m4/stat-time.m4: Update.
1688 * gnulib/import/m4/stat.m4: Update.
1689 * gnulib/import/m4/std-gnu11.m4: Update.
1690 * gnulib/import/m4/stdbool.m4: Update.
1691 * gnulib/import/m4/stddef_h.m4: Update.
1692 * gnulib/import/m4/stdint.m4: Update.
1693 * gnulib/import/m4/stdio_h.m4: Update.
1694 * gnulib/import/m4/stdlib_h.m4: Update.
1695 * gnulib/import/m4/strchrnul.m4: Update.
1696 * gnulib/import/m4/strdup.m4: Update.
1697 * gnulib/import/m4/strerror.m4: Update.
1698 * gnulib/import/m4/string_h.m4: Update.
1699 * gnulib/import/m4/strstr.m4: Update.
1700 * gnulib/import/m4/strtok_r.m4: Update.
1701 * gnulib/import/m4/sys_socket_h.m4: Update.
1702 * gnulib/import/m4/sys_stat_h.m4: Update.
1703 * gnulib/import/m4/sys_time_h.m4: Update.
1704 * gnulib/import/m4/sys_types_h.m4: Update.
1705 * gnulib/import/m4/tempname.m4: Update.
1706 * gnulib/import/m4/time_h.m4: Update.
1707 * gnulib/import/m4/unistd-safer.m4: Update.
1708 * gnulib/import/m4/unistd_h.m4: Update.
1709 * gnulib/import/m4/warn-on-use.m4: Update.
1710 * gnulib/import/m4/wchar_h.m4: Update.
1711 * gnulib/import/m4/wchar_t.m4: Update.
1712 * gnulib/import/m4/wctype_h.m4: Update.
1713 * gnulib/import/m4/wint_t.m4: Update.
1714 * gnulib/import/malloc.c: Update.
1715 * gnulib/import/malloc/scratch_buffer.h: Update.
1716 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1717 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1718 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1719 * gnulib/import/malloca.c: Update.
1720 * gnulib/import/malloca.h: Update.
1721 * gnulib/import/malloca.valgrind: Update.
1722 * gnulib/import/math.in.h: Update.
1723 * gnulib/import/mbrtowc.c: Update.
1724 * gnulib/import/mbsinit.c: Update.
1725 * gnulib/import/mbsrtowcs-impl.h: Update.
1726 * gnulib/import/mbsrtowcs-state.c: Update.
1727 * gnulib/import/mbsrtowcs.c: Update.
1728 * gnulib/import/memchr.c: Update.
1729 * gnulib/import/memmem.c: Update.
1730 * gnulib/import/mempcpy.c: Update.
1731 * gnulib/import/memrchr.c: Update.
1732 * gnulib/import/mkdir.c: Update.
1733 * gnulib/import/mkstemp.c: Update.
1734 * gnulib/import/msvc-inval.c: Update.
1735 * gnulib/import/msvc-inval.h: Update.
1736 * gnulib/import/msvc-nothrow.c: Update.
1737 * gnulib/import/msvc-nothrow.h: Update.
1738 * gnulib/import/open.c: Update.
1739 * gnulib/import/openat-die.c: Update.
1740 * gnulib/import/openat-priv.h: Update.
1741 * gnulib/import/openat-proc.c: Update.
1742 * gnulib/import/openat.c: Update.
1743 * gnulib/import/openat.h: Update.
1744 * gnulib/import/opendir.c: Update.
1745 * gnulib/import/pathmax.h: Update.
1746 * gnulib/import/pipe-safer.c: Update.
1747 * gnulib/import/rawmemchr.c: Update.
1748 * gnulib/import/readdir.c: Update.
1749 * gnulib/import/readlink.c: Update.
1750 * gnulib/import/realloc.c: Update.
1751 * gnulib/import/ref-add.sin: Update.
1752 * gnulib/import/ref-del.sin: Update.
1753 * gnulib/import/rename.c: Update.
1754 * gnulib/import/rewinddir.c: Update.
1755 * gnulib/import/rmdir.c: Update.
1756 * gnulib/import/same-inode.h: Update.
1757 * gnulib/import/save-cwd.c: Update.
1758 * gnulib/import/save-cwd.h: Update.
1759 * gnulib/import/scratch_buffer.h: Update.
1760 * gnulib/import/secure_getenv.c: Update.
1761 * gnulib/import/setenv.c: Update.
1762 * gnulib/import/signal.in.h: Update.
1763 * gnulib/import/stat-time.c: Update.
1764 * gnulib/import/stat-time.h: Update.
1765 * gnulib/import/stat-w32.c: Update.
1766 * gnulib/import/stat-w32.h: Update.
1767 * gnulib/import/stat.c: Update.
1768 * gnulib/import/stdbool.in.h: Update.
1769 * gnulib/import/stddef.in.h: Update.
1770 * gnulib/import/stdint.in.h: Update.
1771 * gnulib/import/stdio.in.h: Update.
1772 * gnulib/import/stdlib.in.h: Update.
1773 * gnulib/import/str-two-way.h: Update.
1774 * gnulib/import/strchrnul.c: Update.
1775 * gnulib/import/strdup.c: Update.
1776 * gnulib/import/streq.h: Update.
1777 * gnulib/import/strerror-override.c: Update.
1778 * gnulib/import/strerror-override.h: Update.
1779 * gnulib/import/strerror.c: Update.
1780 * gnulib/import/string.in.h: Update.
1781 * gnulib/import/stripslash.c: Update.
1782 * gnulib/import/strnlen1.c: Update.
1783 * gnulib/import/strnlen1.h: Update.
1784 * gnulib/import/strstr.c: Update.
1785 * gnulib/import/strtok_r.c: Update.
1786 * gnulib/import/sys_stat.in.h: Update.
1787 * gnulib/import/sys_time.in.h: Update.
1788 * gnulib/import/sys_types.in.h: Update.
1789 * gnulib/import/tempname.c: Update.
1790 * gnulib/import/tempname.h: Update.
1791 * gnulib/import/time.in.h: Update.
1792 * gnulib/import/unistd--.h: Update.
1793 * gnulib/import/unistd-safer.h: Update.
1794 * gnulib/import/unistd.in.h: Update.
1795 * gnulib/import/unsetenv.c: Update.
1796 * gnulib/import/verify.h: Update.
1797 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1798 * gnulib/import/wchar.in.h: Update.
1799 * gnulib/import/wctype.in.h: Update.
1800 * gnulib/import/xalloc-oversized.h: Update.
1801 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1802 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1804 2018-08-16 Gary Benson <gbenson@redhat.com>
1807 * gdb/main.c (captured_main_1): Exit with nonzero status
1808 in batch mode if the last command to be executed failed.
1809 * NEWS: Mention the above.
1811 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1813 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1814 end of warning message.
1816 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1819 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1820 (aarch64_extract_return_value): Use
1821 aapcs_is_vfp_call_or_return_candidate.
1822 (aarch64_return_in_memory): Likewise.
1823 (aarch64_store_return_value): Likewise.
1825 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1828 (aapcs_is_vfp_call_or_return_candidate): Make static
1829 (pass_in_v_or_stack): Remove function.
1830 (pass_in_v_vfp_candidate): New function.
1831 (aarch64_push_dummy_call): Check for float register candidates.
1833 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1835 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1836 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1837 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1839 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1842 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1843 (struct ipa_sym_addresses): Rename to...
1844 (struct ipa_sym_addresses_common): ... this.
1845 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1847 2018-08-28 Tom Tromey <tom@tromey.com>
1849 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1850 (token_fifo): Now a std::vector.
1851 (yylex, c_parse): Update.
1852 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1853 (token_fifo): Now a std::vector.
1854 (yylex, d_parse): Update.
1855 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1856 (token_fifo): Now a std::vector.
1857 (yylex, go_parse): Update.
1859 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1861 * parser-defs.h (struct type_stack) <elements>: Change type to
1862 std::vector<union type_stack_elt>.
1863 <depth, size>: Remove.
1864 * parse.c (parse_exp_in_context_1): Adjust.
1865 (type_stack_reserve): Remove.
1866 (check_type_stack_depth): Remove.
1867 (insert_into_type_stack): Adjust to std::vector.
1868 (insert_type): Likewise.
1869 (push_type): Likewise.
1870 (push_type_int): Likewise.
1871 (insert_type_address_space): Likewise.
1872 (pop_type): Likewise.
1873 (pop_type_int): Likewise.
1874 (pop_typelist): Likewise.
1875 (pop_type_stack): Likewise.
1876 (append_type_stack): Likewise.
1877 (push_type_stack): Likewise.
1878 (get_type_stack): Likewise.
1879 (type_stack_cleanup): Likewise.
1880 (push_typelist): Likewise.
1881 (follow_types): Likewise.
1882 (_initialize_parse): Likewise.
1884 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1886 * NEWS: Mention csky target.
1888 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1889 Hafiz Abid Qadeer <abidh@codesourcery.com>
1890 Don Breazeal <donb@codesourcery.com>
1892 * csky-linux-tdep.c: New file.
1893 * csky-tdep.c: Likewise.
1894 * csky-tdep.h: Likewise.
1895 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1897 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1898 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1899 * configure.tgt: Add csky support.
1901 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1903 * python/py-framefilter.c (py_print_frame): Print frame architecture
1904 when printing on an MI output.
1906 2018-08-27 Tom Tromey <tom@tromey.com>
1909 * configure: Rebuild.
1910 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1912 2018-08-27 Tom Tromey <tom@tromey.com>
1914 * aarch64-linux-tdep.c
1915 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1918 2018-08-27 Tom Tromey <tom@tromey.com>
1920 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1922 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1923 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1924 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1925 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1928 2018-08-27 Tom Tromey <tom@tromey.com>
1930 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1931 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1933 2018-08-27 Tom Tromey <tom@tromey.com>
1935 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1936 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1938 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1940 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1942 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1943 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1944 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1946 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1947 (ppc64_linux_sigaction_tramp_frame)
1948 (ppc32_linux_sighandler_tramp_frame)
1949 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1950 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1951 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1952 * mn10300-linux-tdep.c (am33_linux_sigframe)
1953 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
1954 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
1955 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1956 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1957 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
1958 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
1959 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
1960 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
1961 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
1962 * microblaze-linux-tdep.c
1963 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1964 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
1965 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
1966 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
1967 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
1968 * common/common-types.h (ULONGEST_MAX): New define.
1969 (CORE_ADDR_MAX): Fix formatting.
1970 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
1971 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
1972 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
1973 (arm_linux_rt_sigreturn_tramp_frame)
1974 (arm_eabi_linux_sigreturn_tramp_frame)
1975 (arm_eabi_linux_rt_sigreturn_tramp_frame)
1976 (thumb2_eabi_linux_sigreturn_tramp_frame)
1977 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
1978 (arm_linux_restart_syscall_tramp_frame)
1979 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
1980 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
1981 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
1983 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
1985 2018-08-27 Tom Tromey <tom@tromey.com>
1987 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
1989 * mips-tdep.c (mips_deal_with_atomic_sequence)
1990 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
1991 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
1992 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
1993 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
1995 * aarch64-tdep.c (aarch64_software_single_step): Use
1998 2018-08-27 Tom Tromey <tom@tromey.com>
2000 * linespec.c (complete_linespec_component): Add cast to "char".
2001 * completer.c (completion_tracker::build_completion_result): Add
2004 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2006 * solist.h (struct solist, struct target_so_ops): Fix
2009 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2011 * ada-tasks.c (ada_task_info_s): Remove typedef.
2012 (DEF_VEC_O(ada_task_info_s)): Remove.
2013 (struct ada_tasks_inferior_data): Initialize fields.
2014 <task_list>: Make an std::vector.
2015 (get_ada_tasks_inferior_data): Allocate with new.
2016 (ada_get_task_number): Adjust.
2017 (get_task_number_from_id): Likewise.
2018 (valid_task_id): Likewise.
2019 (ada_get_task_info_from_ptid): Likewise.
2020 (iterate_over_live_ada_tasks): Likewise.
2021 (add_ada_task): Likewise.
2022 (read_known_tasks): Likewise.
2023 (ada_build_task_list): Likewise.
2024 (print_ada_task_info): Likewise.
2025 (info_task): Likewise.
2026 (task_command_1): Likewise.
2028 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2030 * ada-lang.c (add_angle_brackets): Return std::string.
2032 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2034 * python/py-threadevent.c (py_get_event_thread): Initialize
2037 2018-08-24 Pedro Alves <palves@redhat.com>
2039 * python/py-bpevent.c (create_breakpoint_event_object): Use
2040 copy-initialization.
2041 * python/py-continueevent.c (emit_continue_event): Use
2042 copy-initialization.
2043 * python/py-exitedevent.c (create_exited_event_object): Return a
2045 (emit_exited_event): Use copy-initialization.
2046 * python/py-inferior.c (python_new_inferior)
2047 (python_inferior_deleted, add_thread_object): Use
2048 copy-initialization.
2049 * python/py-infevents.c (create_inferior_call_event_object)
2050 (create_register_changed_event_object)
2051 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2052 (emit_inferior_call_event, emit_memory_changed_event)
2053 (emit_register_changed_event): Use copy-initialization.
2054 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2055 Return a gdbpy_ref<>.
2056 (emit_new_objfile_event): Use copy-initialization.
2057 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2058 (emit_clear_objfiles_event): Use copy-initialization.
2059 * python/py-signalevent.c (create_signal_event_object): Use
2060 copy-initialization.
2061 * python/py-threadevent.c (create_thread_event_object): Use
2062 copy-initialization.
2064 2018-08-24 Pedro Alves <palves@redhat.com>
2065 Simon Marchi <simon.marchi@ericsson.com>
2068 * python/py-continueevent.c: Include "gdbthread.h".
2069 (create_continue_event_object): Add intro comment. Add 'ptid'
2070 parameter. Use it to find thread to pass to
2071 create_thread_event_object.
2072 (emit_continue_event): Pass PTID down to
2073 create_continue_event_object.
2074 * python/py-event.h (py_get_event_thread): Declare.
2075 (create_thread_event_object): Remove default from 'thread'
2077 * python/py-stopevent.c (create_stop_event_object): Use
2078 py_get_event_thread.
2079 * python/py-threadevent.c (get_event_thread): Rename to ...
2080 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2081 and use it to find the thread.
2082 (create_thread_event_object): Assert that THREAD isn't null.
2083 Don't find the event thread here.
2085 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2087 * block.h (blockrange, blockranges): New struct declarations.
2088 (struct block): Add new field named `ranges'.
2089 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2090 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2091 macros for accessing ranges in struct block.
2092 (make_blockranges): New declaration.
2093 block.c (make_blockranges): New function.
2094 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2096 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2097 * blockframe.c (cache_pc_function_block): New static global.
2098 (clear_pc_function_cache): Clear cache_pc_function_block.
2099 (find_pc_partial_function): Move comment to symtab.h. Add
2100 support for non-contiguous blocks.
2101 * cli/cli-cmds.c (block.h): Include.
2102 (print_disassembly): Handle printing of non-contiguous blocks.
2103 (disassemble_current_function): Likewise.
2104 (disassemble_command): Likewise.
2106 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2108 * blockframe.c (get_pc_function_start): Likewise.
2109 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2110 (gcc_symbol_address): Likewise.
2111 * compile/compile-object-run.c (compile_object_run): Likewise.
2112 * compile/compile.c (get_expr_block_and_pc): Likewise.
2113 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2114 (func_addr_to_tail_call_list): Likewise.
2115 * findvar.c (default_read_var_value): Likewise.
2116 * inline-frame.c (inline_frame_this_id): Likewise.
2117 (skip-inline_frames): Likewise.
2118 * infcmd.c (until_next_command): Likewise.
2119 * linespec.c (convert_linespec_to_sals): Likewise.
2120 * parse.c (parse_exp_in_context_1): Likewise.
2121 * printcmd.c (build_address_symbolic): likewise.
2122 (info_address_command): Likewise.
2123 symtab.c (find_function_start_sal): Likewise.
2124 (skip_prologue_sal): Likewise.
2125 (find_function_alias_target): Likewise.
2126 (find_gnu_ifunc): Likewise.
2127 * stack.c (find_frame_funname): Likewise.
2128 * symtab.c (fixup_symbol_section): Likewise.
2129 (find_function_start_sal): Likewise.
2130 (skip_prologue_sal): Likewsie.
2131 (find_function_alias_target): Likewise.
2132 (find_gnu_ifunc): Likewise.
2133 * tracepoint.c (info_scope_command): Likewise.
2134 * value.c (value_fn_field): Likewise.
2136 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2137 in place of find_pc_partial_function.
2138 * blockframe.c (find_function_entry_range_from_pc): New function.
2139 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2140 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2141 for each range in a block.
2144 2018-08-23 Xavier Roirand <roirand@adacore.com>
2146 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2149 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2151 * solib-svr4.c (read_program_headers_from_bfd): Return
2152 gdb::optional<gdb::byte_vector>.
2153 (svr4_exec_displacement): Adjust.
2155 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2157 * solib-svr4.c (read_program_header): Return
2158 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2159 (find_program_interpreter): Return
2160 gdb::optional<gdb::byte_vector>.
2161 (scan_dyntag_auxv): Adjust.
2162 (enable_break): Adjust.
2163 (svr4_exec_displacement): Adjust.
2165 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2167 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2168 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2170 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2172 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2174 * guile/scm-utils.c (gdbscm_printf): Likewise.
2175 * serial.c (serial_printf): Likewise.
2176 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2178 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2180 * stack.c (print_frame): Print frame architecture when printing on
2182 * NEWS: Mention new "arch" attribute in frame output.
2184 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2186 * arch/aarch64.h (aarch64_regnum): Update comment.
2188 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2190 * NEWS: Add SVE to 8.2 section.
2192 2018-08-21 Pedro Alves <palves@redhat.com>
2194 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2195 out from gdbscm_parse_function_args.
2196 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2197 gdbscm_parse_function_args_1.
2199 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2202 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2205 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2207 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2209 2018-08-19 Michael Spang <spang@google.com>
2212 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2213 for PT_TLS segments.
2215 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2217 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2218 dwarf_variable_value.
2219 * dwarf2-frame.c (class dwarf_expr_executor):
2220 Add override for dwarf_variable_value.
2221 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2222 (class symbol_needs_eval_context): Likewise.
2223 (indirect_synthetic_pointer): Add forward declaration.
2224 (sect_variable_value): New function.
2225 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2226 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2227 for DW_OP_GNU_variable_value.
2229 2018-08-16 Tom Tromey <tom@tromey.com>
2231 * top.c (read_command_file): Update.
2232 (command_line_input): Remove "repeat" argument.
2233 * ada-lang.c (get_selections): Update.
2234 * linespec.c (decode_line_2): Update.
2235 * defs.h (command_line_input): Remove argument.
2236 * cli/cli-script.c (read_next_line): Update.
2237 * python/py-gdb-readline.c: Update.
2239 2018-08-17 Tom Tromey <tom@tromey.com>
2241 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2244 2018-08-15 Tom Tromey <tom@tromey.com>
2246 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2248 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2250 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2251 If used, use find_pc_partial_function to find address range
2253 * mi/mi-main.c (mi_cmd_list_features): Report
2254 "data-disassemble-a-option" feature.
2255 * NEWS: Mention new -data-disassemble option -a.
2257 2018-08-13 Tom Tromey <tom@tromey.com>
2259 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2261 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2263 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2264 (aarch64_linux_collect_sve_regset): Likewise.
2265 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2266 * regcache.h (regcache_map_entry_size): New function.
2268 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2270 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2271 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2272 (SVE_HEADER_VL_LENGTH): Likewise.
2273 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2274 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2275 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2276 (SVE_HEADER_SIZE_OFFSET): Likewise.
2277 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2278 (SVE_HEADER_VL_OFFSET): Likewise.
2279 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2280 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2281 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2282 (SVE_HEADER_SIZE): Likewise.
2283 (aarch64_linux_core_read_vq): Add function.
2284 (aarch64_linux_core_read_description): Check for SVE section.
2286 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2288 * aarch64-fbsd-tdep.c
2289 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2291 * aarch64-linux-tdep.c
2292 (aarch64_linux_iterate_over_regset_sections): Likewise.
2293 * alpha-linux-tdep.c
2294 (alpha_linux_iterate_over_regset_sections):
2296 (alphanbsd_iterate_over_regset_sections): Likewise.
2298 (amd64fbsd_iterate_over_regset_sections): Likewise.
2299 * amd64-linux-tdep.c
2300 (amd64_linux_iterate_over_regset_sections): Likewise.
2302 (armbsd_iterate_over_regset_sections): Likewise.
2304 (arm_fbsd_iterate_over_regset_sections): Likewise.
2306 (arm_linux_iterate_over_regset_sections): Likewise.
2307 * corelow.c (get_core_registers_cb): Likewise.
2308 (core_target::fetch_registers): Likewise.
2309 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2310 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2311 * gdbarch.h (void): Regenerate.
2312 * gdbarch.sh: Add supply_size and collect_size.
2313 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2314 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2315 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2316 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2317 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2318 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2319 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2320 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2321 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2322 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2323 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2324 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2325 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2326 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2327 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2328 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2329 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2330 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2331 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2332 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2333 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2334 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2335 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2336 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2337 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2338 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2339 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2340 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2341 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2342 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2344 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2346 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2349 2018-08-10 Keith Seitz <keiths@redhat.com>
2351 * compile/compile-c-support.c (add_code_header, add_code_footer):
2352 Move into policy class.
2353 (c_push_user_expression, pop_user_expression_nop)
2354 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2355 (compile_program): New host class.
2356 (c_compile_program): New typedef.
2357 (c_compute_porgram): Use c_compile_program.
2359 2018-08-10 Keith Seitz <keiths@redhat.com>
2361 * compile/compile-internal.h (compile_instance::~compile_instance):
2362 Remove calls to htab_delete.
2363 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2364 * compile.c (compile_instance::compile_instance): Initialize
2365 htab unique pointers.
2366 (compile_instance::get_cached_type, compile_instance::insert_type)
2367 (compile_instance::error_symbol_once): Update for unique_ptr.
2369 2018-08-10 Keith Seitz <keiths@redhat.com>
2371 * compile/compile-c-symbols.c (struct symbol_error)
2372 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2373 (compile_instance::insert_symbol_error)
2374 (compile_instance::error_symbol_once): Move to ...
2375 * compile/compile.c: ... here.
2377 2018-08-10 Keith Seitz <keiths@redhat.com>
2379 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2380 instead of `new_compile_instance'.
2381 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2383 If the symbol error map is not initialized, create it.
2384 (generate_c_for_for_one_symbol): Do not check/initialize
2385 the symbol error map.
2386 * compile/compile-c-types.c (compile_c_instance): Make a class.
2388 (compile_instance::compile_instance): Initialize the type cache.
2389 (get_cached_type): New function.
2390 (insert_type): Update description.
2391 (compile_c_instance::m_default_cflags): Define.
2392 (convert_type): Update description. Use get_cached_type.
2393 (delete_instance): Moved to destructor.
2394 (new_compile_instance): Moved to constructor.
2395 * compile/compile-c.h (compile_c_instance): Make class inheriting
2396 from compile_instance.
2397 <base>: Remove field.
2398 <type_map, symbol_err_map>: Move to base class.
2399 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2400 * compile/compile-internal.h (compile_instance): Make class.
2401 <type_map_t, symbol_err_map_t>: Define.
2402 <fe>: Rename to `m_gcc_fe'.
2403 <scope, block, gcc_target_options>: Add `m_' prefix.
2404 <m_type_map, m_symbol_err_map>: New fields, moved from
2407 (convert_type, new_compile_instance): Remove.
2408 * compile/compile.c (cleanup_compile_instance): Remove.
2409 (compile_to_object): Use unique_ptr to eliminate cleanups.
2410 (compile_instance::set_print_callback, compile_instance::version)
2411 (compile_instance::set_verbose)
2412 (compile_instance::set_driver_filename)
2413 (compile_instance::set_triplet_regexp)
2414 (compile_instance::set_arguments)
2415 (compile_instance::set_source_file)
2416 (compile_instance::compile): Define.
2418 2018-08-10 Keith Seitz <keiths@redhat.com>
2420 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2421 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2422 gcc-c-fe.def to define C plugin.
2423 (delete_instance): Delete `c_plugin'.
2424 (new_compile_instance): Initialize `c_plugin'.
2425 * compile/compile-c.h: Include gcc_c_plugin.h.
2426 (struct compile_c_instance) <c_plugin>: New member.
2427 * gcc-c-plugin.h: New file.
2428 Update all callers with API change.
2430 2018-08-10 Keith Seitz <keiths@redhat.com>
2432 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2433 (HFILES_NO_SRCDIR): ... to here.
2434 Add compile-internal.h and compile-c.h.
2435 * compile/compile-c-support.c: Include compile-c.h.
2436 * compile/compile-c-symbols.c: Include compile-c.h.
2437 (generate_c_for_variable_locations): Update comment.
2438 * compile/compile-c-types.c: Include compile-c.h.
2439 * compile/compile-c.h: New file -- moved C language declarations
2440 from other files here.
2441 * compile/compile-internal.h: Do not include hashtab.h or
2442 common/enum-flags.h.
2443 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2444 (gcc_convert_symbol, gcc_symbol_address)
2445 (generate_c_for_variable_locations, c_get_mode_for_size)
2446 (c_get_range_decl_name): Definitions moved to compile-c.h.
2447 * compile/compile-loc2c.c: Include compile-c.h.
2449 2018-08-10 Keith Seitz <keiths@redhat.com>
2451 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2452 (c_symbol_substitution_name): ... this.
2455 2018-08-10 Keith Seitz <keiths@redhat.com>
2457 * compile/compile-c-support.c (c_compute_program): Use
2458 unique_xmalloc_ptr to eliminate cleanup.
2459 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2460 Return a unique_xmalloc_ptr and eliminate cleanup.
2461 * compile/compile-internal.h (generate_c_for_variable_locations):
2462 Return unique_xmalloc_ptr and update description.
2464 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2466 * corelow.c (core_target::get_core_register_section): Rename
2467 min_size to section_min_size.
2469 2018-08-09 Jim Wilson <jimw@sifive.com>
2471 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2472 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2473 * NEWS: Mention new GNU/Linux RISC-V target.
2474 * configure.host: Add riscv*-*-linux*.
2475 * configure.nat: Add riscv*.
2476 * configure.tgt: Add riscv*-*-linux*.
2477 * riscv-linux-nat.c: New file.
2478 * riscv-linux-tdep.c: New file.
2480 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2482 * infrun.c (resume): Make static, add forward declaration.
2483 (proceed): Update header comment.
2484 * infrun.h (resume): Delete declaration.
2486 2018-08-09 Tom Tromey <tom@tromey.com>
2488 * riscv-tdep.h: Minor formatting fixes.
2490 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2492 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2493 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2494 (test_mkdir_recursive): Likewise.
2495 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2497 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2499 * valarith.c (value_subscripted_rvalue): If an array is not in
2500 memory, and we don't know the upper bound, then we can't know that
2501 the requested element exists or not.
2503 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2505 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2506 (target_options_to_string): Add comment.
2508 2018-08-08 Tom Tromey <tom@tromey.com>
2510 * unittests/scoped_mmap-selftests.c: Check result of "write".
2512 2018-08-08 Jim Wilson <jimw@sifive.com>
2514 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2515 (decode_register_index_short): New.
2516 (decode_j_type_insn, decode_cj_type_insn): New.
2517 (decode_b_type_insn, decode_cb_type_insn): New.
2518 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2519 local xlen. Check xlen when decoding ambiguous compressed insns. In
2520 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2521 is_c_sw_insn instead of is_sw_insn.
2522 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2523 (riscv_software_single_step): New.
2524 * riscv-tdep.h (riscv_software_single_step): Declare.
2526 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2527 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2529 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2532 * target.c (dispose_inferior): Don't dispose of inferiors that are
2535 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2537 * remote.c (remote_target::download_tracepoint): Change char* to
2540 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2542 * target.h (target_options_to_string): Return an std::string.
2543 * target.c (str_comma_list_concat_elem): Return void, use
2545 (do_option): Likewise.
2546 (target_options_to_string): Return an std::string.
2547 * linux-nat.c (linux_nat_target::wait): Adjust.
2548 * target-debug.h (target_debug_print_options): Adjust.
2550 2018-08-07 Tom Tromey <tom@tromey.com>
2552 * Makefile.in (CPPFLAGS): New variable.
2553 (INTERNAL_CPPFLAGS): Use it.
2555 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2557 * NEWS: Mention the index cache.
2559 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2561 * common/pathstuff.h (get_standard_cache_dir): New.
2562 * common/pathstuff.c (get_standard_cache_dir): New.
2563 * build-id.h (build_id_to_string): New.
2564 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2565 DEBUG_STR_SUFFIX): Move to here.
2566 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2567 DEBUG_STR_SUFFIX): Move from there.
2568 (write_psymtabs_to_index): Make non-static, add basename
2569 parameter. Write to temporary files, rename when done.
2570 (save_gdb_index_command): Adjust call to
2571 write_psymtabs_to_index.
2572 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2574 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2575 (get_gdb_index_contents_from_cache): New.
2576 (get_gdb_index_contents_from_cache_dwz): New.
2577 (dwarf2_initialize_objfile): Read index from cache.
2578 (dwarf2_build_psymtabs): Save to index.
2579 * dwarf-index-cache.h: New file.
2580 * dwarf-index-cache.c: New file.
2581 * dwarf-index-write.h: New file.
2583 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2585 * gnulib/aclocal.m4: Re-generate.
2586 * gnulib/config.in: Re-generate.
2587 * gnulib/configure: Re-generate.
2588 * gnulib/import/Makefile.am: Re-generate.
2589 * gnulib/import/Makefile.in: Re-generate.
2590 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2591 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2592 * gnulib/import/m4/mkdir.m4: New file.
2593 * gnulib/import/mkdir.c: New file.
2594 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2597 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2599 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2600 * common/scoped_mmap.c: New file.
2601 * common/scoped_mmap.h (destroy): New method.
2602 (~scoped_mmap, reset): Use destroy.
2603 (scoped_mmap): New move constructor.
2604 (mmap_file): New declaration.
2605 * unittests/scoped_mmap-selftests.c (test_normal,
2606 test_invalid_filename, run_tests): New functions.
2607 (_initialize_scoped_mmap_selftests): Register selftest.
2609 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2611 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2612 (read_gdb_index_from_buffer): ... this. Remove section
2613 parameter, add buffer parameter.
2614 (get_gdb_index_contents_ftype,
2615 get_gdb_index_contents_dwz_ftype): New typedefs.
2616 (dwarf2_read_gdb_index): Add callback parameters to get the
2618 (get_gdb_index_contents_from_section): New.
2619 (dwarf2_initialize_objfile): Update call to
2620 dwarf2_read_gdb_index.
2622 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2624 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2625 (gdb_open_cloexec): Likewise.
2626 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2627 (commandline_from_pid): Likewise.
2628 (linux_xfer_osdata_threads): Likewise.
2629 (linux_xfer_osdata_fds): Likewise.
2630 * ada-lang.c (is_package_name): Likewise.
2631 * auxv.c (procfs_xfer_auxv): Likewise.
2632 * breakpoint.c (print_one_breakpoint_location): Use
2634 (print_one_catch_solib): Use string_printf.
2635 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2636 (add_pe_forwarded_sym): Likewise.
2637 * dwarf2read.c (create_type_unit_group): Likewise.
2638 (build_error_marker_type): Likewise.
2639 * infcall.c (get_function_name): Likewise.
2640 * valprint.c (print_converted_chars_to_obstack): Likewise.
2641 * xtensa-tdep.c (xtensa_register_type): Likewise.
2643 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2645 * remote.c (remote_target::download_tracepoint): Fix format
2648 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2650 * tracefile.c: Include common/byte-vector.h.
2651 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2652 with trace_regblock_size if needed. Update uses of buf.
2654 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2656 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2657 std::vector<unsigned char>.
2658 * tracepoint.c (collection_list::collection_list): Remove
2659 m_regs_mask initializer from initializer list. Resize
2660 m_regs_mask using the largest remote register number.
2661 (collection_list::add_remote_register): Remove size check on
2662 m_regs_mask. Use at to access element.
2663 (collection_list::stringify): Change type of temp_buf to
2664 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2665 stringify the register mask. Use pack_hex_byte for the register
2668 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2670 * tracepoint.h (class collection_list) <add_register>: Remove.
2671 <add_remote_register, add_ax_registers, add_local_register>:
2673 <add_memrange>: Add scope parameter.
2674 * tracepoint.c (encode_actions_1): Likewise.
2675 (collection_list::add_register): Rename to ...
2676 (collection_list::add_remote_register): ... this. Update
2678 (collection_list::add_ax_registers, add_local_register): New
2680 (collection_list::add_memrange): Add scope parameter. Call
2681 add_local_register instead of add_register.
2682 (finalize_tracepoint_aexpr): New function.
2683 (collection_list::collect_symbol): Update calls to add_memrange.
2684 Call add_local_register instead of add_register. Call
2685 add_ax_registers. Call finalize_tracepoint_aexpr.
2686 (encode_actions_1): Get remote regnos for $reg action. Call
2687 add_remote_register, add_ax_registers, and add_local_register.
2688 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2689 (validate_actionline): Call finalize_tracepoint_aexpr.
2691 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2693 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2694 Replace array buf with gdb::char_vector buf, of size
2695 get_remote_packet_size (). Replace references to buf and
2696 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2697 and xsnprintf with snprintf. Raise errors if the buffer is too
2700 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2702 * remote.c (remote_target::download_tracepoint): Fix the has_more
2703 predicate in the QTDP action list iteration.
2705 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2707 * remote.c (remote_target::download_tracepoint): Fix indentation
2710 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2712 * proc-api.c (_initialize_proc_api): Remove c, unused.
2713 * procfs.c (procfs_init_inferior): Remove signals, unused.
2714 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2717 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2718 Andrew Burgess <andrew.burgess@embecosm.com>
2720 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2721 'W_STOPCODE (0)' as this could be ambiguous.
2723 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2725 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2726 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2729 2018-08-02 Tom Tromey <tom@tromey.com>
2732 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2734 (process_structure_scope): Likewise.
2736 2018-08-02 Xavier Roirand <roirand@adacore.com>
2739 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2742 2018-08-02 Tom Tromey <tom@tromey.com>
2744 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2745 (darwin_suspend_inferior, darwin_resume_inferior)
2746 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2747 (darwin_check_new_threads): Check result of get_darwin_inferior.
2749 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2753 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2755 * varobj.c (varobj_get_path_expr_parent): Report an error if
2756 parent is a dynamic varobj.
2758 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2760 * gnulib/aclocal.m4: Re-generate.
2761 * gnulib/config.in: Re-generate.
2762 * gnulib/configure: Re-generate.
2763 * gnulib/import/Makefile.in: Re-generate.
2764 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2765 * gnulib/import/m4/onceonly.m4: Re-generate.
2767 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2769 * target-descriptions.c (struct xml_test_tdesc): New.
2770 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2771 (record_xml_tdesc): Update.
2772 (maintenance_check_xml_descriptions): Update.
2773 * target-descriptions.h (record_xml_tdesc): Update comment.
2775 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2777 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2778 checking array bounds are defined.
2780 2018-07-30 Tom Tromey <tom@tromey.com>
2782 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2783 irreflexivity violation.
2785 2018-07-30 Tom Tromey <tom@tromey.com>
2787 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2788 * value.c (unpack_long): Remove lint code.
2789 * valops.c (value_ind): Remove lint code.
2790 * valarith.c (value_x_binop, value_x_unop, value_equal)
2791 (value_pos): Remove lint code.
2793 2018-07-28 Tom de Vries <tdevries@suse.de>
2795 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2796 with undefined upper bound as <optimized out>.
2798 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2800 * gcore.in: Rename variable "name" to "prefix". Expand
2803 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2805 * windows-nat.c (windows_nat_target::create_inferior): Update to
2806 call close() in global namespace.
2808 2018-07-26 Tom Tromey <tom@tromey.com>
2810 * dwarf-index-write.c (add_address_entry): Don't add objfile
2812 * dbxread.c (find_stab_function): Rename from
2813 find_stab_function_addr. Return a bound_minimal_symbol.
2814 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2815 Don't add objfile offsets.
2816 (end_psymtab): Use raw_text_low, raw_text_high,
2817 MSYMBOL_VALUE_RAW_ADDRESS.
2818 (read_ofile_symtab): Update.
2819 (process_one_symbol): Update.
2820 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2822 (dw2_relocate): Remove.
2823 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2825 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2827 (process_psymtab_comp_unit_reader, add_partial_symbol)
2828 (add_partial_subprogram, dwarf2_ranges_read): Update.
2829 (load_partial_dies): Update.
2830 (add_address_entry): Don't add objfile offsets.
2831 (dwarf2_build_include_psymtabs): Update.
2832 (create_addrmap_from_aranges): Don't add objfile offsets.
2833 (dw2_find_pc_sect_compunit_symtab): Update.
2834 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2835 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2837 (parse_partial_symbols): Don't add objfile offsets. Use
2838 raw_text_low, raw_text_high. Update.
2839 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2840 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2841 or call 'relocate' quick function. Clear psymbol_map.
2842 * psympriv.h (struct partial_symbol) <address>: Add section
2844 <set_unrelocated_address>: Rename from set_address.
2845 <raw_text_low, raw_text_high>: New methods.
2846 <text_low, text_high>: Add objfile parameter.
2847 (add_psymbol_to_bcache): Add 'section' parameter. Call
2848 set_unrelocated_address.
2849 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2850 (find_pc_psymbol): Update.
2851 (fixup_psymbol_section, relocate_psymtabs): Remove.
2852 (dump_psymtab, psym_functions): Update.
2853 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2855 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2856 (start_psymtab_common): Update.
2857 * symfile-debug.c (debug_qf_relocate): Remove.
2858 (debug_sym_quick_functions): Update.
2859 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2860 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2863 2018-07-26 Tom Tromey <tromey@redhat.com>
2865 * dbxread.c (end_psymtab): Use text_high_valid and
2867 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2868 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2869 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2871 <text_low_valid, text_high_valid>: New fields.
2872 <set_text_low, set_text_high>: Update.
2873 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2875 2018-07-26 Tom Tromey <tom@tromey.com>
2877 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2879 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2880 textlow and texthigh fields.
2881 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2883 * mdebugread.c (parse_lines, parse_partial_symbols)
2884 (psymtab_to_symtab_1): Update.
2885 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2886 Rename fields. Update comment. Now private.
2887 <text_low, text_high, set_text_low, set_text_high>: New methods.
2888 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2889 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2890 (start_psymtab_common, maintenance_info_psymtabs)
2891 (maintenance_check_psymtabs): Update.
2892 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2894 (scan_xcoff_symtab): Update.
2896 2018-07-26 Tom Tromey <tromey@redhat.com>
2898 * psympriv.h (struct partial_symbol) <unrelocated_address,
2899 address, set_address>: New methods.
2900 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2901 (fixup_psymbol_section, relocate_psymtabs): Update.
2902 (print_partial_symbols): Add 'objfile' parameter. Update.
2903 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2906 2018-07-26 Tom Tromey <tom@tromey.com>
2908 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2909 (debug_names::write_psymbols): Update.
2910 * psympriv.h (struct partial_symbol): Derive from
2911 general_symbol_info.
2912 <obj_section>: New method.
2913 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2914 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2915 (find_pc_sect_psymbol, fixup_psymbol_section)
2916 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2917 (print_partial_symbols, recursively_search_psymtabs)
2918 (compare_psymbols, psymbol_hash, psymbol_compare)
2919 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2920 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2922 2018-07-26 Tom Tromey <tromey@redhat.com>
2924 * dbxread.c (end_psymtab): Remove dead code.
2926 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2928 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2929 DWARF unwinders are disabled.
2930 * dwarf2-frame.c: Add dwarf2read.h include.
2931 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2933 (dwarf2_frame_unwinders_enabled_p): Define.
2934 (show_dwarf_unwinders_enabled_p): New function.
2935 (_initialize_dwarf2_frame): Register switch to control DWARF
2937 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2938 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2939 (show_dwarf_cmdlist): Remove static keyword.
2940 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2941 (show_dwarf_cmdlist): Declare.
2942 * NEWS: Document new feature.
2944 2018-07-26 Tom de Vries <tdevries@suse.de>
2946 PR breakpoints/23366
2947 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2949 2018-07-26 Tom de Vries <tdevries@suse.de>
2951 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2952 DW_AT_count can't be translated to a dynamic prop.
2954 2018-07-25 Tom de Vries <tdevries@suse.de>
2956 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
2959 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
2961 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
2963 2018-07-25 Joel Brobecker <brobecker@adacore.com>
2965 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
2967 2018-07-24 Keith Seitz <keiths@redhat.comt
2970 * dwarf2read.c (dw2_add_symbol_to_list): New function.
2971 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
2972 instead of add_symbol_to_list.
2973 (read_file_scope): Call prepare_one_comp_unit before reading
2976 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
2978 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
2980 2018-07-24 Tom Tromey <tom@tromey.com>
2982 * utils.c (malloc, realloc, free): Don't declare.
2983 * configure, config.in: Rebuild.
2984 * configure.ac: Don't check for declarations of free, malloc, or
2987 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2989 * aarch64-linux-nat.c
2990 (aarch64_linux_nat_target::stopped_data_address): Remove unused
2992 * arm-linux-nat.c (fetch_regs): Likewise.
2993 (store_regs): Likewise.
2994 (fetch_vfp_regs): Likewise.
2995 (store_vfp_regs): Likewise.
2996 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
2997 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
2998 (arm_linux_nat_target::insert_watchpoint): Likewise.
2999 (arm_linux_nat_target::remove_watchpoint): Likewise.
3000 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3002 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3004 * ppc-linux-nat.c (fetch_register): Likewise.
3005 (fetch_all_gp_regs): Likewise.
3006 (fetch_ppc_registers): Likewise.
3007 (store_all_gp_regs): Likewise.
3008 (store_ppc_registers): Likewise.
3009 (hwdebug_insert_point): Likewise.
3010 (can_use_watchpoint_cond_accel): Likewise.
3011 * remote-sim.c (gdb_os_write_stdout): Likewise.
3013 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3014 Tom Tromey <tom@tromey.com>
3016 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3018 * configure: Rebuild.
3020 2018-07-22 Tom Tromey <tom@tromey.com>
3022 * regformats/regdat.sh: Define xmltarget_${name} inside
3023 #ifndef IN_PROCESS_AGENT.
3025 2018-07-22 Tom Tromey <tom@tromey.com>
3027 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3029 2018-07-22 Tom Tromey <tom@tromey.com>
3031 * symfile.c (reread_symbols): Notify iter, not objfile.
3033 2018-07-22 Tom Tromey <tom@tromey.com>
3035 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3037 (ravenscar_thread_target::prepare_to_store): Likewise.
3039 2018-07-22 Tom Tromey <tom@tromey.com>
3041 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3042 unused variable. Call value_fetch_lazy when needed.
3043 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3044 Remove unused variable. Call value_fetch_lazy when needed.
3046 2018-07-22 Tom Tromey <tom@tromey.com>
3048 * m32c-tdep.c (mark_dma): Return void.
3049 (make_regs): Remove unused declarations.
3051 2018-07-22 Tom Tromey <tom@tromey.com>
3053 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3054 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3055 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3056 bkscm_get_valid_block_smob_arg_unsafe for effect.
3058 2018-07-22 Tom Tromey <tom@tromey.com>
3060 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3063 2018-07-22 Tom Tromey <tom@tromey.com>
3065 * windows-nat.c (saved_context): Conditionally define.
3066 * remote.c (remote_target::remote_btrace_maybe_reopen):
3067 Conditionally declare "warned".
3068 * inflow.c (sigquit_ours): Conditionally define.
3069 (new_tty): Move "tty" declaration inside #if.
3070 * guile/guile.c (guile_datadir): Conditionally define.
3071 * charset.c (set_be_le_names): Move some declarations inside #if.
3072 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3074 (parse_xml_btrace_conf): Likewise.
3076 2018-07-22 Tom Tromey <tom@tromey.com>
3078 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3080 2018-07-22 Tom Tromey <tom@tromey.com>
3082 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3083 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3084 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3085 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3086 * stack.c (frame_apply_level_command): Remove unused variable.
3087 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3088 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3089 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3091 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3092 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3093 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3095 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3096 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3098 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3099 Remove unused variable.
3100 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3102 * common/tdesc.c (print_xml_feature::visit): Remove unused
3104 * compile/compile-object-load.c (store_regs): Remove unused
3106 * complaints.c (clear_complaints): Remove unused variable.
3107 * corelow.c (core_target_open): Remove unused variable.
3108 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3110 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3112 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3114 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3116 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3118 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3120 * ia64-tdep.c (examine_prologue): Remove unused variable.
3121 * infcall.c (run_inferior_call): Remove unused variable.
3122 * inferior.c (exit_inferior): Remove unused variable.
3123 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3124 * linespec.c (decode_line_2): Remove unused variable.
3125 * linux-nat.c (super_close): Remove.
3126 * linux-tdep.c (linux_info_proc): Remove unused variable.
3127 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3128 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3129 Remove unused variable.
3130 * parse.c (find_minsym_type_and_address): Remove unused variable.
3131 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3133 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3135 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3137 * record-btrace.c (record_btrace_target::store_registers): Remove
3139 (cmd_show_record_btrace_cpu): Remove unused variable.
3140 * riscv-tdep.c (riscv_register_reggroup_p)
3141 (riscv_push_dummy_call, riscv_return_value): Remove unused
3143 * rust-exp.y (literal): Remove unused variable.
3144 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3146 <STRUCTOP_ANONYMOUS>: Likewise.
3147 * s390-linux-tdep.c (s390_linux_init_abi_31)
3148 (s390_linux_init_abi_64): Remove unused variable.
3149 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3150 (file_select_thread, net_windows_open, _initialize_ser_windows):
3151 Remove unused variables.
3152 * symtab.c (find_pc_sect_line): Remove unused variable.
3153 * target-memory.c (compute_garbled_blocks): Remove unused
3155 (target_write_memory_blocks): Remove unused variable.
3156 * target.c (target_stack::unpush): Remove unused variables.
3157 * tracepoint.c (start_tracing, all_tracepoint_actions)
3158 (merge_uploaded_trace_state_variables)
3159 (print_one_static_tracepoint_marker): Remove unused variable.
3160 * unittests/basic_string_view/element_access/char/1.cc (test01):
3161 Remove unused variable.
3162 * windows-nat.c (windows_continue, windows_add_all_dlls)
3163 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3164 Remove unused variables.
3166 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3168 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3169 attr_profile in HAVE_ELF.
3170 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3173 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3175 * frame.c (frame_register_unwind): Change parameter name.
3176 (frame_unwind_register): Likewise.
3177 (frame_unwind_register_value): Likewise.
3178 (frame_unwind_register_signed): Likewise.
3179 (frame_unwind_register_unsigned): Likewise.
3180 * frame.h (frame_register_unwind): Likewise.
3181 (frame_unwind_register): Likewise.
3182 (frame_unwind_register_value): Likewise.
3183 (frame_unwind_register_signed): Likewise.
3184 (frame_unwind_register_unsigned): Likewise.
3185 (frame_unwind_arch): Likewise.
3187 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3189 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3192 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3194 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3195 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3198 2018-07-20 Keith Seitz <keiths@redhat.com>
3200 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3201 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3202 m_compunit_symtab, m_language>: Add "m_" prefix.
3204 * buildsym.c: Update all uses.
3206 2018-07-20 Tom Tromey <tom@tromey.com>
3208 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3209 * buildsym.h (record_line_ftype): Remove typedef.
3211 2018-07-20 Tom Tromey <tom@tromey.com>
3213 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3214 (end_expandable_symtab): Likewise.
3215 (end_symtab_get_static_block): Likewise.
3216 (end_symtab_from_static_block): Likewise.
3217 * buildsym-legacy.c (augment_type_symtab): Remove.
3218 (end_expandable_symtab): Remove.
3219 (end_symtab_get_static_block): Remove.
3220 (end_symtab_from_static_block): Remove.
3222 2018-07-20 Tom Tromey <tom@tromey.com>
3224 * dwarf2read.c: Include buildsym.h.
3225 (struct dwarf2_cu) <builder>: New method.
3226 (fixup_go_packaging): Update.
3227 (process_full_comp_unit, process_full_type_unit): Update. Don't
3228 use scoped_free_pendings.
3229 (using_directives): Add "cu" parameter, remove "language".
3230 (read_import_statement, setup_type_unit_groups, )
3231 (read_func_scope, read_lexical_block_scope)
3232 (dwarf2_record_block_ranges, read_namespace): Update.
3233 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3234 (lnp_state_machine::handle_end_sequence): Update.
3235 (class lnp_state_machine) <m_cu>: New member.
3236 <m_record_line_callback>: Remove.
3237 <m_currently_recording_lines>: New member.
3238 (lnp_state_machine::handle_set_file): Update.
3239 (noop_record_line): Remove.
3240 (dwarf_record_line_p): Add cu parameter.
3241 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3242 (lnp_state_machine::record_line)
3243 (lnp_state_machine::lnp_state_machine)
3244 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3245 (dwarf_decode_lines): Update.
3246 (dwarf2_start_subfile): Add cu parameter.
3247 (dwarf2_start_symtab, new_symbol): Update.
3248 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3249 Remove dwarf2_per_objfile parameter.
3250 (dwarf_decode_macros): Update.
3252 2018-07-20 Tom Tromey <tom@tromey.com>
3254 * stabsread.c (define_symbol): Update.
3255 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3256 * dwarf2read.c (new_symbol): Update.
3257 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3258 * cp-namespace.c: Include buildsym.h.
3259 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3260 * buildsym-legacy.c (get_buildsym_compunit): New function.
3262 2018-07-20 Tom Tromey <tom@tromey.com>
3264 * xcoffread.c: Include buildsym-legacy.h.
3265 * windows-nat.c: Include buildsym-legacy.h.
3266 * stabsread.c: Include buildsym-legacy.h.
3267 * mdebugread.c: Include buildsym-legacy.h.
3268 * buildsym-legacy.h: New file.
3269 * buildsym-legacy.c: New file, from buildsym.c.
3270 * go32-nat.c: Include buildsym-legacy.h.
3271 * dwarf2read.c: Include buildsym-legacy.h.
3272 * dbxread.c: Include buildsym-legacy.h.
3273 * cp-namespace.c: Include buildsym-legacy.h.
3274 * coffread.c: Include buildsym-legacy.h.
3275 * buildsym.h: Move some contents to buildsym-legacy.h.
3276 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3278 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3280 2018-07-20 Tom Tromey <tom@tromey.com>
3282 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3283 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3284 (buildsym_compunit::buildsym_compunit)
3285 (buildsym_compunit::~buildsym_compunit)
3286 (buildsym_compunit::get_macro_table): Define.
3288 2018-07-20 Tom Tromey <tom@tromey.com>
3290 * buildsym.c (reset_symtab_globals): Remove.
3291 (buildsym_compunit::end_symtab_from_static_block): Update.
3292 (buildsym_compunit::augment_type_symtab): Update.
3293 (end_symtab_from_static_block): Call free_buildsym_compunit.
3294 (augment_type_symtab, end_symtab, end_expandable_symtab):
3297 2018-07-20 Tom Tromey <tom@tromey.com>
3299 * arch-utils.c: Do not include buildsym.h.
3300 * mipsread.c: Do not include buildsym.h.
3301 * machoread.c: Do not include buildsym.h.
3302 * elfread.c: Do not include buildsym.h.
3304 2018-07-20 Tom Tromey <tom@tromey.com>
3306 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3308 (buildsym_compunit): Add new constructor.
3309 (struct buildsym_compunit) <get_last_source_file, finish_block,
3310 record_block_range, start_subfile, patch_subfile_names,
3311 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3312 set_last_source_start_addr, get_last_source_start_addr,
3313 get_local_using_directives, set_local_using_directives,
3314 get_global_using_directives, outermost_context_p,
3315 get_current_context_stack, get_context_stack_depth,
3316 get_current_subfile, get_local_symbols, get_file_symbols,
3317 get_global_symbols, record_debugformat, record_producer,
3318 push_context, pop_context, end_symtab_get_static_block,
3319 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3321 <record_pending_block, finish_block_internal, make_blockvector,
3322 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3326 2018-05-22 Tom Tromey <tom@tromey.com>
3328 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3330 (finish_block_internal): Update.
3332 2018-07-20 Tom Tromey <tom@tromey.com>
3334 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3336 (finish_block_internal): Update.
3338 2018-07-20 Tom Tromey <tom@tromey.com>
3340 * buildsym.h (EXTERN): Don't define or undef.
3341 * buildsym.c (EXTERN): Don't define.
3343 2018-07-20 Tom Tromey <tom@tromey.com>
3345 * buildsym.c: Remove TODO comment.
3347 2018-07-20 Tom Tromey <tom@tromey.com>
3349 * coffread.c (coff_symtab_read): Update.
3350 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3351 (xcoff_new_init): Update.
3352 * mipsread.c (mipscoff_new_init): Update.
3353 * mdebugread.c (mdebug_build_psymtabs): Update.
3354 * elfread.c (elf_new_init): Update.
3355 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3357 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3358 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3359 (stabsect_build_psymtabs): Update.
3360 * buildsym.h (buildsym_init): Don't declare.
3361 * buildsym.c: Update comment.
3362 (prepare_for_building): Remove.
3363 (start_symtab, restart_symtab): Update.
3364 (reset_symtab_globals): Update comment.
3365 (buildsym_init): Remove.
3367 2018-07-20 Tom Tromey <tom@tromey.com>
3369 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3370 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3371 (read_enum_type, common_block_start, common_block_end)
3372 (cleanup_undefined_types_1, finish_global_stabs): Update.
3373 * mdebugread.c (psymtab_to_symtab_1): Update.
3374 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3375 (read_lexical_block_scope, new_symbol): Update.
3376 * dbxread.c (process_one_symbol): Update.
3377 * coffread.c (coff_symtab_read, process_coff_symbol)
3378 (coff_read_enum_type): Update.
3379 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3381 (get_local_symbols, get_file_symbols, get_global_symbols): New
3383 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3385 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3386 (~scoped_free_pendings): Update.
3387 (finish_block, prepare_for_building, reset_symtab_globals)
3388 (end_symtab_get_static_block, end_symtab_with_blockvector)
3389 (augment_type_symtab, push_context): Update.
3390 (get_local_symbols, get_file_symbols, get_global_symbols): New
3392 (buildsym_init): Update.
3394 2018-07-20 Tom Tromey <tom@tromey.com>
3396 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3397 (process_full_type_unit): Likewise.
3398 (dwarf2_start_symtab): Set list_in_scope.
3400 2018-07-20 Tom Tromey <tom@tromey.com>
3402 * dwarf2read.c (process_psymtab_comp_unit_reader)
3403 (build_type_psymtabs_reader): Do not set list_in_scope.
3405 2018-07-20 Tom Tromey <tom@tromey.com>
3407 * buildsym.c (free_pendings): Remove.
3408 (add_symbol_to_list, scoped_free_pendings)
3409 (finish_block_internal, buildsym_init): Update.
3411 2018-07-20 Tom Tromey <tom@tromey.com>
3413 * xcoffread.c (read_xcoff_symtab): Update.
3414 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3416 * dbxread.c (process_one_symbol): Update.
3417 * coffread.c (coff_symtab_read): Update.
3418 * buildsym.h (finish_block): Update.
3419 * buildsym.c (finish_block): Remove "listhead" argument.
3420 (end_symtab_get_static_block): Update.
3422 2018-07-20 Tom Tromey <tom@tromey.com>
3424 * buildsym.h (class scoped_free_pendings): Remove constructor.
3425 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3427 <m_pending_block_obstack, m_pending_blocks>: New members.
3428 (pending_block_obstack, pending_blocks): Remove.
3429 (scoped_free_pendings::scoped_free_pendings): Default.
3430 (~scoped_free_pendings): Update.
3431 (free_pending_blocks): Remove.
3432 (finish_block_internal, record_pending_block, make_blockvector)
3433 (end_symtab_get_static_block, augment_type_symtab, push_context)
3434 (buildsym_init): Update.
3436 2018-07-20 Tom Tromey <tom@tromey.com>
3438 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3439 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3441 (pending_addrmap, pending_addrmap_obstack)
3442 (pending_addrmap_interesting): Remove.
3443 (scoped_free_pendings, record_block_range, make_blockvector)
3444 (prepare_for_building, reset_symtab_globals, buildsym_init):
3447 2018-07-20 Tom Tromey <tom@tromey.com>
3449 * xcoffread.c (process_linenos): Update.
3450 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3451 * mdebugread.c (psymtab_to_symtab_1): Update.
3452 * dwarf2read.c (setup_type_unit_groups)
3453 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3454 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3455 * dbxread.c (process_one_symbol): Update.
3456 * coffread.c (coff_symtab_read, enter_linenos)
3457 (process_coff_symbol): Update.
3458 * buildsym.h (current_subfile): Don't declare.
3459 (get_current_subfile): Declare.
3460 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3462 (start_subfile, free_buildsym_compunit, push_subfile)
3463 (prepare_for_building, start_symtab): Update.
3464 (get_current_subfile): New function.
3466 2018-07-20 Tom Tromey <tom@tromey.com>
3468 * coffread.c (coff_symtab_read): Update.
3469 * xcoffread.c (read_xcoff_symtab): Update.
3470 * dwarf2read.c (new_symbol): Update.
3471 (read_func_scope, read_lexical_block_scope): Update.
3472 * dbxread.c (process_one_symbol): Update.
3473 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3474 (outermost_context_p): Remove macro.
3475 (outermost_context_p, get_current_context_stack)
3476 (get_context_stack_depth): Declare.
3477 (pop_context): Return struct context_stack.
3478 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3480 (context_stack_size): Remove.
3481 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3482 (prepare_for_building, end_symtab_get_static_block)
3483 (augment_type_symtab, push_context): Update.
3484 (pop_context): Return struct context_stack.
3485 (outermost_context_p, get_current_context_stack)
3486 (get_context_stack_depth): New functions.
3487 (buildsym_init): Update.
3489 2018-07-20 Tom Tromey <tom@tromey.com>
3491 * rust-exp.y: Now a pure parser. Update all rules.
3492 (%union): Move earlier.
3493 (current_parser, work_obstack): Remove globals.
3494 (rust_parser, ~rust_parser): Update.
3495 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3496 lex_character, lex_number, lex_string, lex_identifier,
3497 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3498 convert_name, convert_params_to_expression,
3499 convert_ast_to_expression, ast_basic_type, ast_operation,
3500 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3501 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3502 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3503 ast_array_type, ast_slice_type, ast_reference_type,
3504 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3505 (rust_parse): Update.
3506 (rustyyerror, rustyylex): Add parser parameter.
3507 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3508 (rust_lex_stringish_test, rust_lex_test_sequence)
3509 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3510 (rust_lex_test_push_back, rust_lex_tests): Update.
3512 2018-07-19 Pedro Alves <palves@redhat.com>
3514 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3515 gdb::unique_xmalloc_ptr.
3516 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3517 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3518 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3519 copy-initialization.
3520 * guile/scm-pretty-print.c (ppscm_print_children): Use
3521 gdb::unique_xmalloc_ptr instead of cleanups.
3522 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3523 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3524 gdb::unique_xmalloc_ptr.
3525 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3526 Adjust to use gdb::unique_xmalloc_ptr.
3527 * guile/scm-utils.c (extract_arg): Adjust.
3528 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3529 gdb::unique_xmalloc_ptr instead of a cleanup.
3531 2018-07-19 Tom Tromey <tom@tromey.com>
3533 * utils.c (do_value_free_to_mark)
3534 (make_cleanup_value_free_to_mark): Remove.
3535 * utils.h (make_cleanup_value_free_to_mark): Remove.
3537 2018-07-19 Pedro Alves <palves@redhat.com>
3539 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3540 forwarding reference.
3542 2018-07-18 Pedro Alves <palves@redhat.com>
3544 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3545 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3548 2018-07-18 Pedro Alves <palves@redhat.com>
3550 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3552 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3554 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3555 directly instead of a cleanup.
3556 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3557 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3558 (vlscm_binop_gdbthrow): New, factored out from ...
3559 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3560 (vlscm_rich_compare): Use gdbscm_wrap.
3561 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3562 instead of a cleanup.
3563 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3565 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3566 Use xfree directly instead of a cleanup.
3567 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3568 Adjust to use gdbscm_wrap and scoped_value_mark.
3569 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3570 (gdbscm_value_address, gdbscm_value_dereference)
3571 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3573 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3574 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3576 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3577 gdbscm_wrap and scoped_value_mark.
3578 (gdbscm_value_to_string): Use xfree directly instead of a
3579 cleanup. Move 'buffer' unique_ptr to TRY scope.
3580 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3581 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3583 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3584 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3586 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3589 2018-07-18 Tom de Vries <tdevries@suse.de>
3591 * findvar.c (default_read_var_value): Also resolve dynamic type for
3592 LOC_OPTIMIZED_OUT vars.
3594 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3596 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3599 2018-07-17 Tom Tromey <tom@tromey.com>
3601 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3602 (compute_enum_list, pascm_set_param_value_x)
3603 (gdbscm_parameter_value): Update.
3604 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3605 (gdbscm_scm_to_host_string): Update.
3606 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3608 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3609 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3610 * guile/scm-string.c (gdbscm_scm_to_string): Return
3612 (gdbscm_scm_to_host_string): Likewise.
3614 2018-07-17 Tom Tromey <tom@tromey.com>
3616 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3617 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3618 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3619 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3622 2018-07-17 Tom Tromey <tom@tromey.com>
3624 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3625 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3627 * guile/scm-cmd.c (cmdscm_function): Update.
3628 * guile/scm-pretty-print.c
3629 (ppscm_print_exception_unless_memory_error): Update.
3630 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3631 Return unique_xmalloc_ptr.
3633 2018-07-17 Tom Tromey <tom@tromey.com>
3635 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3638 2018-07-17 Jim Wilson <jimw@sifive.com>
3640 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3641 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3642 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3643 unecessary braces after EF_RISCV_RVC test. Delete call to
3644 set_gdbarch_decr_pc_after_break.
3646 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3647 RISCV_LAST_FP_REGNUM + 1.
3648 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3650 2018-07-17 Tom Tromey <tom@tromey.com>
3652 * configure.ac: Remove --disable-gdbcli.
3653 * configure: Rebuild.
3654 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3655 (SUBDIR_CLI_CFLAGS): Remove.
3656 (SFILES): Use SUBDIR_CLI_SRCS.
3657 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3659 2018-07-17 Tom Tromey <tom@tromey.com>
3662 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3664 2018-07-16 Jim Wilson <jimw@sifive.com>
3666 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3668 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3670 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3672 (libunwind_frame_sniffer): Likewise.
3673 (libunwind_frame_prev_register): Likewise.
3674 (libunwind_sigtramp_frame_sniffer): Likewise.
3675 * ia64-tdep.c (ia64_access_reg): Likewise.
3676 (ia64_access_rse_reg): Likewise.
3677 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3678 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3680 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3682 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3684 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3686 * remote-sim.c (gdbsim_target::close,
3687 gdbsim_target::mourn_inferior): Remove unused variables.
3689 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3691 * ia64-tdep.c (ktab_buf): New global.
3692 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3693 (get_kernel_table): Adjust.
3695 2018-07-16 Tom Tromey <tom@tromey.com>
3697 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3698 * dwarf2read.c (using_directives, new_symbol): Use
3699 outermost_context_p.
3700 * dbxread.c (process_one_symbol): Use outermost_context_p.
3701 * coffread.c (coff_symtab_read): Use outermost_context_p.
3703 2018-07-16 Tom Tromey <tom@tromey.com>
3705 * dwarf2read.c (using_directives, read_func_scope)
3706 (read_lexical_block_scope): Update.
3707 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3708 * buildsym.h (local_using_directives, global_using_directives):
3710 (get_local_using_directives, set_local_using_directives)
3711 (get_global_using_directives): Declare.
3712 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3713 m_global_using_directives>: New members.
3714 (finish_block_internal, prepare_for_building)
3715 (reset_symtab_globals, end_symtab_get_static_block)
3716 (push_context): Update.
3717 (get_local_using_directives, set_local_using_directives)
3718 (get_global_using_directives): New functions.
3719 (buildsym_init): Update.
3721 2018-07-16 Tom Tromey <tom@tromey.com>
3723 * xcoffread.c (xcoff_initial_scan): Don't call
3724 free_pending_blocks.
3725 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3726 * buildsym.h (class scoped_free_pendings): Add constructor.
3727 (free_pending_blocks): Don't declare.
3728 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3729 (free_pending_blocks): Now static.
3731 2018-07-16 Tom Tromey <tom@tromey.com>
3733 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3734 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3736 (struct subfile_stack): Remove.
3737 (subfile_stack): Remove.
3738 (push_subfile, pop_subfile, buildsym_init): Update.
3740 2018-07-16 Tom Tromey <tom@tromey.com>
3742 * buildsym.c (push_subfile): Use gdb_assert.
3743 (pop_subfile): Use gdb_assert.
3745 2018-07-16 Tom Tromey <tom@tromey.com>
3747 * buildsym.h (merge_symbol_lists): Remove.
3748 * buildsym.c (merge_symbol_lists): Remove.
3750 2018-07-16 Tom Tromey <tom@tromey.com>
3752 * stabsread.c (scan_file_globals): Update comment.
3753 * stabsread.h (scan_file_globals): Move from buildsym.h.
3754 * buildsym.h (scan_file_globals): Move to stabsread.h.
3756 2018-07-16 Tom Tromey <tom@tromey.com>
3758 * xcoffread.c (xcoff_new_init): Update.
3759 * mipsread.c (mipscoff_new_init): Update.
3760 * mdebugread.c (mdebug_build_psymtabs): Update.
3761 * elfread.c (elf_new_init): Update.
3762 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3763 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3764 * buildsym.h (buildsym_new_init): Don't declare.
3765 * buildsym.c (buildsym_new_init): Remove.
3767 2018-07-16 Tom Tromey <tom@tromey.com>
3769 * stabsread.h (within_function): Move from buildsym.h.
3770 * stabsread.c (start_stabs): Clear within_function.
3771 * coffread.c (coff_start_symtab): Clear within_function.
3772 * buildsym.h (within_function): Move to stabsread.h.
3773 * buildsym.c (prepare_for_building): Update.
3775 2018-07-16 Tom Tromey <tom@tromey.com>
3777 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3778 * dwarf2read.c (dwarf2_start_symtab): Don't set
3779 processing_gcc_compilation.
3780 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3782 2018-07-16 Tom Tromey <tom@tromey.com>
3784 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3785 (next_symbol_text_func): Move from buildsym.h.
3786 * stabsread.c (hashname): Move from buildsym.c.
3787 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3788 (next_symbol_text_func, hashname): Move to stabsread.h.
3789 * buildsym.c: Don't include bcache.h
3790 (hashname): Move to stasbread.c.
3792 2018-07-16 Tom Tromey <tom@tromey.com>
3794 * buildsym.h (context_stack_size): Don't declare.
3795 * buildsym.c (context_stack_size): New global.
3797 2018-07-16 Tom Tromey <tom@tromey.com>
3799 * dbxread.c (processing_acc_compilation): New global.
3800 * buildsym.h (processing_acc_compilation): Don't declare.
3802 2018-07-16 Tom Tromey <tom@tromey.com>
3804 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3805 * dbxread.c (read_ofile_symtab): Update.
3806 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3807 * buildsym.h (last_source_start_addr): Remove.
3808 (set_last_source_start_addr, get_last_source_start_addr):
3810 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3812 (struct buildsym_compunit) <m_last_source_start_addr>: New
3814 (prepare_for_building): Remove start_addr parameter.
3815 (start_symtab, restart_symtab, end_symtab_get_static_block)
3816 (end_symtab_with_blockvector): Update.
3817 (set_last_source_start_addr, get_last_source_start_addr): New
3820 2018-07-16 Tom Tromey <tom@tromey.com>
3822 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3824 (have_line_numbers): Remove.
3825 (record_line, prepare_for_building, end_symtab_get_static_block)
3826 (augment_type_symtab): Update.
3828 2018-07-16 Tom Tromey <tom@tromey.com>
3830 * buildsym.c (~buildsym_compunit): Free the macro table.
3831 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3833 <m_pending_macros>: New member.
3834 (pending_macros): Remove.
3835 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3836 (reset_symtab_globals, end_symtab_get_static_block)
3837 (end_symtab_with_blockvector, augment_type_symtab)
3838 (buildsym_init): Update.
3840 2018-07-16 Tom Tromey <tom@tromey.com>
3842 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3844 (buildsym_compunit::set_last_source_file): New method.
3845 <m_last_source_file>: New member.
3846 (prepare_for_building): Remove "name" parameter.
3847 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3848 (last_source_file): Remove.
3849 (set_last_source_file, get_last_source_file): Update.
3851 2018-07-16 Tom Tromey <tom@tromey.com>
3853 * buildsym.c (prepare_for_building): Add assert.
3855 2018-07-16 Tom Tromey <tom@tromey.com>
3857 * buildsym.c (~buildsym_compunit): Update.
3858 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3859 (start_subfile, patch_subfile_names)
3860 (end_symtab_with_blockvector): Update.
3862 2018-07-16 Tom Tromey <tom@tromey.com>
3864 * buildsym.c (struct buildsym_compunit): Add constructor,
3865 destructor, initializers.
3866 (start_buildsym_compunit): Remove.
3867 (free_buildsym_compunit): Use "delete".
3868 (start_symtab, restart_symtab): Use "new".
3870 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3872 * symfile.c (set_objfile_default_section_offset): Remove struct
3875 2018-07-14 Stafford Horne <shorne@gmail.com>
3877 * (Responsible Maintainers): Add myself as or1k maintainer.
3879 2018-07-13 Tom Tromey <tom@tromey.com>
3881 * symfile.c (set_objfile_default_section_offset): Use extra braces
3884 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3886 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3889 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3891 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3892 unittests/cli-utils-selftests.c
3893 * unittests/cli-utils-selftests.c: New file.
3895 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3897 * NEWS: Mention new commands. Mention change to 'thread apply'.
3899 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3901 * thread.c (thr_try_catch_cmd): New function.
3902 (thread_apply_all_command): Handle qcs flags.
3903 (thread_apply_command): Handle qcs flags.
3904 (taas_command): New function.
3905 (tfaas_command): New function.
3906 (_initialize_thread): Update to setup the new commands 'taas
3907 and 'tfaas'. Change doc string for 'thread apply'.
3909 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3911 * stack.c: (trailing_outermost_frame): New function, mostly
3912 extracted from backtrace_command_1.
3913 (leading_innermost_frame): New function.
3914 (backtrace_command_1): Update to call trailing_outermost_frame.
3915 (frame_apply_command_count): New function.
3916 (frame_apply_level_command): New function.
3917 (frame_apply_all_command): New function.
3918 (frame_apply_command): New function.
3919 (faas_command): New function.
3920 (frame_cmd_list): New variable.
3921 (_initialize_stack): Update to setup the new commands 'frame apply'
3924 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3926 * cli-utils.c (number_or_range_parser::get_number): Only handle
3927 numbers or convenience var as numbers.
3928 (parse_flags): New function.
3929 (parse_flags_qcs): New function.
3930 (number_or_range_parser::finished): Ensure parsing end is detected
3931 before end of string.
3932 * cli-utils.h (parse_flags): New function.
3933 (parse_flags_qcs): New function.
3934 (number_or_range_parser): Remove m_finished bool.
3935 (number_or_range_parser::skip_range): Set m_in_range to false.
3937 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3939 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3942 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3943 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 Paul Fertser <fercerpav@gmail.com>
3945 Tsutomu Seki <sekiriki@gmail.com>
3946 Pedro Alves <palves@redhat.com>
3948 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3949 'unittests/parse-connection-spec-selftests.c'.
3950 (COMMON_SFILES): Add 'common/netstuff.c'.
3951 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3952 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
3953 * common/netstuff.c: New file.
3954 * common/netstuff.h: New file.
3955 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
3956 (wait_for_connect): Update comment. New parameter
3957 'gdb::optional<int> sock' instead of 'struct serial *scb'.
3958 Use 'sock' directly instead of 'scb->fd'.
3959 (try_connect): New function, with code from 'net_open'.
3960 (net_open): Rewrite main loop to deal with multiple
3961 sockets/addresses. Handle IPv6-style hostnames; implement
3962 support for IPv6 connections.
3963 * unittests/parse-connection-spec-selftests.c: New file.
3965 2018-07-11 Pedro Alves <palves@redhat.com>
3968 * remote.c (remote_target::remote_detach_pid): Call
3969 set_current_process.
3971 2018-07-11 Pedro Alves <palves@redhat.com>
3973 * h8300-tdep.c (h8300_gdbarch_init): Remove
3974 set_gdbarch_ecoff_reg_to_regnum calls.
3976 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3979 * c-typeprint.c (c_type_print_base_struct_union): Don't print
3980 offsets/sizes for static members of a class/struct.
3982 2018-07-11 Alan Hayward <alan.hayward@arm.com>
3984 * target-descriptions.c (tdesc_register_bitsize): Rename.
3985 * target-descriptions.h (tdesc_register_bitsize): Likewise.
3986 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
3987 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
3989 2018-07-10 Tom Tromey <tom@tromey.com>
3991 * breakpoint.c (moribund_locations): Now static and a
3993 (breakpoint_init_inferior, moribund_breakpoint_here_p)
3994 (build_bpstat_chain, update_global_location_list)
3995 (breakpoint_retire_moribund): Update.
3996 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
3999 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4001 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4002 (riscv_register_reggroup_p): Use new function, remove unneeded
4004 (riscv_push_dummy_call): Extend assert to compare against xlen or
4005 flen based on register type.
4007 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4009 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4011 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4013 * remote.c (show_hardware_watchpoint_limit): New function.
4014 (show_hardware_watchpoint_length_limit): New function.
4015 (show_hardware_breakpoint_limit): New function.
4016 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4017 where appropriate, update help text.
4019 2018-07-09 Tom Tromey <tom@tromey.com>
4021 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4022 (CLIBS): Don't mention NAT_CLIBS.
4024 2018-07-09 Tom Tromey <tom@tromey.com>
4026 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4027 (LIBGDB_OBS, clean mostlyclean): Update.
4028 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4030 2018-07-09 Tom Tromey <tom@tromey.com>
4032 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4033 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4034 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4036 2018-07-09 Tom Tromey <tom@tromey.com>
4038 * Makefile.in (ALLDEPFILES): Remove exec.c.
4039 (COMMON_OBS): Remove exec.o.
4040 (COMMON_SFILES): Add exec.c.
4042 2018-07-09 Tom Tromey <tom@tromey.com>
4044 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4046 2018-07-09 Tom Tromey <tom@tromey.com>
4048 * Makefile.in (clean mostlyclean): Remove stamp-version.
4049 (version.c): Depend on stamp-version.
4050 (stamp-version): New rule, from version.c rule.
4052 2018-07-09 Tom Tromey <tom@tromey.com>
4054 * Makefile.in (init.c): Depend on stamp-init.
4055 (stamp-init): New rule, from init.c rule.
4056 (clean mostlyclean): Remove stamp-init.
4058 2018-07-09 Tom Tromey <tom@tromey.com>
4060 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4061 SUBDIR_GCC_COMPILE_SRCS.
4063 2018-07-09 Tom Tromey <tom@tromey.com>
4065 * Makefile.in (init.c): Remove some unused sed rules.
4067 2018-07-09 Tom Tromey <tom@tromey.com>
4069 * Makefile.in (TSOBS): Remove.
4070 (INIT_FILES): Update.
4071 (LIBGDB_OBS): Update.
4072 (COMMON_SFILES): Add inflow.c.
4073 (SFILES): Remove inflow.c.
4075 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4077 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4079 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4081 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4082 get_saveloc_name, is_signal_frame_name, step_name,
4083 init_remote_name, create_addr_space_name,
4084 destroy_addr_space_name, search_unwind_table_name,
4085 find_dyn_list_name): Constify.
4087 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4089 * darwin-nat.c (darwin_pthread_kill): New function.
4090 (darwin_resume_thread): Use darwin_pthread_kill.
4092 2018-07-05 Tom de Vries <tdevries@suse.de>
4094 * macroexp.c (macro_buffer) <operator=>: New member function.
4096 2018-07-04 Tom Tromey <tom@tromey.com>
4098 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4100 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4102 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4103 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4104 * maint.c: Likewise.
4107 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4109 * NEWS: Create a new section for the next release branch.
4110 Rename the section of the current branch, now that it has
4113 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4115 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4116 * version.in: Bump version to 8.2.50.DATE-git.
4118 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4119 Pedro Alves <palves@redhat.com>
4121 * linux-nat.c (linux_init_ptrace): Rename to ...
4122 (linux_init_ptrace_procfs): ... this. Call
4123 linux_proc_init_warnings.
4124 (linux_nat_target::post_attach)
4125 (linux_nat_target::post_startup_inferior): Adjust.
4126 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4127 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4129 2018-07-04 Tom de Vries <tdevries@suse.de>
4131 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4133 (read_comp_unit_head): ... here.
4135 2018-07-03 Tom Tromey <tom@tromey.com>
4137 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4138 (stop_tracing, tstatus_command)
4139 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4140 (print_one_static_tracepoint_marker): Update.
4141 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4143 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4145 (all_tracepoints, static_tracepoints_here): Return std::vector.
4147 2018-07-03 Tom Tromey <tom@tromey.com>
4149 * common/ptid.c (ptid_equal): Remove.
4150 * common/ptid.h (ptid_equal): Don't declare.
4151 * ada-tasks.c: Update.
4152 * breakpoint.c: Update.
4153 * common/agent.c: Update.
4154 * corelow.c: Update.
4155 * darwin-nat-info.c: Update.
4156 * darwin-nat.c: Update.
4158 * dtrace-probe.c: Update.
4159 * dummy-frame.c: Update.
4160 * fbsd-nat.c: Update.
4162 * gdbthread.h: Update.
4163 * gnu-nat.c: Update.
4164 * go32-nat.c: Update.
4165 * inf-loop.c: Update.
4166 * inf-ptrace.c: Update.
4167 * infcall.c: Update.
4171 * linux-fork.c: Update.
4172 * linux-nat.c: Update.
4173 * linux-thread-db.c: Update.
4174 * mi/mi-cmd-var.c: Update.
4175 * mi/mi-interp.c: Update.
4176 * mi/mi-main.c: Update.
4177 * nto-procfs.c: Update.
4178 * ppc-linux-tdep.c: Update.
4180 * python/py-inferior.c: Update.
4181 * python/py-record-btrace.c: Update.
4182 * python/py-record.c: Update.
4183 * ravenscar-thread.c: Update.
4184 * regcache.c: Update.
4185 * remote-sim.c: Update.
4187 * sol-thread.c: Update.
4190 * tui/tui-stack.c: Update.
4192 * windows-nat.c: Update.
4193 * windows-tdep.c: Update.
4195 2018-07-03 Tom Tromey <tom@tromey.com>
4197 * common/ptid.c (ptid_match): Remove.
4198 * common/ptid.h (ptid_match): Don't declare.
4199 * fbsd-nat.c: Update.
4202 * linux-nat.c: Update.
4203 * record-btrace.c: Update.
4204 * regcache.c: Update.
4207 2018-07-03 Tom Tromey <tom@tromey.com>
4209 * common/ptid.c (ptid_tid_p): Remove.
4210 * common/ptid.h (ptid_tid_p): Don't declare.
4211 * sol-thread.c: Update.
4213 2018-07-03 Tom Tromey <tom@tromey.com>
4215 * common/ptid.c (ptid_lwp_p): Remove.
4216 * common/ptid.h (ptid_lwp_p): Don't declare.
4217 * fbsd-nat.c: Update.
4218 * linux-nat.c: Update.
4219 * nat/linux-procfs.c: Update.
4220 * nat/x86-linux-dregs.c: Update.
4221 * sol-thread.c: Update.
4223 2018-07-03 Tom Tromey <tom@tromey.com>
4225 * common/ptid.c (ptid_is_pid): Remove.
4226 * common/ptid.h (ptid_is_pid): Don't declare.
4228 * linux-nat.c: Update.
4229 * mi/mi-interp.c: Update.
4233 2018-07-03 Tom Tromey <tom@tromey.com>
4235 * common/ptid.c (ptid_get_tid): Remove.
4236 * common/ptid.h (ptid_get_tid): Don't declare.
4237 * ada-tasks.c: Update.
4238 * aix-thread.c: Update.
4239 * bsd-uthread.c: Update.
4240 * darwin-nat.c: Update.
4241 * fbsd-nat.c: Update.
4242 * i386-darwin-nat.c: Update.
4244 * linux-tdep.c: Update.
4245 * nto-procfs.c: Update.
4246 * ppc-ravenscar-thread.c: Update.
4247 * python/py-infthread.c: Update.
4248 * ravenscar-thread.c: Update.
4249 * sol-thread.c: Update.
4250 * sparc-ravenscar-thread.c: Update.
4251 * windows-nat.c: Update.
4253 2018-07-03 Tom Tromey <tom@tromey.com>
4255 * common/ptid.c (ptid_get_lwp): Remove.
4256 * common/ptid.h (ptid_get_lwp): Don't declare.
4257 * aarch64-linux-nat.c: Update.
4258 * ada-tasks.c: Update.
4259 * aix-thread.c: Update.
4260 * amd64-linux-nat.c: Update.
4261 * arm-linux-nat.c: Update.
4262 * corelow.c: Update.
4263 * fbsd-nat.c: Update.
4264 * fbsd-tdep.c: Update.
4265 * gnu-nat.c: Update.
4266 * i386-cygwin-tdep.c: Update.
4267 * i386-gnu-nat.c: Update.
4268 * i386-linux-nat.c: Update.
4269 * ia64-linux-nat.c: Update.
4270 * inf-ptrace.c: Update.
4272 * linux-fork.c: Update.
4273 * linux-nat.c: Update.
4274 * linux-tdep.c: Update.
4275 * linux-thread-db.c: Update.
4276 * mips-linux-nat.c: Update.
4277 * nat/aarch64-linux-hw-point.c: Update.
4278 * nat/aarch64-linux.c: Update.
4279 * nat/linux-btrace.c: Update.
4280 * nat/linux-osdata.c: Update.
4281 * nat/linux-procfs.c: Update.
4282 * nat/x86-linux-dregs.c: Update.
4283 * obsd-nat.c: Update.
4284 * ppc-fbsd-nat.c: Update.
4285 * ppc-linux-nat.c: Update.
4287 * python/py-infthread.c: Update.
4288 * ravenscar-thread.c: Update.
4290 * s390-linux-nat.c: Update.
4291 * sol-thread.c: Update.
4292 * sol2-tdep.c: Update.
4293 * spu-linux-nat.c: Update.
4294 * x86-linux-nat.c: Update.
4295 * xtensa-linux-nat.c: Update.
4297 2018-07-03 Tom Tromey <tom@tromey.com>
4299 * common/ptid.c (ptid_get_pid): Remove.
4300 * common/ptid.h (ptid_get_pid): Don't declare.
4301 * aarch64-linux-nat.c: Update.
4302 * ada-lang.c: Update.
4303 * aix-thread.c: Update.
4304 * alpha-bsd-nat.c: Update.
4305 * amd64-fbsd-nat.c: Update.
4306 * amd64-linux-nat.c: Update.
4307 * arm-linux-nat.c: Update.
4308 * arm-nbsd-nat.c: Update.
4310 * break-catch-syscall.c: Update.
4311 * breakpoint.c: Update.
4312 * bsd-uthread.c: Update.
4313 * corelow.c: Update.
4315 * darwin-nat.c: Update.
4316 * fbsd-nat.c: Update.
4317 * fbsd-tdep.c: Update.
4319 * gnu-nat.c: Update.
4320 * hppa-nbsd-nat.c: Update.
4321 * hppa-obsd-nat.c: Update.
4322 * i386-fbsd-nat.c: Update.
4323 * ia64-linux-nat.c: Update.
4324 * inf-ptrace.c: Update.
4326 * inferior.c: Update.
4327 * inferior.h: Update.
4330 * linux-fork.c: Update.
4331 * linux-nat.c: Update.
4332 * linux-tdep.c: Update.
4333 * linux-thread-db.c: Update.
4334 * m68k-bsd-nat.c: Update.
4335 * mi/mi-interp.c: Update.
4336 * mi/mi-main.c: Update.
4337 * mips-linux-nat.c: Update.
4338 * mips-nbsd-nat.c: Update.
4339 * mips64-obsd-nat.c: Update.
4340 * nat/aarch64-linux-hw-point.c: Update.
4341 * nat/aarch64-linux.c: Update.
4342 * nat/linux-btrace.c: Update.
4343 * nat/linux-osdata.c: Update.
4344 * nat/linux-procfs.c: Update.
4345 * nat/x86-linux-dregs.c: Update.
4346 * nto-procfs.c: Update.
4347 * obsd-nat.c: Update.
4348 * ppc-linux-nat.c: Update.
4349 * ppc-nbsd-nat.c: Update.
4350 * ppc-obsd-nat.c: Update.
4351 * proc-service.c: Update.
4353 * python/py-inferior.c: Update.
4354 * python/py-infthread.c: Update.
4355 * ravenscar-thread.c: Update.
4357 * remote-sim.c: Update.
4359 * rs6000-nat.c: Update.
4360 * s390-linux-nat.c: Update.
4361 * sh-nbsd-nat.c: Update.
4362 * sol-thread.c: Update.
4363 * sparc-nat.c: Update.
4364 * sparc64-tdep.c: Update.
4365 * spu-linux-nat.c: Update.
4366 * spu-tdep.c: Update.
4367 * target-debug.h: Update.
4370 * tid-parse.c: Update.
4371 * tracefile-tfile.c: Update.
4372 * vax-bsd-nat.c: Update.
4373 * windows-nat.c: Update.
4374 * x86-linux-nat.c: Update.
4375 * x86-nat.c: Update.
4377 2018-07-03 Tom Tromey <tom@tromey.com>
4379 * common/ptid.c (pid_to_ptid): Remove.
4380 * common/ptid.h (pid_to_ptid): Don't declare.
4381 * aix-thread.c: Update.
4382 * arm-linux-nat.c: Update.
4383 * common/ptid.c: Update.
4384 * common/ptid.h: Update.
4385 * corelow.c: Update.
4387 * darwin-nat.c: Update.
4388 * fbsd-nat.c: Update.
4389 * fork-child.c: Update.
4390 * gnu-nat.c: Update.
4391 * go32-nat.c: Update.
4392 * inf-ptrace.c: Update.
4394 * inferior.c: Update.
4396 * linux-fork.c: Update.
4397 * linux-nat.c: Update.
4398 * nat/aarch64-linux-hw-point.c: Update.
4399 * nat/fork-inferior.c: Update.
4400 * nat/x86-linux-dregs.c: Update.
4401 * nto-procfs.c: Update.
4402 * obsd-nat.c: Update.
4404 * progspace.c: Update.
4406 * rs6000-nat.c: Update.
4407 * s390-linux-nat.c: Update.
4408 * sol-thread.c: Update.
4409 * spu-linux-nat.c: Update.
4412 * tracefile-tfile.c: Update.
4413 * windows-nat.c: Update.
4415 2018-07-03 Tom Tromey <tom@tromey.com>
4417 * common/ptid.h (ptid_build): Don't declare.
4418 * common/ptid.c (ptid_build): Remove.
4419 * aix-thread.c: Update.
4420 * bsd-kvm.c: Update.
4421 * bsd-uthread.c: Update.
4422 * common/agent.c: Update.
4423 * common/ptid.c: Update.
4424 * common/ptid.h: Update.
4425 * corelow.c: Update.
4426 * darwin-nat.c: Update.
4427 * fbsd-nat.c: Update.
4428 * gnu-nat.c: Update.
4429 * linux-fork.c: Update.
4430 * linux-nat.c: Update.
4431 * linux-thread-db.c: Update.
4432 * nat/linux-osdata.c: Update.
4433 * nat/linux-procfs.c: Update.
4434 * nto-procfs.c: Update.
4435 * obsd-nat.c: Update.
4436 * proc-service.c: Update.
4438 * ravenscar-thread.c: Update.
4439 * remote-sim.c: Update.
4441 * sol-thread.c: Update.
4443 * windows-nat.c: Update.
4445 2018-07-03 Tom Tromey <tom@tromey.com>
4447 * infrun.c (follow_exec): Use exit_inferior_silent.
4448 * inferior.c (exit_inferior_num_silent): Remove.
4449 * inferior.h (exit_inferior_num_silent): Don't declare.
4451 2018-07-03 Tom Tromey <tom@tromey.com>
4454 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4455 inferior_ptid on error.
4457 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4458 Simon Marchi <simon.marchi@polymtl.ca>
4461 * disasm.h (gdb_disassembler): Add
4462 `m_disassembler_options_holder'. member
4463 * disasm.c (get_all_disassembler_options): New function.
4464 (gdb_disassembler::gdb_disassembler): Use it.
4465 (gdb_buffered_insn_length_init_dis): Likewise.
4466 (gdb_buffered_insn_length): Adjust accordingly.
4467 (set_disassembler_options): Handle options with arguments.
4468 (show_disassembler_options_sfunc): Likewise. Add a leading new
4469 line if showing options with descriptions.
4470 (disassembler_options_completer): Adapt to using the
4471 `disasm_options_and_args_t' structure.
4472 * mips-tdep.c (mips_disassembler_options): New variable.
4473 (mips_disassembler_options_o32): Likewise.
4474 (mips_disassembler_options_n32): Likewise.
4475 (mips_disassembler_options_n64): Likewise.
4476 (gdb_print_insn_mips): Don't set `disassembler_options'.
4477 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4479 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4480 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4481 `gdbarch_disassembler_options_implicit' and
4482 `gdbarch_valid_disassembler_options'.
4483 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4484 `disasm_options_and_args_t' structure.
4485 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4487 (valid_disassembler_options): Switch from `disasm_options_t' to
4488 the `disasm_options_and_args_t' structure.
4489 * NEWS: Document `set disassembler-options' support for the MIPS
4491 * gdbarch.h: Regenerate.
4492 * gdbarch.c: Regenerate.
4494 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4496 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4498 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4500 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4501 parameter in call to amd64_target_description.
4502 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4503 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4504 (amd64fbsd_init_abi): Likewise.
4505 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4506 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4507 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4508 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4510 2018-06-29 Pedro Alves <palves@redhat.com>
4512 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4513 "segments" parameter.
4514 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4515 (_initialize_amd64_tdep): Update call to
4516 amd64_create_target_description.
4517 (amd64_target_description): Add "segments" parameter. Adjust
4518 the implementation to use it.
4519 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4520 call to amd64_create_target_description.
4521 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4522 * gdb/arch/amd64.h (amd64_create_target_description): Add
4523 "segments" register.
4524 * gdb/arch/amd64.c (amd64_create_target_description): Add
4525 "segments" parameter. Call create_feature_i386_64bit_segments
4526 only if SEGMENTS is true.
4527 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4528 call to amd64_create_target_description.
4530 2018-06-29 Pedro Alves <palves@redhat.com>
4532 * thread.c (thread_target_id_str): New, factored out from ...
4533 (print_thread_info_1): ... here. Use it to compute the max
4534 "Target Id" column width.
4536 2018-06-29 Pedro Alves <palves@redhat.com>
4538 * remote.c (remote_target::extra_thread_info): Delete
4539 'display_buf' and 'n' locals. from the cache, regardless of
4540 packet mechanims is in use. Use cache for qThreadExtra and qP
4543 2018-06-29 Pedro Alves <palves@redhat.com>
4545 * blockframe.c (find_pc_sect_containing_function): New function.
4546 * breakpoint.c (print_breakpoint_location): Don't call
4547 find_pc_sect_function.
4548 * linespec.c (create_sals_line_offset): Record the location's
4550 * linespec.c (convert_address_location_to_sals): Fill in sal's
4551 symbol with find_pc_sect_containing_function.
4552 * symtab.c (find_function_start_sal): Rename to ...
4553 (find_function_start_sal_1): ... this.
4554 (find_function_start_sal): Reimplement as wrapper around
4555 find_function_start_sal_1, and use
4556 find_pc_sect_containing_function to fill in the sal's symbol.
4557 (find_function_start_sal(symbol*, bool)): Adjust.
4558 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4560 (find_pc_sect_containing_function): Declare.
4562 2018-06-29 Pedro Alves <palves@redhat.com>
4564 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4565 true if the the location has no symbol.
4567 2018-06-28 Tom Tromey <tom@tromey.com>
4569 * NEWS: Mention --enable-codesign.
4570 * silent-rules.mk (ECHO_SIGN): New variable.
4571 * configure.ac: Add --enable-codesign.
4572 * configure: Rebuild.
4573 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4574 (gdb$(EXEEXT)): Optionally invoke codesign.
4576 2018-06-28 Pedro Alves <palves@redhat.com>
4578 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4580 (switch_to_thread_no_regs): Adjust comment.
4581 * infcmd.c (stop_pc): Delete.
4582 (post_create_inferior, info_program_command): Replace references
4583 to stop_pc with references to thread_info->suspend.stop_pc.
4584 * inferior.h (stop_pc): Delete declaration.
4585 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4586 (handle_inferior_event_1, handle_signal_stop)
4587 (process_event_stop_test, keep_going_stepped_thread)
4588 (handle_step_into_function, handle_step_into_function_backward)
4589 (print_stop_location): Replace references to stop_pc with
4590 references to thread_info->suspend.stop_pc.
4591 (struct infcall_suspend_state) <stop_pc>: Delete field.
4592 (save_infcall_suspend_state, restore_infcall_suspend_state):
4593 Remove references to inf_stat->stop_pc.
4594 * linux-fork.c (fork_load_infrun_state): Likewise.
4595 * record-btrace.c (record_btrace_set_replay): Likewise.
4596 * record-full.c (record_full_goto_entry): Likewise.
4597 * remote.c (print_one_stopped_thread): Likewise.
4598 * target.c (target_resume): Extend comment.
4599 * thread.c (set_executing_thread): New.
4600 (set_executing): Use it.
4601 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4602 Remove references to stop_pc.
4604 2018-06-28 Pedro Alves <palves@redhat.com>
4606 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4607 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4609 2018-06-28 Tom Tromey <tom@tromey.com>
4611 * coffread.c (coff_symfile_finish): Update.
4612 * xcoffread.c (xcoff_symfile_finish): Update.
4613 * elfread.c (elf_symfile_finish): Update.
4614 * symfile.h (dwarf2_free_objfile): Don't declare.
4615 * dwarf2read.c (_initialize_dwarf2_read): Use
4616 register_objfile_data_with_cleanup.
4617 (dwarf2_free_objfile): Now static. Change signature.
4619 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4621 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4622 option "-o" to add-symbol-file-load to add an offset to each
4623 section's load address.
4624 * symfile.c (set_objfile_default_section_offset): New function.
4626 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4628 * symfile.c (add_symbol_file_command): Make sure that sections
4629 with the same name are sorted in the same order.
4631 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4633 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4634 require the second argument. If omitted, load sections at the
4635 addresses specified in the file.
4637 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4639 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4640 (_initialize_symfile): Add option "-o" to symbol-file to add an
4641 offset to each section of the symbol file.
4643 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4645 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4647 2018-06-27 Tom Tromey <tom@tromey.com>
4649 * stack.c (_initialize_stack): Update "func" help text.
4651 2018-06-27 Tom Tromey <tom@tromey.com>
4653 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4655 (unwind_infopy_str, pyuw_create_unwind_info)
4656 (unwind_infopy_add_saved_register, pyuw_sniffer)
4657 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4659 (struct saved_reg): Add constructor.
4660 <value>: Now a gdbpy_ref<>.
4662 2018-06-27 Tom Tromey <tom@tromey.com>
4664 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4666 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4668 * gdb-gdb.py.in: Format using autopep8.
4670 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4672 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4673 (type_lookup_function): Recognize CORE_ADDR values.
4675 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4677 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4680 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4682 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4685 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4687 * gdb-gdb.py: Move to...
4688 * gdb-gdb.py.in: ... here.
4689 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4690 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4692 (distclean): Remove gdb-gdb.py when cleaning.
4693 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4694 * configure: Re-generate.
4696 2018-06-27 Pedro Alves <palves@redhat.com>
4698 * proc-service.c (get_ps_regcache): New.
4699 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4700 (ps_lsetfpregs): Use it.
4702 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4705 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4706 (dwarf_decode_lines_1): Adjust.
4708 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4710 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4712 <info_proc>: Likewise.
4714 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4716 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4717 to windows_fetch_one_register, and only handle the case of
4718 fetching one register. Move the code that reloads the context
4719 and iterates over all registers if R is negative to...
4720 (windows_nat_target::fetch_registers): ... here.
4721 (do_windows_store_inferior_registers): Rename to
4722 windows_store_one_register, and only handle the case of storing
4723 one register. Move the code that handles the case where r is
4725 (windows_nat_target::store_registers) ... here.
4727 2018-06-26 Tom Tromey <tom@tromey.com>
4730 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4731 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4733 (rust_internal_print_type): Add podata parameter.
4734 (rust_print_type): Update.
4736 2018-06-26 Tom Tromey <tom@tromey.com>
4738 * typeprint.h (struct print_offset_data) <update, finish,
4739 maybe_print_hole>: New methods.
4740 <indentation>: New constant.
4741 * typeprint.c (print_offset_data::indentation): Define.
4742 (print_offset_data::maybe_print_hole, print_offset_data::update)
4743 (print_offset_data::finish): Move from c-typeprint.c and rename.
4744 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4745 (print_spaces_filtered_with_print_options): Update.
4746 (c_print_type_union_field_offset, maybe_print_hole)
4747 (c_print_type_struct_field_offset): Move to typeprint.c and
4749 (c_type_print_base_struct_union): Update.
4751 2018-06-25 Pedro Alves <palves@redhat.com>
4753 * gdbthread.h (thread_info_ref, delete_thread)
4754 (delete_thread_silent, first_thread_of_inferior)
4755 (any_thread_of_inferior, switch_to_thread)
4756 (enable_thread_stack_temporaries)
4757 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4758 (get_last_thread_stack_temporary)
4759 (value_in_thread_stack_temporaries, can_access_registers_thread):
4760 Spell out "struct thread_info" instead of just "thread_info".
4761 * inferior.h (notice_new_inferior): Likewise.
4763 2018-06-25 Pedro Alves <palves@redhat.com>
4765 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4766 pass thread_info pointer to delete_thread.
4767 (windows_nat_target::detach): Pass inferior pointer to
4769 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4771 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4772 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4773 and pass a thread_info pointer to delete_thread.
4774 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4775 pass thread_info pointer to delete_thread.
4776 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4777 delete_thread_silent call.
4778 * procfs.c (procfs_target::detach): Pass inferior pointer to
4780 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4781 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4782 delete_thread_silent call.
4783 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4784 pass thread_info pointer to delete_thread.
4785 (windows_nat_target::detach): Pass inferior pointer to
4788 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4790 * regcache.c (readable_regcache::read_part): Fix asserts.
4791 (reg_buffer::raw_collect_part): New function.
4792 (regcache::write_part): Fix asserts.
4793 (reg_buffer::raw_supply_part): New function.
4794 (regcache::transfer_regset_register): New helper function.
4795 (regcache::transfer_regset): Call new functions.
4796 (regcache_supply_regset): Use gdb_byte*.
4797 (regcache::supply_regset): Likewise.
4798 (regcache_collect_regset): Likewise.
4799 (regcache::collect_regset): Likewise.
4800 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4801 (reg_buffer::raw_supply_part): Likewise.
4802 (regcache::transfer_regset_register): Likewise.
4803 (regcache::transfer_regset): Use gdb_byte*.
4805 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4807 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4809 2018-06-21 Pedro Alves <palves@redhat.com>
4811 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4812 instead of a ptid_t. All callers adjusted.
4813 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4815 (print_ada_task_info, display_current_task_id, task_command_1):
4817 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4819 (breakpoint_kind): Adjust.
4820 (remove_breakpoints_pid): Rename to ...
4821 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4822 pointer. All callers adjusted.
4823 (bpstat_clear_actions): Use inferior_thread.
4824 (get_bpstat_thread): New.
4825 (bpstat_do_actions): Use it.
4826 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4827 to take a thread_info pointer. All callers adjusted.
4828 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4829 (breakpoint_re_set_thread): Use inferior_thread.
4830 * breakpoint.h (struct inferior): Forward declare.
4831 (bpstat_stop_status): Update.
4832 (remove_breakpoints_pid): Delete.
4833 (remove_breakpoints_inf): New.
4834 * bsd-uthread.c (bsd_uthread_target::wait)
4835 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4836 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4837 (maint_btrace_packet_history_cmd)
4838 (maint_btrace_clear_packet_history_cmd): Adjust.
4839 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4841 * cli/cli-interp.c: Include "inferior.h".
4842 * common/refcounted-object.h (struct
4843 refcounted_object_ref_policy): New.
4844 * compile/compile-object-load.c: Include gdbthread.h.
4845 (store_regs): Use inferior_thread.
4846 * corelow.c (core_target::close): Use current_inferior.
4847 (core_target_open): Adjust to use first_thread_of_inferior and use
4848 the current inferior.
4849 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4850 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4851 <thread>: ... this new field. All references adjusted.
4852 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4853 Take a thread_info pointer instead of a ptid_t.
4854 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4855 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4856 thread_info pointer instead of a ptid_t.
4857 * elfread.c: Include "inferior.h".
4858 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4859 Use inferior_thread.
4860 * eval.c (evaluate_subexp): Likewise.
4861 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4863 * gdb_proc_service.h (struct thread_info): Forward declare.
4864 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4865 <thread>: ... this new field. All references adjusted.
4866 * gdbarch.h, gdbarch.c: Regenerate.
4867 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4868 'thread' parameter. All implementations and callers adjusted.
4869 * gdbthread.h (thread_info) <set_running>: New method.
4870 (delete_thread, delete_thread_silent): Take a thread_info pointer
4872 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4873 (first_thread_of_process): Delete, replaced by ...
4874 (first_thread_of_inferior): ... this new function. All callers
4876 (any_live_thread_of_process): Delete, replaced by ...
4877 (any_live_thread_of_inferior): ... this new function. All callers
4879 (switch_to_thread, switch_to_no_thread): Declare.
4880 (is_executing): Delete.
4881 (enable_thread_stack_temporaries): Update comment.
4882 <enable_thread_stack_temporaries>: Take a thread_info pointer
4883 instead of a ptid_t. Incref the thread.
4884 <~enable_thread_stack_temporaries>: Decref the thread.
4887 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4888 (get_last_thread_stack_temporary)
4889 (value_in_thread_stack_temporaries, can_access_registers_thread):
4890 Take a thread_info pointer instead of a ptid_t. All callers
4892 * infcall.c (get_call_return_value): Use inferior_thread.
4893 (run_inferior_call): Work with thread pointers instead of ptid_t.
4894 (call_function_by_hand_dummy): Work with thread pointers instead
4895 of ptid_t. Use thread_info_ref.
4896 * infcmd.c (proceed_thread_callback): Access thread's state
4898 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4899 access thread's state directly.
4900 (continue_command): Use inferior_thread.
4901 (info_program_command): Use find_thread_ptid and access thread
4903 (proceed_after_attach_callback): Use thread state directly.
4904 (notice_new_inferior): Take a thread_info pointer instead of a
4905 ptid_t. All callers adjusted.
4906 (exit_inferior): Take an inferior pointer instead of a pid. All
4908 (exit_inferior_silent): New.
4909 (detach_inferior): Delete.
4910 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4911 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4912 (detach_inferior_command, kill_inferior_command): Use
4913 find_inferior_id instead of valid_gdb_inferior_id and
4914 gdb_inferior_id_to_pid.
4915 (inferior_command): Use inferior and thread pointers.
4916 * inferior.h (struct thread_info): Forward declare.
4917 (notice_new_inferior): Take a thread_info pointer instead of a
4918 ptid_t. All callers adjusted.
4919 (detach_inferior): Delete declaration.
4920 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4921 instead of a pid. All callers adjusted.
4922 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4923 (valid_gdb_inferior_id): Delete.
4924 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4925 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4926 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4928 <inf>: ... this new field.
4929 <step_ptid>: Delete, replaced by ...
4930 <step_thread>: ... this new field.
4931 (get_displaced_stepping_state): Take an inferior pointer instead
4932 of a pid. All callers adjusted.
4933 (displaced_step_in_progress_any_inferior): Adjust.
4934 (displaced_step_in_progress_thread): Take a thread pointer instead
4935 of a ptid_t. All callers adjusted.
4936 (displaced_step_in_progress, add_displaced_stepping_state): Take
4937 an inferior pointer instead of a pid. All callers adjusted.
4938 (get_displaced_step_closure_by_addr): Adjust.
4939 (remove_displaced_stepping_state): Take an inferior pointer
4940 instead of a pid. All callers adjusted.
4941 (displaced_step_prepare_throw, displaced_step_prepare)
4942 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4943 All callers adjusted.
4944 (start_step_over): Adjust.
4945 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4946 displaced step queue.
4947 (do_target_resume): Adjust.
4948 (fetch_inferior_event): Use inferior_thread.
4949 (context_switch, get_inferior_stop_soon): Take an
4950 execution_control_state pointer instead of a ptid_t. All callers
4952 (switch_to_thread_cleanup): Delete.
4953 (stop_all_threads): Use scoped_restore_current_thread.
4954 * inline-frame.c: Include "gdbthread.h".
4955 (inline_state) <inline_state>: Take a thread pointer instead of a
4956 ptid_t. All callers adjusted.
4957 <ptid>: Delete, replaced by ...
4958 <thread>: ... this new field.
4959 (find_inline_frame_state): Take a thread pointer instead of a
4960 ptid_t. All callers adjusted.
4961 (skip_inline_frames, step_into_inline_frame)
4962 (inline_skipped_frames, inline_skipped_symbol): Take a thread
4963 pointer instead of a ptid_t. All callers adjusted.
4964 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
4965 (inline_skipped_frames, inline_skipped_symbol): Likewise.
4966 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
4968 * linux-nat.c (get_detach_signal): Likewise.
4969 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
4970 (thread_db_notice_clone): Adjust.
4971 (thread_db_find_new_threads_silently)
4972 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
4973 a thread pointer instead of a ptid_t. All callers adjusted.
4974 * mi/mi-cmd-var.c: Include "inferior.h".
4975 (mi_cmd_var_update_iter): Update to use thread pointers.
4976 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
4978 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
4980 (mi_output_running): ... this new function.
4981 (mi_on_resume_1): Adjust to use it.
4982 (mi_user_selected_context_changed): Adjust to use inferior_thread.
4983 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
4985 (interrupt_thread_callback): : Adjust to use thread and inferior
4987 * proc-service.c: Include "gdbthread.h".
4988 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
4989 * progspace-and-thread.c: Include "inferior.h".
4990 * progspace.c: Include "inferior.h".
4991 * python/py-exitedevent.c (create_exited_event_object): Adjust to
4992 hold a reference to an inferior_object.
4993 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
4995 * python/py-inferior.c (struct inferior_object): Give the type a
4996 tag name instead of a typedef.
4997 (python_on_normal_stop): No need to check if the current thread is
4999 (inferior_to_inferior_object): Change return type to
5000 inferior_object. All callers adjusted.
5001 (find_thread_object): Delete, bits factored out to ...
5002 (thread_to_thread_object): ... this new function.
5003 * python/py-infthread.c (create_thread_object): Use
5004 inferior_to_inferior_object.
5005 (thpy_is_stopped): Use thread pointer directly.
5006 (gdbpy_selected_thread): Use inferior_thread.
5007 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5008 field, replaced with ...
5009 <thread>: ... this new field. All users adjusted.
5010 (btpy_insn_or_gap_new): Drop const.
5011 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5013 * python/py-record.c: Include "gdbthread.h".
5014 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5015 a ptid_t. All callers adjusted.
5016 (gdbpy_current_recording): Use inferior_thread.
5017 * python/py-record.h (recpy_record_object) <ptid>: Delete
5018 field, replaced with ...
5019 <thread>: ... this new field. All users adjusted.
5020 (recpy_element_object) <ptid>: Delete
5021 field, replaced with ...
5022 <thread>: ... this new field. All users adjusted.
5023 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5024 a ptid_t. All callers adjusted.
5025 * python/py-threadevent.c: Include "gdbthread.h".
5026 (get_event_thread): Use thread_to_thread_object.
5027 * python/python-internal.h (struct inferior_object): Forward
5029 (find_thread_object, find_inferior_object): Delete declarations.
5030 (thread_to_thread_object, inferior_to_inferior_object): New
5032 * record-btrace.c: Include "inferior.h".
5033 (require_btrace_thread): Use inferior_thread.
5034 (record_btrace_frame_sniffer)
5035 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5036 (get_thread_current_frame): Use scoped_restore_current_thread and
5038 (get_thread_current_frame): Use thread pointer directly.
5039 (record_btrace_replay_at_breakpoint): Use thread's inferior
5041 * record-full.c: Include "inferior.h".
5042 * regcache.c: Include "gdbthread.h".
5043 (get_thread_arch_regcache): Use the inferior's address space
5045 (get_thread_regcache, registers_changed_thread): New.
5046 * regcache.h (get_thread_regcache(thread_info *thread)): New
5048 (registers_changed_thread): New.
5049 (remote_target) <remote_detach_1>: Swap order of parameters.
5050 (remote_add_thread): <remote_add_thread>: Return the new thread.
5051 (get_remote_thread_info(ptid_t)): New overload.
5052 (remote_target::remote_notice_new_inferior): Use thread pointers
5054 (remote_target::process_initial_stop_replies): Use
5055 thread_info::set_running.
5056 (remote_target::remote_detach_1, remote_target::detach)
5057 (extended_remote_target::detach): Adjust.
5058 * stack.c (frame_show_address): Use inferior_thread.
5059 * target-debug.h (target_debug_print_thread_info_pp): New.
5060 * target-delegates.c: Regenerate.
5061 * target.c (default_thread_address_space): Delete.
5062 (memory_xfer_partial_1): Use current_inferior.
5063 (target_detach): Use current_inferior.
5064 (target_thread_address_space): Delete.
5065 (generic_mourn_inferior): Use current_inferior.
5066 * target.h (struct target_ops) <thread_address_space>: Delete.
5067 (target_thread_address_space): Delete.
5068 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5070 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5071 thread pointer instead of a ptid_t. Adjust all callers.
5072 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5073 (first_thread_of_process): Delete, replaced by ...
5074 (first_thread_of_inferior): ... this new function. All callers
5076 (any_thread_of_process): Rename to ...
5077 (any_thread_of_inferior): ... this, and take an inferior pointer.
5078 (any_live_thread_of_process): Rename to ...
5079 (any_live_thread_of_inferior): ... this, and take an inferior
5081 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5082 (value_in_thread_stack_temporaries)
5083 (get_last_thread_stack_temporary): Take a thread pointer instead
5084 of a ptid_t. Adjust all callers.
5085 (thread_info::set_running): New.
5086 (validate_registers_access): Use inferior_thread.
5087 (can_access_registers_ptid): Rename to ...
5088 (can_access_registers_thread): ... this, and take a thread
5090 (print_thread_info_1): Adjust to compare thread pointers instead
5092 (switch_to_no_thread, switch_to_thread): Make extern.
5093 (scoped_restore_current_thread::~scoped_restore_current_thread):
5094 Use m_thread pointer directly.
5095 (scoped_restore_current_thread::scoped_restore_current_thread):
5096 Use inferior_thread.
5097 (thread_command): Use thread pointer directly.
5098 (thread_num_make_value_helper): Use inferior_thread.
5099 * top.c (execute_command): Use inferior_thread.
5100 * tui/tui-interp.c: Include "inferior.h".
5101 * varobj.c (varobj_create): Use inferior_thread.
5102 (value_of_root_1): Use find_thread_global_id instead of
5103 global_thread_id_to_ptid.
5105 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5107 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5109 (regcache::write_part): Likewise.
5110 (readable_regcache::cooked_read_part): Update comment.
5111 (readable_regcache::cooked_write_part): Likewise.
5112 * regcache.h: (readable_regcache::read_part): Likewise.
5113 (regcache::write_part): Likewise.
5115 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5116 Dirk Schubert <dirk.schubert@arm.com>
5118 * aarch64-linux-nat.c (post_attach): New.
5119 (aarch64_linux_nat_target::post_attach): Override post_attach to
5120 record the number of hardware debug registers.
5122 2018-06-20 Tom Tromey <tom@tromey.com>
5124 * python/py-param.c (add_setshow_generic): Make parameters const.
5125 (parmpy_init): Update.
5127 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5129 * regcache.h (regcache_cooked_read_ftype): Rename to...
5130 (register_read_ftype): ...this, change type to function_view.
5131 (class reg_buffer) <save>: Remove src parameter.
5132 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5133 parameter non-const in first overload. Remove src parameter in
5135 * regcache.c (do_cooked_read): Remove.
5136 (readonly_detached_regcache::readonly_detached_regcache): Make
5137 parameter non-const, adjust call to other constructor.
5138 (reg_buffer::save): Remove src parameter.
5139 * frame.c (do_frame_register_read): Remove.
5140 (frame_save_as_regcache): Use lambda function.
5141 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5142 parameter to ppu2spu_data *.
5143 (ppu2spu_sniffer): Use lambda function.
5145 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5147 * record-full.c (record_full_target::insert_breakpoint): Remove
5148 "struct" keyword, add const.
5150 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5152 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5153 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5154 * configure.ac: Remove AC_PREREQ, add missing quoting.
5155 * gnulib/configure.ac: Modernize usage of
5156 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5157 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5158 (AUTOMAKE_VERSION): Bump to 1.15.1.
5159 * configure: Re-generate.
5160 * config.in: Re-generate.
5161 * aclocal.m4: Re-generate.
5162 * gnulib/aclocal.m4: Re-generate.
5163 * gnulib/config.in: Re-generate.
5164 * gnulib/configure: Re-generate.
5165 * gnulib/import/Makefile.in: Re-generate.
5167 2018-06-19 Pedro Alves <palves@redhat.com>
5169 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5170 (lookup_minimal_symbol_by_pc_section): ... here with
5171 gdb_assert_not_reached added.
5173 2018-06-19 Pedro Alves <palves@redhat.com>
5175 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5176 parameter with a block parameter. Compare location's block symbol
5177 with the frame's block instead of addresses.
5178 (skip_inline_frames): Pass the current block instead of the
5179 frame's address. Break out as soon as we determine the frame
5180 should not be skipped.
5182 2018-06-18 Tom Tromey <tom@tromey.com>
5184 * solib-aix.c (solib_aix_get_section_offsets): Return
5186 (solib_aix_solib_create_inferior_hook): Update.
5188 2018-06-18 Tom Tromey <tom@tromey.com>
5190 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5192 2018-06-18 Tom Tromey <tom@tromey.com>
5194 * solib-frv.c (frv_relocate_main_executable): Use
5196 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5199 2018-06-18 Tom Tromey <tom@tromey.com>
5201 * objfiles.h (inhibit_section_map_updates): Update.
5202 (resume_section_map_updates, resume_section_map_updates_cleanup):
5204 * solib-svr4.c (svr4_handle_solib_event): Update.
5205 * objfiles.c (inhibit_section_map_updates): Return
5206 scoped_restore_tmpl<int>.
5207 (resume_section_map_updates, resume_section_map_updates_cleanup):
5210 2018-06-18 Tom Tromey <tom@tromey.com>
5212 * valprint.h (read_string): Update.
5213 * valprint.c (read_string): Change type of "buffer".
5214 (val_print_string): Update.
5215 * python/py-value.c (valpy_string): Update.
5216 * language.h (struct language_defn) <la_get_string>: Change
5218 (default_get_string, c_get_string): Update.
5219 * language.c (default_get_string): Change type of "buffer".
5220 * guile/scm-value.c (gdbscm_value_to_string): Update.
5221 * c-lang.c (c_get_string): Change type of "buffer".
5223 2018-06-18 Tom Tromey <tom@tromey.com>
5225 * ser-mingw.c (struct pipe_state_destroyer): New.
5226 (pipe_state_up): New typedef.
5227 (cleanup_pipe_state): Remove.
5228 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5230 2018-06-18 Tom Tromey <tom@tromey.com>
5232 * rust-lang.h (rust_yyerror): Don't declare.
5233 * rust-lang.c (rust_language_defn): Update.
5234 * rust-exp.y (yyerror): Now static.
5235 * parse.c (parse_exp_in_context_1): Update.
5236 * p-lang.h (p_yyerror): Don't declare.
5237 * p-lang.c (p_language_defn): Update.
5238 * p-exp.y (yyerror): Now static.
5239 * opencl-lang.c (opencl_language_defn): Update.
5240 * objc-lang.c (objc_language_defn): Update.
5241 * m2-lang.h (m2_yyerror): Don't declare.
5242 * m2-lang.c (m2_language_defn): Update.
5243 * m2-exp.y (yyerror): Now static.
5244 * language.h (struct language_defn) <la_error>: Remove.
5245 * language.c (unk_lang_error): Remove.
5246 (unknown_language_defn, auto_language_defn): Remove.
5247 * go-lang.h (go_yyerror): Don't declare.
5248 * go-lang.c (go_language_defn): Update.
5249 * go-exp.y (yyerror): Now static.
5250 * f-lang.h (f_yyerror): Don't declare.
5251 * f-lang.c (f_language_defn): Update.
5252 * f-exp.y (yyerror): Now static.
5253 * d-lang.h (d_yyerror): Don't declare.
5254 * d-lang.c (d_language_defn): Update.
5255 * d-exp.y (yyerror): Now static.
5256 * c-lang.h (c_yyerror): Don't declare.
5257 * c-lang.c (c_language_defn, cplus_language_defn)
5258 (asm_language_defn, minimal_language_defn): Update.
5259 * c-exp.y (yyerror): Now static.
5260 * ada-lang.h (ada_yyerror): Don't declare.
5261 * ada-lang.c (ada_language_defn): Update.
5262 * ada-exp.y (yyerror): Now static.
5264 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5266 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5267 (store_sveregs_to_thread): Likewise.
5268 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5269 (aarch64_linux_store_inferior_registers): Likewise.
5270 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5272 (aarch64_sve_regs_copy_to_regcache): Likewise.
5273 (aarch64_sve_regs_copy_from_regcache): Likewise.
5274 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5276 (aarch64_sve_regs_copy_to_regcache): Likewise.
5277 (aarch64_sve_regs_copy_from_regcache): Likewise.
5278 (sve_context): Structure from Linux headers.
5279 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5280 (SVE_SIG_ZREG_SIZE): Likewise.
5281 (SVE_SIG_PREG_SIZE): Likewise.
5282 (SVE_SIG_FFR_SIZE): Likewise.
5283 (SVE_SIG_REGS_OFFSET): Likewise.
5284 (SVE_SIG_ZREGS_OFFSET): Likewise.
5285 (SVE_SIG_ZREG_OFFSET): Likewise.
5286 (SVE_SIG_ZREGS_SIZE): Likewise.
5287 (SVE_SIG_PREGS_OFFSET): Likewise.
5288 (SVE_SIG_PREG_OFFSET): Likewise.
5289 (SVE_SIG_PREGS_SIZE): Likewise.
5290 (SVE_SIG_FFR_OFFSET): Likewise.
5291 (SVE_SIG_REGS_SIZE): Likewise.
5292 (SVE_SIG_CONTEXT_SIZE): Likewise.
5293 (SVE_PT_REGS_MASK): Likewise.
5294 (SVE_PT_REGS_FPSIMD): Likewise.
5295 (SVE_PT_REGS_SVE): Likewise.
5296 (SVE_PT_VL_INHERIT): Likewise.
5297 (SVE_PT_VL_ONEXEC): Likewise.
5298 (SVE_PT_REGS_OFFSET): Likewise.
5299 (SVE_PT_FPSIMD_OFFSET): Likewise.
5300 (SVE_PT_FPSIMD_SIZE): Likewise.
5301 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5302 (SVE_PT_SVE_PREG_SIZE): Likewise.
5303 (SVE_PT_SVE_FFR_SIZE): Likewise.
5304 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5305 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5306 (__SVE_SIG_TO_PT): Likewise.
5307 (SVE_PT_SVE_OFFSET): Likewise.
5308 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5309 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5310 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5311 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5312 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5313 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5314 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5315 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5316 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5317 (SVE_PT_SVE_SIZE): Likewise.
5318 (SVE_PT_SIZE): Likewise.
5319 (HAS_SVE_STATE): New define.
5321 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5323 * nat/aarch64-sve-linux-sigcontext.h: New file.
5324 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5326 (SVE_VQ_MIN): Likewise.
5327 (SVE_VQ_MAX): Likewise.
5328 (SVE_VL_MIN): Likewise.
5329 (SVE_VL_MAX): Likewise.
5330 (SVE_NUM_ZREGS): Likewise.
5331 (SVE_NUM_PREGS): Likewise.
5332 (sve_vl_valid): Likewise.
5333 (struct user_sve_header): Likewise.
5335 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5336 Richard Bunt <Richard.Bunt@arm.com>
5338 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5339 was requested by GDB.
5341 2018-06-15 Tom de Vries <tdevries@suse.de>
5343 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5345 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5347 * gnulib/update-gnulib.sh: Print expected versions of
5350 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5352 * arch-utils.c (default_type_align): Use type_length_units.
5353 * gdbtypes.c (type_align): Use type_length_units.
5355 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5357 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5358 of 'define' command.
5360 2018-06-14 Tom de Vries <tdevries@suse.de>
5363 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5364 get_no_prettyformat_print_options.
5366 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5368 * sparc-nat.h: Include target.h.
5369 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5370 <fetch_registers>: Remove this argument in function call.
5371 <store_registers>: Remove this argument in function call, remove
5373 <low_forget_process>: Call sparc64_forget_process instead of
5374 sparc_forget_process.
5376 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5378 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5379 (procfs_target::make_corefile_notes): Adjust to new
5380 target_read_alloc return type.
5382 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5383 Stephen Roberts <stephen.roberts@arm.com>
5386 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5387 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5388 Move should_notify_stop local into more inner scope.
5390 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5391 Stephen Roberts <stephen.roberts@arm.com>
5394 * infrun.c (resume_1): Add call to mark_async_event_handler.
5396 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5398 * infrun.c (do_target_wait): Change old version of $pc printed.
5400 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5402 * dwarf2read.c (read_index_from_section): Rename to...
5403 (read_gdb_index_from_section): ... this, update all callers.
5404 (dwarf2_read_index): Rename to...
5405 (dwarf2_read_gdb_index): ... this, update all callers.
5407 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5409 * gdb/hppa-linux-nat.c
5410 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5411 hppa_linux_nat_target::fetch_registers.
5413 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5415 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5416 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5417 (AARCH64_DWARF_SVE_FFR): Likewise.
5418 (AARCH64_DWARF_SVE_P0): Likewise.
5419 (AARCH64_DWARF_SVE_Z0): Likewise.
5421 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5423 * common/common-regcache.h (raw_compare): New function.
5424 * regcache.c (regcache::raw_compare): Likewise.
5425 * regcache.h (regcache::raw_compare): New declaration.
5427 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5429 * common/common-regcache.h (reg_buffer_common): New structure.
5430 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5431 (reg_buffer::raw_supply): Likewise.
5432 (reg_buffer::raw_supply_integer): Likewise.
5433 (reg_buffer::raw_supply_zeroed): Likewise.
5434 (reg_buffer::raw_collect): Likewise.
5435 (reg_buffer::raw_collect_integer): Likewise.
5436 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5437 (reg_buffer::raw_supply): Likewise.
5438 (reg_buffer::raw_supply_integer): Likewise.
5439 (reg_buffer::raw_supply_zeroed): Likewise.
5440 (reg_buffer::raw_collect): Likewise.
5441 (reg_buffer::raw_collect_integer): Likewise.
5443 2018-06-10 Tom Tromey <tom@tromey.com>
5445 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5446 (class remote_state) <stop_reply_queue>: Now std::vector.
5447 (remote_state::~remote_state)
5448 (remote_target::stop_reply_queue_length): Update.
5449 (struct queue_iter_param, remove_child_of_pending_fork)
5450 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5451 (check_pending_event_prevents_wildcard_vcont_callback)
5452 (remove_stop_reply_for_inferior)
5453 (remove_stop_reply_of_remote_state)
5454 (remote_notif_remove_once_on_match)
5455 (stop_reply_match_ptid_and_ws)
5456 (remote_kill_child_of_pending_fork): Remove.
5457 (remote_target::remove_new_fork_children)
5458 (remote_target::check_pending_events_prevent_wildcard_vcont)
5459 (remote_target::discard_pending_stop_replies)
5460 (remote_target::discard_pending_stop_replies_in_queue)
5461 (remote_target::remote_notif_remove_queued_reply)
5462 (remote_target::queued_stop_reply)
5463 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5464 (remote_target::wait, remote_target::kill_new_fork_children)
5465 (remote_target::async): Update.
5467 2018-06-10 Tom Tromey <tom@tromey.com>
5469 * record-full.c (record_full_arch_list_cleanups): Remove.
5470 (record_full_message): Use try/catch.
5471 (record_full_wait_cleanups): Remove.
5472 (record_full_wait_1): Use try/catch.
5473 (record_full_restore): Likewise.
5475 2018-06-10 Tom Tromey <tom@tromey.com>
5477 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5478 declare VEC. Add constructor.
5479 <in_target_beneath>: Now bool.
5480 (record_full_breakpoints): Now a std::vector, static.
5481 (record_full_sync_record_breakpoints)
5482 (record_full_init_record_breakpoints)
5483 (record_full_target::insert_breakpoint)
5484 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5486 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5488 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5489 * serial.c (serial_interface_lookup): Remove struct keyword.
5491 2018-06-10 Tom Tromey <tom@tromey.com>
5493 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5495 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5497 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5499 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5500 "beneath" as a method.
5501 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5502 Use "beneath" as a method.
5504 2018-06-10 Tom Tromey <tom@tromey.com>
5506 * tracefile.c (struct trace_file_writer_deleter): New.
5507 <operator()>: Rename from trace_file_writer_xfree.
5508 (trace_file_writer_up): New typedef.
5509 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5511 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5513 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5514 <m_registers, m_register_status>: Change type to
5516 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5519 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5521 * common/common-regcache.h (enum register_status): Add
5522 underlying type "signed char".
5523 * regcache.h (reg_buffer) <m_register_status>: Change type to
5525 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5526 register_status instead of signed char.
5527 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5528 (reg_buffer::get_register_status): Remove cast.
5529 (readable_regcache::raw_read): Remove cast.
5530 (readable_regcache::cooked_read): Remove cast.
5532 2018-06-09 Tom Tromey <tom@tromey.com>
5534 * source.c (reverse_search_command, forward_search_command): Use
5537 2018-06-09 Tom Tromey <tom@tromey.com>
5539 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5540 (serial_ops_list): Now static, std::vector.
5541 (serial_interface_lookup, serial_add_interface): Update.
5543 2018-06-09 Tom Tromey <tom@tromey.com>
5545 * dwarf2read.c (process_cu_includes): Update.
5546 (process_full_comp_unit): Update.
5547 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5550 2018-06-08 Paul Koning <paul_koning@dell.com>
5554 * python/python.c (do_start_initialization):
5555 Avoid call to internal Python API.
5556 (init__gdb_module): New function.
5558 2018-06-08 Gary Benson <gbenson@redhat.com>
5560 * linux-thread-db.c (valprint.h): New include.
5561 (struct check_thread_db_info): New structure.
5562 (check_thread_db_on_load, tdb_testinfo): New static globals.
5563 (check_thread_db, check_thread_db_callback): New functions.
5564 (try_thread_db_load_1): Run integrity checks if requested.
5565 (maintenance_check_libthread_db): New function.
5566 (_initialize_thread_db): Register "maint check libthread-db"
5567 and "maint set/show check-libthread-db".
5568 * NEWS: Mention the above new commands.
5570 2018-06-08 Tom Tromey <tom@tromey.com>
5572 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5575 2018-06-08 Tom Tromey <tom@tromey.com>
5577 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5579 2018-06-08 Tom Tromey <tom@tromey.com>
5581 * common/btrace-common.h (struct btrace_data): Add constructor,
5582 destructor, move assignment operator.
5583 <empty, clear, fini>: New methods.
5584 <format>: Initialize.
5585 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5586 (btrace_data_empty): Don't declare.
5587 * common/btrace-common.c (btrace_data_init): Remove.
5588 (btrace_data::fini): Rename from btrace_data_fini.
5589 (btrace_data::empty): Rename from btrace_data_empty.
5590 (btrace_data::clear): Rename from btrace_data_clear. Return
5592 * btrace.h (make_cleanup_btrace_data): Don't declare.
5593 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5594 (parse_xml_btrace): Update.
5595 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5596 (maint_btrace_clear_packet_history_cmd): Update.
5598 2018-06-07 Pedro Alves <palves@redhat.com>
5600 * target.h (target_ops) <beneath>: Now a method. All references
5602 (class target_stack): New.
5603 * target.c (g_target_stack): New.
5604 (g_current_top_target): Delete.
5605 (current_top_target): Get the top target out of g_target_stack.
5606 (target_stack::push, target_stack::unpush): New.
5607 (push_target, unpush_target): Reimplement.
5608 (target_is_pushed): Reimplement in terms of g_target_stack.
5609 (target_ops::beneath, target_stack::find_beneath): New.
5611 2018-06-07 Pedro Alves <palves@redhat.com>
5613 * target.h (find_target_beneath): Delete declaration.
5614 * target.c (find_target_beneath): Delete definition.
5615 * aix-thread.c: All callers of find_target_beneath adjusted to
5616 call target_ops::beneath instead.
5617 * bsd-uthread.c: Likewise.
5618 * linux-thread-db.c: Likewise.
5619 * ravenscar-thread.c: Likewise.
5620 * sol-thread.c: Likewise.
5621 * spu-multiarch.c: Likewise.
5623 2018-06-07 Pedro Alves <palves@redhat.com>
5625 * target.h (target_ops) <beneath>: Now a method. All references
5627 (target_ops) <m_beneath>: New.
5628 * target.c (target_ops::beneath): New.
5629 * corelow.c: Adjust all references to target_ops::beneath.
5630 * linux-thread-db.c: Likewise.
5631 * make-target-delegates: Likewise.
5632 * record-btrace.c: Likewise.
5633 * record-full.c: Likewise.
5634 * remote.c: Likewise.
5635 * target.c: Likewise.
5636 * target-delegates.c: Regenerate.
5638 2018-06-07 Pedro Alves <palves@redhat.com>
5640 * target.h (target_stack): Delete.
5641 (current_top_target): Declare function.
5642 * target.c (target_stack): Delete.
5643 (g_current_top_target): New.
5644 (current_top_target): New function.
5645 * auxv.c: Use current_top_target instead of target_stack
5647 * avr-tdep.c: Likewise.
5648 * breakpoint.c: Likewise.
5649 * corefile.c: Likewise.
5650 * elfread.c: Likewise.
5652 * exceptions.c: Likewise.
5653 * frame.c: Likewise.
5654 * gdbarch-selftests.c: Likewise.
5655 * gnu-v3-abi.c: Likewise.
5656 * ia64-tdep.c: Likewise.
5657 * ia64-vms-tdep.c: Likewise.
5658 * infcall.c: Likewise.
5659 * infcmd.c: Likewise.
5660 * infrun.c: Likewise.
5661 * linespec.c: Likewise.
5662 * linux-tdep.c: Likewise.
5663 * minsyms.c: Likewise.
5664 * ppc-linux-nat.c: Likewise.
5665 * ppc-linux-tdep.c: Likewise.
5666 * procfs.c: Likewise.
5667 * regcache.c: Likewise.
5668 * remote.c: Likewise.
5669 * rs6000-tdep.c: Likewise.
5670 * s390-linux-nat.c: Likewise.
5671 * s390-tdep.c: Likewise.
5672 * solib-aix.c: Likewise.
5673 * solib-darwin.c: Likewise.
5674 * solib-dsbt.c: Likewise.
5675 * solib-spu.c: Likewise.
5676 * solib-svr4.c: Likewise.
5677 * solib-target.c: Likewise.
5678 * sparc-tdep.c: Likewise.
5679 * sparc64-tdep.c: Likewise.
5680 * spu-tdep.c: Likewise.
5681 * symfile.c: Likewise.
5682 * symtab.c: Likewise.
5683 * target-descriptions.c: Likewise.
5684 * target-memory.c: Likewise.
5685 * target.c: Likewise.
5686 * target.h: Likewise.
5687 * tracefile-tfile.c: Likewise.
5688 * tracepoint.c: Likewise.
5689 * valops.c: Likewise.
5690 * valprint.c: Likewise.
5691 * value.c: Likewise.
5692 * windows-tdep.c: Likewise.
5693 * mi/mi-main.c: Likewise.
5695 2018-06-07 Tom Tromey <tom@tromey.com>
5697 * valprint.h (build_address_symbolic): Declare.
5698 * printcmd.c (print_address_symbolic): Update.
5699 (build_address_symbolic): Change "name" and "filename" to
5701 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5703 * defs.h (build_address_symbolic): Remove declaration.
5705 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5707 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5708 (aarch64_vnv_type): Add function.
5709 (aarch64_pseudo_register_name): Add V regs for SVE.
5710 (aarch64_pseudo_register_type): Likewise.
5711 (aarch64_pseudo_register_reggroup_p): Likewise.
5712 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5713 (aarch64_pseudo_read_value): Add V regs for SVE.
5714 (aarch64_pseudo_write_2): Use V0 offset for SVE
5715 (aarch64_pseudo_write): Add V regs for SVE.
5716 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5718 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5720 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5721 (sve_vl_from_vq): Likewise.
5723 2018-06-05 Tom Tromey <tom@tromey.com>
5725 * cli/cli-cmds.c (show_version): Update.
5726 * top.c (print_gdb_version): Add "interactive" parameter.
5728 * main.c (captured_main_1): Update.
5729 * top.h (print_gdb_version): Add "interactive" parameter and a
5732 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5734 * common/enum-flags.h: Add trailing semicolon to example in
5737 2018-06-05 Tom Tromey <tom@tromey.com>
5740 * NEWS: Add entry about pager.
5741 * utils.c (pagination_disabled_for_command): New global.
5742 (prompt_for_continue): Allow "c" response to prompt.
5743 (reinitialize_more_filter): Clear
5744 pagination_disabled_for_command.
5745 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5747 2018-06-04 Tom Tromey <tom@tromey.com>
5749 * ada-lang.h (ada_lookup_symbol_list): Update.
5750 * ada-lang.c (resolve_subexp): Update.
5751 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5753 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5754 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5755 results parameter to std::vector.
5756 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5758 * ada-exp.y (block_lookup): Update.
5759 (select_possible_type_sym): Change type of syms. Remove nsyms
5761 (write_var_or_type, write_name_assoc): Update.
5763 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5765 * windows-nat.c (windows_nat_target::xfer_partial): Return
5766 TARGET_XFER_E_IO if we need to delegate to the target beneath
5767 but BENEATH is NULL.
5769 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5771 * Makefile.in (config.status): Add configure.nat as a
5774 2018-06-04 Tom Tromey <tom@tromey.com>
5776 * cp-name-parser.y (cpname_state): Add method declarations.
5777 (HANDLE_QUAL): Update.
5778 (cpname_state::d_grab, cpname_state::fill_comp)
5779 (cpname_state::make_operator, cpname_state::make_dtor)
5780 (cpname_state::make_builtin_type, cpname_state::make_name)
5781 (cpname_state::d_qualify, cpname_state::d_int_type)
5782 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5783 (%union): Move earlier.
5785 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5787 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5789 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5791 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5792 (aarch64_pseudo_write_1): Likewise.
5793 (aarch64_pseudo_read_value): Use helper.
5794 (aarch64_pseudo_write): Likewise.
5796 2018-06-04 Pedro Alves <palves@redhat.com>
5798 * darwin-nat.c (darwin_ops): Delete.
5799 (darwin_attach_pid): Use get_native_target.
5801 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5803 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5804 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5806 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5808 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5809 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5810 (aarch64_gdbarch_init): Check for SVE.
5811 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5813 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5815 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5816 * aarch64-tdep.h (aarch64_read_description): Likewise.
5817 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5818 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5819 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5820 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5821 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5823 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5825 * value.c (value_fetch_lazy_bitfield): New.
5826 (value_fetch_lazy_memory): New.
5827 (value_fetch_lazy_register): New.
5828 (value_fetch_lazy): Factor out to smaller functions.
5830 2018-06-01 Tom Tromey <tom@tromey.com>
5832 * cp-name-parser.y (backslashable, represented): Now const.
5834 2018-06-01 Tom Tromey <tom@tromey.com>
5836 * cp-name-parser.y: Include parser-defs.h.
5837 (parser_fprintf): Remove declaration.
5839 2018-06-01 Tom Tromey <tom@tromey.com>
5841 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5843 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5844 (global_result): Remove globals.
5845 (struct cpname_state): New.
5846 (yyparse): Don't declare.
5847 (yylex, yyerror): Move declarations after %union.
5848 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5849 (make_name): Add state parameter.
5851 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5853 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5855 (yylex): Add lvalp, state parameters.
5856 (yyerror): Add state parameter.
5857 (cp_demangled_name_to_comp): Update.
5859 2018-06-01 Tom Tromey <tom@tromey.com>
5861 * cp-name-parser.y (parser_fprintf): Declare.
5862 (GDB_YY_REMAP_PREFIX): Define.
5863 Include yy-remap.h. Don't redefine yy* identifiers.
5865 2018-06-01 Tom Tromey <tom@tromey.com>
5867 * python/py-type.c (typy_legacy_template_argument): Update.
5868 * cp-support.h (cp_demangled_name_to_comp): Update.
5869 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5870 parameter to be a "std::string *".
5873 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5875 * ada-lex.l: Include "diagnostics.h" instead of
5876 "common/diagnostics.h".
5877 * unittests/environ-selftests.c: Likewise.
5878 * common/diagnostics.h: Moved to ../include.
5880 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5882 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5883 to language_mode_manual while calling breakpoint_re_set_one.
5885 2018-06-01 Tom Tromey <tom@tromey.com>
5887 * valops.c (value_cast_structs, destructor_name_p): Update.
5888 * symtab.c (gdb_mangle_name): Update.
5889 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5891 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5892 (pascal_object_print_value_fields, pascal_object_print_value):
5894 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5895 * linespec.c (find_methods): Update.
5896 * gdbtypes.h (type_name_no_tag): Remove.
5897 (type_name_or_error): Rename from type_name_no_tag_or_error.
5898 * gdbtypes.c (type_name_no_tag): Remove.
5899 (type_name_or_error): Rename from type_name_no_tag_or_error.
5900 (lookup_struct_elt_type, check_typedef): Update.
5901 * expprint.c (print_subexp_standard): Update.
5902 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5903 * d-namespace.c (d_lookup_nested_symbol): Update.
5904 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5905 (cp_print_class_member): Update.
5906 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5907 * completer.c (add_struct_fields): Update.
5908 * c-typeprint.c (cp_type_print_derivation_info)
5909 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5911 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5912 (ada_prefer_type, ada_is_exception_sym): Update.
5914 2018-06-01 Tom Tromey <tom@tromey.com>
5916 * valops.c (enum_constant_from_type, value_namespace_elt)
5917 (value_maybe_namespace_elt): Update.
5918 * valarith.c (find_size_for_pointer_math): Update.
5919 * target-descriptions.c (make_gdb_type): Update.
5920 * symmisc.c (print_symbol): Update.
5921 * stabsread.c (define_symbol, read_type)
5922 (complain_about_struct_wipeout, add_undefined_type)
5923 (cleanup_undefined_types_1): Update.
5924 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5925 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5926 (rust_internal_print_type, rust_composite_type)
5927 (rust_evaluate_funcall, rust_evaluate_subexp)
5928 (rust_inclusive_range_type_p): Update.
5929 * python/py-type.c (typy_get_tag): Update.
5930 * p-typeprint.c (pascal_type_print_base): Update.
5931 * mdebugread.c (parse_symbol, parse_type): Update.
5932 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5934 * guile/scm-type.c (gdbscm_type_tag): Update.
5935 * go-lang.c (sixg_string_p): Update.
5936 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5938 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5939 (TYPE_TAG_NAME): Remove.
5940 * gdbtypes.c (type_name_no_tag): Simplify.
5941 (check_typedef, check_types_equal, recursive_dump_type)
5942 (copy_type_recursive, arch_composite_type): Update.
5943 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5944 in summary mode when needed.
5945 * eval.c (evaluate_funcall): Update.
5946 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5947 (process_structure_scope, read_enumeration_type)
5948 (read_namespace_type, read_module_type, determine_prefix): Update.
5949 * cp-support.c (inspect_type): Update.
5950 * coffread.c (process_coff_symbol, decode_base_type): Update.
5951 * c-varobj.c (c_is_path_expr_parent): Update.
5952 * c-typeprint.c (c_type_print_base_struct_union): Update.
5953 (c_type_print_base_1): Update. Print struct/class/union/enum in
5954 summary when using C language.
5955 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
5956 (gen_maybe_namespace_elt): Update.
5957 * ada-lang.c (ada_type_name): Simplify.
5958 (empty_record, ada_template_to_fixed_record_type_1)
5959 (template_to_static_fixed_type)
5960 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
5962 2018-06-01 Tom Tromey <tom@tromey.com>
5964 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
5966 * c-typeprint.c (c_print_type_1): Add "language" parameter.
5967 (c_print_type): Update.
5968 (c_print_type): New overload.
5969 (c_type_print_varspec_prefix, c_type_print_args)
5970 (c_type_print_varspec_suffix, c_print_type_no_offsets)
5971 (c_type_print_base_struct_union, c_type_print_base_1)
5972 (cp_type_print_method_args): Add "language" parameter.
5973 (c_type_print_base): Update.
5974 * c-lang.h (c_print_type): Add new overload.
5976 2018-06-01 Tom Tromey <tom@tromey.com>
5978 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
5979 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
5981 2018-06-01 Alan Hayward <alan.hayward@arm.com>
5983 * aarch64-tdep.c (aarch64_sve_register_names): New const
5985 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
5986 (AARCH64_SVE_Z_REGS_NUM): New define.
5987 (AARCH64_SVE_P_REGS_NUM): Likewise.
5988 (AARCH64_SVE_NUM_REGS): Likewise.
5990 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
5992 * nat/linux-ptrace.h [__alpha__]
5993 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
5996 2018-05-31 Maciej W. Rozycki <macro@mips.com>
5998 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
5999 the endianness selected.
6000 * NEWS: Document `set endian auto' mode operation update.
6002 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6004 * Makefile.in: Add new header.
6005 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6006 (sve_vl_from_vg): Likewise.
6007 (sve_vq_from_vl): Likewise.
6008 (sve_vl_from_vq): Likewise.
6009 (sve_vq_from_vg): Likewise.
6010 (sve_vg_from_vq): Likewise.
6011 * configure.nat: Add new c file.
6012 * nat/aarch64-sve-linux-ptrace.c: New file.
6013 * nat/aarch64-sve-linux-ptrace.h: New file.
6015 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6017 * aarch64-linux-nat.c (aarch64_linux_read_description):
6019 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6021 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6022 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6023 (aarch64_gdbarch_init): Add parmeter zero.
6024 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6025 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6026 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6028 * doc/gdb.texinfo: Describe SVE feature
6029 * features/aarch64-sve.c: New file.
6031 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6034 * gdbarch.sh (significant_addr_bit): Default to zero when
6035 not set by target architecture.
6036 * gdbarch.c: Re-generated.
6037 * utils.c (address_significant): Update.
6039 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6041 * stack.c (func_command): Remove trailing newline in call to error.
6043 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6045 * regcache.h (regcache_raw_collect): Remove, update callers to
6046 use regcache::raw_collect.
6047 * regcache.c (regcache_raw_collect): Remove.
6049 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6051 * regcache.h (regcache_raw_supply): Remove, update callers to
6052 use detached_regcache::raw_supply.
6053 * regcache.c (regcache_raw_supply): Remove.
6055 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6057 * regcache.h (regcache_cooked_write_part): Remove, update
6058 callers to use regcache::cooked_write_part.
6059 * regcache.c (regcache_cooked_write_part): Remove.
6061 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6063 * regcache.h (regcache_cooked_read_part): Remove, update callers
6064 to use readable_regcache::cooked_read_part.
6065 * regcache.c (regcache_cooked_read_part): Remove.
6067 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6069 * regcache.h (regcache_cooked_read_value): Remove, update
6070 callers to use readable_regcache::cooked_read_value.
6071 * regcache.c (regcache_cooked_read_value): Remove.
6073 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6075 * regcache.h (regcache_cooked_write): Remove, update callers to
6076 use regcache::cooked_write.
6077 * regcache.c (regcache_cooked_write): Remove.
6079 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6081 * regcache.h (regcache_invalidate): Remove, update callers to
6082 use detached_regcache::invalidate instead.
6083 * regcache.c (regcache_invalidate): Remove.
6085 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6087 * regcache.h (regcache_raw_write_part): Remove, update callers
6088 to use regcache::raw_write_part instead.
6089 * regcache.c (regcache_raw_write_part): Remove.
6091 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6093 * regcache.h (regcache_raw_read_part): Remove, update callers to
6094 use readable_regcache::raw_read_part instead.
6095 * regcache.c (regcache_raw_read_part): Remove.
6097 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6099 * regcache.h (regcache_cooked_read): Remove, update callers to
6100 use readable_regcache::cooked_read instead.
6101 * regcache.c (regcache_cooked_read): Remove.
6103 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6105 * regcache.h (regcache_raw_write): Remove, update callers to use
6106 regcache::raw_write instead.
6107 * regcache.c (regcache_raw_write): Remove.
6109 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6111 * regcache.h (regcache_raw_read): Remove, update callers to use
6112 readable_regcache::raw_read instead.
6113 * regcache.c (regcache_raw_read): Remove.
6115 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6117 * regcache.h (regcache_raw_update): Remove, update callers to
6118 use readable_regcache::raw_update instead.
6119 * regcache.c (regcache_raw_update): Remove.
6121 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6123 * regcache.h (regcache_register_status): Remove, update callers
6124 to use reg_buffer::get_register_status directly instead.
6125 * regcache.c (regcache_register_status): Remove.
6127 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6129 * regcache.h (regcache_get_ptid): Remove, update all callers to
6130 call regcache::ptid instead.
6131 * regcache.c (regcache_get_ptid): Remove.
6133 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6135 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6137 2018-05-30 Pedro Alves <palves@redhat.com>
6139 * common/common-exceptions.h (exception_rethrow): Use
6142 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6144 * breakpoint.c (print_solib_event, check_status_catch_solib):
6145 Remove struct keyword in range-based for loops.
6146 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6147 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6149 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6151 * symfile.c (addr_info_make_relative): Likewise.
6152 * thread.c (value_in_thread_stack_temporaries): Likewise.
6154 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6157 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6158 aggregate type to get its real type before accessing it.
6160 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6162 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6163 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6164 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6165 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6166 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6167 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6168 * printcmd.c (info_address_command): Likewise.
6170 2018-05-29 Tom Tromey <tom@tromey.com>
6172 * windows-nat.c (handle_exception): Update fall-through comment.
6174 2018-05-29 Tom Tromey <tom@tromey.com>
6176 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6177 (struct program_space) <added_solibs>: Now a std::vector.
6178 * breakpoint.c (print_solib_event): Update.
6179 (check_status_catch_solib): Update.
6180 * progspace.c (clear_program_space_solib_cache): Update.
6181 * solib.c (update_solib_list): Update.
6183 2018-05-29 Tom Tromey <tom@tromey.com>
6185 * python/py-type.c (typy_richcompare): Update.
6186 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6187 * gdbtypes.h (types_deeply_equal): Return bool.
6188 (types_equal): Likewise.
6189 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6191 (check_types_equal): Change worklist to std::vector. Return
6193 (struct type_equality_entry): Add constructor.
6194 (compare_maybe_null_strings): Return bool.
6195 (check_types_worklist): Return bool. Change worklist to
6197 (types_deeply_equal): Use std::vector.
6198 (types_equal): Return bool.
6199 (compare_maybe_null_strings): Simplify.
6201 2018-05-29 Tom Tromey <tom@tromey.com>
6203 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6205 2018-05-29 Tom Tromey <tom@tromey.com>
6207 * objc-lang.h: Don't include cp-support.h.
6208 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6211 2018-05-27 Tom Tromey <tom@tromey.com>
6213 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6215 2018-05-25 Tom Tromey <tom@tromey.com>
6217 * value.c (value::location): Initialize.
6219 2018-05-25 Tom Tromey <tom@tromey.com>
6221 * dbxread.c (init_bincl_list): Remove.
6222 (bincl_list): Now a std::vector.
6223 (bincls_allocated, next_bincl): Remove.
6224 (free_bincl_list, do_free_bincl_list_cleanup)
6225 (make_cleanup_free_bincl_list): Remove.
6226 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6228 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6229 (struct header_file_location): Add constructor.
6230 (add_bincl_to_list): Remove.
6232 2018-05-25 Tom Tromey <tom@tromey.com>
6234 * tui/tui.c (tui_enable): Update.
6235 * mi/mi-interp.c (mi_interp::init): Update.
6236 * interps.h (class interp) <name>: New method.
6237 <m_name>: Rename from name.
6238 (~scoped_restore_interp): Update.
6239 * interps.c (interp::interp): Update.
6240 (interp_add, interp_set, interp_lookup_existing)
6241 (current_interp_named_p): Update.
6243 2018-05-25 Tom Tromey <tom@tromey.com>
6245 * interps.c (interp_name): Remove.
6246 * mi/mi-interp.c (mi_interp::init): Update.
6247 * interps.h (interp_name): Remove.
6248 (~scoped_restore_interp): Update.
6249 * tui/tui.c (tui_enable): Update.
6251 2018-05-25 Tom Tromey <tom@tromey.com>
6253 * utils.c (fputs_maybe_filtered): Update.
6254 * linespec.c (decode_line_full): Update.
6255 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6256 (mi_print_breakpoint_for_event, mi_solib_loaded)
6257 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6258 (mi_user_selected_context_changed): Update.
6259 * mi/mi-main.c (mi_execute_command): Update.
6260 * cli/cli-script.c (execute_control_command): Update.
6261 * python/python.c (execute_gdb_command): Update.
6262 * solib.c (info_sharedlibrary_command): Update.
6263 * interps.c (interp_ui_out): Remove.
6264 * interps.h (interp_ui_out): Remove.
6266 2018-05-25 Tom Tromey <tom@tromey.com>
6268 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6269 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6270 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6272 2018-05-25 Tom Tromey <tom@tromey.com>
6274 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6275 * interps.c (interp_exec): Use scoped_restore.
6277 2018-05-25 Tom Tromey <tom@tromey.com>
6279 * remote.c (remote_target::remote_file_get): Use
6281 (remote_target::remote_file_put): Likewise.
6283 2018-05-25 Tom Tromey <tom@tromey.com>
6285 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6287 (get_pe_section_index, add_pe_exported_sym): Update.
6288 (read_pe_exported_syms): Use gdb::def_vector.
6290 2018-05-25 Tom Tromey <tom@tromey.com>
6292 * frame.c (remove_prev_frame): Remove.
6293 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6295 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6297 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6299 * mips-linux-nat.c (supply_fpregset): Always call
6300 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6301 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6302 `mips_fill_fpregset'.
6303 * mips-linux-tdep.c (mips_supply_fpregset)
6304 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6305 (mips_fill_fpregset_wrapper): Remove functions.
6306 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6307 (mips_linux_fpregset): Remove variable.
6308 (mips_linux_iterate_over_regset_sections): Use
6309 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6310 (mips_linux_o32_sigframe_init): Remove comment.
6312 2018-05-25 Pedro Alves <palves@redhat.com>
6314 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6315 (struct readahead_cache, struct packet_reg, struct
6316 remote_arch_state, class remote_state): Move higher up in the
6318 (remote_target::m_remote_state): Now an object instead of a pointer.
6319 (remote_target::get_remote_state): Adjust.
6321 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6323 * stack.c (select_and_print_frame): Delete.
6324 (struct function_bounds): Move struct within function.
6325 (func_command): Most content moved into new function
6326 find_frame_for_function, use new function, print result, add
6328 (find_frame_for_function): New function, now returns a result.
6330 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6332 * stack.c (iterate_over_block_arg_vars): Fix comment.
6333 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6335 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6339 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6341 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6343 * frame.h (class scoped_restore_selected_frame): New class.
6344 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6345 of any exception, use scoped_restore_selected_frame to restore the
6348 2018-05-24 Pedro Alves <palves@redhat.com>
6350 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6353 2018-05-23 Tom Tromey <tom@tromey.com>
6355 * complaints.c (struct complaints): Remove.
6356 (symfile_complaint_book): Remove.
6357 (series): New global.
6358 (complaint_internal): Update.
6359 (clear_complaints): Update.
6361 2018-05-23 Tom Tromey <tom@tromey.com>
6363 * complaints.c (counters): New global.
6364 (struct complain): Remove.
6365 (struct complaints) <root>: Remove.
6366 (complaint_sentinel): Remove.
6367 (symfile_complaint_book): Update.
6368 (find_complaint) Remove.
6369 (complaint_internal, clear_complaints): Update.
6371 2018-05-23 Tom Tromey <tom@tromey.com>
6373 * complaints.c (struct complain) <file, line>: Remove.
6374 (find_complaint): Remove file, line parameters.
6375 (complaint_internal): Update.
6377 2018-05-23 Tom Tromey <tom@tromey.com>
6379 * complaints.c (vcomplaint): Remove.
6380 (complaint_internal) Merge in contents of vcomplaint.
6382 2018-05-23 Tom Tromey <tom@tromey.com>
6384 * complaints.c (struct complaints) <explanation>: Remove.
6385 (symfile_explanations): Remove.
6386 (symfile_complaint_book): Update.
6387 (vcomplaint): Update.
6388 (struct explanation): Remove.
6390 2018-05-23 Tom Tromey <tom@tromey.com>
6392 * complaints.c (symfile_complaints): Remove.
6393 (complaint_internal): Remove "complaints" parameter.
6394 (clear_complaints, vcomplaint): Remove "c" parameter.
6395 (get_complaints): Remove.
6396 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6397 (dwarf2_debug_line_missing_file_complaint)
6398 (dwarf2_debug_line_missing_end_sequence_complaint)
6399 (dwarf2_complex_location_expr_complaint)
6400 (dwarf2_const_value_length_mismatch_complaint)
6401 (dwarf2_section_buffer_overflow_complaint)
6402 (dwarf2_macro_malformed_definition_complaint)
6403 (dwarf2_invalid_attrib_class_complaint)
6404 (create_addrmap_from_index, dw2_symtab_iter_next)
6405 (dw2_expand_marked_cus)
6406 (dw2_debug_names_iterator::find_vec_in_debug_names)
6407 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6408 (create_debug_type_hash_table, init_cutu_and_read_dies)
6409 (partial_die_parent_scope, add_partial_enumeration)
6410 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6411 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6412 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6413 (create_cus_hash_table, create_dwp_hash_table)
6414 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6415 (dwarf2_rnglists_process, dwarf2_ranges_process)
6416 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6417 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6418 (handle_struct_member_die, process_structure_scope)
6419 (read_array_type, read_common_block, read_module_type)
6420 (read_tag_pointer_type, read_typedef, read_base_type)
6421 (read_subrange_type, load_partial_dies, partial_die_info::read)
6422 (partial_die_info::read, partial_die_info::read)
6423 (partial_die_info::read, read_checked_initial_length_and_offset)
6424 (dwarf2_string_attr, read_formatted_entries)
6425 (dwarf_decode_line_header)
6426 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6427 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6428 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6429 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6430 (get_signatured_type, get_DW_AT_signature_type)
6431 (decode_locdesc, file_file_name, consume_improper_spaces)
6432 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6433 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6434 (dwarf2_symbol_mark_computed, set_die_type)
6435 (read_attribute_value): Update.
6436 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6438 * dbxread.c (unknown_symtype_complaint)
6439 (lbrac_mismatch_complaint, repeated_header_complaint)
6440 (set_namestring, function_outside_compilation_unit_complaint)
6441 (read_dbx_symtab, process_one_symbol): Update.
6442 * gdbtypes.c (stub_noname_complaint): Update.
6443 * windows-nat.c (handle_unload_dll): Update.
6444 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6445 (decode_base_type): Update.
6446 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6447 (eb_complaint, record_include_begin, record_include_end)
6448 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6449 (process_xcoff_symbol, read_symbol)
6450 (function_outside_compilation_unit_complaint)
6451 (scan_xcoff_symtab): Update.
6452 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6453 * buildsym.c (finish_block_internal, make_blockvector)
6454 (end_symtab_get_static_block, augment_type_symtab): Update.
6455 * dtrace-probe.c (dtrace_process_dof)
6456 (dtrace_static_probe_ops::get_probes): Update.
6457 * complaints.h (struct complaint): Don't declare.
6458 (symfile_complaints): Remove.
6459 (complaint_internal): Remove "complaints" parameter.
6460 (complaint): Likewise.
6461 (clear_complaints): Likewise.
6462 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6463 (reread_symbols): Update.
6464 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6465 (dwarf2_frame_cache, decode_frame_entry): Update.
6466 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6467 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6468 (info_selectors_command): Update.
6469 * macrotab.c (macro_include, check_for_redefinition)
6470 (macro_undef): Update.
6471 * objfiles.c (filter_overlapping_sections): Update.
6472 * stabsread.c (invalid_cpp_abbrev_complaint)
6473 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6474 (define_symbol, error_type, read_type, rs6000_builtin_type)
6475 (stabs_method_name_from_physname, read_member_functions)
6476 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6477 (attach_fields_to_type, complain_about_struct_wipeout)
6478 (read_range_type, read_args, common_block_start)
6479 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6481 * mdebugread.c (index_complaint, unknown_ext_complaint)
6482 (basic_type_complaint, bad_tag_guess_complaint)
6483 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6484 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6485 (parse_procedure, parse_lines)
6486 (function_outside_compilation_unit_complaint)
6487 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6488 (bad_tag_guess_complaint, reg_value_complaint): Update.
6489 * cp-support.c (demangled_name_complaint): Update.
6490 * macroscope.c (sal_macro_scope): Update.
6491 * dwarf-index-write.c (class debug_names): Update.
6493 2018-05-23 Tom Tromey <tom@tromey.com>
6495 * complaints.c (clear_complaints): Remove "noisy" parameter.
6496 * complaints.h (clear_complaints): Update.
6497 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6498 (reread_symbols): Update.
6500 2018-05-23 Tom Tromey <tom@tromey.com>
6502 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6504 (vcomplaint, clear_complaints): Update.
6505 (symfile_explanations): Remove some messages.
6507 2018-05-23 Tom Tromey <tom@tromey.com>
6509 * complaints.c (internal_complaint): Remove.
6510 * complaints.h (internal_complaint): Remove.
6512 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6514 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6516 2018-05-22 Pedro Alves <palves@redhat.com>
6518 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6519 (remote_fileio_badfd, remote_fileio_return_errno)
6520 (remote_fileio_return_success, remote_fileio_func_open)
6521 (remote_fileio_func_open, remote_fileio_func_close)
6522 (remote_fileio_func_read, remote_fileio_func_write)
6523 (remote_fileio_func_lseek, remote_fileio_func_rename)
6524 (remote_fileio_func_unlink, remote_fileio_func_stat)
6525 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6526 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6527 remote_target parameter.
6528 (remote_fio_func_map) <func>: Add remote_target parameter.
6529 (do_remote_fileio_request, remote_fileio_request):
6530 * remote-fileio.h (remote_fileio_request):
6531 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6532 remote_target parameter.
6533 (remote_notif_process, handle_notification): Adjust to pass down
6535 (remote_notif_state_allocate): Add remote_target parameter. Save
6537 * remote-notif.h (struct remote_target): Forward declare.
6538 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6539 remote_target parameter.
6540 (struct remote_notif_state) <remote>: New field.
6541 (remote_notif_ack, remote_notif_parse): Add remote_target
6543 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6544 remote_target parameter.
6545 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6546 (threads_listing_context, rmt_thread_action, protocol_feature)
6547 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6548 (packet_result, struct threads_listing_context, remote_state):
6549 Move definitions and declarations higher up.
6550 (remote_target) <~remote_target>: Declare.
6551 (remote_download_command_source, remote_file_put, remote_file_get)
6552 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6553 (remote_hostio_pread_vFile, remote_hostio_send_command)
6554 (remote_hostio_set_filesystem, remote_hostio_open)
6555 (remote_hostio_close, remote_hostio_unlink, remote_state)
6556 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6557 (get_memory_write_packet_size, get_memory_read_packet_size)
6558 (append_pending_thread_resumptions, remote_detach_1)
6559 (append_resumption, remote_resume_with_vcont)
6560 (add_current_inferior_and_thread, wait_ns, wait_as)
6561 (process_stop_reply, remote_notice_new_inferior)
6562 (process_initial_stop_replies, remote_add_thread)
6563 (btrace_sync_conf, remote_btrace_maybe_reopen)
6564 (remove_new_fork_children, kill_new_fork_children)
6565 (discard_pending_stop_replies, stop_reply_queue_length)
6566 (check_pending_events_prevent_wildcard_vcont)
6567 (discard_pending_stop_replies_in_queue, stop_reply)
6568 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6569 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6570 (remote_interrupt_as, remote_interrupt_ns)
6571 (remote_get_noisy_reply, remote_query_attached)
6572 (remote_add_inferior, remote_current_thread, get_current_thread)
6573 (set_thread, set_general_thread, set_continue_thread)
6574 (set_general_process, write_ptid)
6575 (remote_unpack_thread_info_response, remote_get_threadinfo)
6576 (parse_threadlist_response, remote_get_threadlist)
6577 (remote_threadlist_iterator, remote_get_threads_with_ql)
6578 (remote_get_threads_with_qxfer)
6579 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6580 (get_offsets, remote_check_symbols, remote_supported_packet)
6581 (remote_query_supported, remote_packet_size)
6582 (remote_serial_quit_handler, remote_detach_pid)
6583 (remote_vcont_probe, remote_resume_with_hc)
6584 (send_interrupt_sequence, interrupt_query)
6585 (remote_notif_get_pending_events, fetch_register_using_p)
6586 (send_g_packet, process_g_packet, fetch_registers_using_g)
6587 (store_register_using_P, store_registers_using_G)
6588 (set_remote_traceframe, check_binary_download)
6589 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6590 (remote_xfer_live_readonly_partial, remote_read_bytes)
6591 (remote_send_printf, remote_flash_write, readchar)
6592 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6593 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6594 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6595 (extended_remote_disable_randomization, extended_remote_run)
6596 (send_environment_packet, extended_remote_environment_support)
6597 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6598 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6599 (packet_command): Now methods of ...
6600 (remote_target): ... this class.
6601 (m_remote_state) <remote_target>: New field.
6602 (struct remote_state) <stop_reply_queue,
6603 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6605 (remote_state::remote_state): Allocate stop_reply_queue.
6606 (remote_state): Delete global.
6607 (get_remote_state_raw): Delete.
6608 (remote_target::get_remote_state): Allocate m_remote_state on
6610 (get_current_remote_target): New.
6611 (remote_ops, extended_remote_ops): Delete.
6612 (wait_forever_enabled_p, remote_async_inferior_event_token):
6613 Delete, moved to struct remote_state.
6614 (remote_target::close): Delete self. Destruction bits split to
6616 (remote_target::~remote_target): ... this.
6617 (show_memory_packet_size): Adjust to use
6618 get_current_remote_target.
6619 (struct protocol_feature) <func>: Add remote_target parameter.
6620 All callers adjusted.
6621 (curr_quit_handler_target): New.
6622 (remote_serial_quit_handler): Reimplement.
6623 (remote_target::open_1): Adjust to use get_current_remote_target.
6624 Heap-allocate remote_target/extended_remote_target instances.
6625 (vcont_builder::vcont_builder): Add remote_target parameter, and
6626 save it in m_remote. All callers adjusted.
6627 (vcont_builder::m_remote): New field.
6628 (vcont_builder::restart, vcont_builder::flush)
6629 (vcont_builder::push_action): Use it.
6630 (remote_target::commit_resume): Use it.
6631 (struct queue_iter_param) <remote>: New field.
6632 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6633 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6634 (check_pending_event_prevents_wildcard_vcont_callback)
6635 (remote_target::check_pending_events_prevent_wildcard_vcont)
6636 (remote_target::discard_pending_stop_replies)
6637 (remote_target::discard_pending_stop_replies_in_queue)
6638 (remote_target::remote_notif_remove_queued_reply): Fill in
6640 (remote_notif_get_pending_events): New.
6641 (remote_target::readchar, remote_target::remote_serial_write):
6642 Save/restore curr_quit_handler_target.
6644 (kill_new_fork_children): Fill in 'remote' field.
6645 (packet_command): Use get_current_remote_target, defer to
6646 remote_target method of same name.
6647 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6648 parameter, and save it in m_remote. All callers adjusted.
6649 (scoped_remote_fd::release): Use m_remote.
6650 (scoped_remote_fd::m_remote): New field.
6651 (remote_file_put, remote_file_get, remote_file_delete): Use
6652 get_current_remote_target, defer to remote_target method of same
6654 (remote_btrace_reset): Add remote_state paremeter. Update all
6656 (remote_async_inferior_event_handler). Pass down 'data'.
6657 (remote_new_objfile): Use get_current_remote_target.
6658 (remote_target::vcont_r_supported): New.
6659 (set_range_stepping): Use get_current_remote_target and
6660 remote_target::vcont_r_supported.
6661 (_initialize_remote): Don't allocate 'remote_state' and
6662 'stop_reply_queue' globals.
6663 * remote.h (struct remote_target): Forward declare.
6664 (getpkt, putpkt, remote_notif_get_pending_events): Add
6665 'remote_target' parameter.
6667 2018-05-22 Pedro Alves <palves@redhat.com>
6669 * remote.c (vcont_builder): Now a class. Make all data members
6671 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6673 (vcont_builder_restart): Rename to ...
6674 (vcont_builder::restart): ... this.
6675 (vcont_builder_flush): Rename to ...
6676 (vcont_builder::flush): ... this.
6677 (vcont_builder_push_action): Rename to ...
6678 (vcont_builder::push_action): ... this.
6679 (remote_target::commit_resume): Adjust.
6681 2018-05-22 Pedro Alves <palves@redhat.com>
6683 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6684 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6685 (get_fixed_memory_packet_size): New.
6686 (get_memory_packet_size): Use it.
6687 (set_memory_packet_size): Don't override the config size with
6688 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6689 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6690 Don't refer to get_memory_packet_size if not connected to a remote
6691 target. Show "(default)" if configured size is 0.
6693 2018-05-22 Pedro Alves <palves@redhat.com>
6695 * remote.c (remote_target::mourn_inferior): Move
6696 discard_pending_stop_replies call here from ...
6697 (_initialize_remote): ... here.
6699 2018-05-22 Pedro Alves <palves@redhat.com>
6701 * remote.c (compare_section_command): Remove set_general_process
6704 2018-05-22 Pedro Alves <palves@redhat.com>
6706 * remote.c (struct packet_reg, struct remote_arch_state):
6707 Move higher up in the file.
6708 (remote_state) <m_arch_states>: Store remote_arch_state values
6709 instead of remote_arch_state pointers.
6710 (remote_state::get_remote_arch_state): Adjust.
6712 2018-05-22 Pedro Alves <palves@redhat.com>
6714 * remote.c: Include <unordered_map>.
6715 (remote_state): Now a class.
6716 (remote_state) <get_remote_arch_state>: Declare method.
6717 <get_remote_arch_state>: New field.
6718 (remote_arch_state) <remote_arch_state>: Declare ctor.
6719 <regs>: Now a unique_ptr.
6720 (remote_gdbarch_data_handle): Delete.
6721 (get_remote_arch_state): Delete.
6722 (remote_state::get_remote_arch_state): New.
6723 (get_remote_state): Adjust to call remote_state's
6724 get_remote_arch_state method.
6725 (init_remote_state): Delete, bits factored out to ...
6726 (remote_arch_state::remote_arch_state): ... this new method.
6727 (get_remote_packet_size, get_memory_packet_size)
6728 (process_g_packet, remote_target::fetch_registers)
6729 (remote_target::prepare_to_store, store_registers_using_G)
6730 (remote_target::store_registers, remote_target::get_trace_status):
6731 Adjust to call remote_state's method.
6732 (_initialize_remote): Remove reference to
6733 remote_gdbarch_data_handle.
6735 2018-05-22 Pedro Alves <palves@redhat.com>
6737 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6738 pread>: New method declarations.
6739 (remote_target::open_1): Adjust.
6740 (readahead_cache_invalidate): Rename to ...
6741 (readahead_cache::invalidate): ... this, and adjust to be a class
6743 (readahead_cache_invalidate_fd): Rename to ...
6744 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6746 (remote_hostio_pwrite): Adjust.
6747 (remote_hostio_pread_from_cache): Rename to ...
6748 (readahead_cache::pread): ... this, and adjust to be a class
6750 (remote_hostio_close): Adjust.
6752 2018-05-22 Pedro Alves <palves@redhat.com>
6754 * remote.c (remote_hostio_close_cleanup): Delete.
6755 (class scoped_remote_fd): New.
6756 (remote_file_put, remote_file_get): Use it.
6758 2018-05-22 Pedro Alves <palves@redhat.com>
6760 (struct vCont_action_support): Use bool and initialize all fields.
6761 (struct readahead_cache): Initialize all fields.
6762 (remote_state): Use bool and initialize all fields.
6763 (remote_state::remote_state, remote_state::~remote_state): New.
6764 (new_remote_state): Delete.
6765 (_initialize_remote): Use new to allocate remote_state.
6767 2018-05-22 Pedro Alves <palves@redhat.com>
6771 * c-exp.y: Include "c-support.h".
6772 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6773 of tolower. Use c_ident_is_alpha to scan names.
6774 * c-lang.c: Include "c-support.h".
6775 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6776 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6777 * c-support.h: New file, with bits factored out from ...
6778 * cp-name-parser.y: ... this file.
6779 Include "c-support.h".
6780 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6781 c-support.h and renamed.
6782 (symbol_end, yylex): Adjust.
6784 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6786 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6787 parameter type to CORE_ADDR.
6788 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6789 parameter type in declaration to CORE_ADDR.
6790 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6791 target_auxv_search to get AT_HWCAP and use the result to get the
6793 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6794 to CORE_ADDR. Remove the cast of the return value to unsigned
6795 long. Fix error predicate of target_auxv_search.
6796 (ppc_linux_nat_target::read_description): Change the type of the
6797 hwcap variable to CORE_ADDR.
6799 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6801 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6802 if the size of fpscr is larger than 32 bits.
6804 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6806 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6807 (ppc32_linux_vsxregmap): New global.
6808 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6809 regcache_supply_regset, and regcache_collect_regset.
6810 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6811 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6812 (fetch_vsx_register, store_vsx_register): Remove.
6813 (fetch_vsx_registers): Add regno parameter. Get regset using
6814 ppc_linux_vsxregset. Use regset to supply registers.
6815 (store_vsx_registers): Add regno parameter. Get regset using
6816 ppc_linux_vsxregset. Use regset to collect registers.
6817 (fetch_register): Call fetch_vsx_registers instead of
6819 (store_register): Call store_vsx_registers instead of
6821 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6822 new regno parameter.
6823 (store_ppc_registers): Call store_vsx_registers with -1 for the
6824 new regno parameter.
6825 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6826 (ppc_collect_vsxregset): Remove.
6828 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6830 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6832 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6833 for vector register offset fields.
6834 (ppc64_fbsd_reg_offsets): Likewise.
6835 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6836 to vector register offset fields.
6837 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6838 to vector register offset fields.
6839 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6840 vector register offset fields.
6841 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6842 initializers for vector register offset fields.
6843 (rs6000_aix64_reg_offsets): Likewise.
6844 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6845 (ppc_supply_vrregset): Remove.
6846 (ppc_collect_vrregset): Remove.
6847 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6848 (ppc_linux_vrregset) : New function.
6849 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6850 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6851 (ppc32_linux_vrregset): Remove.
6852 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6853 and use result instead of ppc32_linux_vrregset.
6854 (ppc32_linux_reg_offsets): Remove initializers for vector register
6856 (ppc64_linux_reg_offsets): Likewise.
6857 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6858 * ppc-linux-nat.c: Include regset.h.
6859 (gdb_vrregset_t): Adjust comment to account for little-endian
6861 (supply_vrregset, fill_vrregset): Remove.
6862 (fetch_altivec_register, store_altivec_register): Remove.
6863 (fetch_altivec_registers): Add regno parameter. Get regset using
6864 ppc_linux_vrregset. Use regset to supply registers.
6865 (store_altivec_registers): Add regno parameter. Get regset using
6866 ppc_linux_vrregset. Use regset to collect registers.
6867 (fetch_register): Call fetch_altivec_registers instead of
6868 fetch_altivec_register.
6869 (store_register): Call store_altivec_registers instead of
6870 store_altivec_register.
6871 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6872 the new regno parameter.
6873 (store_ppc_registers): Call store_altivec_registers with -1 for
6874 the new regno parameter.
6876 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6878 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6879 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6880 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6881 (gdb_vrregset_t): Change array type size to
6882 PPC_LINUX_SIZEOF_VRREGSET.
6883 (gdb_vsxregset_t): Change array type size to
6884 PPC_LINUX_SIZEOF_VSXREGSET.
6885 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6886 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6887 PPC_LINUX_SIZEOF_VSXREGSET.
6889 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6891 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6892 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6894 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6895 ppc_linux_target_wordsize with tid.
6896 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6898 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6899 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6900 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6901 tid parameter. Remove static specifier.
6902 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6903 (ppc_linux_target_wordsize): New declaration.
6905 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6907 * arch/ppc-linux-common.c: New file.
6908 * arch/ppc-linux-common.h: New file.
6909 * arch/ppc-linux-tdesc.h: New file.
6910 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6911 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6912 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6913 arch/ppc-linux-tdesc.h.
6914 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6915 arch/ppc-linux-tdesc.h.
6916 (ppc_linux_nat_target::read_description): Remove target
6917 description matching code. Fill a ppc_linux_features struct and
6918 call ppc_linux_match_description with it. Move comment about ISA
6919 2.05 to ppc-linux-common.c.
6920 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6921 arch/ppc-linux-tdesc.h.
6922 (ppc_linux_core_read_description): Remove target description
6923 matching code. Fill a ppc_linux_features struct and call
6924 ppc_linux_match_description with it.
6925 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6926 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6927 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6928 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6929 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6930 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6931 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6932 (tdesc_powerpc_e500l): Remove.
6934 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6936 * ada-lang.c (catch_assert_command): Pass empty string instead
6937 of NULL for excep_string argument.
6939 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6941 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6942 the width of the requested register exceeds the width of the
6945 2018-05-21 Tom Tromey <tom@tromey.com>
6947 * printcmd.c (output_command): Remove.
6948 (output_command_const): Rename to output_command.
6949 * valprint.h (output_command): Rename from output_command_const.
6950 * tracepoint.c (trace_dump_actions): Call output_command.
6952 2018-05-21 Tom Tromey <tom@tromey.com>
6954 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
6955 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
6956 * ada-lang.h (create_ada_exception_catchpoint): Update.
6957 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
6959 (create_excep_cond_exprs, ~ada_catchpoint)
6960 (should_stop_exception, print_one_exception)
6961 (print_mention_exception, print_recreate_exception): Update.
6962 (ada_get_next_arg): Remove.
6963 (catch_ada_exception_command_split): Use std::string. Change type
6964 of "excep_string", "cond_string".
6965 (catch_ada_exception_command): Update.
6966 (create_ada_exception_catchpoint): Change type of excep_string.
6967 (ada_exception_sal): Remove excep_string parameter.
6968 (~ada_catchpoint): Remove.
6970 2018-05-21 Tom Tromey <tom@tromey.com>
6972 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
6975 2018-05-21 Tom Tromey <tom@tromey.com>
6977 * ada-lang.c (ada_exception_message_1, ada_exception_message):
6978 Return unique_xmalloc_ptr.
6979 (print_it_exception): Update.
6981 2018-05-21 Tom Tromey <tom@tromey.com>
6983 * tracepoint.c (trace_dump_actions): Use std::string.
6985 2018-05-21 Tom Tromey <tom@tromey.com>
6987 * symfile.c (reread_symbols): Use std::string for original_name.
6989 2018-05-21 Tom Tromey <tom@tromey.com>
6991 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
6992 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
6995 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
6997 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
6999 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7000 * objfiles.c (get_objfile_bfd_data): Allocate
7001 objfile_per_bfd_storage with obstack_new when allocating on
7004 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7006 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7008 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7009 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7010 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7011 (add_pending): Likewise.
7012 (parse_symbol): Likewise.
7013 (parse_partial_symbols): Likewise.
7014 (psymtab_to_symtab_1): Likewise.
7015 (new_psymtab): Likewise.
7016 (elfmdebug_build_psymtabs): Likewise.
7017 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7018 * objfiles.c (get_objfile_bfd_data): Likewise.
7019 (objfile_register_static_link): Likewise.
7020 * psymtab.c (allocate_psymtab): Likewise.
7021 * stabsread.c (read_member_functions): Likewise.
7022 * xcoffread.c (xcoff_end_psymtab): Likewise.
7024 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7026 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7027 compiler supports std::is_trivially_constructible.
7028 * common/poison.h: Include obstack.h.
7029 (IsMallocable): Define to is_trivially_constructible if the
7030 compiler supports it, define to true_type otherwise.
7034 (XOBNEWVEC): Redefine.
7035 * gdb_obstack.h (obstack_zalloc): New.
7036 (OBSTACK_ZALLOC): Redefine.
7037 (obstack_calloc): New.
7038 (OBSTACK_CALLOC): Redefine.
7040 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7041 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7043 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7044 obstack_calloc/obstack_zalloc.
7045 (gdbarch_obstack_zalloc): Remove.
7046 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7048 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7050 * stack.c (backtrace_command_1): Remove useless variable int i.
7052 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7054 * stack.c (print_frame_info): Fix comment.
7056 2018-05-18 Tom Tromey <tom@tromey.com>
7058 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7059 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7060 (~dwarf2_per_objfile): Update
7061 (dwarf2_get_dwz_file): Use new.
7062 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7065 2018-05-18 Tom Tromey <tom@tromey.com>
7067 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7069 * dwarf2read.c (struct dwp_file): Add constructor and
7071 (open_and_init_dwp_file): Return a unique_ptr.
7072 (dwarf2_per_objfile, create_dwp_hash_table)
7073 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7074 (lookup_dwo_unit_in_dwp): Update.
7075 (open_and_init_dwp_file, get_dwp_file): Update.
7077 2018-05-18 Tom Tromey <tom@tromey.com>
7079 * dwarf2read.c (dwarf2_per_objfile): Update.
7080 (struct mapped_index): Add initializers.
7081 (dwarf2_read_index): Use new.
7082 (dw2_symtab_iter_init): Update.
7083 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7086 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7088 * dwarf2read.c (mapped_index) <total_size>: Remove.
7090 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7092 * unittests/format_pieces-selftests.c (test_format_specifier):
7095 2018-05-18 Tom Tromey <tom@tromey.com>
7097 * c-typeprint.c (maybe_print_hole): New function.
7098 (c_print_type_struct_field_offset): Update.
7099 (c_type_print_base_struct_union): Call maybe_print_hole.
7101 2018-05-17 Keith Seitz <keiths@redhat.com>
7103 * breakpoint.c (build_bpstat_chain): New function, moved from
7105 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7106 If no stop chain is passed, call build_bpstat_chain to build it.
7107 * breakpoint.h (build_bpstat_chain): Declare.
7108 (bpstat_stop_status): Move documentation here from breakpoint.c.
7109 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7110 build the stop chain and pass it to skip_inline_frames.
7111 Pass this stop chain to bpstat_stop_status.
7112 * inline-frame.c: Include breakpoint.h.
7113 (stopped_by_user_bp_inline_frame): New function.
7114 (skip_inline_frames): Add parameter `stop_chain'.
7115 Move documention to inline-frame.h.
7116 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7117 whether the frame should be elided.
7118 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7119 Add moved documentation and update for new parameter.
7121 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7124 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7125 unittests/format_pieces-selftests.c.
7126 * common/format.h (format_piece) <operator==>: New.
7127 (format_pieces) <operator[]>: Remove.
7128 * common/format.c (format_pieces::format_pieces): Handle \e.
7129 * unittests/format_pieces-selftests.c: New.
7131 2018-05-17 Tom Tromey <tom@tromey.com>
7134 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7135 (dw2_instantiate_symtab): Add skip_partial parameter.
7136 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7137 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7138 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7139 (dw2_expand_symtabs_matching_one)
7140 (dw2_find_pc_sect_compunit_symtab)
7141 (dw2_debug_names_lookup_symbol)
7142 (dw2_debug_names_expand_symtabs_for_function): Update.
7143 (init_cutu_and_read_dies): Add skip_partial parameter.
7144 (process_psymtab_comp_unit, build_type_psymtabs_1)
7145 (process_skeletonless_type_unit, load_partial_comp_unit)
7146 (psymtab_to_symtab_1): Update.
7147 (load_full_comp_unit): Add skip_partial parameter.
7148 (process_imported_unit_die, dwarf2_read_addr_index)
7149 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7150 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7151 (read_signatured_type): Update.
7153 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7155 * value.c (release_value): Remove unused variable.
7156 (record_latest_value): Likewise.
7157 (access_value_history): Likewise.
7158 (preserve_values): Likewise.
7160 2018-05-17 Tom Tromey <tom@tromey.com>
7162 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7165 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7168 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7169 Also handle registers whose width is not a multiple of
7171 (linux_nat_trad_target::store_register): Likewise.
7173 2018-05-16 Tom Tromey <tom@tromey.com>
7175 * gdbcore.h (core_bfd): Redefine.
7176 * corelow.c (core_target::close): Update.
7177 (core_target_open): Update.
7178 * progspace.h (struct program_space) <cbfd>: Now a
7181 2018-05-16 Tom Tromey <tom@tromey.com>
7184 * symfile-add-flags.h (enum symfile_add_flags)
7185 <SYMFILE_NOT_FILENAME>: New constant.
7186 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7187 objfile name from BFD.
7188 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7189 * minidebug.c (find_separate_debug_file_in_section): Put
7190 ".gnu_debugdata" into BFD's file name.
7192 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7194 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7197 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7200 * aarch64-tdep.c (aarch64_analyze_prologue,
7201 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7202 Indicate not interested in errors.
7204 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7206 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7207 Supply the MIPS_ZERO_REGNUM register.
7209 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7211 * mips-tdep.c (mask_address_var): Make variable static.
7213 2018-05-14 Tom Tromey <tom@tromey.com>
7215 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7217 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7219 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7220 FXSAVE_ADDR for the mxcsr register.
7222 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7224 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7226 2018-05-11 Pedro Alves <palves@redhat.com>
7228 * corelow.c (core_target) <core_target>: No longer inline.
7229 Initialize m_core_gdbarch, m_core_vec and build the section table
7231 <~core_target>: New.
7232 <core_gdbarch, get_core_register_section>: New methods.
7233 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7234 factored out from ...
7235 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7237 (sniff_core_bfd): Add gdbarch parameter.
7238 (core_close): Delete, merged into ...
7239 (core_target::close): ... here. Delete self.
7240 (core_close_cleanup): Delete.
7241 (core_target_open): Allocate a core_target on the heap. Use a
7242 unique_ptr instead of a cleanup. Bits moved into the core_target
7243 ctor. Adjust to use core_target methods instead of globals.
7244 (get_core_register_section): Rename to ...
7245 (core_target::get_core_register_section): ... this and adjust.
7246 (struct get_core_registers_cb_data): New.
7247 (get_core_registers_cb): Use it. Use bool.
7248 (core_target::fetch_registers, core_target::files_info)
7249 (core_target::xfer_partial, core_target::read_description)
7250 (core_target::pid_to, core_target::thread_name): Adjust to
7251 reference class fields instead of globals.
7252 * target.h (struct target_ops_deleter, target_ops_up): New.
7254 2018-05-11 Pedro Alves <palves@redhat.com>
7256 * corefile.c (core_file_command): Move to corelow.c.
7257 * corelow.c (the_core_target): Delete.
7258 (core_file_command): Moved from corefile.c. Check exec_bfd
7259 instead of the_core_target. Use target_detach instead of calling
7260 into the_core_target directly.
7261 (maybe_say_no_core_file_now): New.
7262 (core_target::detach): Use it.
7263 (_initialize_corelow): Remove references to the_core_target.
7264 * gdbcore.h (the_core_target): Delete.
7266 2018-05-11 Tom Tromey <tromey@redhat.com>
7267 Pedro Alves <palves@redhat.com>
7269 * corefile.c (core_bfd): Remove.
7270 * gdbcore.h (core_bfd): Now a macro.
7271 * progspace.h (struct program_space) <cbfd>: New field.
7273 2018-05-11 Tom Tromey <tom@tromey.com>
7275 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7278 2018-05-10 Tom Tromey <tom@tromey.com>
7280 * configure: Rebuild.
7281 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7283 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7286 * regformats/regdat.sh: Adjust script, following the addition
7287 of the new expedite_regs parameter to init_target_desc.
7289 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7292 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7293 set_gdbarch_significant_addr_bit.
7294 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7295 set_gdbarch_significant_addr_bit.
7296 * utils.c (address_significant): Update to sign extend addr.
7298 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7300 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7301 (xtensa_linux_init_abi): Limit tdep->num_regs by
7302 tdep->num_nopriv_regs.
7303 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7304 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7307 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7309 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7311 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7313 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7314 (I387_MXCSR_INIT_VAL): New constant.
7315 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7316 buffer if it was supplied by the inferior.
7317 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7318 (i387_xsave_get_clear_bv): New function.
7319 (i387_supply_xsave): Only read x87 control registers from the
7320 xsave buffer if the feature is enabled, and the state will have
7321 been written, otherwise, provide a suitable default.
7322 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7323 including x87 control registers. Update control registers if they
7324 have changed from the default value, and mark features as enabled
7326 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7328 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7330 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7332 2018-05-07 Tom Tromey <tom@tromey.com>
7334 * configure: Rebuild.
7335 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7337 2018-05-07 Tom Tromey <tom@tromey.com>
7340 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7341 bit. Use correct value for VDIV.
7343 2018-05-04 Tom Tromey <tom@tromey.com>
7345 * configure: Rebuild.
7346 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7348 2018-05-04 Tom Tromey <tom@tromey.com>
7350 * linux-record.c (record_linux_system_call) <case
7351 RECORD_SYS_RECVFROM>: Add "break".
7353 2018-05-04 Tom Tromey <tom@tromey.com>
7355 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7356 Add missing "break".
7357 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7358 Add missing "break".
7360 2018-05-04 Tom Tromey <tom@tromey.com>
7362 * rs6000-tdep.c (ppc_process_record_op4)
7363 (ppc_process_record_op63): Add fall-through comment.
7365 2018-05-04 Tom Tromey <tom@tromey.com>
7367 * i386-tdep.c (i386_process_record): Add fall-through comment.
7369 2018-05-04 Tom Tromey <tom@tromey.com>
7371 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7374 2018-05-04 Tom Tromey <tom@tromey.com>
7376 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7377 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7378 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7380 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7382 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7385 2018-05-04 Tom Tromey <tom@tromey.com>
7387 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7389 2018-05-04 Tom Tromey <tom@tromey.com>
7391 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7392 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7393 * symfile.c (section_is_mapped): Fix fall-through comment.
7394 * stabsread.c (define_symbol, read_member_functions): Fix
7395 fall-through comment.
7396 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7398 * remote.c (remote_wait_as): Fix fall-through comment.
7399 * p-exp.y (yylex): Fix fall-through comment.
7400 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7402 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7403 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7404 * jv-exp.y (yylex): Fix fall-through comment.
7405 * go-exp.y (lex_one_token): Fix fall-through comment.
7406 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7407 fall-through comment.
7408 * f-exp.y (yylex): Fix fall-through comment.
7409 * dwarf2read.c (process_die): Fix fall-through comments.
7410 * dbxread.c (process_one_symbol): Fix fall-through comment.
7411 * d-exp.y (lex_one_token): Fix fall-through comment.
7412 * cp-name-parser.y (yylex): Fix fall-through comment.
7413 * coffread.c (coff_symtab_read): Fix fall-through comment.
7414 * c-exp.y (lex_one_token): Fix fall-through comment.
7415 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7417 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7420 2018-05-04 Tom Tromey <tom@tromey.com>
7423 * NEWS: Mention gdb.execute change.
7424 * gdbcmd.h (execute_control_command): Don't declare.
7425 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7426 execute_control_commands, execute_control_commands_to_string.
7427 * cli/cli-script.h (execute_control_commands)
7428 (execute_control_commands_to_string): Declare.
7429 (execute_control_command): Add from_tty parameter.
7430 * cli/cli-script.c (execute_control_commands)
7431 (execute_control_commands_to_string): New functions.
7432 (execute_user_command): Use execute_control_commands.
7433 (execute_control_command_1): Add "from_tty" parameter. Update.
7434 (execute_control_command): Likewise.
7436 2018-05-04 Tom Tromey <tom@tromey.com>
7439 * NEWS: Mention that breakpoint commands are writable.
7440 * python/py-breakpoint.c (bppy_set_commands): New function.
7441 (breakpoint_object_getset) <"commands">: Use it.
7443 2018-05-04 Tom Tromey <tom@tromey.com>
7445 * tracepoint.c (actions_command): Update.
7446 * mi/mi-cmd-break.c (mi_command_line_array)
7447 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7448 (mi_read_next_line): Remove.
7449 (mi_cmd_break_commands): Update.
7450 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7452 * cli/cli-script.c (get_command_line): Update.
7453 (process_next_line): Use function_view. Constify.
7454 (recurse_read_control_structure, read_command_lines)
7455 (read_command_lines_1): Change argument types to function_view.
7456 (do_define_command, document_command): Update.
7457 * breakpoint.h (check_tracepoint_command): Don't declare.
7458 * breakpoint.c (check_tracepoint_command): Remove.
7459 (commands_command_1, create_tracepoint_from_upload): Update.
7461 2018-05-04 Tom Tromey <tom@tromey.com>
7464 * cli/cli-script.h (enum command_control_type) <define_control>:
7466 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7467 (build_command_line, execute_control_command_1)
7468 (process_next_line): Likewise.
7469 (do_define_command): New function, extracted from define_command.
7470 (define_command): Use it.
7472 2018-05-04 Tom Tromey <tom@tromey.com>
7474 * tracepoint.c (actions_command): Update.
7475 * cli/cli-script.h (read_command_lines): Update.
7476 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7477 (MAX_TMPBUF): Remove define.
7478 (define_command): Use string_printf.
7479 (document_command): Likewise.
7480 * breakpoint.c (commands_command_1): Update.
7482 2018-05-04 Tom Tromey <tom@tromey.com>
7484 * top.c (execute_command): Update.
7485 * cli/cli-script.h (print_command_lines): Now varargs.
7486 * cli/cli-script.c (print_command_lines): Now varargs.
7487 (execute_control_command_1) <case while_control, case if_control>:
7490 2018-05-04 Tom Tromey <tom@tromey.com>
7492 * tracepoint.c (all_tracepoint_actions): Rename from
7493 all_tracepoint_actions_and_cleanup. Change return type.
7494 (actions_command, encode_actions_1, encode_actions)
7495 (trace_dump_actions, tdump_command): Update.
7496 * remote.c (remote_download_command_source): Update.
7497 * python/python.c (gdbpy_eval_from_control_command)
7498 (python_command, python_interactive_command): Update.
7499 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7500 * guile/guile.c (guile_command)
7501 (gdbscm_eval_from_control_command, guile_command): Update.
7502 * compile/compile.c (compile_code_command)
7503 (compile_print_command, compile_to_object): Update.
7504 * cli/cli-script.h (struct command_lines_deleter): New.
7505 (counted_command_line): New typedef.
7506 (struct command_line): Add constructor, destructor.
7507 <body_list>: Remove.
7508 <body_list_0, body_list_1>: New members.
7509 (command_line_up): Remove typedef.
7510 (read_command_lines, read_command_lines_1, get_command_line):
7512 (copy_command_lines): Don't declare.
7513 * cli/cli-script.c (build_command_line): Use "new".
7514 (get_command_line): Return counted_command_line.
7515 (print_command_lines, execute_user_command)
7516 (execute_control_command_1, while_command, if_command): Update.
7517 (realloc_body_list): Remove.
7518 (process_next_line, recurse_read_control_structure): Update.
7519 (read_command_lines, read_command_lines_1): Return counted_command_line.
7520 (free_command_lines): Use "delete".
7521 (copy_command_lines): Remove.
7522 (define_command, document_command, show_user_1): Update.
7523 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7524 a counted_command_line.
7525 * breakpoint.h (counted_command_line): Remove typedef.
7526 (breakpoint_set_commands): Update.
7527 * breakpoint.c (check_no_tracepoint_commands)
7528 (validate_commands_for_breakpoint): Update.
7529 (breakpoint_set_commands): Change commands to be a
7530 counted_command_line.
7531 (commands_command_1, update_dprintf_command_list)
7532 (create_tracepoint_from_upload): Update.
7534 2018-05-04 Tom Tromey <tom@tromey.com>
7536 * cli/cli-decode.h (cmd_list_element): New constructor.
7537 (~cmd_list_element): New destructor.
7538 (struct cmd_list_element): Add initializers.
7539 * cli/cli-decode.c (do_add_cmd): Use "new".
7540 (delete_cmd): Use "delete".
7542 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7543 Pedro Alves <palves@redhat.com>
7545 PR breakpoints/19806 and support for PR external/20207.
7546 * NEWS: Mention Aarch64 watchpoint improvements.
7547 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7548 watchpoints and PR external/20207 watchpoints.
7549 * nat/aarch64-linux-hw-point.c
7550 (kernel_supports_any_contiguous_range): New.
7551 (aarch64_watchpoint_offset): New.
7552 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7553 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7554 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7555 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7556 next_addr_orig_p. Support PR external/20207 watchpoints.
7557 (aarch64_downgrade_regs): New.
7558 (aarch64_dr_state_insert_one_point): New parameters offset and
7560 (aarch64_dr_state_remove_one_point): Likewise.
7561 (aarch64_handle_breakpoint): Update caller.
7562 (aarch64_handle_aligned_watchpoint): Likewise.
7563 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7565 (aarch64_linux_set_debug_regs): Remove const from state. Call
7566 aarch64_downgrade_regs.
7567 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7568 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7569 (DR_CONTROL_MASK): ... this.
7570 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7571 (unsigned int aarch64_watchpoint_offset): New prototype.
7572 (aarch64_linux_set_debug_regs): Remove const from state.
7573 * utils.c (align_up, align_down): Move to ...
7574 * common/common-utils.c (align_up, align_down): ... here.
7575 * utils.h (align_up, align_down): Move to ...
7576 * common/common-utils.h (align_up, align_down): ... here.
7578 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7580 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7581 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7582 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7583 Re-implement to match the ABI as summarized in GCC's
7584 gcc/config/sparc/sparc.c. All callers updated.
7585 (sparc32_store_arguments): Remove assertion.
7587 2018-05-04 Tom Tromey <tom@tromey.com>
7589 * printcmd.c: Don't include tui.h.
7590 (decode_format): Use skip_spaces.
7592 2018-05-04 Tom Tromey <tom@tromey.com>
7595 * printcmd.c (last_count): New global.
7596 (x_command): Use saved count when repeating.
7598 2018-05-04 Tom Tromey <tom@tromey.com>
7600 * nto-procfs.c (do_closedir_cleanup): Remove.
7601 (procfs_pidlist): Use gdb_dir_up.
7602 * procfs.c (do_closedir_cleanup): Remove.
7603 (proc_update_threads): Use gdb_dir_up.
7604 * common/filestuff.h (struct gdb_dir_deleter): New.
7605 (gdb_dir_up): New typedef.
7607 2018-05-04 Tom Tromey <tom@tromey.com>
7609 * ada-lang.c (print_mention_exception): Use std::string.
7611 2018-05-04 Tom Tromey <tom@tromey.com>
7613 * ada-lang.c (create_excep_cond_exprs): Update.
7614 (ada_exception_catchpoint_cond_string): Use std::string.
7616 2018-05-04 Tom Tromey <tom@tromey.com>
7618 * ada-lang.c (xget_renaming_scope): Return std::string.
7619 (old_renaming_is_invisible): Update.
7621 2018-05-04 Tom Tromey <tom@tromey.com>
7623 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7624 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7626 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7628 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7630 2018-05-04 Tom Tromey <tom@tromey.com>
7632 * remote.c (remote_query_supported_append): Change type.
7633 (remote_check_symbols): Update.
7635 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7638 * configure.ac: Prepend libpython.
7639 * python/python-config.py: Likewise.
7640 * configure: Regenerate.
7642 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7644 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7646 2018-05-03 Pedro Alves <palves@redhat.com>
7649 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7650 override. Write 'true' instead of '1'.
7651 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7654 2018-05-02 Pedro Alves <palves@redhat.com>
7656 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7657 add_inf_child_target.
7658 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7659 add_inf_child_target.
7660 * aix-thread.c (aix_thread_target_info): New.
7661 (aix_thread_target) <shortname, longname, doc>: Delete.
7663 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7664 add_inf_child_target.
7665 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7666 add_inf_child_target.
7667 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7668 add_inf_child_target.
7669 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7670 add_inf_child_target.
7671 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7672 add_inf_child_target.
7673 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7674 add_inf_child_target.
7675 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7676 add_inf_child_target.
7677 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7678 add_inf_child_target.
7679 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7680 add_inf_child_target.
7681 * bfd-target.c (target_bfd_target_info): New.
7682 (target_bfd) <shortname, longname, doc>: Delete.
7684 * bsd-kvm.c (bsd_kvm_target_info): New.
7685 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7687 (bsd_kvm_target::open): Rename to ...
7688 (bsd_kvm_target_open): ... this. Adjust.
7689 * bsd-uthread.c (bsd_uthread_target_info): New.
7690 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7692 * corefile.c (core_file_command): Adjust.
7693 * corelow.c (core_target_info): New.
7694 (core_target) <shortname, longname, doc>: Delete.
7696 (core_target::open): Rename to ...
7697 (core_target_open): ... this. Adjust.
7698 * ctf.c (ctf_target_info): New.
7699 (ctf_target) <shortname, longname, doc>: Delete.
7701 (ctf_target::open): Rename to ...
7702 (ctf_target_open): ... this.
7703 (_initialize_ctf): Adjust.
7704 * exec.c (exec_target_info): New.
7705 (exec_target) <shortname, longname, doc>: Delete.
7707 (exec_target::open): Rename to ...
7708 (exec_target_open): ... this.
7709 * gdbcore.h (core_target_open): Declare.
7710 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7711 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7712 add_inf_child_target.
7713 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7714 add_inf_child_target.
7715 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7716 add_inf_child_target.
7717 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7718 add_inf_child_target.
7719 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7720 add_inf_child_target.
7721 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7722 add_inf_child_target.
7723 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7724 add_inf_child_target.
7725 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7726 add_inf_child_target.
7727 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7728 add_inf_child_target.
7729 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7730 add_inf_child_target.
7731 * inf-child.c (inf_child_target_info): New.
7732 (inf_child_target::info): New.
7733 (inf_child_open_target): Remove 'target' parameter. Use
7734 get_native_target instead.
7735 (inf_child_target::open): Delete.
7736 (add_inf_child_target): New.
7737 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7740 (add_inf_child_target): Declare.
7741 (inf_child_open_target): Declare.
7742 * linux-thread-db.c (thread_db_target_info): New.
7743 (thread_db_target) <shortname, longname, doc>: Delete.
7745 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7746 add_inf_child_target.
7747 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7748 add_inf_child_target.
7749 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7750 add_inf_child_target.
7751 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7752 add_inf_child_target.
7753 * make-target-delegates (print_class): Adjust.
7754 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7755 add_inf_child_target.
7756 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7757 add_inf_child_target.
7758 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7759 add_inf_child_target.
7760 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7761 add_inf_child_target.
7762 * nto-procfs.c (nto_native_target_info): New.
7763 (nto_procfs_target_native) <shortname, longname, doc>:
7766 (nto_procfs_target_info): New.
7767 (nto_procfs_target_procfs) <shortname, longname, doc>:
7770 (init_procfs_targets): Adjust.
7771 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7772 add_inf_child_target.
7773 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7774 add_inf_child_target.
7775 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7776 add_inf_child_target.
7777 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7778 add_inf_child_target.
7779 * ravenscar-thread.c (ravenscar_target_info): New.
7780 (ravenscar_thread_target) <shortname, longname, doc>:
7783 * record-btrace.c (record_btrace_target_info):
7784 (record_btrace_target) <shortname, longname, doc>: Delete.
7786 (record_btrace_target::open): Rename to ...
7787 (record_btrace_target_open): ... this. Adjust.
7788 * record-full.c (record_longname, record_doc): New.
7789 (record_full_base_target) <shortname, longname, doc>: Delete.
7791 (record_full_target_info): New.
7792 (record_full_target): <shortname>: Delete.
7794 (record_full_core_open_1, record_full_open_1): Update comments.
7795 (record_full_base_target::open): Rename to ...
7796 (record_full_open): ... this.
7797 (cmd_record_full_restore): Update.
7798 (_initialize_record_full): Update.
7799 * remote-sim.c (remote_sim_target_info): New.
7800 (gdbsim_target) <shortname, longname, doc>: Delete.
7802 (gdbsim_target::open): Rename to ...
7803 (gdbsim_target_open): ... this.
7804 (_initialize_remote_sim): Adjust.
7805 * remote.c (remote_doc): New.
7806 (remote_target_info): New.
7807 (remote_target) <shortname, longname, doc>: Delete.
7809 (extended_remote_target_info): New.
7810 (extended_remote_target) <shortname, longname, doc>: Delete.
7812 (remote_target::open_1): Make static. Adjust.
7813 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7814 * s390-linux-nat.c (_initialize_s390_nat): Use
7815 add_inf_child_target.
7816 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7817 add_inf_child_target.
7818 * sol-thread.c (thread_db_target_info): New.
7819 (sol_thread_target) <shortname, longname, doc>: Delete.
7821 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7822 add_inf_child_target.
7823 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7824 add_inf_child_target.
7825 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7826 add_inf_child_target.
7827 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7828 add_inf_child_target.
7829 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7830 add_inf_child_target.
7831 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7832 add_inf_child_target.
7833 * spu-linux-nat.c (_initialize_spu_nat): Use
7834 add_inf_child_target.
7835 * spu-multiarch.c (spu_multiarch_target_info): New.
7836 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7838 * target-delegates.c: Regenerate.
7839 * target.c: Include <unordered_map>.
7840 (target_ops_p): Delete.
7841 (DEF_VEC_P(target_ops_p)): Delete.
7842 (target_factories): New.
7843 (test_target_info): New.
7844 (test_target_ops::info): New.
7845 (open_target): Adjust to use target_factories.
7846 (add_target_with_completer): Rename to ...
7847 (add_target): ... this. Change prototype. Register target_info
7848 and open callback in target_factories. Register target_info in
7849 command context instead of target_ops.
7850 (add_target): Delete old implementation.
7851 (add_deprecated_target_alias): Change prototype. Adjust.
7852 (the_native_target): New.
7853 (set_native_target, get_native_target): New.
7854 (find_default_run_target): Use the_native_target.
7855 (find_attach_target, find_run_target): Simplify.
7856 (target_ops::open): Delete.
7857 (dummy_target_info): New.
7858 (dummy_target::shortname, dummy_target::longname)
7859 (dummy_target::doc): Delete.
7860 (dummy_target::info): New.
7861 (debug_target::shortname, debug_target::longname)
7862 (debug_target::doc): Delete.
7863 (debug_target::info): New.
7864 * target.h (struct target_info): New.
7865 (target_ops::~target_ops): Add comment.
7866 (target_ops::info): New.
7867 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7868 longer virtual. Implement in terms of target_info.
7869 (set_native_target, get_native_target): Declare.
7870 (target_open_ftype): New.
7871 (add_target, add_target_with_completer)
7872 (add_deprecated_target_alias): Change prototype.
7873 (test_target) <shortname, longname, doc>: Delete.
7875 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7876 add_inf_child_target.
7877 * tracefile-tfile.c (tfile_target_info): New.
7878 (tfile_target) <shortname, longname, doc>: Delete.
7880 (tfile_target::open): Rename to ...
7881 (tfile_target_open): ... this.
7882 (_initialize_tracefile_tfile): Adjust.
7883 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7884 add_inf_child_target.
7885 * windows-nat.c (_initialize_windows_nat): Use
7886 add_inf_child_target.
7887 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7888 add_inf_child_target.
7890 2018-05-02 Pedro Alves <palves@redhat.com>
7892 * linux-nat.h (linux_nat_target) <low_new_thread,
7893 low_delete_thread, low_new_fork, low_forget_process,
7894 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7895 New virtual methods.
7896 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7897 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7898 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7899 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7900 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7902 * linux-fork.c (delete_fork): Adjust to call low method.
7903 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7904 (linux_nat_new_fork, linux_nat_forget_process_hook)
7905 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7906 (linux_nat_status_is_event):
7907 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7908 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7910 (sigtrap_is_event): Rename to ...
7911 (linux_nat_target::low_status_is_event): ... this.
7912 (linux_nat_set_status_is_event): Delete.
7913 (save_stop_reason, linux_nat_wait_1)
7914 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7916 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7917 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7918 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7919 (linux_nat_set_prepare_to_resume): Delete.
7920 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7921 low virtual methods.
7922 * amd64-linux-nat.c: Likewise.
7923 * arm-linux-nat.c: Likewise.
7924 * i386-linux-nat.c: Likewise.
7925 * ia64-linux-nat.c: Likewise.
7926 * mips-linux-nat.c: Likewise.
7927 * ppc-linux-nat.c: Likewise.
7928 * s390-linux-nat.c: Likewise.
7929 * sparc64-linux-nat.c: Likewise.
7930 * x86-linux-nat.c: Likewise.
7931 * x86-linux-nat.h: Include "nat/x86-linux.h".
7932 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7933 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7936 2018-05-02 Pedro Alves <palves@redhat.com>
7938 * target.h (target_ops)
7939 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7940 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7941 stopped_by_watchpoint, have_continuable_watchpoint,
7942 stopped_data_address, watchpoint_addr_within_range,
7943 can_accel_watchpoint_condition, can_run, thread_alive,
7944 has_all_memory, has_memory, has_stack, has_registers,
7945 has_execution, can_async_p, is_async_p, supports_non_stop,
7946 always_non_stop_p, can_execute_reverse, supports_multi_process,
7947 supports_enable_disable_tracepoint,
7948 supports_disable_randomization, supports_string_tracing,
7949 supports_evaluation_of_breakpoint_conditions,
7950 can_run_breakpoint_commands, filesystem_is_local,
7951 can_download_tracepoint, get_trace_state_variable_value,
7952 set_trace_notes, get_tib_address, use_agent, can_use_agent,
7953 record_is_replaying, record_will_replay,
7954 augmented_libraries_svr4_read>: Adjust to return bool.
7955 * aarch64-linux-nat.c: All implementations adjusted.
7956 * aix-thread.c: All implementations adjusted.
7957 * arm-linux-nat.c: All implementations adjusted.
7958 * breakpoint.c: All implementations adjusted.
7959 * bsd-kvm.c: All implementations adjusted.
7960 * bsd-uthread.c: All implementations adjusted.
7961 * corelow.c: All implementations adjusted.
7962 * ctf.c: All implementations adjusted.
7963 * darwin-nat.c: All implementations adjusted.
7964 * darwin-nat.h: All implementations adjusted.
7965 * exec.c: All implementations adjusted.
7966 * fbsd-nat.c: All implementations adjusted.
7967 * fbsd-nat.h: All implementations adjusted.
7968 * gnu-nat.c: All implementations adjusted.
7969 * gnu-nat.h: All implementations adjusted.
7970 * go32-nat.c: All implementations adjusted.
7971 * ia64-linux-nat.c: All implementations adjusted.
7972 * inf-child.c: All implementations adjusted.
7973 * inf-child.h: All implementations adjusted.
7974 * inf-ptrace.c: All implementations adjusted.
7975 * inf-ptrace.h: All implementations adjusted.
7976 * linux-nat.c: All implementations adjusted.
7977 * linux-nat.h: All implementations adjusted.
7978 * mips-linux-nat.c: All implementations adjusted.
7979 * nto-procfs.c: All implementations adjusted.
7980 * ppc-linux-nat.c: All implementations adjusted.
7981 * procfs.c: All implementations adjusted.
7982 * ravenscar-thread.c: All implementations adjusted.
7983 * record-btrace.c: All implementations adjusted.
7984 * record-full.c: All implementations adjusted.
7985 * remote-sim.c: All implementations adjusted.
7986 * remote.c: All implementations adjusted.
7987 * s390-linux-nat.c: All implementations adjusted.
7988 * sol-thread.c: All implementations adjusted.
7989 * spu-multiarch.c: All implementations adjusted.
7990 * target-delegates.c: All implementations adjusted.
7991 * target.c: All implementations adjusted.
7992 * target.h: All implementations adjusted.
7993 * tracefile-tfile.c: All implementations adjusted.
7994 * tracefile.c: All implementations adjusted.
7995 * tracefile.h: All implementations adjusted.
7996 * windows-nat.c: All implementations adjusted.
7997 * x86-linux-nat.h: All implementations adjusted.
7998 * x86-nat.h: All implementations adjusted.
8000 2018-05-02 Pedro Alves <palves@redhat.com>
8002 * make-target-delegates (scan_target_h): Don't trim lines here.
8003 Replace sequences of tabs and/or whitespace with a single
8005 (top level, parsing methods): Trim each line before processing it
8008 2018-05-02 Pedro Alves <palves@redhat.com>
8009 John Baldwin <jhb@freebsd.org>
8011 * target.h (enum strata) <debug_stratum>: New.
8012 (struct target_ops) <all delegation methods>: Replace by C++
8013 virtual methods, and drop "to_" prefix. All references updated
8015 <to_shortname, to_longname, to_doc, to_data,
8016 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8017 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8018 virtual methods. All references updated throughout.
8019 <can_attach, supports_terminal_ours, can_create_inferior,
8020 get_thread_control_capabilities, attach_no_wait>: New
8022 <insert_breakpoint, remove_breakpoint>: Now
8023 TARGET_DEFAULT_NORETURN methods.
8024 <info_proc>: Now returns bool.
8026 (OPS_MAGIC): Delete.
8027 (current_target): Delete. All references replaced by references
8029 (target_stack): ... this. New.
8030 (target_shortname, target_longname): Adjust.
8031 (target_can_run): Now a function declaration.
8032 (default_child_has_all_memory, default_child_has_memory)
8033 (default_child_has_stack, default_child_has_registers)
8034 (default_child_has_execution): Remove target_ops parameter.
8035 (complete_target_initialization): Delete.
8036 (memory_breakpoint_target): New template class.
8037 (test_target_ops): Refactor as a C++ class with virtual methods.
8038 * make-target-delegates (NAME_PART): Tighten.
8039 (POINTER_PART, CP_SYMBOL): New.
8040 (SIMPLE_RETURN_PART): Reimplement.
8041 (VEC_RETURN_PART): Expect less.
8042 (RETURN_PART, VIRTUAL_PART): New.
8043 (METHOD): Adjust to C++ virtual methods.
8044 (scan_target_h): Remove reference to C99.
8045 (dname): Output "target_ops::" prefix.
8046 (write_function_header): Adjust to output a C++ class method.
8047 (write_declaration): New.
8048 (write_delegator): Adjust to output a C++ class method.
8049 (tdname): Output "dummy_target::" prefix.
8050 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8052 (tdefault_names, debug_names): Delete.
8053 (return_types, tdefaults, styles, argtypes_array): New.
8054 (top level): All methods are delegators.
8056 (top level): Print dummy_target and debug_target classes.
8057 * target-delegates.c: Regenerate.
8058 * target-debug.h (target_debug_print_enum_info_proc_what)
8059 (target_debug_print_thread_control_capabilities)
8060 (target_debug_print_thread_info_p): New.
8061 * target.c (dummy_target): Delete.
8062 (the_dummy_target, the_debug_target): New.
8063 (target_stack): Now extern.
8064 (set_targetdebug): Push/unpush debug target.
8065 (default_child_has_all_memory, default_child_has_memory)
8066 (default_child_has_stack, default_child_has_registers)
8067 (default_child_has_execution): Remove target_ops parameter.
8068 (complete_target_initialization): Delete.
8069 (add_target_with_completer): No longer call
8070 complete_target_initialization.
8071 (target_supports_terminal_ours): Use regular delegation.
8072 (update_current_target): Delete.
8073 (push_target): No longer check magic number. Don't call
8074 update_current_target.
8075 (unpush_target): Don't call update_current_target.
8076 (target_is_pushed): No longer check magic number.
8077 (target_require_runnable): Skip for all stratums over
8079 (target_ops::info_proc): New.
8080 (target_info_proc): Use find_target_at and
8081 find_default_run_target.
8082 (target_supports_disable_randomization): Use regular delegation.
8083 (target_get_osdata): Use find_target_at.
8084 (target_ops::open, target_ops::close, target_ops::can_attach)
8085 (target_ops::attach, target_ops::can_create_inferior)
8086 (target_ops::create_inferior, target_ops::can_run)
8087 (target_can_run): New.
8088 (default_fileio_target): Use regular delegation.
8089 (target_ops::fileio_open, target_ops::fileio_pwrite)
8090 (target_ops::fileio_pread, target_ops::fileio_fstat)
8091 (target_ops::fileio_close, target_ops::fileio_unlink)
8092 (target_ops::fileio_readlink): New.
8093 (target_fileio_open_1, target_fileio_unlink)
8094 (target_fileio_readlink): Always call the target method. Handle
8096 (return_zero, return_zero_has_execution): Delete.
8097 (init_dummy_target): Delete.
8098 (dummy_target::dummy_target, dummy_target::shortname)
8099 (dummy_target::longname, dummy_target::doc)
8100 (debug_target::debug_target, debug_target::shortname)
8101 (debug_target::longname, debug_target::doc): New.
8102 (target_supports_delete_record): Use regular delegation.
8103 (setup_target_debug): Delete.
8104 (maintenance_print_target_stack): Skip debug_stratum.
8105 (initialize_targets): Instantiate the_dummy_target and
8107 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8109 (target_auxv_search, fprint_target_auxv): Adjust.
8110 (info_auxv_command): Adjust to use target_stack.
8111 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8112 * exceptions.c (print_flush): Handle a NULL target_stack.
8113 * regcache.c (target_ops_no_register): Refactor as class with
8116 * exec.c (exec_target): New class.
8117 (exec_ops): Now an exec_target.
8118 (exec_open, exec_close_1, exec_get_section_table)
8119 (exec_xfer_partial, exec_files_info, exec_has_memory)
8120 (exec_make_note_section): Refactor as exec_target methods.
8121 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8123 (exec_target::find_memory_regions): New.
8124 (_initialize_exec): Don't call init_exec_ops.
8125 * gdbcore.h (exec_file_clear): Delete.
8127 * corefile.c (core_target): Delete.
8128 (core_file_command): Adjust.
8129 * corelow.c (core_target): New class.
8130 (the_core_target): New.
8131 (core_close): Remove target_ops parameter.
8132 (core_close_cleanup): Adjust.
8133 (core_target::close): New.
8134 (core_open, core_detach, get_core_registers, core_files_info)
8135 (core_xfer_partial, core_thread_alive, core_read_description)
8136 (core_pid_to_str, core_thread_name, core_has_memory)
8137 (core_has_stack, core_has_registers, core_info_proc): Rework as
8138 core_target methods.
8139 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8140 (_initialize_corelow): Initialize the_core_target.
8141 * gdbcore.h (core_target): Delete.
8142 (the_core_target): New.
8144 * ctf.c: (ctf_target): New class.
8145 (ctf_ops): Now a ctf_target.
8146 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8147 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8148 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8150 (init_ctf_ops): Delete.
8151 (_initialize_ctf): Don't call it.
8152 * tracefile-tfile.c (tfile_target): New class.
8153 (tfile_ops): Now a tfile_target.
8154 (tfile_open, tfile_close, tfile_files_info)
8155 (tfile_get_tracepoint_status, tfile_trace_find)
8156 (tfile_fetch_registers, tfile_xfer_partial)
8157 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8158 Refactor as tfile_target methods.
8159 (tfile_xfer_partial_features): Remove target_ops parameter.
8160 (init_tfile_ops): Delete.
8161 (_initialize_tracefile_tfile): Don't call it.
8162 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8163 (tracefile_has_stack, tracefile_has_registers)
8164 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8165 tracefile_target methods.
8166 (init_tracefile_ops): Delete.
8167 (tracefile_target::tracefile_target): New.
8168 * tracefile.h: Include "target.h".
8169 (tracefile_target): New class.
8170 (init_tracefile_ops): Delete.
8172 * spu-multiarch.c (spu_multiarch_target): New class.
8173 (spu_ops): Now a spu_multiarch_target.
8174 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8175 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8176 (spu_search_memory, spu_mourn_inferior): Refactor as
8177 spu_multiarch_target methods.
8178 (init_spu_ops): Delete.
8179 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8180 complete_target_initialization.
8182 * ravenscar-thread.c (ravenscar_thread_target): New class.
8183 (ravenscar_ops): Now a ravenscar_thread_target.
8184 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8185 (ravenscar_thread_alive, ravenscar_pid_to_str)
8186 (ravenscar_fetch_registers, ravenscar_store_registers)
8187 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8188 (ravenscar_stopped_by_hw_breakpoint)
8189 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8190 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8191 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8193 (init_ravenscar_thread_ops): Delete.
8194 (_initialize_ravenscar): Remove references to
8195 init_ravenscar_thread_ops and complete_target_initialization.
8197 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8198 (bsd_uthread_target): New class.
8199 (bsd_uthread_ops): Now a bsd_uthread_target.
8200 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8201 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8202 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8203 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8204 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8205 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8206 (bsd_uthread_target): Delete function.
8207 (_initialize_bsd_uthread): Remove reference to
8208 complete_target_initialization.
8210 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8211 (target_bfd): ... this new class.
8212 (target_bfd_xfer_partial, target_bfd_get_section_table)
8213 (target_bfd_close): Refactor as target_bfd methods.
8214 (target_bfd::~target_bfd): New.
8215 (target_bfd_reopen): Adjust.
8216 (target_bfd::close): New.
8218 * record-btrace.c (record_btrace_target): New class.
8219 (record_btrace_ops): Now a record_btrace_target.
8220 (record_btrace_open, record_btrace_stop_recording)
8221 (record_btrace_disconnect, record_btrace_close)
8222 (record_btrace_async, record_btrace_info)
8223 (record_btrace_insn_history, record_btrace_insn_history_range)
8224 (record_btrace_insn_history_from, record_btrace_call_history)
8225 (record_btrace_call_history_range)
8226 (record_btrace_call_history_from, record_btrace_record_method)
8227 (record_btrace_is_replaying, record_btrace_will_replay)
8228 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8229 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8230 (record_btrace_store_registers, record_btrace_prepare_to_store)
8231 (record_btrace_to_get_unwinder)
8232 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8233 (record_btrace_commit_resume, record_btrace_wait)
8234 (record_btrace_stop, record_btrace_can_execute_reverse)
8235 (record_btrace_stopped_by_sw_breakpoint)
8236 (record_btrace_supports_stopped_by_sw_breakpoint)
8237 (record_btrace_stopped_by_hw_breakpoint)
8238 (record_btrace_supports_stopped_by_hw_breakpoint)
8239 (record_btrace_update_thread_list, record_btrace_thread_alive)
8240 (record_btrace_goto_begin, record_btrace_goto_end)
8241 (record_btrace_goto, record_btrace_stop_replaying_all)
8242 (record_btrace_execution_direction)
8243 (record_btrace_prepare_to_generate_core)
8244 (record_btrace_done_generating_core): Refactor as
8245 record_btrace_target methods.
8246 (init_record_btrace_ops): Delete.
8247 (_initialize_record_btrace): Remove reference to
8248 init_record_btrace_ops.
8249 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8250 the execution_direction global.
8251 (record_full_base_target, record_full_target)
8252 (record_full_core_target): New classes.
8253 (record_full_ops): Now a record_full_target.
8254 (record_full_core_ops): Now a record_full_core_target.
8255 (record_full_target::detach, record_full_target::disconnect)
8256 (record_full_core_target::disconnect)
8257 (record_full_target::mourn_inferior, record_full_target::kill):
8259 (record_full_open, record_full_close, record_full_async): Refactor
8260 as methods of the record_full_base_target class.
8261 (record_full_resume, record_full_commit_resume): Refactor
8262 as methods of the record_full_target class.
8263 (record_full_wait, record_full_stopped_by_watchpoint)
8264 (record_full_stopped_data_address)
8265 (record_full_stopped_by_sw_breakpoint)
8266 (record_full_supports_stopped_by_sw_breakpoint)
8267 (record_full_stopped_by_hw_breakpoint)
8268 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8269 methods of the record_full_base_target class.
8270 (record_full_store_registers, record_full_xfer_partial)
8271 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8272 Refactor as methods of the record_full_target class.
8273 (record_full_can_execute_reverse, record_full_get_bookmark)
8274 (record_full_goto_bookmark, record_full_execution_direction)
8275 (record_full_record_method, record_full_info, record_full_delete)
8276 (record_full_is_replaying, record_full_will_replay)
8277 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8278 (record_full_stop_replaying): Refactor as methods of the
8279 record_full_base_target class.
8280 (record_full_core_resume, record_full_core_kill)
8281 (record_full_core_fetch_registers)
8282 (record_full_core_prepare_to_store)
8283 (record_full_core_store_registers, record_full_core_xfer_partial)
8284 (record_full_core_insert_breakpoint)
8285 (record_full_core_remove_breakpoint)
8286 (record_full_core_has_execution): Refactor
8287 as methods of the record_full_core_target class.
8288 (record_full_base_target::supports_delete_record): New.
8289 (init_record_full_ops): Delete.
8290 (init_record_full_core_ops): Delete.
8291 (record_full_save): Refactor as method of the
8292 record_full_base_target class.
8293 (_initialize_record_full): Remove references to
8294 init_record_full_ops and init_record_full_core_ops.
8296 * remote.c (remote_target, extended_remote_target): New classes.
8297 (remote_ops): Now a remote_target.
8298 (extended_remote_ops): Now an extended_remote_target.
8299 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8300 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8301 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8302 (remote_pass_signals, remote_set_syscall_catchpoint)
8303 (remote_program_signals, )
8304 (remote_thread_always_alive): Remove target_ops parameter.
8305 (remote_thread_alive, remote_thread_name)
8306 (remote_update_thread_list, remote_threads_extra_info)
8307 (remote_static_tracepoint_marker_at)
8308 (remote_static_tracepoint_markers_by_strid)
8309 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8310 (remote_open): Refactor as methods of remote_target.
8311 (extended_remote_open, extended_remote_detach)
8312 (extended_remote_attach, extended_remote_post_attach):
8313 (extended_remote_supports_disable_randomization)
8314 (extended_remote_create_inferior): : Refactor as method of
8315 extended_remote_target.
8316 (remote_set_permissions, remote_open_1, remote_detach)
8317 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8318 (remote_resume, remote_commit_resume, remote_stop)
8319 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8320 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8321 (remote_prepare_to_store, remote_store_registers)
8322 (remote_flash_erase, remote_flash_done, remote_files_info)
8323 (remote_kill, remote_mourn, remote_insert_breakpoint)
8324 (remote_remove_breakpoint, remote_insert_watchpoint)
8325 (remote_watchpoint_addr_within_range)
8326 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8327 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8328 (remote_supports_stopped_by_sw_breakpoint)
8329 (remote_stopped_by_hw_breakpoint)
8330 (remote_supports_stopped_by_hw_breakpoint)
8331 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8332 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8333 (remote_verify_memory): Refactor as methods of remote_target.
8334 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8336 (remote_xfer_partial, remote_get_memory_xfer_limit)
8337 (remote_search_memory, remote_rcmd, remote_memory_map)
8338 (remote_pid_to_str, remote_get_thread_local_address)
8339 (remote_get_tib_address, remote_read_description): Refactor as
8340 methods of remote_target.
8341 (remote_target::fileio_open, remote_target::fileio_pwrite)
8342 (remote_target::fileio_pread, remote_target::fileio_close): New.
8343 (remote_hostio_readlink, remote_hostio_fstat)
8344 (remote_filesystem_is_local, remote_can_execute_reverse)
8345 (remote_supports_non_stop, remote_supports_disable_randomization)
8346 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8347 (remote_supports_enable_disable_tracepoint)
8348 (remote_supports_string_tracing)
8349 (remote_can_run_breakpoint_commands, remote_trace_init)
8350 (remote_download_tracepoint, remote_can_download_tracepoint)
8351 (remote_download_trace_state_variable, remote_enable_tracepoint)
8352 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8353 (remote_trace_start, remote_get_trace_status)
8354 (remote_get_tracepoint_status, remote_trace_stop)
8355 (remote_trace_find, remote_get_trace_state_variable_value)
8356 (remote_save_trace_data, remote_get_raw_trace_data)
8357 (remote_set_disconnected_tracing, remote_core_of_thread)
8358 (remote_set_circular_trace_buffer, remote_traceframe_info)
8359 (remote_get_min_fast_tracepoint_insn_len)
8360 (remote_set_trace_buffer_size, remote_set_trace_notes)
8361 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8362 (remote_disable_btrace, remote_teardown_btrace)
8363 (remote_read_btrace, remote_btrace_conf)
8364 (remote_augmented_libraries_svr4_read, remote_load)
8365 (remote_pid_to_exec_file, remote_can_do_single_step)
8366 (remote_execution_direction, remote_thread_handle_to_thread_info):
8367 Refactor as methods of remote_target.
8368 (init_remote_ops, init_extended_remote_ops): Delete.
8369 (remote_can_async_p, remote_is_async_p, remote_async)
8370 (remote_thread_events, remote_upload_tracepoints)
8371 (remote_upload_trace_state_variables): Refactor as methods of
8373 (_initialize_remote): Remove references to init_remote_ops and
8374 init_extended_remote_ops.
8376 * remote-sim.c (gdbsim_target): New class.
8377 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8378 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8379 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8380 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8381 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8382 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8383 Refactor as methods of gdbsim_target.
8384 (gdbsim_ops): Now a gdbsim_target.
8385 (init_gdbsim_ops): Delete.
8386 (gdbsim_cntrl_c): Adjust.
8387 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8389 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8390 (the_amd64_linux_nat_target): New.
8391 (amd64_linux_fetch_inferior_registers)
8392 (amd64_linux_store_inferior_registers): Refactor as methods of
8393 amd64_linux_nat_target.
8394 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8395 * i386-linux-nat.c: Don't include "linux-nat.h".
8396 (i386_linux_nat_target): New class.
8397 (the_i386_linux_nat_target): New.
8398 (i386_linux_fetch_inferior_registers)
8399 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8400 as methods of i386_linux_nat_target.
8401 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8402 * inf-child.c (inf_child_ops): Delete.
8403 (inf_child_fetch_inferior_registers)
8404 (inf_child_store_inferior_registers): Delete.
8405 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8406 methods of inf_child_target.
8407 (inf_child_target::supports_terminal_ours)
8408 (inf_child_target::terminal_init)
8409 (inf_child_target::terminal_inferior)
8410 (inf_child_target::terminal_ours_for_output)
8411 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8412 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8414 (inf_child_open, inf_child_disconnect, inf_child_close)
8415 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8416 (inf_child_post_startup_inferior, inf_child_can_run)
8417 (inf_child_pid_to_exec_file): Refactor as methods of
8419 (inf_child_follow_fork): Delete.
8420 (inf_child_target::can_create_inferior)
8421 (inf_child_target::can_attach): New.
8422 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8423 (inf_child_target::has_stack, inf_child_target::has_registers)
8424 (inf_child_target::has_execution): New.
8425 (inf_child_fileio_open, inf_child_fileio_pwrite)
8426 (inf_child_fileio_pread, inf_child_fileio_fstat)
8427 (inf_child_fileio_close, inf_child_fileio_unlink)
8428 (inf_child_fileio_readlink, inf_child_use_agent)
8429 (inf_child_can_use_agent): Refactor as methods of
8431 (return_zero, inf_child_target): Delete.
8432 (inf_child_target::inf_child_target): New.
8433 * inf-child.h: Include "target.h".
8434 (inf_child_target): Delete function prototype.
8435 (inf_child_target): New class.
8436 (inf_child_open_target, inf_child_mourn_inferior)
8437 (inf_child_maybe_unpush_target): Delete.
8438 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8439 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8440 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8441 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8442 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8443 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8444 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8445 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8446 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8447 methods of inf_ptrace_target.
8448 (inf_ptrace_target): Delete function.
8449 * inf-ptrace.h: Include "inf-child.h".
8450 (inf_ptrace_target): Delete function declaration.
8451 (inf_ptrace_target): New class.
8452 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8453 * linux-nat.c (linux_target): New.
8454 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8455 (linux_nat_target::~linux_nat_target): New.
8456 (linux_child_post_attach, linux_child_post_startup_inferior)
8457 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8458 (linux_child_remove_fork_catchpoint)
8459 (linux_child_insert_vfork_catchpoint)
8460 (linux_child_remove_vfork_catchpoint)
8461 (linux_child_insert_exec_catchpoint)
8462 (linux_child_remove_exec_catchpoint)
8463 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8464 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8465 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8466 (linux_nat_stopped_data_address)
8467 (linux_nat_stopped_by_sw_breakpoint)
8468 (linux_nat_supports_stopped_by_sw_breakpoint)
8469 (linux_nat_stopped_by_hw_breakpoint)
8470 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8471 (linux_nat_kill, linux_nat_mourn_inferior)
8472 (linux_nat_xfer_partial, linux_nat_thread_alive)
8473 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8474 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8475 (linux_child_static_tracepoint_markers_by_strid)
8476 (linux_nat_is_async_p, linux_nat_can_async_p)
8477 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8478 (linux_nat_supports_multi_process)
8479 (linux_nat_supports_disable_randomization, linux_nat_async)
8480 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8481 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8482 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8483 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8484 methods of linux_nat_target.
8485 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8486 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8488 (check_stopped_by_watchpoint): Adjust.
8489 (linux_xfer_partial): Delete.
8490 (linux_target_install_ops, linux_target, linux_nat_add_target):
8492 (linux_nat_target::linux_nat_target): New.
8493 * linux-nat.h: Include "inf-ptrace.h".
8494 (linux_nat_target): New.
8495 (linux_target, linux_target_install_ops, linux_nat_add_target):
8496 Delete function declarations.
8497 (linux_target): Declare global.
8498 * linux-thread-db.c (thread_db_target): New.
8499 (thread_db_target::thread_db_target): New.
8500 (thread_db_ops): Delete.
8501 (the_thread_db_target): New.
8502 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8503 (thread_db_update_thread_list, thread_db_pid_to_str)
8504 (thread_db_extra_thread_info)
8505 (thread_db_thread_handle_to_thread_info)
8506 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8507 (thread_db_resume): Refactor as methods of thread_db_target.
8508 (init_thread_db_ops): Delete.
8509 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8510 * x86-linux-nat.c: Don't include "linux-nat.h".
8511 (super_post_startup_inferior): Delete.
8512 (x86_linux_nat_target::~x86_linux_nat_target): New.
8513 (x86_linux_child_post_startup_inferior)
8514 (x86_linux_read_description, x86_linux_enable_btrace)
8515 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8516 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8517 methods of x86_linux_nat_target.
8518 (x86_linux_create_target): Delete. Bits folded ...
8519 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8521 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8522 (x86_linux_nat_target): New class.
8523 (x86_linux_create_target): Delete.
8524 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8525 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8526 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8527 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8528 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8529 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8531 (x86_use_watchpoints): Delete.
8532 * x86-nat.h: Include "breakpoint.h" and "target.h".
8533 (x86_use_watchpoints): Delete.
8534 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8535 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8536 (x86_insert_watchpoint, x86_remove_watchpoint)
8537 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8538 (x86_stopped_by_hw_breakpoint): New declarations.
8539 (x86_nat_target): New template class.
8541 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8542 (the_ppc_linux_nat_target): New.
8543 (ppc_linux_fetch_inferior_registers)
8544 (ppc_linux_can_use_hw_breakpoint)
8545 (ppc_linux_region_ok_for_hw_watchpoint)
8546 (ppc_linux_ranged_break_num_registers)
8547 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8548 (ppc_linux_insert_mask_watchpoint)
8549 (ppc_linux_remove_mask_watchpoint)
8550 (ppc_linux_can_accel_watchpoint_condition)
8551 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8552 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8553 (ppc_linux_watchpoint_addr_within_range)
8554 (ppc_linux_masked_watch_num_registers)
8555 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8556 (ppc_linux_read_description): Refactor as methods of
8557 ppc_linux_nat_target.
8558 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8560 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8561 (procfs_target): New class.
8562 (the_procfs_target): New.
8563 (procfs_target): Delete function.
8564 (procfs_auxv_parse, procfs_attach, procfs_detach)
8565 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8566 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8567 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8568 (procfs_create_inferior, procfs_update_thread_list)
8569 (procfs_thread_alive, procfs_pid_to_str)
8570 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8571 (procfs_stopped_data_address, procfs_insert_watchpoint)
8572 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8573 (proc_find_memory_regions, procfs_info_proc)
8574 (procfs_make_note_section): Refactor as methods of procfs_target.
8575 (_initialize_procfs): Adjust.
8576 * sol-thread.c (sol_thread_target): New class.
8577 (sol_thread_ops): Now a sol_thread_target.
8578 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8579 (sol_thread_fetch_registers, sol_thread_store_registers)
8580 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8581 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8582 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8583 (init_sol_thread_ops): Delete.
8584 (_initialize_sol_thread): Adjust. Remove references to
8585 init_sol_thread_ops and complete_target_initialization.
8587 * windows-nat.c (windows_nat_target): New class.
8588 (windows_fetch_inferior_registers)
8589 (windows_store_inferior_registers, windows_resume, windows_wait)
8590 (windows_attach, windows_detach, windows_pid_to_exec_file)
8591 (windows_files_info, windows_create_inferior)
8592 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8593 (windows_close, windows_pid_to_str, windows_xfer_partial)
8594 (windows_get_tib_address, windows_get_ada_task_ptid)
8595 (windows_thread_name, windows_thread_alive): Refactor as
8596 windows_nat_target methods.
8597 (do_initial_windows_stuff): Adjust.
8598 (windows_target): Delete function.
8599 (_initialize_windows_nat): Adjust.
8601 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8602 (darwin_mourn_inferior, darwin_kill_inferior)
8603 (darwin_create_inferior, darwin_attach, darwin_detach)
8604 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8605 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8606 (darwin_supports_multi_process): Refactor as darwin_nat_target
8608 (darwin_resume_to, darwin_files_info): Delete.
8609 (_initialize_darwin_inferior): Rename to ...
8610 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8611 * darwin-nat.h: Include "inf-child.h".
8612 (darwin_nat_target): New class.
8613 (darwin_complete_target): Delete.
8614 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8615 (darwin_target): New.
8616 (i386_darwin_fetch_inferior_registers)
8617 (i386_darwin_store_inferior_registers): Refactor as methods of
8619 (darwin_complete_target): Delete, with ...
8620 (_initialize_i386_darwin_nat): ... bits factored out here.
8622 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8623 (the_alpha_linux_nat_target): New.
8624 (alpha_linux_register_u_offset): Refactor as
8625 alpha_linux_nat_target method.
8626 (_initialize_alpha_linux_nat): Adjust.
8627 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8628 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8629 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8630 methods of linux_nat_trad_target.
8631 (linux_trad_target): Delete.
8632 * linux-nat-trad.h (linux_trad_target): Delete function.
8633 (linux_nat_trad_target): New class.
8634 * mips-linux-nat.c (mips_linux_nat_target): New class.
8635 (super_fetch_registers, super_store_registers, super_close):
8637 (the_mips_linux_nat_target): New.
8638 (mips64_linux_regsets_fetch_registers)
8639 (mips64_linux_regsets_store_registers)
8640 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8641 (mips_linux_register_u_offset, mips_linux_read_description)
8642 (mips_linux_can_use_hw_breakpoint)
8643 (mips_linux_stopped_by_watchpoint)
8644 (mips_linux_stopped_data_address)
8645 (mips_linux_region_ok_for_hw_watchpoint)
8646 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8647 (mips_linux_close): Refactor as methods of mips_linux_nat.
8648 (_initialize_mips_linux_nat): Adjust to C++ification.
8650 * aix-thread.c (aix_thread_target): New class.
8651 (aix_thread_ops): Now an aix_thread_target.
8652 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8653 (aix_thread_fetch_registers, aix_thread_store_registers)
8654 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8655 (aix_thread_thread_alive, aix_thread_pid_to_str)
8656 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8657 Refactor as methods of aix_thread_target.
8658 (init_aix_thread_ops): Delete.
8659 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8660 and complete_target_initialization.
8661 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8662 (rs6000_nat_target): New class.
8663 (the_rs6000_nat_target): New.
8664 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8665 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8666 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8667 (super_create_inferior): Delete.
8668 (_initialize_rs6000_nat): Adjust to C++ification.
8670 * arm-linux-nat.c (arm_linux_nat_target): New class.
8671 (the_arm_linux_nat_target): New.
8672 (arm_linux_fetch_inferior_registers)
8673 (arm_linux_store_inferior_registers, arm_linux_read_description)
8674 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8675 (arm_linux_remove_hw_breakpoint)
8676 (arm_linux_region_ok_for_hw_watchpoint)
8677 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8678 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8679 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8680 arm_linux_nat_target.
8681 (_initialize_arm_linux_nat): Adjust to C++ification.
8683 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8684 (the_aarch64_linux_nat_target): New.
8685 (aarch64_linux_fetch_inferior_registers)
8686 (aarch64_linux_store_inferior_registers)
8687 (aarch64_linux_child_post_startup_inferior)
8688 (aarch64_linux_read_description)
8689 (aarch64_linux_can_use_hw_breakpoint)
8690 (aarch64_linux_insert_hw_breakpoint)
8691 (aarch64_linux_remove_hw_breakpoint)
8692 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8693 (aarch64_linux_region_ok_for_hw_watchpoint)
8694 (aarch64_linux_stopped_data_address)
8695 (aarch64_linux_stopped_by_watchpoint)
8696 (aarch64_linux_watchpoint_addr_within_range)
8697 (aarch64_linux_can_do_single_step): Refactor as methods of
8698 aarch64_linux_nat_target.
8699 (super_post_startup_inferior): Delete.
8700 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8702 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8703 (the_hppa_linux_nat_target): New.
8704 (hppa_linux_fetch_inferior_registers)
8705 (hppa_linux_store_inferior_registers): Refactor as methods of
8706 hppa_linux_nat_target.
8707 (_initialize_hppa_linux_nat): Adjust to C++ification.
8709 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8710 (the_ia64_linux_nat_target): New.
8711 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8712 (ia64_linux_stopped_data_address)
8713 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8714 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8715 ia64_linux_nat_target methods.
8716 (super_xfer_partial): Delete.
8717 (_initialize_ia64_linux_nat): Adjust to C++ification.
8719 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8720 (the_m32r_linux_nat_target): New.
8721 (m32r_linux_fetch_inferior_registers)
8722 (m32r_linux_store_inferior_registers): Refactor as
8723 m32r_linux_nat_target methods.
8724 (_initialize_m32r_linux_nat): Adjust to C++ification.
8726 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8727 (the_m68k_linux_nat_target): New.
8728 (m68k_linux_fetch_inferior_registers)
8729 (m68k_linux_store_inferior_registers): Refactor as
8730 m68k_linux_nat_target methods.
8731 (_initialize_m68k_linux_nat): Adjust to C++ification.
8733 * s390-linux-nat.c (s390_linux_nat_target): New class.
8734 (the_s390_linux_nat_target): New.
8735 (s390_linux_fetch_inferior_registers)
8736 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8737 (s390_insert_watchpoint, s390_remove_watchpoint)
8738 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8739 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8740 (s390_auxv_parse, s390_read_description): Refactor as methods of
8741 s390_linux_nat_target.
8742 (_initialize_s390_nat): Adjust to C++ification.
8744 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8745 (the_sparc_linux_nat_target): New.
8746 (_initialize_sparc_linux_nat): Adjust to C++ification.
8747 * sparc-nat.c (sparc_fetch_inferior_registers)
8748 (sparc_store_inferior_registers): Remove target_ops parameter.
8749 * sparc-nat.h (sparc_fetch_inferior_registers)
8750 (sparc_store_inferior_registers): Remove target_ops parameter.
8751 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8752 (the_sparc64_linux_nat_target): New.
8753 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8755 * spu-linux-nat.c (spu_linux_nat_target): New class.
8756 (the_spu_linux_nat_target): New.
8757 (spu_child_post_startup_inferior, spu_child_post_attach)
8758 (spu_child_wait, spu_fetch_inferior_registers)
8759 (spu_store_inferior_registers, spu_xfer_partial)
8760 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8762 (_initialize_spu_nat): Adjust to C++ification.
8764 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8765 (the_tilegx_linux_nat_target): New.
8766 (fetch_inferior_registers, store_inferior_registers):
8767 Refactor as methods.
8768 (_initialize_tile_linux_nat): Adjust to C++ification.
8770 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8771 (the_xtensa_linux_nat_target): New.
8772 (xtensa_linux_fetch_inferior_registers)
8773 (xtensa_linux_store_inferior_registers): Refactor as
8774 xtensa_linux_nat_target methods.
8775 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8777 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8778 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8779 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8780 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8781 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8782 (fbsd_stopped_by_sw_breakpoint)
8783 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8784 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8785 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8786 (fbsd_post_startup_inferior, fbsd_post_attach)
8787 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8788 (fbsd_set_syscall_catchpoint)
8789 (super_xfer_partial, super_resume, super_wait)
8790 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8791 (fbsd_handle_debug_trap): Remove target_ops parameter.
8792 (fbsd_nat_add_target): Delete.
8793 * fbsd-nat.h: Include "inf-ptrace.h".
8794 (fbsd_nat_add_target): Delete.
8795 (USE_SIGTRAP_SIGINFO): Define.
8796 (fbsd_nat_target): New class.
8798 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8799 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8800 (amd64bsd_target): Delete.
8801 * amd64-bsd-nat.h: New file.
8802 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8804 (amd64_fbsd_nat_target): New class.
8805 (the_amd64_fbsd_nat_target): New.
8806 (amd64fbsd_read_description): Refactor as method of
8807 amd64_fbsd_nat_target.
8808 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8809 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8810 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8811 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8812 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8813 (i386bsd_target): Delete.
8814 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8815 (i386bsd_fetch_inferior_registers)
8816 (i386bsd_store_inferior_registers): Declare.
8817 (i386_bsd_nat_target): New class.
8818 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8819 (the_i386_fbsd_nat_target): New.
8820 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8821 i386_fbsd_nat_target methods.
8822 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8823 (_initialize_i386fbsd_nat): Adjust to C++ification.
8824 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8825 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8826 (_initialize_x86_bsd_nat): Adjust to C++ification.
8827 * x86-bsd-nat.h: Include "x86-nat.h".
8828 (x86bsd_target): Delete declaration.
8829 (x86bsd_nat_target): New class.
8831 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8832 (the_aarch64_fbsd_nat_target): New.
8833 (aarch64_fbsd_fetch_inferior_registers)
8834 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8835 aarch64_fbsd_nat_target.
8836 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8837 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8838 (the_alpha_bsd_nat_target): New.
8839 (alphabsd_fetch_inferior_registers)
8840 (alphabsd_store_inferior_registers): Refactor as
8841 alpha_bsd_nat_target methods.
8842 (_initialize_alphabsd_nat): Refactor as methods of
8843 alpha_bsd_nat_target.
8844 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8845 (the_amd64_nbsd_nat_target): New.
8846 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8847 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8848 (the_amd64_obsd_nat_target): New.
8849 (_initialize_amd64obsd_nat): Adjust to C++ification.
8850 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8851 (the_arm_fbsd_nat_target): New.
8852 (arm_fbsd_fetch_inferior_registers)
8853 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8854 (_initialize_arm_fbsd_nat): Refactor as methods of
8855 arm_fbsd_nat_target.
8856 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8857 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8858 (the_arm_netbsd_nat_target): New.
8859 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8860 arm_netbsd_nat_target.
8861 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8862 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8863 (the_hppa_nbsd_nat_target): New.
8864 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8865 hppa_nbsd_nat_target methods.
8866 (_initialize_hppanbsd_nat): Adjust to C++ification.
8867 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8868 (the_hppa_obsd_nat_target): New.
8869 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8870 methods of hppa_obsd_nat_target.
8871 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8873 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8874 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8876 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8877 (_initialize_i386obsd_nat): Use add_target.
8878 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8879 (the_m68k_bsd_nat_target): New.
8880 (m68kbsd_fetch_inferior_registers)
8881 (m68kbsd_store_inferior_registers): Refactor as methods of
8882 m68k_bsd_nat_target.
8883 (_initialize_m68kbsd_nat): Adjust to C++ification.
8884 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8885 (the_mips_fbsd_nat_target): New.
8886 (mips_fbsd_fetch_inferior_registers)
8887 (mips_fbsd_store_inferior_registers): Refactor as methods of
8888 mips_fbsd_nat_target.
8889 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8891 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8892 (the_mips_nbsd_nat_target): New.
8893 (mipsnbsd_fetch_inferior_registers)
8894 (mipsnbsd_store_inferior_registers): Refactor as methods of
8895 mips_nbsd_nat_target.
8896 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8897 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8898 (the_mips64_obsd_nat_target): New.
8899 (mips64obsd_fetch_inferior_registers)
8900 (mips64obsd_store_inferior_registers): Refactor as methods of
8901 mips64_obsd_nat_target.
8902 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8904 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8906 * nbsd-nat.h: Include "inf-ptrace.h".
8907 (nbsd_nat_target): New class.
8908 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8909 (obsd_wait): Refactor as methods of obsd_nat_target.
8910 (obsd_add_target): Delete.
8911 * obsd-nat.h: Include "inf-ptrace.h".
8912 (obsd_nat_target): New class.
8913 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8914 (the_ppc_fbsd_nat_target): New.
8915 (ppcfbsd_fetch_inferior_registers)
8916 (ppcfbsd_store_inferior_registers): Refactor as methods of
8917 ppc_fbsd_nat_target.
8918 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8920 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8921 (the_ppc_nbsd_nat_target): New.
8922 (ppcnbsd_fetch_inferior_registers)
8923 (ppcnbsd_store_inferior_registers): Refactor as methods of
8924 ppc_nbsd_nat_target.
8925 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8926 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8927 (the_ppc_obsd_nat_target): New.
8928 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8929 methods of ppc_obsd_nat_target.
8930 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8932 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8933 (the_sh_nbsd_nat_target): New.
8934 (shnbsd_fetch_inferior_registers)
8935 (shnbsd_store_inferior_registers): Refactor as methods of
8937 (_initialize_shnbsd_nat): Adjust to C++ification.
8938 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8939 (inf_ptrace_xfer_partial): Delete.
8940 (sparc_xfer_partial, sparc_target): Delete.
8941 * sparc-nat.h (sparc_fetch_inferior_registers)
8942 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8943 (sparc_target): Delete function declaration.
8944 (sparc_target): New template class.
8945 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8946 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8947 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8948 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8950 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8951 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8952 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
8953 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
8955 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
8956 (the_vax_bsd_nat_target): New.
8957 (vaxbsd_fetch_inferior_registers)
8958 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
8960 (_initialize_vaxbsd_nat): Adjust to C++ification.
8962 * bsd-kvm.c (bsd_kvm_target): New class.
8963 (bsd_kvm_ops): Now a bsd_kvm_target.
8964 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
8965 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
8966 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
8968 (bsd_kvm_return_one): Delete.
8969 (bsd_kvm_add_target): Adjust to C++ification.
8971 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
8972 (nto_procfs_target_procfs): New classes.
8973 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
8974 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
8975 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
8976 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
8977 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
8978 (procfs_remove_hw_breakpoint, procfs_resume)
8979 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
8980 (procfs_kill_inferior, procfs_store_registers)
8981 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
8982 as methods of nto_procfs_target.
8983 (nto_procfs_ops): Now an nto_procfs_target_procfs.
8984 (nto_native_ops): Delete.
8985 (procfs_open, procfs_native_open): Delete.
8986 (nto_native_ops): Now an nto_procfs_target_native.
8987 (init_procfs_targets): Adjust to C++ification.
8988 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
8989 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
8990 Refactor as methods of nto_procfs_target.
8992 * go32-nat.c (go32_nat_target): New class.
8993 (the_go32_nat_target): New.
8994 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
8995 (go32_store_registers, go32_xfer_partial, go32_files_info)
8996 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
8997 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
8998 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
8999 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9000 (go32_target): Delete.
9001 (_initialize_go32_nat): Adjust to C++ification.
9003 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9004 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9005 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9006 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9008 (gnu_target): Delete.
9009 * gnu-nat.h (gnu_target): Delete.
9010 (gnu_nat_target): New class.
9011 * i386-gnu-nat.c (gnu_base_target): New.
9012 (i386_gnu_nat_target): New class.
9013 (the_i386_gnu_nat_target): New.
9014 (_initialize_i386gnu_nat): Adjust to C++ification.
9016 2018-05-02 Pedro Alves <palves@redhat.com>
9018 * bfd-target.c (target_bfd_xclose): Rename to ...
9019 (target_bfd_close): ... this.
9020 (target_bfd_reopen): Adjust.
9021 * target.c (target_close): Remove references to to_xclose.
9022 * target.h (target_ops::to_xclose): Delete.
9023 (target_ops::to_close): Update comments.
9025 2018-05-02 Pedro Alves <palves@redhat.com>
9027 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9029 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9030 * inf-ptrace.c (inf_ptrace_register_u_offset)
9031 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9032 (inf_ptrace_store_register, inf_ptrace_store_registers)
9033 (inf_ptrace_trad_target): Move to ...
9034 * linux-nat-trad.c: ... this new file.
9035 * linux-nat-trad.h: New file.
9036 * linux-nat.c (linux_target_install_ops): Make extern.
9037 (linux_trad_target): Delete.
9038 * linux-nat.h (linux_trad_target): Delete declaration.
9039 (linux_target_install_ops): Declare.
9040 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9043 2018-05-02 Pedro Alves <palves@redhat.com>
9045 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9046 procfs_target/add_target here.
9047 * procfs.c (procfs_target): Make static.
9048 (_initialize_procfs): Call add_target here.
9049 * procfs.h (struct target_ops): Remove forward declaration.
9050 (procfs_target): Remove declaration.
9051 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9053 2018-05-02 Pedro Alves <palves@redhat.com>
9055 * procfs.c (procfs_stopped_by_watchpoint)
9056 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9057 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9059 (procfs_use_watchpoints): Delete, move contents...
9060 (procfs_target): ... here.
9061 * procfs.h (procfs_use_watchpoints): Delete declaration.
9062 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9063 procfs_use_watchpoints.
9064 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9065 procfs_use_watchpoints.
9067 2018-05-02 Tom Tromey <tom@tromey.com>
9070 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9071 and var_zuinteger_unlimited.
9072 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9073 and PARAM_ZUINTEGER_UNLIMITED.
9074 (set_parameter_value): Handle var_zuinteger and
9075 var_zuinteger_unlimited.
9076 (add_setshow_generic): Likewise.
9077 (parmpy_init): Likewise.
9079 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9082 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9083 pointer is not null before dereferencing it.
9085 2018-04-30 Tom Tromey <tom@tromey.com>
9087 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9090 2018-04-30 Tom Tromey <tom@tromey.com>
9092 * breakpoint.c (mention): Remove use of is_mi_like_p.
9093 (print_mention_ranged_breakpoint): Likewise.
9094 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9097 2018-04-30 Tom Tromey <tom@tromey.com>
9099 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9101 2018-04-30 Tom Tromey <tom@tromey.com>
9103 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9104 (info_spu_event_command): Remove some uses of is_mi_like_p.
9106 2018-04-30 Tom Tromey <tom@tromey.com>
9108 * python/py-framefilter.c (py_print_single_arg)
9109 (enumerate_locals, py_print_args, py_print_frame): Remove some
9110 uses of is_mi_like_p.
9112 2018-04-30 Tom Tromey <tom@tromey.com>
9115 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9116 * ui-out.h (ui_out::is_mi_like_p): Now const.
9117 (ui_out::do_is_mi_like_p): Now const.
9118 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9120 2018-04-30 Tom Tromey <tom@tromey.com>
9122 * varobj.c (varobj_set_visualizer): Use new_reference.
9123 * python/python.c (gdbpy_decode_line): Use new_reference.
9124 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9127 2018-04-30 Tom Tromey <tom@tromey.com>
9129 * varobj.c (install_new_value): Use new_reference.
9130 * value.h (value_incref): Return void. Swap intro comment with
9132 * value.c (set_value_parent): Use new_reference.
9133 (value_incref): Return void. Update intro comment.
9134 (release_value): Use new_reference.
9135 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9137 2018-04-30 Tom Tromey <tom@tromey.com>
9139 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9140 * gdb_bfd.h (new_bfd_ref): Remove.
9141 (gdb_bfd_open): Update comment.
9142 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9143 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9144 (gdb_bfd_fdopenr): Use new_reference.
9145 * exec.c (exec_file_attach): Use new_reference.
9147 2018-04-30 Tom Tromey <tom@tromey.com>
9149 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9152 2018-04-30 Tom Tromey <tom@tromey.com>
9154 * jit.c (jit_read_code_entry): Use type_align.
9155 * i386-tdep.c (i386_gdbarch_init): Don't call
9156 set_gdbarch_long_long_align_bit.
9157 * gdbarch.sh: Remove long_long_align_bit.
9158 * gdbarch.c, gdbarch.h: Rebuild.
9159 * arc-tdep.c (arc_type_align): New function.
9160 (arc_gdbarch_init): Use arc_type_align. Don't call
9161 set_gdbarch_long_long_align_bit.
9163 2018-04-30 Tom Tromey <tom@tromey.com>
9165 * rust-lang.c (rust_type_alignment): Remove.
9166 (rust_composite_type): Use type_align.
9168 2018-04-30 Tom Tromey <tom@tromey.com>
9170 * NEWS: Mention Type.align.
9171 * python/py-type.c (typy_get_alignof): New function.
9172 (type_object_getset): Add "alignof".
9174 2018-04-30 Tom Tromey <tom@tromey.com>
9178 * std-operator.def (UNOP_ALIGNOF): New operator.
9179 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9181 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9182 * c-lang.c (c_op_print_tab): Add alignof.
9183 * c-exp.y (ALIGNOF): New token.
9184 (exp): Add "ALIGNOF" production.
9185 (ident_tokens): Add _Alignof and alignof.
9187 2018-04-30 Tom Tromey <tom@tromey.com>
9189 * i386-tdep.c (i386_type_align): New function.
9190 (i386_gdbarch_init): Update.
9191 * gdbarch.sh (type_align): New method.
9192 * gdbarch.c, gdbarch.h: Rebuild.
9193 * arch-utils.h (default_type_align): Declare.
9194 * arch-utils.c (default_type_align): New function.
9195 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9196 (struct type) <align_log2>: New field.
9197 <instance_flags>: Now a bitfield.
9198 (TYPE_RAW_ALIGN): New macro.
9199 (type_align, type_raw_align, set_type_align): Declare.
9200 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9202 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9203 (get_alignment, maybe_set_alignment): New functions.
9204 (read_structure_type, read_enumeration_type, read_array_type)
9205 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9206 (read_subrange_type, read_base_type): Set type alignment.
9208 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9210 * dwarf2read.c (read_index_from_section): Use bool.
9212 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9215 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9218 2018-04-29 John Reiser <jreiser@BitWagon.com>
9221 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9222 last step, and do it atomically.
9224 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9226 * compile/compile-c-types.c (convert_int, convert_float):
9229 2018-04-27 Tom Tromey <tom@tromey.com>
9232 * rust-lang.c (rust_inclusive_range_type_p): New function.
9233 (rust_range): Handle inclusive ranges.
9234 (rust_compute_range): Likewise.
9235 * rust-exp.y (struct rust_op) <inclusive>: New field.
9236 (DOTDOTEQ): New constant.
9237 (range_expr): Add "..=" productions.
9238 (operator_tokens): Add "..=" token.
9239 (ast_range): Add "inclusive" parameter.
9240 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9242 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9244 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9245 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9247 * expprint.c (print_subexp_standard): Handle new bounds values.
9248 (dump_subexp_body_standard): Likewise.
9250 2018-04-27 Tom Tromey <tom@tromey.com>
9252 * configure: Rebuild.
9253 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9254 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9256 (class symbol_needs_eval_context): Likewise.
9257 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9258 (mock_mapped_index::symbol_name_at): Use "override". Remove
9260 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9262 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9263 * aarch64-tdep.c (instruction_reader::read): Use "override".
9264 (instruction_reader_test::read): Likewise.
9265 * arm-tdep.c (instruction_reader::read): Use "override".
9266 (instruction_reader_thumb::read): Likewise.
9268 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9271 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9272 instead of remote_send.
9273 (remote_send): Remove.
9275 2018-04-26 Pedro Alves <palves@redhat.com>
9277 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9278 find_function_start_sal instead of find_pc_line.
9280 2018-04-26 Pedro Alves <palves@redhat.com>
9282 * breakpoint.c (set_breakpoint_location_function): Handle
9284 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9285 * elfread.c (elf_symtab_read): Give data symbols with
9286 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9287 (elf_rel_plt_read): Update comment.
9288 * linespec.c (convert_linespec_to_sals): Handle
9290 (minsym_found): Handle mst_data_gnu_ifunc.
9291 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9292 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9293 * parse.c (find_minsym_type_and_address): Handle
9295 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9296 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9297 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9299 <mst_data_gnu_ifunc>: New enumerator.
9301 2018-04-26 Pedro Alves <palves@redhat.com>
9303 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9304 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9305 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9307 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9308 (lookup_minimal_symbol_by_pc): Adjust.
9309 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9310 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9311 * minsyms.h (lookup_msym_prefer): New enum.
9312 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9313 parameter by a lookup_msym_prefer parameter.
9315 2018-04-26 Pedro Alves <palves@redhat.com>
9317 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9318 ends in "@plt" instead of looking at the symbol's section.
9320 2018-04-26 Pedro Alves <palves@redhat.com>
9322 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9324 (find_pc_partial_function_gnu_ifunc): Rename to ...
9325 (find_pc_partial_function): ... this, and remove references to
9327 (find_pc_partial_function): Delete old implementation.
9328 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9330 2018-04-26 Pedro Alves <palves@redhat.com>
9332 * linespec.c (struct bound_minimal_symbol_search_key): New.
9333 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9334 skip first line if we found a GNU ifunc minimal symbol by name.
9335 (compare_msymbols): Change parameters to work with a destructured
9337 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9340 2018-04-26 Pedro Alves <palves@redhat.com>
9342 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9343 ifunc targets here. Instead, if we have an ifunc minsym, use its
9345 (add_location_to_breakpoint): Store the minsym and the objfile in
9346 the breakpoint location.
9347 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9348 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9349 Record the minsym in the sal.
9350 * symtab.h (symtab_and_line) <msymbol>: New field.
9352 2018-04-26 Pedro Alves <palves@redhat.com>
9354 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9355 unless we actually resolved the ifunc.
9357 2018-04-26 Pedro Alves <palves@redhat.com>
9359 * c-exp.y (variable production): Prefer ifunc minsyms over
9360 regular function symbols.
9361 * symtab.c (find_gnu_ifunc): New function.
9362 * minsyms.h (lookup_msym_prefer): New enum.
9363 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9364 parameter by a lookup_msym_prefer parameter.
9365 * symtab.h (find_gnu_ifunc): New declaration.
9367 2018-04-26 Pedro Alves <palves@redhat.com>
9369 * blockframe.c (find_gnu_ifunc_target_type): New function.
9370 (find_function_type): New.
9371 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9372 return a value with a memory address.
9373 (eval_call): For calls to GNU ifunc functions, try to find the
9374 type of the target function from the type that the resolver
9376 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9378 * infcall.c (find_function_return_type): Delete.
9379 (find_function_addr): Add 'function_type' parameter. For calls to
9380 GNU ifunc functions, try to find the type of the target function
9381 from the type that the resolver returns, and return it via
9383 (call_function_by_hand_dummy): Adjust to use the function type
9384 returned by find_function_addr.
9385 (find_function_addr): Add 'function_type' parameter and move
9387 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9390 2018-04-26 Pedro Alves <palves@redhat.com>
9392 * c-exp.y (variable production): Skip finding an alias for ifunc
9395 2018-04-26 Pedro Alves <palves@redhat.com>
9397 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9399 2018-04-25 Pedro Alves <palves@redhat.com>
9401 * infcmd.c (kill_command): Print the pid as string, not the whole
9402 thread's ptid. Add comment. s/has been killed/killed/ in output
9404 * remote.c (remote_detach_1): Print the pid as string, not the
9405 whole thread's ptid.
9407 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9408 Sergio Durigan Junior <sergiodj@redhat.com>
9409 Pedro Alves <palves@redhat.com>
9411 * infcmd.c (kill_command): Print message when inferior has
9413 * inferior.c (print_inferior_events): Remove 'static'. Set as
9415 (add_inferior): Improve message printed when
9416 'print_inferior_events' is on.
9417 (exit_inferior): Remove message printed when
9418 'print_inferior_events' is on.
9419 (detach_inferior): Improve message printed when
9420 'print_inferior_events' is on.
9421 (initialize_inferiors): Use 'add_inferior_silent' to set
9422 'current_inferior_'.
9423 * inferior.h (print_inferior_events): Declare here as
9425 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9426 '[Detaching...]' messages when 'print_inferior_events' is on.
9427 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9428 as prefix/suffix for messages. Remove periods. Fix erroneous
9429 'Detaching after fork from child...', replace it by '... from
9431 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9432 prefix/suffix when printing 'Detaching...' messages. Print
9433 them when 'print_inferior_events' is on.
9434 * remote.c (remote_detach_1): Print message when detaching
9435 from inferior and '!is_fork_parent'.
9437 2018-04-24 Tom Tromey <tom@tromey.com>
9439 * cli-out.h: Reindent.
9441 2018-04-24 Tom Tromey <tom@tromey.com>
9443 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9444 (cli_ui_out::do_field_string): Use fputs_filtered.
9445 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9447 2018-04-23 Tom Tromey <tom@tromey.com>
9449 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9450 gdb::unique_xmalloc_ptr.
9452 2018-04-23 Tom Tromey <tom@tromey.com>
9454 * configure: Rebuild.
9456 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9459 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9460 prepare_for_testing. Set normal_bp to r_debug_state if target
9463 2018-04-21 Pedro Alves <palves@redhat.com>
9464 Rajendra SY <rajendra.sy@gmail.com>
9466 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9467 * remote.c (extended_remote_attach): In all-stop mode, mark the
9468 thread as executing.
9470 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9472 * thread.c (thread_apply_all_command): Fix comment.
9473 (thread_command): Fix comment.
9475 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9477 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9479 * features/aarch64-core.c (create_feature_aarch64_core):
9481 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9483 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9485 * features/i386/32bit-avx512.c
9486 (create_feature_i386_32bit_avx512): Likewise.
9487 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9489 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9491 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9493 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9495 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9497 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9499 * features/i386/64bit-avx512.c
9500 (create_feature_i386_64bit_avx512): Likewise.
9501 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9503 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9505 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9507 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9509 * features/i386/64bit-segments.c
9510 (create_feature_i386_64bit_segments): Likewise.
9511 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9513 * features/i386/x32-core.c
9514 (create_feature_i386_x32_core): Likewise.
9515 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9516 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9517 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9518 * target-descriptions.c: In generated code, don't pass xml
9521 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9523 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9524 (print_xml_feature::visit_post): Likewise.
9525 (print_xml_feature::visit): Likewise.
9526 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9527 (print_xml_feature): Add new class.
9528 * regformats/regdat.sh: Null xmltarget on feature targets.
9529 * target-descriptions.c (struct target_desc): Add xmltarget.
9530 (maintenance_check_tdesc_xml_convert): Add unittest function.
9531 (tdesc_get_features_xml): Add function to get xml.
9532 (maintenance_check_xml_descriptions): Test xml generation.
9533 * xml-tdesc.c (string_read_description_xml): Add function.
9534 * xml-tdesc.h (string_read_description_xml): Add declaration.
9536 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9538 * features/Makefile: Add feature marker to targets with new style
9539 target descriptions.
9540 * regformats/aarch64.dat: Regenerate.
9541 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9542 * regformats/i386/amd64-avx-linux.dat: Likewise.
9543 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9544 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9545 * regformats/i386/amd64-linux.dat: Likewise.
9546 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9547 * regformats/i386/amd64.dat: Likewise.
9548 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9549 * regformats/i386/i386-avx-linux.dat: Likewise.
9550 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9551 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9552 * regformats/i386/i386-linux.dat: Likewise.
9553 * regformats/i386/i386-mmx-linux.dat: Likewise.
9554 * regformats/i386/i386-mpx-linux.dat: Likewise.
9555 * regformats/i386/i386.dat: Likewise.
9556 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9557 * regformats/i386/x32-avx-linux.dat: Likewise.
9558 * regformats/i386/x32-linux.dat: Likewise.
9559 * regformats/tic6x-c62x-linux.dat: Likewise.
9560 * regformats/tic6x-c64x-linux.dat: Likewise.
9561 * regformats/tic6x-c64xp-linux.dat: Likewise.
9562 * regformats/regdat.sh: Parse feature marker.
9564 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9566 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9567 (tdesc_osabi_name): Likewise.
9568 * target-descriptions.c (tdesc_architecture_name): Add new
9570 (tdesc_osabi_name): Likewise.
9572 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9574 * common/tdesc.c (tdesc_predefined_type): Move to here.
9575 (tdesc_named_type): Likewise.
9576 (tdesc_create_vector): Likewise.
9577 (tdesc_create_struct): Likewise.
9578 (tdesc_set_struct_size): Likewise.
9579 (tdesc_create_union): Likewise.
9580 (tdesc_create_flags): Likewise.
9581 (tdesc_create_enum): Likewise.
9582 (tdesc_add_field): Likewise.
9583 (tdesc_add_typed_bitfield): Likewise.
9584 (tdesc_add_bitfield): Likewise.
9585 (tdesc_add_flag): Likewise.
9586 (tdesc_add_enum_value): Likewise.
9587 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9588 (struct tdesc_type_vector): Likewise.
9589 (struct tdesc_type_field): Likewise.
9590 (struct tdesc_type_with_fields): Likewise.
9591 (tdesc_create_enum): Add declaration.
9592 (tdesc_add_typed_bitfield): Likewise.
9593 (tdesc_add_enum_value): Likewise.
9594 * target-descriptions.c (tdesc_type_field): Move from here.
9595 (tdesc_type_builtin): Likewise.
9596 (tdesc_type_vector): Likewise.
9597 (tdesc_type_with_fields): Likewise.
9598 (tdesc_predefined_types): Likewise.
9599 (tdesc_named_type): Likewise.
9600 (tdesc_create_vector): Likewise.
9601 (tdesc_create_struct): Likewise.
9602 (tdesc_set_struct_size): Likewise.
9603 (tdesc_create_union): Likewise.
9604 (tdesc_create_flags): Likewise.
9605 (tdesc_create_enum): Likewise.
9606 (tdesc_add_field): Likewise.
9607 (tdesc_add_typed_bitfield): Likewise.
9608 (tdesc_add_bitfield): Likewise.
9609 (tdesc_add_flag): Likewise.
9610 (tdesc_add_enum_value): Likewise.
9611 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9612 (tdesc_add_typed_bitfield): Likewise.
9613 (tdesc_add_enum_value): Likewise.
9615 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9617 * common/tdesc.c (tdesc_feature::accept): Move to here.
9618 (tdesc_feature::operator==): Likewise.
9619 (tdesc_create_reg): Likewise.
9620 * common/tdesc.h (tdesc_type_kind): Likewise.
9621 (struct tdesc_type): Likewise.
9622 (struct tdesc_feature): Likewise.
9623 * regformats/regdat.sh: Create a feature.
9624 * target-descriptions.c (tdesc_type_kind): Move from here.
9625 (tdesc_type): Likewise.
9626 (tdesc_type_up): Likewise.
9627 (tdesc_feature): Likewise.
9628 (tdesc_create_reg): Likewise.
9630 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9632 * Makefile.in: Add arch/tdesc.c
9633 * common/tdesc.c: New file.
9634 * common/tdesc.h (tdesc_element_visitor): Move to here.
9635 (tdesc_element): Likewise.
9636 (tdesc_reg): Likewise.
9637 (tdesc_reg_up): Likewise.
9638 * regformats/regdef.h (reg): Add offset to constructors.
9639 * target-descriptions.c (tdesc_element_visitor): Move from here.
9640 (tdesc_element): Likewise.
9641 (tdesc_reg): Likewise.
9642 (tdesc_reg_up): Likewise.
9644 2018-04-17 Tom Tromey <tom@tromey.com>
9646 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9649 2018-04-17 Tom Tromey <tom@tromey.com>
9651 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9653 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9655 * symtab.c (print_symbol_info): Skip printing filename and line
9656 number when `last' is NULL.
9657 (symtab_symbol_info): Use empty string instead of NULL for first
9658 invocation of print_symbol_info.
9659 (rbreak_command): Pass NULL to `last' parameter of
9662 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9664 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9667 2018-04-16 Pedro Alves <palves@redhat.com>
9669 * MAINTAINERS (sh): Remove.
9670 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9671 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9672 (ALLDEPFILES): Remove sh64-tdep.c.
9673 * NEWS: Mentions that support for SH-5/SH64 is removed.
9674 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9675 (sh*-*-openbsd*): Ditto.
9676 (sh64-*-elf*): Remove.
9678 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9679 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9680 * sh-tdep.c: No longer include "sh64-tdep.h".
9681 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9682 * sh64-tdep.c, sh64-tdep.h: Remove files.
9684 2018-04-16 Pedro Alves <palves@redhat.com>
9686 * MAINTAINERS: Remove m88k.
9687 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9688 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9689 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9690 * NEWS: Mention that support for m88k was removed.
9691 * configure.host (m88*-*-*): Remove support.
9692 * configure.nat (m88k-*-*): Remove support.
9693 * configure.tgt (m88*-*-openbsd*): Remove.
9694 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9696 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9698 * configure.tgt (x86_tobjs): New variable.
9699 (amd64_tobjs, i386_tobjs): Use it.
9701 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9703 * symtab.c (print_symbol_info): Precede the symbol definition by
9704 the line number when available.
9705 * NEWS: Advertise this enhancement.
9707 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9709 * NEWS (New options): announce set/show record btrace cpu.
9710 * btrace.c: Include record-btrace.h.
9711 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9712 the vendor is unknown.
9713 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9714 Maybe overwrite the btrace configuration's cpu.
9715 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9716 (btrace_fetch): Add cpu parameter. Update callers.
9717 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9718 Maybe overwrite the btrace configuration's cpu. Skip enabling
9719 errata workarounds if the vendor is unknown.
9720 * python/py-record-btrace.c: Include record-btrace.h.
9721 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9722 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9723 * record-btrace.c (record_btrace_cpu_state_kind): New.
9724 (record_btrace_cpu): New.
9725 (set_record_btrace_cpu_cmdlist): New.
9726 (record_btrace_get_cpu): New.
9727 (require_btrace_thread, record_btrace_info)
9728 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9729 (cmd_set_record_btrace_cpu_none): New.
9730 (cmd_set_record_btrace_cpu_auto): New.
9731 (cmd_set_record_btrace_cpu): New.
9732 (cmd_show_record_btrace_cpu): New.
9733 (_initialize_record_btrace): Initialize set/show record btrace cpu
9735 * record-btrace.h (record_btrace_get_cpu): New.
9737 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9739 * record.c (set_record_command): Fix typo in message.
9741 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9743 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9745 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9747 * infrun.c (process_event_stop_test): Call
9748 gdbarch_in_indirect_branch_thunk.
9749 * gdbarch.sh (in_indirect_branch_thunk): New.
9750 * gdbarch.c: Regenerated.
9751 * gdbarch.h: Regenerated.
9754 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9755 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9756 (ALLDEPFILES): Add x86-tdep.c.
9757 * arch-utils.h (default_in_indirect_branch_thunk): New.
9758 * arch-utils.c (default_in_indirect_branch_thunk): New.
9759 * i386-tdep: Include x86-tdep.h.
9760 (i386_in_indirect_branch_thunk): New.
9761 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9763 * amd64-tdep: Include x86-tdep.h.
9764 (amd64_in_indirect_branch_thunk): New.
9765 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9767 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9770 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9771 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9772 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9775 2018-04-12 Tom Tromey <tom@tromey.com>
9777 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9778 (rust_evaluate_subexp): Likewise.
9780 2018-04-12 Pedro Alves <palves@redhat.com>
9782 * procfs.c (procfs_detach): Make forward declaration's prototype
9783 match definition's protototype.
9784 (proc_get_LDT_entry): Remove stale do_cleanups call.
9786 2018-04-12 Pedro Alves <palves@redhat.com>
9788 * target.h (target_ops::to_has_exited): Delete.
9789 (target_has_exited): Delete.
9790 * target-delegates.c: Regenerate.
9792 2018-04-11 Pedro Alves <palves@redhat.com>
9794 * target.c (fileio_fh_t::t): Add comment.
9795 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9796 (target_fileio_close): Handle a NULL target.
9797 (invalidate_fileio_fh): New.
9798 (target_close): Call it.
9799 * remote.c (remote_hostio_send_command): No longer check whether
9800 remote_desc is open.
9802 2018-04-11 Pedro Alves <palves@redhat.com>
9804 * target.c (fileio_fh_t): Make it a named struct instead of a
9806 (fileio_fh_t::is_closed): New method.
9807 (DEF_VEC_O (fileio_fh_t)): Remove.
9808 (fileio_fhandles): Now a std::vector.
9809 (is_closed_fileio_fh): Delete.
9810 (acquire_fileio_fd): Adjust. Rename parameters.
9811 (release_fileio_fd): Adjust.
9812 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9813 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9814 (target_fileio_close): Adjust.
9816 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9818 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9821 2018-04-10 Pedro Alves <palves@redhat.com>
9823 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9824 (scoped_finish_thread_state): New class.
9825 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9827 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9828 (fetch_inferior_event, normal_stop): Likewise.
9829 * thread.c (finish_thread_state_cleanup): Delete.
9831 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9832 Pedro Alves <palves@redhat.com>
9834 * value.c: Include "selftest.h" and "common/array-view.h".
9835 (struct range) <operator ==>: New.
9836 (test_ranges_contain): New.
9837 (check_ranges_vector): New.
9838 (test_insert_into_bit_range_vector): New.
9839 (_initialize_values): Register selftests.
9840 * common/array-view.h (operator==, operator!=): New.
9842 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9844 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9846 * inline-frame.c: Include <algorithm>.
9847 (struct inline_state): Add constructor.
9848 (inline_state_s): Remove.
9849 (DEF_VEC_O(inline_state_s)): Remove.
9850 (inline_states): Change type to std::vector.
9851 (find_inline_frame_state): Adjust to std::vector.
9852 (allocate_inline_frame_state): Remove.
9853 (clear_inline_frame_state): Adjust to std::vector.
9854 (skip_inline_frames): Adjust to std::vector.
9856 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9858 * tracepoint.h (struct trace_state_variable): Add constructor.
9859 <name>: Change type to std::string.
9860 * tracepoint.c (tsv_s): Remove.
9861 (DEF_VEC_O(tsv_s)): Remove.
9862 (tvariables): Change to std::vector.
9863 (create_trace_state_variable): Adjust to std::vector.
9864 (find_trace_state_variable): Likewise.
9865 (find_trace_state_variable_by_number): Likewise.
9866 (delete_trace_state_variable): Likewise.
9867 (trace_variable_command): Adjust to std::string.
9868 (delete_trace_variable_command): Likewise.
9869 (tvariables_info_1): Adjust to std::vector.
9870 (save_trace_state_variables): Likewise.
9871 (start_tracing): Likewise.
9872 (merge_uploaded_trace_state_variables): Adjust to std::vector
9874 * target.h (struct target_ops)
9875 <to_download_trace_state_variable>: Pass reference to
9876 trace_state_variable.
9877 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9878 * target-delegates.c: Re-generate.
9879 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9880 (mi_tsv_deleted): Likewise.
9881 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9882 * remote.c (remote_download_trace_state_variable): Change
9883 pointer to reference and adjust.
9884 * make-target-delegates (parse_argtypes): Handle references.
9885 (write_function_header): Likewise.
9886 (munge_type): Likewise.
9888 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9890 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9891 string_view-selftests.c.
9892 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9894 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9895 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9896 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9897 * unittests/basic_string_view/element_access/char/1.cc:
9899 * unittests/basic_string_view/element_access/char/empty.cc:
9901 * unittests/basic_string_view/element_access/char/front_back.cc:
9903 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9904 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9906 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9908 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9910 * unittests/basic_string_view/operations/compare/char/1.cc:
9912 * unittests/basic_string_view/operations/compare/char/13650.cc:
9914 * unittests/basic_string_view/operations/copy/char/1.cc:
9916 * unittests/basic_string_view/operations/data/char/1.cc:
9918 * unittests/basic_string_view/operations/find/char/1.cc:
9920 * unittests/basic_string_view/operations/find/char/2.cc:
9922 * unittests/basic_string_view/operations/find/char/3.cc:
9924 * unittests/basic_string_view/operations/find/char/4.cc:
9926 * unittests/basic_string_view/operations/rfind/char/1.cc:
9928 * unittests/basic_string_view/operations/rfind/char/2.cc:
9930 * unittests/basic_string_view/operations/rfind/char/3.cc:
9932 * unittests/basic_string_view/operations/substr/char/1.cc:
9934 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9935 * unittests/string_view-selftests.c: New file.
9937 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9939 * unittests/basic_string_view/capacity/1.cc: New file.
9940 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9941 * unittests/basic_string_view/cons/char/1.cc: New file.
9942 * unittests/basic_string_view/cons/char/2.cc: New file.
9943 * unittests/basic_string_view/cons/char/3.cc: New file.
9944 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9945 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9946 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9947 * unittests/basic_string_view/element_access/char/1.cc: New file.
9948 * unittests/basic_string_view/element_access/char/2.cc: New file.
9949 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9950 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9951 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9952 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
9953 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
9954 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
9955 * unittests/basic_string_view/include.cc: New file.
9956 * unittests/basic_string_view/inserters/char/1.cc: New file.
9957 * unittests/basic_string_view/inserters/char/2.cc: New file.
9958 * unittests/basic_string_view/inserters/char/3.cc: New file.
9959 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
9960 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
9961 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
9962 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
9963 * unittests/basic_string_view/literals/types.cc: New file.
9964 * unittests/basic_string_view/literals/values.cc: New file.
9965 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
9966 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
9967 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
9968 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
9969 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
9970 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
9971 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
9972 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
9973 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
9974 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
9975 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
9976 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
9977 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
9978 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
9979 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
9980 * unittests/basic_string_view/operations/data/char/1.cc: New file.
9981 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
9982 * unittests/basic_string_view/operations/find/char/1.cc: New file.
9983 * unittests/basic_string_view/operations/find/char/2.cc: New file.
9984 * unittests/basic_string_view/operations/find/char/3.cc: New file.
9985 * unittests/basic_string_view/operations/find/char/4.cc: New file.
9986 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
9987 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
9988 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
9989 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
9990 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
9991 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
9992 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
9993 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
9994 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
9995 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
9996 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
9997 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
9998 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
9999 * unittests/basic_string_view/operators/char/2.cc: New file.
10000 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10001 * unittests/basic_string_view/range_access/char/1.cc: New file.
10002 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10003 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10004 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10005 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10006 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10007 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10008 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10009 * unittests/basic_string_view/typedefs.cc: New file.
10010 * unittests/basic_string_view/types/1.cc: New file.
10012 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10014 * common/gdb_string_view.h: Remove libstdc++ implementation
10015 details, adjust to gdb reality.
10016 * common/gdb_string_view.tcc: Likewise.
10017 * cli/cli-script.c (struct string_view): Remove.
10018 (user_args) <m_args>: Change element type to gdb::string_view.
10019 (user_args::insert_args): Adjust.
10021 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10023 * common/gdb_string_view.h: New file.
10024 * common/gdb_string_view.tcc: New file.
10026 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10028 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10029 * configure: Re-generate.
10031 2018-04-09 Pedro Alves <palves@redhat.com>
10033 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10034 (set_target_gdbarch): Call
10035 gdb::observers::architecture_changed.notify instead of
10036 observer_notify_architecture_changed.
10038 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10040 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10041 (do_restore_current_traceframe_cleanup): Remove.
10042 (restore_current_traceframe_cleanup_dtor): Remove.
10043 (make_cleanup_restore_current_traceframe): Remove.
10044 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10046 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10047 * infrun.c (fetch_inferior_event): Use
10048 scoped_restore_current_traceframe.
10050 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10052 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10054 <n_allocated_type_units>: Remove.
10055 <all_type_units>: Change to std::vector.
10056 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10057 to std::vector change.
10058 (dwarf2_per_objfile::get_cutu): Likewise.
10059 (dwarf2_per_objfile::get_tu): Likewise.
10060 (create_signatured_type_table_from_index): Likewise.
10061 (create_signatured_type_table_from_debug_names): Likewise.
10062 (dw2_symtab_iter_next): Likewise.
10063 (dw2_print_stats): Likewise.
10064 (dw2_expand_all_symtabs): Likewise.
10065 (dw2_expand_marked_cus): Likewise.
10066 (dw2_debug_names_iterator::next): Likewise.
10067 (dwarf2_initialize_objfile): Likewise.
10068 (add_signatured_type_cu_to_table): Likewise.
10069 (create_all_type_units): Likewise.
10070 (add_type_unit): Likewise.
10071 (struct tu_abbrev_offset): Add constructor.
10072 (build_type_psymtabs_1): Adjust to std::vector change.
10073 (print_tu_stats): Likewise.
10074 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10075 (write_debug_names): Likewise.
10077 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10079 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10080 Make an std::vector.
10081 <n_comp_units>: Remove.
10082 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10083 to std::vector change.
10084 (dwarf2_per_objfile::get_cutu): Likewise.
10085 (dwarf2_per_objfile::get_cu): Likewise.
10086 (create_cus_from_index): Likewise.
10087 (create_addrmap_from_index): Likewise.
10088 (create_addrmap_from_aranges): Likewise.
10089 (dwarf2_read_index): Likewise.
10090 (dw2_find_last_source_symtab): Likewise.
10091 (dw2_map_symtabs_matching_filename): Likewise.
10092 (dw2_symtab_iter_next): Likewise.
10093 (dw2_print_stats): Likewise.
10094 (dw2_expand_all_symtabs): Likewise.
10095 (dw2_expand_symtabs_with_fullname): Likewise.
10096 (dw2_expand_marked_cus): Likewise.
10097 (dw2_map_symbol_filenames): Likewise.
10098 (create_cus_from_debug_names): Likewise.
10099 (dwarf2_read_debug_names): Likewise.
10100 (dw2_debug_names_iterator::next): Likewise.
10101 (dwarf2_initialize_objfile): Likewise.
10102 (set_partial_user): Likewise.
10103 (dwarf2_build_psymtabs_hard): Likewise.
10104 (read_comp_units_from_section): Remove arguments, adjust to
10105 std::vector change.
10106 (create_all_comp_units): Adjust to std::vector and
10107 read_comp_units_from_section changes.
10108 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10110 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10111 (psyms_seen_size): Likewise.
10112 (write_gdbindex): Likewise.
10113 (write_debug_names): Likewise.
10115 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10117 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10118 with dwarf2_per_objfile.
10119 (create_cus_from_index): Likewise.
10120 (create_signatured_type_table_from_index): Likewise.
10121 (dwarf2_read_index): Likewise.
10122 (dwarf2_initialize_objfile): Likewise.
10123 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10124 per_cu rather than get_dwarf2_per_objfile.
10126 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10128 * dwarf2read.h (struct signatured_type): Forward declare.
10129 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10131 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10132 (dw2_get_cutu): ...this.
10133 (dwarf2_per_objfile::get_cu): Rename from...
10134 (dw2_get_cu): ...this.
10135 (dwarf2_per_objfile::get_tu): New.
10136 (create_addrmap_from_index): Adjust.
10137 (create_addrmap_from_aranges): Adjust.
10138 (dw2_find_last_source_symtab): Adjust.
10139 (dw2_map_symtabs_matching_filename): Adjust.
10140 (dw2_symtab_iter_next): Adjust.
10141 (dw2_print_stats): Adjust.
10142 (dw2_expand_all_symtabs): Adjust.
10143 (dw2_expand_symtabs_with_fullname): Adjust.
10144 (dw2_expand_marked_cus): Adjust.
10145 (dw_expand_symtabs_matching_file_matcher): Adjust.
10146 (dw2_map_symbol_filenames): Adjust.
10147 (dw2_debug_names_iterator::next): Adjust.
10148 (dwarf2_initialize_objfile): Adjust.
10149 (set_partial_user): Adjust.
10150 (dwarf2_build_psymtabs_hard): Adjust.
10152 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10154 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10155 Remove unused variables.
10156 (dw2_map_symtabs_matching_filename): Likewise.
10157 (dwarf2_record_block_ranges): Likewise.
10158 (dwarf2_read_addr_index): Likewise.
10159 (follow_die_offset): Likewise.
10161 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10163 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10164 to symbol_file_add_main.
10166 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10169 * mi/mi-console.c (do_fputc_async_safe): New.
10170 (mi_console_file::write_async_safe): New.
10171 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10172 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10174 * ui-file.c (ui_file::putstrn): Adjust call to
10175 fputstrn_unfiltered.
10176 * utils.c (printchar): Replace do_fputs and do_fprintf
10177 parameters by do_fputc.
10178 (fputstr_filtered): Adjust call to printchar.
10179 (fputstr_unfiltered): Likewise.
10180 (fputstrn_filtered): Likewise.
10181 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10183 * utils.h (do_fputc_ftype): New typedef.
10184 (fputstrn_unfiltered): Add do_fputc parameter.
10186 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10188 * regformats/i386/i386-avx.dat: Remove.
10190 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10193 * amd64-tdep.c (amd64_none_init_abi): New function.
10194 (amd64_x32_none_init_abi): New function.
10195 (_initialize_amd64_tdep): Register handlers for x86-64 and
10196 x64_32 with GDB_OSABI_NONE.
10197 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10198 GDB_OSABI_NONE osabi.
10200 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10203 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10205 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10206 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10208 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10210 * common/byte-vector.h (char_vector): New type.
10211 * target.h (target_read_alloc): Return
10212 gdb::optional<byte_vector>.
10213 (target_read_stralloc): Return gdb::optional<char_vector>.
10214 (target_get_osdata): Return gdb::optional<char_vector>.
10215 * target.c (target_read_alloc_1): Templatize. Replacement
10216 manual memory management with vector.
10217 (target_read_alloc): Change return type, adjust.
10218 (target_read_stralloc): Change return type, adjust.
10219 (target_get_osdata): Change return type, adjust.
10220 * auxv.c (struct auxv_info) <length>: Remove.
10221 <data>: Change type to gdb::optional<byte_vector>.
10222 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10223 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10224 (target_auxv_search): Adjust.
10225 (fprint_target_auxv): Adjust.
10226 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10227 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10228 (linux_make_corefile_notes): Adjust.
10229 * osdata.c (get_osdata): Adjust.
10230 * remote.c (remote_get_threads_with_qxfer): Adjust.
10231 (remote_memory_map): Adjust.
10232 (remote_traceframe_info): Adjust.
10233 (btrace_read_config): Adjust.
10234 (remote_read_btrace): Adjust.
10235 (remote_pid_to_exec_file): Adjust.
10236 * solib-aix.c (solib_aix_get_library_list): Adjust.
10237 * solib-dsbt.c (decode_loadmap): Don't free buf.
10238 (dsbt_get_initial_loadmaps): Adjust.
10239 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10240 * solib-target.c (solib_target_current_sos): Adjust.
10241 * tracepoint.c (sdata_make_value): Adjust.
10242 * xml-support.c (xinclude_start_include): Adjust.
10243 (xml_fetch_content_from_file): Adjust.
10244 * xml-support.h (xml_fetch_another): Change return type.
10245 (xml_fetch_content_from_file): Change return type.
10246 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10247 * xml-tdesc.c (file_read_description_xml): Adjust.
10248 (fetch_available_features_from_target): Change return type.
10249 (target_fetch_description_xml): Adjust.
10250 (target_read_description_xml): Adjust.
10252 2018-04-06 Tom Tromey <tom@tromey.com>
10254 * value.c (~value): Update.
10255 (struct value) <contents>: Now unique_xmalloc_ptr.
10256 (value_contents_bits_eq, allocate_value_contents)
10257 (value_contents_raw, value_contents_all_raw)
10258 (value_contents_for_printing, value_contents_for_printing_const)
10259 (set_value_enclosing_type): Update.
10261 2018-04-06 Tom Tromey <tom@tromey.com>
10263 * value.c (range_s): Remove typedef, VEC.
10264 (struct range): Add operator<.
10265 (range_lessthan): Remove.
10266 (ranges_contain): Change type.
10268 (struct value) <unavailable, optimized_out>: Now std::vector.
10269 (value_entirely_available)
10270 (value_entirely_covered_by_range_vector)
10271 (value_entirely_unavailable, value_entirely_optimized_out):
10273 (insert_into_bit_range_vector): Change argument type.
10274 (find_first_range_overlap): Likewise.
10275 (struct ranges_and_idx, value_contents_bits_eq)
10276 (require_not_optimized_out, require_available): Update.
10277 (ranges_copy_adjusted): Change argument types.
10278 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10280 2018-04-06 Tom Tromey <tom@tromey.com>
10282 * value.c (~value): Update.
10283 (struct value) <parent>: Now a value_ref_ptr.
10284 (value_parent, set_value_parent, value_address, value_copy):
10287 2018-04-06 Tom Tromey <tom@tromey.com>
10289 * value.c (struct value): Add constructor, destructor, and member
10291 (allocate_value_lazy, value_decref): Update.
10293 2018-04-06 Tom Tromey <tom@tromey.com>
10295 * value.c (struct value) <released, next>: Remove.
10296 (all_values): Now a std::vector.
10297 (allocate_value_lazy): Update.
10298 (value_next): Remove.
10299 (value_mark, value_free_to_mark, release_value)
10300 (value_release_to_mark): Update.
10302 2018-04-06 Tom Tromey <tom@tromey.com>
10304 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10305 (free_value_chain): Remove.
10306 * value.c (free_value_chain): Remove.
10307 (value_release_to_mark): Return a std::vector.
10308 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10310 (check_condition): Update.
10311 * eval.c (fetch_subexp_value): Change "val_chain" to a
10313 * breakpoint.c (update_watchpoint): Update.
10314 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10316 2018-04-06 Tom Tromey <tom@tromey.com>
10318 * value.h (free_all_values): Remove.
10319 * value.c (free_all_values): Remove.
10321 2018-04-06 Tom Tromey <tom@tromey.com>
10323 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10324 (value_history_chain, value_history_count): Remove.
10325 (value_history): New global.
10326 (record_latest_value, access_value_history, show_values)
10327 (preserve_values): Update.
10329 2018-04-06 Tom Tromey <tom@tromey.com>
10331 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10332 * varobj.c (varobj_set_display_format, varobj_set_value)
10333 (install_default_visualizer, construct_visualizer)
10334 (install_new_value, ~varobj, varobj_get_value_type)
10335 (my_value_of_variable, varobj_editable_p): Update.
10336 * c-varobj.c (c_describe_child, c_value_of_variable)
10337 (cplus_number_of_children, cplus_describe_child): Update.
10338 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10339 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10340 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10342 2018-04-06 Tom Tromey <tom@tromey.com>
10344 * printcmd.c (last_examine_address): Change type to
10346 (do_examine, x_command): Update.
10348 2018-04-06 Tom Tromey <tom@tromey.com>
10350 * value.c (release_value): Update.
10351 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10352 (struct bpstats) <val>: Now a value_ref_ptr.
10353 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10354 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10355 (~watchpoint, print_it_watchpoint, watch_command_1)
10356 (invalidate_bp_value_on_memory_change): Update.
10358 2018-04-06 Tom Tromey <tom@tromey.com>
10360 * varobj.c (varobj_clear_saved_item)
10361 (update_dynamic_varobj_children, install_new_value, ~varobj):
10363 * value.h (value_incref): Move declaration earlier.
10364 (value_decref): Rename from value_free.
10365 (struct value_ref_policy): New.
10366 (value_ref_ptr): New typedef.
10367 (struct value_deleter): Remove.
10368 (gdb_value_up): Remove typedef.
10369 (release_value): Change return type.
10370 (release_value_or_incref): Remove.
10371 * value.c (set_value_parent): Update.
10372 (value_incref): Change return type.
10373 (value_decref): Rename from value_free.
10374 (value_free_to_mark, free_all_values, free_value_chain): Update.
10375 (release_value): Return value_ref_ptr.
10376 (release_value_or_incref): Remove.
10377 (record_latest_value, set_internalvar, clear_internalvar):
10379 * stack.c (info_frame_command): Don't call value_free.
10380 * python/py-value.c (valpy_dealloc, valpy_new)
10381 (value_to_value_object): Update.
10382 * printcmd.c (do_examine): Update.
10383 * opencl-lang.c (lval_func_free_closure): Update.
10384 * mi/mi-main.c (register_changed_p): Don't call value_free.
10385 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10386 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10387 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10389 * guile/scm-value.c (vlscm_free_value_smob)
10390 (vlscm_scm_from_value): Update.
10391 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10392 (frame_unwind_register_unsigned, get_frame_register_bytes)
10393 (put_frame_register_bytes): Don't call value_free.
10394 * findvar.c (address_from_register): Don't call value_free.
10395 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10396 * dwarf2loc.c (entry_data_value_free_closure)
10397 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10398 (dwarf2_evaluate_loc_desc_full): Update.
10399 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10400 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10401 (~watchpoint, watch_command_1)
10402 (invalidate_bp_value_on_memory_change): Update.
10403 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10405 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10408 * warning.m4: Add -Wno-error=deprecated-register.
10409 * configure: Re-generate.
10411 2018-04-05 Tom Tromey <tom@tromey.com>
10413 * linespec.h: Remove include of "vec.h".
10415 2018-04-05 Tom Tromey <tom@tromey.com>
10417 * linespec.c (typep): Remove typedef.
10418 (find_methods, find_superclass_methods): Take a std::vector.
10419 (find_method): Use std::vector.
10421 2018-04-05 Tom Tromey <tom@tromey.com>
10423 * utils.c (compare_strings): Remove.
10424 * utils.h (compare_strings): Remove.
10425 * objc-lang.h (find_imps): Update.
10426 * objc-lang.c (find_methods): Take a std::vector.
10427 (uniquify_strings, find_imps): Likewise.
10428 * linespec.c (find_methods): Take a std::vector.
10429 (decode_objc): Use std::vector.
10430 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10432 (find_method, find_function_symbols): Use std::vector.
10434 2018-04-05 Tom Tromey <tom@tromey.com>
10436 * completer.c (completion_tracker::completion_tracker): Remove
10438 (completion_tracker::discard_completions): Likewise.
10439 * breakpoint.c (ambiguous_names_p): Remove cast.
10440 * ada-lang.c (_initialize_ada_language): Remove cast.
10441 * utils.h (streq): Update.
10442 (streq_hash): Add new declaration.
10443 * utils.c (streq): Return bool.
10444 (streq_hash): New function.
10446 2018-04-05 Tom Tromey <tom@tromey.com>
10448 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10449 Remove a string copy.
10451 2018-04-05 Tom Tromey <tom@tromey.com>
10453 * linespec.c (filter_results): Use std::vector.
10454 (decode_line_2, decode_line_full): Update.
10456 2018-04-05 Tom Tromey <tom@tromey.com>
10458 * linespec.c (canonical_to_fullform): Return std::string.
10459 (filter_results): Update.
10460 (struct decode_line_2_item): Add constructor.
10461 <fullform, displayform>: Now std::string.
10462 (decode_line_2_compare_items): Now a std::sort comparator.
10463 (decode_line_2): Update.
10465 2018-04-05 Tom Tromey <tom@tromey.com>
10467 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10468 (unexpected_linespec_error): Update.
10469 (linespec_parse_basic, parse_linespec): Update.
10471 2018-04-05 Tom Tromey <tom@tromey.com>
10473 * linespec.c (linespec_parse_basic): Reindent.
10475 2018-04-05 Tom Tromey <tom@tromey.com>
10477 * minsyms.h (iterate_over_minimal_symbols): Update.
10478 * minsyms.c (iterate_over_minimal_symbols): Take a
10479 gdb::function_view.
10480 * linespec.c (struct collect_minsyms): Remove.
10481 (compare_msyms): Now a std::sort comparator.
10482 (add_minsym): Add parameters.
10483 (search_minsyms_for_name): Update. Use std::vector.
10485 2018-04-03 Tom Tromey <tom@tromey.com>
10487 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10490 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10492 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10494 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10497 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10498 printing static type.
10500 2018-04-01 Tom Tromey <tom@tromey.com>
10502 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10503 (rs6000_xfer_shared_libraries): Update.
10505 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10507 * common/gdb_vecs.h (char_ptr): Remove.
10508 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10510 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10512 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10514 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10516 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10518 * tracepoint.h (struct uploaded_tp): Initialize fields.
10519 <actions, step_actions, cmd_strings>: Change type to
10520 std::vector<char *>.
10521 * tracepoint.c (get_uploaded_tp): Allocate with new.
10522 (free_uploaded_tps): Free with delete.
10523 (parse_tracepoint_definition): Adjust to std::vector change.
10524 * breakpoint.c (read_uploaded_action): Likewise.
10525 (create_tracepoint_from_upload): Likewise.
10526 * ctf.c (ctf_write_uploaded_tp): Likewise.
10527 (SET_ARRAY_FIELD): Likewise.
10528 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10530 2018-03-30 Tom Tromey <tom@tromey.com>
10532 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10534 (svr4_keep_data_in_core): Update.
10535 (svr4_read_so_list): Update.
10537 2018-03-30 Tom Tromey <tom@tromey.com>
10539 * windows-nat.c (handle_output_debug_string, handle_exception):
10541 * target.h (target_read_string): Update.
10542 * target.c (target_read_string): Change "string" to
10543 unique_xmalloc_ptr.
10544 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10546 * solib-frv.c (frv_current_sos): Update.
10547 * solib-dsbt.c (dsbt_current_sos): Update.
10548 * solib-darwin.c (darwin_current_sos): Update.
10549 * linux-thread-db.c (inferior_has_bug): Update.
10550 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10551 Update. Remove alloca.
10552 * ada-lang.c (ada_main_name): Update.
10554 2018-03-30 Tom Tromey <tom@tromey.com>
10556 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10557 (struct dwo_file_deleter): New.
10558 (dwo_file_up): New typedef.
10559 (open_and_init_dwo_file): Use dwo_file_up.
10560 (free_dwo_file_cleanup): Remove.
10562 2018-03-30 Tom Tromey <tom@tromey.com>
10564 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10565 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10567 2018-03-30 Tom Tromey <tom@tromey.com>
10569 * dwarf2read.c (class free_cached_comp_units): New class.
10570 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10571 (free_cached_comp_units): Remove function.
10573 2018-03-30 Tom Tromey <tom@tromey.com>
10575 * utils.h (make_cleanup_unpush_target): Remove.
10576 * inf-ptrace.c (struct target_unpusher): New.
10577 (target_unpush_up) New typedef.
10578 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10580 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10582 2018-03-27 Tom Tromey <tom@tromey.com>
10584 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10586 2018-03-27 Pedro Alves <palves@redhat.com>
10587 Tom Tromey <tom@tromey.com>
10589 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10590 destructor. Now a class.
10591 (gdb_readline_wrapper_cleanup): Remove function.
10592 (gdb_readline_wrapper): Remove cleanups.
10594 2018-03-27 Tom Tromey <tom@tromey.com>
10596 * typeprint.h (struct type_print_options) <local_typedefs,
10597 global_typedefs>: Remove "struct" keyword.
10598 (class typedef_hash_table): New class.
10599 (recursively_update_typedef_hash, add_template_parameters)
10600 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10601 (find_typedef_in_hash): Don't declare.
10602 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10603 (typedef_hash_table::recursively_update): Rename from
10604 recursively_update_typedef_hash. Now a member.
10605 (typedef_hash_table::add_template_parameters): Rename from
10606 add_template_parameters. Now a member.
10607 (typedef_hash_table::typedef_hash_table): Now a constructor;
10608 rename from create_typedef_hash.
10609 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10610 rename from free_typedef_hash.
10611 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10612 (do_free_global_table): Remove.
10613 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10614 from copy_type_recursive.
10615 (create_global_typedef_table): Remove.
10616 (typedef_hash_table::find_global_typedef): Now a member of
10617 typedef_hash_table.
10618 (typedef_hash_table::find_typedef): Rename from
10619 find_typedef_in_hash; now a member.
10620 (whatis_exp): Update.
10621 * extension.h (struct ext_lang_type_printers): Add constructor and
10623 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10625 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10626 Now a constructor; rename from start_ext_lang_type_printers.
10627 (ext_lang_type_printers): Now a destructor; rename from
10628 free_ext_lang_type_printers.
10629 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10631 (c_type_print_base_struct_union): Update. Remove cleanups.
10633 2018-03-27 Tom Tromey <tom@tromey.com>
10635 * dwarf-index-write.c: Include <cmath>.
10637 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10639 * NEWS: Add entry describing new "set|show varsize-limit" command.
10640 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10642 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10645 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10647 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10648 dwarf-index-write.c
10649 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10650 * dwarf-index-common.c: New file.
10651 * dwarf-index-common.h: New file.
10652 * dwarf-index-write.c: New file.
10653 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10654 (struct dwarf2_section_info): Move from here.
10655 (dwarf2_section_info_def): Likewise.
10656 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10657 (offset_type): Likewise.
10658 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10659 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10660 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10661 (byte_swap): Likewise.
10662 (MAYBE_SWAP): Likewise.
10663 (dwarf2_per_cu_ptr): Likewise.
10664 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10665 (struct tu_stats): Likewise.
10666 (struct dwarf2_per_objfile): Likewise.
10667 (struct dwarf2_per_cu_data): Likewise.
10668 (struct signatured_type): Likewise.
10669 (sig_type_ptr): Likewise.
10670 (DEF_VEC_P (sig_type_ptr)): Likewise.
10671 (INDEX4_SUFFIX): Likewise.
10672 (INDEX5_SUFFIX): Likewise.
10673 (DEBUG_STR_SUFFIX): Likewise.
10674 (dwarf2_read_section): Make non-static.
10675 (mapped_index_string_hash): Move from here.
10676 (dwarf5_djb_hash): Likewise.
10677 (file_write): Likewise.
10678 (class data_buf): Likewise.
10679 (struct symtab_index_entry): Likewise.
10680 (struct mapped_symtab): Likewise.
10681 (find_slot): Likewise.
10682 (hash_expand): Likewise.
10683 (add_index_entry): Likewise.
10684 (uniquify_cu_indices): Likewise.
10685 (class c_str_view): Likewise.
10686 (class c_str_view_hasher): Likewise.
10687 (class vector_hasher): Likewise.
10688 (write_hash_table): Likewise.
10689 (psym_index_map): Likewise.
10690 (struct addrmap_index_data): Likewise.
10691 (add_address_entry): Likewise.
10692 (add_address_entry_worker): Likewise.
10693 (write_address_map): Likewise.
10694 (symbol_kind): Likewise.
10695 (write_psymbols): Likewise.
10696 (struct signatured_type_index_data): Likewise.
10697 (write_one_signatured_type): Likewise.
10698 (recursively_count_psymbols): Likewise.
10699 (recursively_write_psymbols): Likewise.
10700 (class debug_names): Likewise.
10701 (check_dwarf64_offsets): Likewise.
10702 (psyms_seen_size): Likewise.
10703 (write_gdbindex): Likewise.
10704 (write_debug_names): Likewise.
10705 (assert_file_size): Likewise.
10706 (write_psymtabs_to_index): Likewise.
10707 (save_gdb_index_command): Likewise.
10708 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10710 * dwarf2read.h: New file.
10712 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10715 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10716 symbol name if the CU's language stores symbol names in linkage
10718 * language.h (struct language_defn)
10719 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10720 all instances of this struct.
10722 2018-03-26 Tom Tromey <tom@tromey.com>
10724 * stack.c (backtrace_command_1): Remove verbose code.
10726 2018-03-26 Tom Tromey <tom@tromey.com>
10728 * python/py-framefilter.c (py_print_type): Don't catch
10729 exceptions. Return void.
10730 (py_print_value): Likewise.
10731 (py_print_single_arg): Likewise.
10732 (enumerate_args): Don't catch exceptions.
10733 (py_print_args): Likewise.
10734 (py_print_frame): Likewise.
10735 (gdbpy_apply_frame_filter): Catch exceptions here.
10737 2018-03-26 Tom Tromey <tom@tromey.com>
10739 * stack.c (_initialize_stack): Remove trailing newlines from help
10740 text. Add "Usage" line to "backtrace" help.
10742 2018-03-26 Tom Tromey <tom@tromey.com>
10745 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10747 2018-03-26 Tom Tromey <tom@tromey.com>
10749 * python/py-framefilter.c (py_print_single_arg): Return
10750 EXT_LANG_BT_ERROR from catch.
10752 2018-03-26 Tom Tromey <tom@tromey.com>
10754 PR backtrace/15584:
10755 * stack.c (backtrace_command_1): Move some code into no-filters
10758 2018-03-26 Tom Tromey <tom@tromey.com>
10760 * python/py-framefilter.c (throw_quit_or_print_exception): New
10762 (gdbpy_apply_frame_filter): Use it.
10764 2018-03-26 Tom Tromey <tom@tromey.com>
10767 * python/py-framefilter.c (py_print_type, py_print_value)
10768 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10771 2018-03-26 Tom Tromey <tom@tromey.com>
10773 * python/py-framefilter.c (enumerate_args): Use
10774 gdb::unique_xmalloc_ptr.
10776 2018-03-26 Tom Tromey <tom@tromey.com>
10778 * python/py-framefilter.c (py_print_frame): Return
10780 (gdbpy_apply_frame_filter): Update comment.
10781 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10783 <EXT_LANG_BT_NO_FILTERS>: Change value.
10785 2018-03-26 Tom Tromey <tom@tromey.com>
10787 PR backtrace/15582:
10788 * stack.c (backtrace_command): Parse "hide" argument.
10789 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10790 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10793 2018-03-26 Tom Tromey <tom@tromey.com>
10795 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10797 (backtrace_command): Remove "fulltrace", add "flags".
10799 2018-03-26 Tom Tromey <tom@tromey.com>
10801 * stack.c (backtrace_command): Rewrite command line parsing.
10803 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10805 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10807 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10809 * filename-seen-cache.h: Add include guard.
10811 2018-03-26 Keith Seitz <keiths@redhat.com>
10813 * symfile.c (place_section): Remove "struct" from section_addr_info
10815 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10816 "struct" keyword from section_addr_info.
10818 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10820 * regformats/regdef.h (reg): Add constructors.
10822 2018-03-25 Pedro Alves <palves@redhat.com>
10824 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10825 if then/else bodies in var_func_name extraction.
10827 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10829 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10830 lookup_minimal_symbol() to find symbol entry.
10831 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10833 2018-03-23 Keith Seitz <keiths@redhat.com>
10836 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10837 nested type definitions for C++, too.
10839 2018-03-23 Tom Tromey <tom@tromey.com>
10841 * machoread.c (struct oso_el): Add a constructor. Don't define as
10843 (macho_register_oso): Remove.
10844 (macho_symtab_read): Take a std::vector.
10845 (oso_el_compare_name): Now a std::sort comparator.
10846 (macho_symfile_read_all_oso): Take a std::vector.
10847 (macho_symfile_read): Use std::vector. Remove cleanups.
10849 2018-03-22 Tom Tromey <tom@tromey.com>
10851 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10852 (record_full_goto_bookmark): Use std::string.
10854 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10857 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10860 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10862 * rs6000-tdep.c (store_insn_p): New function.
10863 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10864 and cr_reg to their unshifted values. Use store_insn_p to
10865 match LR saves using either R1 or fdata->alloca_reg. Use
10866 store_insn_p to match CR saves. Set alloca_reg_offset
10867 when alloca_reg and framep are set. Remove lr_reg shift
10868 when assigning to fdata->lr_register.
10870 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10872 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10873 command line args instead of emitting a warning.
10875 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10877 * tracepoint.h (struct static_tracepoint_marker): Initialize
10878 fields, define default constructor, move constructor and move
10879 assignment, disable the rest.
10880 <str_id, extra>: Make std::string.
10881 (release_static_tracepoint_marker): Remove.
10882 (free_current_marker): Remove.
10883 * tracepoint.c (free_current_marker): Remove.
10884 (parse_static_tracepoint_marker_definition): Adjust to
10885 std::string, use new hex2str overload.
10886 (release_static_tracepoint_marker): Remove.
10887 (print_one_static_tracepoint_marker): Get marker by reference
10888 and adjust to std::string.
10889 (info_static_tracepoint_markers_command): Adjust to std::vector
10891 * target.h (static_tracepoint_marker_p): Remove typedef.
10892 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10893 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10895 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10897 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10898 (target_debug_print_std_vector_static_tracepoint_marker): New.
10899 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10901 (target_debug_print_static_tracepoint_marker_p): ... this.
10902 * target-delegates.c: Re-generate.
10903 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10905 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10906 (decode_static_tracepoint_spec): Adjust to std::vector.
10907 (tracepoint_print_one_detail): Adjust to std::string.
10908 (strace_marker_decode_location): Adjust to std::string.
10909 (update_static_tracepoint): Adjust to std::string, remove call
10910 to release_static_tracepoint_marker.
10911 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10912 Adjust to std::vector.
10913 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10914 (remote_static_tracepoint_markers_by_strid): Adjust to
10916 * common/rsp-low.h (hex2str): New overload with explicit count
10918 * common/rsp-low.c (hex2str): New overload with explicit count
10920 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10921 (_initialize_rsp_low_selftests): Add test_hex2str test.
10922 * unittests/tracepoint-selftests.c
10923 (test_parse_static_tracepoint_marker_definition): Adjust to
10926 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10928 * tracepoint.c (parse_static_tracepoint_marker_definition):
10929 Consider case where the definition is followed by more
10931 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10932 tracepoint-selftests.c.
10933 * unittests/tracepoint-selftests.c: New.
10935 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10937 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10940 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10942 * symtab.c (find_pc_sect_line): fixed indentation.
10944 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10946 * symtab.c (find_pc_sect_line): now uses binary search.
10948 2018-03-19 Tom Tromey <tom@tromey.com>
10950 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10951 "IDENT" production.
10953 2018-03-19 Pedro Alves <palves@redhat.com>
10954 Tom Tromey <tom@tromey.com>
10956 * unittests/observable-selftests.c: New file.
10957 * common/observable.h: New file.
10958 * observable.h: New file.
10959 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
10960 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
10961 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
10962 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
10963 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
10964 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
10965 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
10966 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
10967 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
10968 python/py-breakpoint.c, python/py-finishbreakpoint.c,
10969 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
10970 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
10971 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
10972 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
10973 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
10974 tui/tui-interp.c, valops.c: Update all users.
10975 * tui/tui-hooks.c (tui_bp_created_observer)
10976 (tui_bp_deleted_observer, tui_bp_modified_observer)
10977 (tui_inferior_exit_observer, tui_before_prompt_observer)
10978 (tui_normal_stop_observer, tui_register_changed_observer):
10980 (tui_observers_token): New global.
10981 (attach_or_detach, tui_attach_detach_observers): New functions.
10982 (tui_install_hooks, tui_remove_hooks): Use
10983 tui_attach_detach_observers.
10984 * record-btrace.c (record_btrace_thread_observer): Remove.
10985 (record_btrace_thread_observer_token): New global.
10986 * observer.sh: Remove.
10987 * observer.c: Rename to observable.c.
10988 * observable.c (namespace gdb_observers): Define new objects.
10989 (observer_debug): Move into gdb_observers namespace.
10990 (struct observer, struct observer_list, xalloc_observer_list_node)
10991 (xfree_observer_list_node, generic_observer_attach)
10992 (generic_observer_detach, generic_observer_notify): Remove.
10993 (_initialize_observer): Update.
10994 Don't include observer.inc.
10995 * Makefile.in (generated_files): Remove observer.h, observer.inc.
10996 (clean mostlyclean): Likewise.
10997 (observer.h, observer.inc): Remove targets.
10998 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
10999 (COMMON_SFILES): Use observable.c, not observer.c.
11000 * .gitignore: Remove observer.h.
11002 2018-03-18 Tom Tromey <tom@tromey.com>
11004 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11006 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11008 2018-03-17 Tom Tromey <tom@tromey.com>
11010 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11012 2018-03-17 Tom Tromey <tom@tromey.com>
11014 * target.c (class scoped_target_fd): New.
11015 (target_fileio_close_cleanup): Remove.
11016 (target_fileio_read_alloc_1): Use scoped_target_fd.
11018 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11020 * silent-rules.mk: New.
11021 * Makefile.in: Include silent-rules.mk
11022 (srcdir, VPATH, top_srcdir): Move up.
11023 (COMPILE): Add ECHO_CXX.
11024 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11025 (init.c): Add ECHO_INIT_C.
11026 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11027 (version.c): Add ECHO_GEN.
11028 (printcmd.o): Add ECHO_CXX.
11029 (target-float.o): Add ECHO_CXX.
11030 (ada-exp.o): Add ECHO_CXX.
11031 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11032 (insight$(EXEEXT)): Add ECHO_CXXLD.
11033 * gnulib/configure.ac: Add AM_SILENT_RULES.
11034 * gnulib/aclocal.m4: Re-generate.
11035 * gnulib/configure: Re-generate.
11036 * gnulib/import/Makefile.in: Re-generate.
11038 2018-03-16 Tom Tromey <tom@tromey.com>
11040 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11041 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11042 * utils.c (do_free_section_addr_info)
11043 (make_cleanup_free_section_addr_info): Remove.
11044 * symfile.h (struct other_sections): Add constructor.
11045 (struct section_addr_info): Remove.
11046 (section_addr_info): New typedef.
11047 (struct sym_fns) <sym_offsets>: Change type of parameter.
11048 (build_section_addr_info_from_objfile)
11049 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11050 (default_symfile_offsets, symbol_file_add)
11051 (symbol_file_add_from_bfd)
11052 (build_section_addr_info_from_section_table): Update.
11053 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11054 * symfile.c (alloc_section_addr_info): Remove.
11055 (build_section_addr_info_from_section_table): Change return type.
11057 (build_section_addr_info_from_bfd)
11058 (build_section_addr_info_from_objfile): Likewise.
11059 (free_section_addr_info): Remove.
11060 (relative_addr_info_to_section_offsets): Change type of "addrs".
11061 (addrs_section_compar): Now a std::sort comparator.
11062 (addrs_section_sort): Change return type.
11063 (addr_info_make_relative): Change type of "addrs". Update.
11064 (default_symfile_offsets, syms_from_objfile_1)
11065 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11066 (symbol_file_add_separate): Update.
11067 (symbol_file_add): Change type of "addrs". Update.
11068 (add_symbol_file_command): Update. Remove cleanups.
11069 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11071 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11072 * solib.c (solib_read_symbols): Update.
11073 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11074 * machoread.c (macho_symfile_offsets): Update.
11075 * jit.c (jit_bfd_try_read_symtab): Update.
11077 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11079 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11080 unittests/utils-selftests.c.
11081 * unittests/utils-selftests.c: New file.
11083 2018-03-14 Tom Tromey <tom@tromey.com>
11086 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11089 2018-03-14 Tom Tromey <tom@tromey.com>
11092 * printcmd.c (printf_pointer): Allow "-" in format.
11094 2018-03-14 Tom Tromey <tom@tromey.com>
11096 * printcmd.c (_initialize_printcmd): Add usage to printf.
11098 2018-03-14 Yao Qi <qiyao@sourceware.org>
11100 * MAINTAINERS: Update my email address.
11102 2018-03-13 Tom Tromey <tom@tromey.com>
11104 * machoread.c (macho_check_dsym): Change filenamep to a
11106 (macho_symfile_read): Update.
11107 * symfile.c (load_command): Use std::string.
11109 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11111 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11112 to error message string.
11113 (riscv_register_name): Use xsnprintf instead of sprintf.
11114 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11116 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11118 (riscv_push_dummy_call): Likewise.
11120 2018-03-12 Tom Tromey <tom@tromey.com>
11122 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11123 Use gdb::byte_vector.
11124 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11126 2018-03-12 Yao Qi <yao.qi@linaro.org>
11128 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11129 parameter type to readable_regcache.
11130 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11133 2018-03-11 Tom Tromey <tom@tromey.com>
11135 * dwarf2read.c (struct nextfield): Add initializers.
11136 (struct nextfnfield): Remove.
11137 (struct fnfieldlist): Add initializers. Remove "length" and
11138 "head", use std::vector.
11139 (struct decl_field_list): Remove.
11140 (struct field_info): Add initializers.
11141 <fields, baseclasses>: Now std::vector.
11142 <nbaseclasses, nfnfields, typedef_field_list_count,
11143 nested_types_list_count>: Remove.
11144 (dwarf2_add_field, dwarf2_add_type_defn)
11145 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11146 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11147 (process_structure_scope): Update.
11149 2018-03-11 Tom Tromey <tom@tromey.com>
11151 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11152 for use by std::sort.
11153 (build_type_psymtabs_1): Use std::vector.
11155 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11157 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11158 and LIBMPFR in the printed configuration.
11160 2018-03-08 Tom Tromey <tom@tromey.com>
11162 * source.c (get_filename_and_charpos): Use scoped_fd.
11163 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11164 (procfs_pidlist): Likewise.
11165 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11166 (iterate_over_mappings): Likewise.
11168 2018-03-08 Tom Tromey <tom@tromey.com>
11170 * infcall.c (struct call_return_meta_info)
11171 <stack_temporaries_enabled>: Remove.
11172 (get_call_return_value, call_function_by_hand_dummy): Update.
11173 * thread.c (disable_thread_stack_temporaries): Remove.
11174 (enable_thread_stack_temporaries): Remove.
11175 (thread_stack_temporaries_enabled_p): Return bool.
11176 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11177 (get_last_thread_stack_temporary): Update.
11178 * eval.c (evaluate_subexp): Update.
11179 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11180 class, not a function.
11181 (value_ptr, value_vec): Remove typedefs.
11182 (class thread_info) <stack_temporaries_enabled>: Now bool.
11183 <stack_temporaries>: Now a std::vector.
11184 (thread_stack_temporaries_enabled_p)
11185 (value_in_thread_stack_temporaries): Return bool.
11187 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11189 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11190 (getpkt_or_notif_sane_1): Likewise.
11192 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11194 * build-id.c (build_id_to_debug_bfd): Use std::string.
11196 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11198 * build-id.c (find_separate_debug_file_by_buildid): Return
11200 * build-id.h (find_separate_debug_file_by_buildid): Return
11202 * coffread.c (coff_symfile_read): Adjust to std::string.
11203 * elfread.c (elf_symfile_read): Adjust to std::string.
11204 * symfile.c (separate_debug_file_exists): Change parameter to
11206 (find_separate_debug_file): Return std::string.
11207 (find_separate_debug_file_by_debuglink): Return std::string.
11208 * symfile.h (find_separate_debug_file_by_debuglink): Return
11211 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11213 * common/xml-utils.c (xml_escape_text): Move code to...
11214 (xml_escape_text_append): ... this new function.
11215 * common/xml-utils.h (xml_escape_text_append): New declaration.
11216 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11218 (_initialize_xml_utils): register test_xml_escape_text_append as
11221 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11223 * defs.h: Remove MAX_REGISTER_SIZE.
11224 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11226 * python/py-unwind.c (pyuw_sniffer): Likewise.
11228 2018-03-07 Tom Tromey <tom@tromey.com>
11230 * linux-tdep.c (linux_info_proc): Update.
11231 * target.h (struct target_ops) <to_fileio_readlink>: Return
11233 (target_fileio_readlink): Return optional<string>.
11234 * remote.c (remote_hostio_readlink): Return optional<string>.
11235 * inf-child.c (inf_child_fileio_readlink): Return
11237 * target.c (target_fileio_readlink): Return optional<string>.
11239 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11241 * regcache.c (cooked_read_test): Add riscv to the list of
11242 architectures that have a save_reggroup.
11244 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11246 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11247 value is not a dynamic class object.
11249 2018-03-06 Tom Tromey <tom@tromey.com>
11251 * rust-exp.y: Formatting fixes.
11253 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11255 * riscv-tdep.c (riscv_register_name): Remove target description
11257 (riscv_gdbarch_init): Remove target description check.
11259 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11261 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11263 * riscv-tdep.h: Likewise.
11265 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11267 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11268 (riscv_pseudo_register_write): Delete.
11269 (riscv_gdbarch_init): Remove all use of pseudo registers.
11271 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11273 * record-btrace.c (btrace_print_lines): Replace cleanup
11274 parameter with RAII equivalents.
11275 (btrace_insn_history): Replace cleanup with RAII equivalents.
11276 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11277 make_cleanup_ui_out_tuple_begin_end): Remove.
11278 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11279 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11280 make_cleanup_ui_out_list_begin_end): Remove.
11282 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11284 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11285 parameter types to std::vector. Use bool.
11286 (record_btrace_wait): Replace VEC(tp_t) with
11287 std::vector<thread_info *>.
11288 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11290 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11292 * record-btrace.c (record_btrace_disable_callback): Remove.
11293 (struct scoped_btrace_disable): New.
11294 (record_btrace_open): Use scoped_btrace_disable.
11296 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11298 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11299 reading values from registers.
11301 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11303 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11306 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11308 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11309 change parameter type. Use GDB's print functions, and use
11310 core_addr_to_string where appropriate.
11311 (riscv_push_dummy_call): Use core_addr_to_string where
11312 appropriate, update call to riscv_print_arg_location, and reindent
11314 (riscv_return_value): Update call to riscv_print_arg_location.
11316 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11317 Tim Newsome <tim@sifive.com>
11318 Albert Ou <a0u@eecs.berkeley.edu>
11319 Darius Rad <darius@bluespec.com>
11321 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11322 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11323 (ALLDEPFILES): Add riscv-tdep.c
11324 * configure.tgt: Add riscv support.
11325 * riscv-tdep.c: New file.
11326 * riscv-tdep.h: New file.
11327 * NEWS: Mention new target.
11328 * MAINTAINERS: Add entry for riscv.
11330 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11332 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11333 fields within aggregates.
11335 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11337 * record-btrace.c (btrace_print_lines): Change type of flags to
11338 gdb_disassembly_flags.
11340 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11342 * fbsd-nat.c: Include "inf-ptrace.h".
11343 (USE_SIGTRAP_SIGINFO): Conditionally define.
11344 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11345 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11346 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11348 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11350 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11352 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11353 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11354 "supports_stopped_by_hw_breakpoint" target methods.
11356 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11358 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11359 * fbsd-nat.c (debug_fbsd_nat): New variable.
11360 (show_fbsd_nat_debug): New function.
11361 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11362 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11364 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11366 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11367 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11369 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11370 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11373 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11375 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11376 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11378 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11380 * charset.c (struct charset_vector): New.
11381 (charsets): Change type to charset_vector.
11382 (find_charset_names): Adjust.
11384 (_initialize_charset): Adjust.
11386 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11388 * progspace.h (struct program_space) <deleted_solibs>: Change
11389 type to std::vector<std::string>.
11390 * progspace.c (clear_program_space_solib_cache): Adjust.
11391 * breakpoint.c (print_solib_event): Adjust.
11392 (check_status_catch_solib): Adjust.
11393 * solib.c (update_solib_list): Adjust.
11394 * ui-out.h (class ui_out) <field_string>: New overload.
11395 * ui-out.c (ui_out::field_string): New overload.
11397 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11399 * progspace.h (struct program_space): Add constructor and
11400 destructor, initialize fields.
11401 (add_program_space): Remove.
11402 * progspace.c (add_program_space): Rename to...
11403 (program_space::program_space): ... this.
11404 (release_program_space): Rename to...
11405 (program_space::~program_space): ... this.
11406 (delete_program_space): Use delete to delete program_space.
11407 (initialize_progspace): Use new to allocate program_space.
11408 * inferior.c (add_inferior_with_spaces): Likewise.
11409 (clone_inferior_command): Likewise.
11410 * infrun.c (follow_fork_inferior): Likewise.
11411 (handle_vfork_child_exec_or_exit): Likewise.
11413 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11415 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11416 (delim_string_to_char_ptr_vec): Return std::vector of
11417 gdb::unique_xmalloc_ptr.
11418 (dirnames_to_char_ptr_vec_append): Take std::vector of
11419 gdb::unique_xmalloc_ptr.
11420 (dirnames_to_char_ptr_vec): Return std::vector of
11421 gdb::unique_xmalloc_ptr.
11422 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11423 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11424 (delim_string_to_char_ptr_vec): Return an std::vector of
11425 gdb::unique_xmalloc_ptr, adjust the code.
11426 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11427 gdb::unique_xmalloc_ptr, adjust the code.
11428 (dirnames_to_char_ptr_vec): Return an std::vector of
11429 gdb::unique_xmalloc_ptr, adjust the code.
11430 * auto-load.c (auto_load_safe_path_vec): Change type to
11431 std::vector of gdb::unique_xmalloc_ptr.
11432 (auto_load_expand_dir_vars): Return an std::vector of
11433 gdb::unique_xmalloc_ptr, adjust the code.
11434 (auto_load_safe_path_vec_update): Adjust.
11435 (filename_is_in_auto_load_safe_path_vec): Adjust.
11436 (auto_load_objfile_script_1): Adjust.
11437 * build-id.c (build_id_to_debug_bfd): Adjust.
11438 * linux-thread-db.c (thread_db_load_search): Adjust.
11439 * source.c (add_path): Adjust.
11441 * symfile.c (find_separate_debug_file): Adjust.
11442 * utils.c (do_free_char_ptr_vec): Remove.
11443 (make_cleanup_free_char_ptr_vec): Remove.
11445 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11448 * common/pathstuff.c: Conditionally include "<windows.h>".
11450 2018-03-01 Georg Sauthoff <mail@georg.so>
11453 * gcore.in: Quote variables and switch interpreter to bash.
11455 2018-03-01 Tom Tromey <tom@tromey.com>
11457 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11458 assertion. Add assertion for discriminant_index.
11459 (quirk_rust_enum): Use correct base type name in univariant case.
11461 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11463 * record.c (get_call_history_modifiers): Return a
11464 record_print_flags.
11465 (cmd_record_call_history): Adjust.
11466 * record-btrace.c (record_btrace_call_history): Adjust.
11467 (record_btrace_call_history_range): Adjust.
11468 (record_btrace_call_history_from): Adjust.
11469 * target-debug.h (target_debug_print_record_print_flags): New.
11470 * target-delegates.c: Re-generate.
11471 * target.c (target_call_history): Change flags type.
11472 (target_call_history_from): Likewise.
11473 (target_call_history_range): Likewise.
11474 * target.h (struct target_ops) <target_call_history>: Likewise.
11475 (target_call_history_from): Likewise.
11476 (target_call_history_range): Likewise.
11478 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11479 Simon Marchi <simon.marchi@polymtl.ca>
11481 * common/common-utils.c: Include "sys/stat.h".
11482 (is_regular_file): Move here from "source.c"; change return
11484 * common/common-utils.h (is_regular_file): New prototype.
11485 * common/pathstuff.c (contains_dir_separator): New function.
11486 * common/pathstuff.h (contains_dir_separator): New prototype.
11487 * source.c: Don't include "sys/stat.h".
11488 (is_regular_file): Move to "common/common-utils.c".
11490 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11492 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11493 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11494 * auto-load.c: Include "common/pathstuff.h".
11495 * common/common-def.h (current_directory): Move here.
11496 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11498 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11500 * common/pathstuff.c: New file.
11501 * common/pathstuff.h: New file.
11502 * compile/compile.c: Include "common/pathstuff.h".
11503 * defs.h (current_directory): Move to "common/common-defs.h".
11504 * dwarf2read.c: Include "common/pathstuff.h".
11505 * exec.c: Likewise.
11506 * guile/scm-safe-call.c: Likewise.
11507 * linux-thread-db.c: Likewise.
11508 * main.c: Likewise.
11509 * nto-tdep.c: Likewise.
11510 * objfiles.c: Likewise.
11511 * source.c: Likewise.
11512 * symtab.c: Likewise.
11513 * utils.c: Include "common/pathstuff.h".
11514 (gdb_realpath): Move to "common/pathstuff.c".
11515 (gdb_realpath_keepfile): Likewise.
11516 (gdb_abspath): Likewise.
11517 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11518 (gdb_realpath_keepfile): Likewise.
11519 (gdb_abspath): Likewise.
11521 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11523 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11524 wildcard process pid for super_resume for kernels with a
11527 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11529 * compile/compile.c (get_args): Add additional comments
11530 explaining function.
11532 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11533 Tom Tromey <tom@tromey.com>
11535 * target.h (memory_write_request_s): Remove typedef. Don't define
11537 (target_write_memory_blocks): Change argument to std::vector.
11538 (struct memory_write_request): Add constructor.
11539 * target-memory.c (compare_block_starting_address): Return bool.
11540 Change argument types.
11541 (claim_memory): Change arguments to use std::vector.
11542 (split_regular_and_flash_blocks, blocks_to_erase)
11543 (compute_garbled_blocks): Likewise.
11544 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11545 (target_write_memory_blocks): Change argument to std::vector.
11546 * symfile.c (struct load_section_data): Add constructor and
11547 destructor. Use std::vector for "requests".
11548 (struct load_progress_data): Add initializers.
11549 (load_section_callback): Update. Use "new".
11550 (clear_memory_write_data): Remove.
11551 (generic_load): Update.
11553 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11555 * arch/aarch64.h: Use common/tdesc.h.
11557 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11559 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11560 architecture with a 64-bit ABI.
11562 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11564 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11565 ahead of target description loading.
11567 2018-02-26 Tom Tromey <tom@tromey.com>
11569 * stack.c (backtrace_command_1): Update.
11570 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11572 * python/py-framefilter.c (py_print_frame)
11573 (gdbpy_apply_frame_filter): Change type of "flags".
11574 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11576 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11577 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11578 * extension.h (enum frame_filter_flag): Rename from
11579 frame_filter_flags.
11580 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11581 (apply_ext_lang_frame_filter): Change type of "flags".
11582 * extension.c (apply_ext_lang_frame_filter): Change type of
11584 * extension-priv.h (struct extension_language_ops)
11585 <apply_frame_filter>: Change type of "flags".
11587 2018-02-26 Tom Tromey <tom@tromey.com>
11590 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11591 off-by-one in py_end computation.
11592 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11594 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11597 2018-02-26 Tom Tromey <tom@tromey.com>
11599 * dwarf2read.c (struct variant_field): New.
11600 (struct nextfield) <variant>: New field.
11601 (dwarf2_add_field): Handle DW_TAG_variant_part.
11602 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11603 discriminated union.
11604 (read_structure_type): Handle DW_TAG_variant_part.
11605 (handle_struct_member_die): New function, extracted from
11606 process_structure_scope. Handle DW_TAG_variant.
11607 (process_structure_scope): Handle discriminated unions. Call
11608 handle_struct_member_die.
11610 2018-02-26 Tom Tromey <tom@tromey.com>
11612 * rust-lang.h (rust_last_path_segment): Declare.
11613 * rust-lang.c (rust_last_path_segment): Now public. Change
11615 (struct disr_info): Remove.
11616 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11617 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11618 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11619 (rust_enum_p, rust_enum_variant): New function.
11620 (rust_underscore_fields): Remove "offset" parameter.
11621 (rust_print_enum): New function.
11622 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11623 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11624 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11626 (rust_internal_print_type): New function, from rust_print_type.
11628 (rust_print_type): Call rust_internal_print_type.
11629 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11630 Update enum handling.
11631 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11632 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11633 (rust_union_quirks): New functions.
11634 (process_full_comp_unit, process_full_type_unit): Call
11636 (process_structure_scope): Update rust_unions if necessary.
11638 2018-02-26 Tom Tromey <tom@tromey.com>
11640 * value.h (value_union_variant): Declare.
11641 * valops.c (value_union_variant): New function.
11642 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11643 (struct discriminant_info): New.
11644 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11646 (struct main_type) <flag_discriminated_union>: New field.
11648 2018-02-26 Tom Tromey <tom@tromey.com>
11650 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11651 unittests/unpack-selftests.c.
11652 * unittests/unpack-selftests.c: New file.
11653 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11655 2018-02-26 Yao Qi <yao.qi@linaro.org>
11657 * dwarf2read.c (struct partial_die_info) <read>: New method.
11658 (read_partial_die): Remove the declaration.
11659 (load_partial_dies): Update.
11660 (partial_die_info::partial_die_info):
11661 (read_partial_die): Change it to partial_die_info::read.
11663 2018-02-26 Yao Qi <yao.qi@linaro.org>
11665 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11666 (fixup_partial_die): Remove declaration.
11667 (scan_partial_symbols): Update.
11668 (partial_die_parent_scope): Likewise.
11669 (partial_die_full_name): Likewise.
11670 (fixup_partial_die): Change it to partial_die_info::fixup.
11672 2018-02-26 Yao Qi <yao.qi@linaro.org>
11674 * dwarf2read.c (read_partial_die): Update the declaration.
11675 (load_partial_dies): Caller update.
11676 (read_partial_die): Remove one argument abbrev_len.
11678 2018-02-26 Yao Qi <yao.qi@linaro.org>
11680 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11681 assignment operator.
11682 (load_partial_dies): Use ctor and copy ctor.
11683 (read_partial_die): Update.
11684 (dwarf2_cu::find_partial_die): Use ctor.
11686 2018-02-26 Yao Qi <yao.qi@linaro.org>
11688 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11689 (find_partial_die_in_comp_unit): Change it to
11690 dwarf2_cu::find_partial_die.
11691 (find_partial_die): Update.
11693 2018-02-26 Yao Qi <yao.qi@linaro.org>
11695 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11698 2018-02-26 Yao Qi <yao.qi@linaro.org>
11700 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11702 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11704 * arch/amd64.h: Use common/tdesc.h.
11705 * arch/i386.c: Likewise.
11706 * arch/i386.h: Likewise.
11707 * arch/tic6x.c: Likewise.
11708 * arch/tdesc.h: Move file from here...
11709 * common/tdesc.h: ...to here.
11710 * features/aarch64-core.c: Regenerate.
11711 * features/aarch64-fpu.c: Regenerate.
11712 * features/i386/32bit-avx.c: Regenerate.
11713 * features/i386/32bit-avx512.c: Regenerate.
11714 * features/i386/32bit-core.c: Regenerate.
11715 * features/i386/32bit-linux.c: Regenerate.
11716 * features/i386/32bit-mpx.c: Regenerate.
11717 * features/i386/32bit-pkeys.c: Regenerate.
11718 * features/i386/32bit-sse.c: Regenerate.
11719 * features/i386/64bit-avx.c: Regenerate.
11720 * features/i386/64bit-avx512.c: Regenerate.
11721 * features/i386/64bit-core.c: Regenerate.
11722 * features/i386/64bit-linux.c: Regenerate.
11723 * features/i386/64bit-mpx.c: Regenerate.
11724 * features/i386/64bit-pkeys.c: Regenerate.
11725 * features/i386/64bit-segments.c: Regenerate.
11726 * features/i386/64bit-sse.c: Regenerate.
11727 * features/i386/x32-core.c: Regenerate.
11728 * features/tic6x-c6xp.c: Regenerate.
11729 * features/tic6x-core.c: Regenerate.
11730 * features/tic6x-gp.c: Regenerate.
11731 * target-descriptions.c: Use common/tdesc.h.
11732 * target-descriptions.h: Likewise.
11734 2018-02-24 Tom Tromey <tom@tromey.com>
11736 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11737 (try_thread_db_load_from_dir, thread_db_load_search): Use
11739 (info_auto_load_libthread_db_compare): Return bool. Change
11741 (info_auto_load_libthread_db): Use std::vector, std::string.
11744 2018-02-24 Tom Tromey <tom@tromey.com>
11746 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11748 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11750 * gdbarch.c: Rebuild.
11751 * gdbarch.h: Rebuild.
11752 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11753 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11754 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11757 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11759 * gdbtypes.h (sect_offset): Change type to uint64_t.
11760 (sect_offset_str): New function.
11761 * dwarf2read.c (create_addrmap_from_aranges): Use
11763 (error_check_comp_unit_head): Likewise.
11764 (create_debug_type_hash_table): Likewise.
11765 (read_cutu_die_from_dwo): Likewise.
11766 (init_cutu_and_read_dies): Likewise.
11767 (init_cutu_and_read_dies_no_follow): Likewise.
11768 (process_psymtab_comp_unit_reader): Likewise.
11769 (partial_die_parent_scope): Likewise.
11770 (peek_die_abbrev): Likewise.
11771 (process_queue): Likewise.
11772 (dwarf2_physname): Likewise.
11773 (read_namespace_alias): Likewise.
11774 (read_import_statement): Likewise.
11775 (create_dwo_cu_reader): Likewise.
11776 (create_cus_hash_table): Likewise.
11777 (lookup_dwo_cutu): Likewise.
11778 (inherit_abstract_dies): Likewise.
11779 (read_func_scope): Likewise.
11780 (read_call_site_scope): Likewise.
11781 (dwarf2_add_member_fn): Likewise.
11782 (read_common_block): Likewise.
11783 (read_module_type): Likewise.
11784 (read_typedef): Likewise.
11785 (read_subrange_type): Likewise.
11786 (load_partial_dies): Likewise.
11787 (read_partial_die): Likewise.
11788 (find_partial_die): Likewise.
11789 (read_str_index): Likewise.
11790 (dwarf2_string_attr): Likewise.
11791 (build_error_marker_type): Likewise.
11792 (lookup_die_type): Likewise.
11793 (dump_die_shallow): Likewise.
11794 (follow_die_ref): Likewise.
11795 (dwarf2_fetch_die_loc_sect_off): Likewise.
11796 (dwarf2_fetch_constant_bytes): Likewise.
11797 (follow_die_sig): Likewise.
11798 (get_signatured_type): Likewise.
11799 (get_DW_AT_signature_type): Likewise.
11800 (dwarf2_find_containing_comp_unit): Likewise.
11801 (set_die_type): Likewise.
11803 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11805 * arch/aarch64.c: Include "common-defs.h".
11806 * arch/amd64.c: Likewise.
11807 * arch/i386.c: Likewise.
11809 2018-02-21 Tom Tromey <tom@tromey.com>
11811 * value.h: (extract_field_op): Update.
11812 * eval.c (extract_field_op): Return a const char *.
11813 * expression.h (parse_expression_for_completion): Update.
11814 * completer.c (complete_expression): Update.
11815 (add_struct_fields): Make fieldname const.
11816 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11817 (mark_completion_tag, parse_exp_in_context_1): Update.
11818 (parse_expression_for_completion): Change "name" to
11819 unique_xmalloc_ptr*.
11821 2018-02-21 Tom Tromey <tom@tromey.com>
11823 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11825 2018-02-21 Yao Qi <yao.qi@linaro.org>
11827 * avr-tdep.c (avr_read_pc): Change parameter type to
11829 * gdbarch.sh (read_pc): Likewise.
11830 * gdbarch.c: Re-generated.
11831 * gdbarch.h: Re-generated.
11832 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11834 * ia64-tdep.c (ia64_read_pc): Likewise.
11835 * mips-tdep.c (mips_read_pc): Likewise.
11836 * spu-tdep.c (spu_read_pc): Likewise.
11838 2018-02-21 Yao Qi <yao.qi@linaro.org>
11840 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11841 * regcache-dump.c: New file.
11842 * regcache.c: Move register_dump to regcache-dump.c.
11843 (maintenance_print_registers): Likewise.
11844 (maintenance_print_raw_registers): Likewise.
11845 (maintenance_print_cooked_registers): Likewise.
11846 (maintenance_print_register_groups): Likewise.
11847 (maintenance_print_remote_registers): Likewise.
11848 (_initialize_regcache): Likewise.
11849 * regcache.h (register_dump): Moved from regcache.c.
11851 2018-02-21 Yao Qi <yao.qi@linaro.org>
11853 * regcache.c (regcache::regcache): Update.
11854 (regcache::invalidate): Move it to detached_regcache::invalidate.
11855 (get_thread_arch_aspace_regcache): Update.
11856 (regcache::raw_update): Update.
11857 (regcache::cooked_read): Remove some code.
11858 (regcache::cooked_read_value): Likewise.
11859 (regcache::raw_write): Remove assert on m_readonly_p.
11860 (regcache::raw_supply_integer): Move it to
11861 detached_regcache::raw_supply_integer.
11862 (regcache::raw_supply_zeroed): Likewise.
11863 * regcache.h (detached_regcache) <raw_supply_integer>: New
11865 <raw_supply_zeroed, invalidate>: Likewise.
11866 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11867 <invalidate>: Likewise.
11868 <m_readonly_p>: Removed.
11870 2018-02-21 Yao Qi <yao.qi@linaro.org>
11872 * infcmd.c (get_return_value): Let stop_regs point to
11873 get_current_regcache.
11874 * regcache.c (regcache::regcache): Remove.
11875 (register_dump_reg_buffer): New class.
11876 (regcache_print): Adjust.
11877 * regcache.h (regcache): Remove constructors.
11879 2018-02-21 Yao Qi <yao.qi@linaro.org>
11881 * regcache.c (class register_dump): New class.
11882 (register_dump_regcache, register_dump_none): New class.
11883 (register_dump_remote, register_dump_groups): New class.
11884 (regcache_print): Update.
11885 * regcache.h (regcache_dump_what): Move it to regcache.c.
11886 (regcache) <dump>: Remove.
11888 2018-02-21 Yao Qi <yao.qi@linaro.org>
11890 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11892 (jit_unwind_reg_set_impl): Call raw_supply.
11893 (jit_frame_sniffer): Use reg_buffer_rw.
11894 * record-full.c (record_full_core_regbuf): Change its type.
11895 (record_full_core_open_1): Use reg_buffer_rw.
11896 (record_full_close): Likewise.
11897 (record_full_core_fetch_registers): Use regcache->raw_supply.
11898 (record_full_core_store_registers): Likewise.
11899 * regcache.c (regcache::get_register_status): Move it to
11901 (regcache_raw_set_cached_value): Remove.
11902 (regcache::raw_set_cached_value): Remove.
11903 (regcache::raw_write): Call raw_supply.
11904 (regcache::raw_supply): Move it to reg_buffer_rw.
11905 * regcache.h (regcache_raw_set_cached_value): Remove.
11906 (reg_buffer_rw): New class.
11908 2018-02-21 Yao Qi <yao.qi@linaro.org>
11910 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11911 readonly_detached_regcache.
11912 (dummy_frame_prev_register): Use regcache->cooked_read.
11913 * frame.c (frame_save_as_regcache): Change return type.
11914 (frame_pop): Update.
11915 * frame.h (frame_save_as_regcache): Update declaration.
11916 * inferior.h (get_infcall_suspend_state_regcache): Update
11918 * infrun.c (infcall_suspend_state) <registers>: use
11919 readonly_detached_regcache.
11920 (save_infcall_suspend_state): Don't use regcache_dup.
11921 (get_infcall_suspend_state_regcache): Change return type.
11922 * linux-fork.c (struct fork_info) <savedregs>: Change to
11923 readonly_detached_regcache.
11925 (fork_save_infrun_state): Don't use regcache_dup.
11926 (info_checkpoints_command): Adjust.
11927 * mi/mi-main.c (register_changed_p): Update declaration.
11928 (mi_cmd_data_list_changed_registers): Use
11929 readonly_detached_regcache.
11930 (register_changed_p): Change parameter type to
11931 readonly_detached_regcache.
11932 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11933 readonly_detached_regcache.
11934 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11935 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11937 (regcache::save): Move it to reg_buffer.
11938 (regcache::restore): Change parameter type.
11939 (regcache_dup): Remove.
11940 * regcache.h (reg_buffer) <save>: New method.
11941 (readonly_detached_regcache): New class.
11942 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11943 readonly_detached_regcache.
11944 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11946 2018-02-21 Yao Qi <yao.qi@linaro.org>
11948 * frame.c (frame_save_as_regcache): Use regcache method save.
11949 (frame_pop): Use regcache method restore.
11950 * infrun.c (restore_infcall_suspend_state): Likewise.
11951 * linux-fork.c (fork_load_infrun_state): Likewise.
11952 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
11954 * regcache.c (regcache_save): Remove.
11955 (regcache::restore): More asserts.
11956 (regcache_cpy): Remove.
11957 * regcache.h (regcache_save): Remove the declaration.
11958 (regcache::restore): Move from private to public.
11959 Remove the friend declaration of regcache_cpy.
11960 (regcache_cpy): Remove declaration.
11962 2018-02-21 Yao Qi <yao.qi@linaro.org>
11964 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
11965 parameter type to 'readable_regcache *'.
11966 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
11967 * arm-tdep.c (arm_neon_quad_read): Likewise.
11968 (arm_pseudo_read): Likewise.
11969 * avr-tdep.c (avr_pseudo_register_read): Likewise.
11970 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
11971 * frv-tdep.c (frv_pseudo_register_read): Likewise.
11972 * gdbarch.c: Re-generated.
11973 * gdbarch.h: Re-generated.
11974 * gdbarch.sh (pseudo_register_read): Change parameter type to
11975 'readable_regcache *'.
11976 (pseudo_register_read_value): Likewise.
11977 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
11978 (h8300_pseudo_register_read): Likewise.
11979 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
11980 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
11981 (i386_pseudo_register_read_into_value): Likewise.
11982 (i386_pseudo_register_read_value): Likewise.
11983 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
11985 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
11986 * m32c-tdep.c (m32c_raw_read): Likewise.
11987 (m32c_read_flg): Likewise.
11988 (m32c_banked_register): Likewise.
11989 (m32c_banked_read): Likewise.
11990 (m32c_sb_read): Likewise.
11991 (m32c_part_read): Likewise.
11992 (m32c_cat_read): Likewise.
11993 (m32c_r3r2r1r0_read): Likewise.
11994 (m32c_pseudo_register_read): Likewise.
11995 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
11996 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
11997 (mep_pseudo_cr64_read): Likewise.
11998 (mep_pseudo_register_read): Likewise.
11999 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12000 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12001 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12002 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12003 (regcache::cooked_read): Likewise.
12004 (regcache::cooked_read_value): Likewise.
12005 (regcache_cooked_read_signed):
12006 (regcache::cooked_read): Likewise.
12007 * regcache.h (readable_regcache): New class.
12008 (regcache): Inherit readable_regcache. Move some methods to
12010 * rl78-tdep.c (rl78_pseudo_register_read): Change
12011 parameter type to 'readable_regcache *'.
12012 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12013 (e500_pseudo_register_read): Change parameter type to
12014 'readable_regcache *'.
12015 (dfp_pseudo_register_read): Likewise.
12016 (vsx_pseudo_register_read): Likewise.
12017 (efpr_pseudo_register_read): Likewise.
12018 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12019 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12020 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12021 (sh64_pseudo_register_read): Likewise.
12022 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12023 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12024 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12025 (spu_pseudo_register_read): Likewise.
12026 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12027 (xtensa_pseudo_register_read): Likewise.
12029 2018-02-21 Yao Qi <yao.qi@linaro.org>
12031 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12032 (regcache::arch): Move it to reg_buffer::arch.
12033 (regcache::register_buffer): Likewise.
12034 (regcache::assert_regnum): Likewise.
12035 (regcache::num_raw_registers): Likewise.
12036 * regcache.h (reg_buffer): New class.
12037 (regcache): Inherit reg_buffer.
12039 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12041 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12042 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12044 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12046 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12048 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12050 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12051 (SFILES): Remove common/*.c files.
12052 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12053 * common/common.host: Add common reference.
12054 * configure.ac: Likewise.
12055 * configure: Regenerate.
12057 2018-02-16 Yao Qi <yao.qi@linaro.org>
12059 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12060 (block_initialize_namespace): Use new.
12061 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12062 (dwarf2_free_objfile): Use delete.
12063 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12064 (copy_type_recursive): Use new.
12065 * gdb_obstack.h (allocate_on_obstack): New.
12067 2018-02-15 Yao Qi <yao.qi@linaro.org>
12070 * inferior.c (exit_inferior_1): Reset inf->control.
12072 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12074 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12077 2018-02-14 Pedro Alves <palves@redhat.com>
12079 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12080 frame_cleanup_after_sniffer on exception.
12082 2018-02-14 Tom Tromey <tom@tromey.com>
12084 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12086 (solib_bfd_open): Make pathname const.
12087 * solib.c (solib_bfd_open): Make pathname const.
12088 * solib-spu.c (spu_bfd_fopen): Make name const.
12089 (spu_bfd_open): Make pathname const.
12090 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12091 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12093 2018-02-14 Tom Tromey <tom@tromey.com>
12095 * symfile.c (symfile_bfd_open): Update.
12096 * source.h (openp, source_full_path_of, find_and_open_source):
12097 Change argument type to unique_xmalloc_ptr.
12098 * source.c (openp): Take a unique_xmalloc_ptr.
12099 (source_full_path_of, find_and_open_source): Likewise.
12100 (open_source_file, symtab_to_fullname): Update.
12101 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12102 unique_xmalloc_ptr.
12103 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12104 (exec_file_find): Update.
12105 * psymtab.c (psymtab_to_fullname): Update.
12106 * nto-tdep.h (nto_find_and_open_solib): Update.
12107 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12108 unique_xmalloc_ptr.
12109 * exec.c (exec_file_attach): Update.
12110 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12111 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12113 2018-02-14 Tom Tromey <tom@tromey.com>
12115 * solib.c: Include source.h.
12116 * nto-tdep.c: Include source.h.
12117 * mi/mi-cmd-env.c: Include source.h.
12118 * infcmd.c: Include source.h.
12119 * exec.c: Include source.h.
12120 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12121 (add_path, directory_switch, source_path, init_source_path): Move
12123 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12124 (add_path, directory_switch, source_path, init_source_path):
12127 2018-02-14 Tom Tromey <tom@tromey.com>
12129 * solist.h (exec_file_find, solib_find): Return
12130 unique_xmalloc_ptr.
12131 (solib_bfd_fopen): Take a const char *.
12132 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12133 (exec_file_find, solib_find): Likewise.
12134 (solib_bfd_fopen): Do not take ownership of "pathname".
12135 (solib_bfd_open): Use unique_xmalloc_ptr.
12136 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12137 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12138 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12139 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12141 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12143 * ada-lang.c (name_match_type_from_name): Remove reference to
12144 ada_name_for_lookup in function's documentation.
12145 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12147 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12149 * defs.h (enum openp_flags): New enum.
12150 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12151 Move to enum openp_flags.
12152 (openp_flags): New enum flags.
12153 (openp): Change parameter type to openp_flags.
12154 * source.c (openp): Change parameter type to openp_flags.
12155 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12156 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12158 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12160 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12163 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12165 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12167 (class dwarf2_queue_guard): ...the destructor of this new class.
12168 (dw2_do_instantiate_symtab): Create instance of the new class
12169 dwarf2_queue_guard, remove cleanup.
12171 2018-02-09 Tom Tromey <tom@tromey.com>
12173 * source.c (find_source_lines): Don't reference past the end of
12176 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12178 * remote.c (remote_btrace_maybe_reopen): Change error message.
12179 * btrace.c (btrace_enable): Likewise.
12180 (parse_xml_btrace): Likewise.
12181 (parse_xml_btrace_conf): Likewise.
12183 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12185 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12186 (linux_enable_pt, linux_enable_bts): Call
12187 diagnose_perf_event_open_fail.
12189 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12191 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12192 Remove parameter and change return type. Update callers. Move it.
12193 (linux_enable_bts, linux_enable_pt): Improve error message.
12194 (linux_enable_pt): Remove zero buffer size check.
12195 (linux_enable_btrace): Improve error messages. Remove NULL return
12198 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12200 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12201 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12202 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12203 (linux_supports_pt, linux_supports_btrace): Remove.
12204 (linux_enable_bts): Call cpu_supports_bts.
12205 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12206 * remote.c (remote_supports_btrace): Remove.
12207 (init_remote_ops): Remove remote_supports_btrace.
12208 * target-delegates.c: Regenerated.
12209 * target.c (target_supports_btrace): Remove.
12210 * target.h (target_ops) <to_supports_btrace>: Remove
12211 (target_supports_btrace): Remove.
12212 * x86-linux-nat.c (x86_linux_create_target): Remove
12213 linux_supports_btrace.
12215 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12217 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12219 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12220 exception and use message in own exception.
12222 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12224 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12225 (perf_event_pt_event_type): Use gdb_file_up.
12226 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12227 scoped_fd, and scoped_mmap.
12229 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12231 * common/scoped_mmap.h: New.
12232 * unittests/scoped_mmap-selftest.c: New.
12233 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12234 unittests/scoped_mmap-selftest.c.
12236 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12238 * common/scoped_fd.h: New.
12239 * unittests/scoped_fd-selftest.c: New.
12240 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12241 unittests/scoped_fd-selftest.c.
12243 2018-02-09 Tom Tromey <tom@tromey.com>
12245 * auto-load.c (auto_load_section_scripts): Use
12246 gdb::unique_xmalloc_ptr.
12248 2018-02-09 Tom Tromey <tom@tromey.com>
12250 * auto-load.c (execute_script_contents): Use std::string.
12252 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12254 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12255 Python function, rather than a new command.
12257 2018-02-08 Tom Tromey <tom@tromey.com>
12259 * solib.c (solib_find_1): Use std::string.
12260 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12262 2018-02-08 Tom Tromey <tom@tromey.com>
12264 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12266 2018-02-08 Tom Tromey <tom@tromey.com>
12268 * source.c (find_source_lines): Use gdb::def_vector.
12270 2018-02-08 Tom Tromey <tom@tromey.com>
12272 * macrocmd.c (struct temporary_macro_definition): New.
12273 (macro_define_command): Use temporary_macro_definition. Remove
12275 (free_macro_definition_ptr): Remove.
12277 2018-02-08 Tom Tromey <tom@tromey.com>
12279 * macroexp.c (maybe_expand): Use std::string.
12281 2018-02-08 Tom Tromey <tom@tromey.com>
12283 * macroexp.c (struct macro_buffer): Add initializers for some
12285 (init_buffer, init_shared_buffer, free_buffer)
12286 (free_buffer_return_text): Remove.
12287 (macro_buffer): New constructors.
12288 (~macro_buffer): New destructor.
12289 (macro_buffer::set_shared): New method.
12290 (macro_buffer::resize_buffer, macro_buffer::appendc)
12291 (macro_buffer::appendmem): Now methods, not free functions.
12292 (set_token, append_tokens_without_splicing, stringify)
12293 (macro_stringify): Update.
12294 (gather_arguments): Change return type. Remove argc_p argument,
12295 add args_ptr argument. Use std::vector.
12296 (substitute_args): Remove argc argument. Accept std::vector.
12297 (expand): Update. Use std::vector.
12298 (scan, macro_expand, macro_expand_next): Update.
12300 2018-02-08 Tom Tromey <tom@tromey.com>
12302 * symtab.c (default_collect_symbol_completion_matches_break_on):
12303 Use unique_xmalloc_ptr.
12304 * macroscope.h: (sal_macro_scope, user_macro_scope)
12305 (default_macro_scope): Return unique_xmalloc_ptr.
12306 * macroscope.c (sal_macro_scope, user_macro_scope)
12307 (default_macro_scope): Return unique_xmalloc_ptr.
12308 * macroexp.h (macro_expand, macro_expand_once): Return
12309 unique_xmalloc_ptr.
12310 * macroexp.c (macro_expand, macro_expand_once): Return
12311 unique_xmalloc_ptr.
12312 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12313 (info_macro_command, info_macros_command): Use
12314 unique_xmalloc_ptr.
12315 * compile/compile-c-support.c (write_macro_definitions): Use
12316 unique_xmalloc_ptr.
12317 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12319 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12321 * value.c (value_static_field): Assign field type instead of
12322 containing type when returning an optimized out value.
12324 2018-02-06 Yao Qi <yao.qi@linaro.org>
12326 * ft32-tdep.c (ft32_read_pc): Remove.
12327 (ft32_write_pc): Remove.
12328 (ft32_gdbarch_init): Update.
12329 * m32r-tdep.c (m32r_read_pc): Remove.
12330 (m32r_gdbarch_init): Update.
12331 * mep-tdep.c (mep_read_pc): Remove.
12332 (mep_gdbarch_init): Update.
12333 * microblaze-tdep.c (microblaze_write_pc): Remove.
12334 (microblaze_gdbarch_init): Update.
12335 * mn10300-tdep.c (mn10300_read_pc): Remove.
12336 (mn10300_write_pc): Remove.
12337 (mn10300_gdbarch_init): Update.
12338 * moxie-tdep.c (moxie_read_pc): Remove.
12339 (moxie_write_pc): Remove.
12340 (moxie_gdbarch_init): Update.
12342 2018-02-06 Yao Qi <yao.qi@linaro.org>
12344 * expprint.c (print_subexp_standard): Handle
12345 OP_F77_UNDETERMINED_ARGLIST.
12346 (dump_subexp_body_standard): Likewise.
12348 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12350 * target-descriptions.c (tdesc_element_visitor) Add empty
12352 (tdesc_type): Move make_gdb_type from here.
12353 (tdesc_type_builtin): Likewise.
12354 (tdesc_type_vector): Likewise.
12355 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12356 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12357 (make_gdb_type_union): Likewise.
12358 (make_gdb_type_flags): Likewise.
12359 (make_gdb_type_enum): Likewise.
12360 (make_gdb_type): New function.
12361 (tdesc_register_type): Use static make_gdb_type.
12363 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12365 * infcmd.c (default_print_one_register_info): Align natural-format
12366 column values consistently one under another.
12367 (pad_to_column): New function.
12369 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12371 * dwarf2read.c (dwarf2_physname): Move commment.
12373 2018-02-01 Leszek Swirski <leszeks@google.com>
12375 * varobj.c (varobj_formatted_print_options): Allow recursive
12376 pretty printing if pretty printing is enabled.
12378 2018-02-01 Leszek Swirski <leszeks@google.com>
12380 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12381 names after a structop as a filename.
12383 2018-02-01 Yao Qi <yao.qi@linaro.org>
12385 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12386 (arm_record_coproc_data_proc): Likewise.
12388 2018-02-01 Yao Qi <yao.qi@linaro.org>
12390 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12392 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12394 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12395 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12397 2018-01-31 Pedro Alves <palves@redhat.com>
12399 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12400 * inflow.c (child_terminal_save_inferior): Wrap reference to
12401 tcgetpgrp in HAVE_TERMIOS_H.
12402 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12404 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12405 always iterate over all inferiors.
12406 (gdbsim_cntrl_c): Adjust.
12407 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12409 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12411 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12412 index type is objfile-owned if the element type is as well.
12414 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12418 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12420 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12421 "features/s390x-linux64.c".
12422 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12423 s390_linux32 and s390x_linux64.
12424 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12426 * s390-tdep.c: Include "features/s390-linux32.c" and
12427 "features/s390x-linux64.c".
12428 (s390_tdesc_valid): Add check for tdesc_has_registers.
12429 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12430 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12431 tdesc_s390x_linux64.
12432 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12433 tdesc_s390x_linux64 to...
12434 * s390-tdep.h: ...here.
12436 2018-01-30 Pedro Alves <palves@redhat.com>
12439 * config.in, configure: Regenerate.
12440 * configure.ac: Check for getpgid.
12441 * go32-nat.c (go32_pass_ctrlc): New.
12442 (go32_target): Install it.
12443 * inf-child.c (inf_child_target): Install
12444 child_terminal_save_inferior, child_pass_ctrlc and
12446 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12447 (inf_ptrace_target): No longer install it.
12448 * infcmd.c (interrupt_target_1): Adjust.
12449 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12450 (child_interrupt): Declare.
12451 (inferior::terminal_state): New.
12452 * inflow.c (struct terminal_info): Update comments.
12453 (inferior_process_group): Delete.
12454 (terminal_is_ours): Delete.
12455 (gdb_tty_state): New.
12456 (child_terminal_init): Adjust.
12457 (is_gdb_terminal, sharing_input_terminal_1)
12458 (sharing_input_terminal): New functions.
12459 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12460 Set the process's actual process group in the foreground if
12461 possible. Handle is_ours_for_output/is_ours distinction. Don't
12462 mark terminal as the inferior's if not sharing GDB's terminal.
12463 Don't check attach_flag.
12464 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12465 pass down a target_terminal_state.
12466 (child_terminal_save_inferior): New, factored out from ...
12467 (child_terminal_ours_1): ... this. Handle
12468 target_terminal_state::is_ours_for_output.
12469 (child_interrupt, child_pass_ctrlc): New.
12470 (inflow_inferior_exit): Clear the inferior's terminal_state.
12471 (copy_terminal_info): Copy the inferior's terminal state.
12472 (_initialize_inflow): Remove reference to terminal_is_ours.
12473 * inflow.h (inferior_process_group): Delete.
12474 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12475 * procfs.c (procfs_target): Don't install procfs_interrupt.
12476 (procfs_interrupt): Delete.
12477 * remote.c (remote_serial_quit_handler): Adjust.
12478 (remote_interrupt): Remove ptid parameter. Adjust.
12479 * target-delegates.c: Regenerate.
12480 * target.c: Include "terminal.h".
12481 (target_terminal::terminal_state): Rename to ...
12482 (target_terminal::m_terminal_state): ... this.
12483 (target_terminal::init): Adjust.
12484 (target_terminal::inferior): Adjust to per-inferior
12486 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12487 (target_terminal::ours, target_terminal::ours_for_output): Use
12488 target_terminal_is_ours_kind.
12489 (target_interrupt): Remove ptid parameter. Adjust.
12490 (default_target_pass_ctrlc): Adjust.
12491 * target.h (target_ops::to_terminal_save_inferior): New field.
12492 (target_ops::to_interrupt): Remove ptid_t parameter.
12493 (target_interrupt): Remove ptid_t parameter. Update comment.
12494 (target_pass_ctrlc): Update comment.
12495 * target/target.h (target_terminal_state): New scoped enum,
12496 factored out of ...
12497 (target_terminal::terminal_state): ... here.
12498 (target_terminal::inferior): Update comments.
12499 (target_terminal::restore_inferior): New.
12500 (target_terminal::is_inferior, target_terminal::is_ours)
12501 (target_terminal::is_ours_for_output): Adjust.
12502 (target_terminal::scoped_restore_terminal_state): Adjust to
12503 rename, and call restore_inferior() instead of inferior().
12504 (target_terminal::scoped_restore_terminal_state::m_state): Change
12506 (target_terminal::terminal_state): Rename to ...
12507 (target_terminal::m_terminal_state): ... this and change type.
12509 2018-01-30 Pedro Alves <palves@redhat.com>
12511 * linux-nat.c (wait_for_signal): New function.
12512 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12514 (async_terminal_is_ours)
12515 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12516 (linux_nat_add_target): Don't override
12517 to_terminal_inferior/to_terminal_ours.
12519 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12521 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12523 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12525 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12526 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12527 dwarf2_per_objfile_free here.
12528 (dwarf2_per_objfile_free): Remove.
12529 (_initialize_dwarf2_read): Don't register
12530 dwarf2_per_objfile_free as a registry cleanup.
12532 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12534 Avoid compilation errors in MinGW native builds
12536 The error is triggered by including python-internal.h, and the
12539 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12540 from build-gnulib/import/math.h:27,
12541 from d:/usr/Python26/include/pyport.h:235,
12542 from d:/usr/Python26/include/Python.h:58,
12543 from python/python-internal.h:94,
12544 from python/py-arch.c:24:
12545 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12549 This happens because Python headers define 'hypot' to expand t
12550 '_hypot' in the Windows builds.
12551 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12552 'hypoth'. This avoids a compilation error.
12554 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12556 * MAINTAINERS (Write After Approval): Fix ordering.
12558 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12560 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12562 2018-01-26 Alan Modra <amodra@gmail.com>
12564 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12565 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12566 Remove nop. Make const. Comment.
12567 (powerpc32_plt_stub_so_2): New.
12568 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12569 Correct count. Update uses.
12570 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12571 Move common code reading PLT entry word. Correct
12572 powerpc32_plt_stub PLT address calculation.
12573 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12574 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12575 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12576 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12577 (ppc64_standard_linkage8): Likewise.
12578 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12579 Correct insns description.
12580 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12582 2018-01-24 Pedro Alves <palves@redhat.com>
12584 GCC PR libstdc++/83906
12585 * gdbtypes.c (operator==(const dynamic_prop &,
12586 const dynamic_prop &)): New.
12587 (operator==(const range_bounds &, const range_bounds &)): New.
12588 (check_types_equal): Use them instead of memcmp.
12589 * gdbtypes.h (operator==(const dynamic_prop &,
12590 const dynamic_prop &)): Declare.
12591 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12592 (operator==(const range_bounds &, const range_bounds &)): Declare.
12593 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12595 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12597 * s390-linux-tdep.c (s390_record_address_mask)
12598 (s390_record_calc_disp_common, s390_record_calc_disp)
12599 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12600 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12601 (s390_process_record): Move to s390-tdep.c.
12602 (s390_linux_init_abi_any): Adjust.
12603 * s390-tdep.c (s390_record_address_mask)
12604 (s390_record_calc_disp_common, s390_record_calc_disp)
12605 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12606 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12607 (s390_process_record): Moved from s390-linux-tdep.c
12608 (s390_gdbarch_init): Adjust.
12610 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12612 * s390-linux-nat.c (s390-tdep.h): New include.
12613 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12614 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12615 (ALLDEPFILES): Add s390-tdep.c.
12616 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12617 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12618 * s390-tdep.h: ...this. New file.
12619 * s390-linux-tdep.c (s390-tdep.h): New include.
12620 (_initialize_s390_tdep): Rename to...
12621 (_initialize_s390_linux_tdep): ...this and adjust.
12622 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12623 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12625 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12626 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12627 (s390_is_partial_instruction, s390_software_single_step)
12628 (is_non_branch_ril, s390_displaced_step_copy_insn)
12629 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12630 (s390_prologue_data, s390_addr, s390_store, s390_load)
12631 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12632 (s390_register_call_saved, s390_guess_tracepoint_registers)
12633 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12634 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12635 (s390_pseudo_register_name, s390_pseudo_register_type)
12636 (s390_pseudo_register_read, s390_pseudo_register_write)
12637 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12638 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12639 (s390_addr_bits_remove, s390_address_class_type_flags)
12640 (s390_address_class_type_flags_to_name)
12641 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12642 (s390_function_arg_float, s390_function_arg_vector)
12643 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12644 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12645 (s390_frame_align, s390_register_return_value, s390_return_value)
12646 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12647 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12648 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12649 (s390_trad_frame_prev_register, s390_unwind_cache)
12650 (s390_prologue_frame_unwind_cache)
12651 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12652 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12653 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12654 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12655 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12656 (s390_frame_base_address, s390_local_base_address)
12657 (s390_frame_base, s390_gcc_target_options)
12658 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12659 (s390_validate_reg_range, s390_tdesc_valid)
12660 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12661 * s390-tdep.c: ...this. New file.
12663 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12665 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12666 (s390_process_record, s390_gdbarch_tdep_alloc)
12667 (s390_linux_init_abi_any): Use/set new hook.
12669 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12671 * s390-linux-tdep.c (osabi.h): New include.
12672 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12673 (s390_linux_init_abi_any): New functions.
12674 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12676 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12678 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12679 tdesc_has_registers check
12681 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12683 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12684 (s390_validate_reg_range): New macro.
12685 (s390_gdbarch_init): Adjust.
12687 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12689 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12690 (s390_gdbarch_tdep_alloc): Adjust.
12691 (s390_gdbarch_init): Adjust.
12693 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12695 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12696 <have_tdb>: Change type to bool.
12697 (s390_gdbarch_tdep_alloc): Adjust.
12698 (s390_gdbarch_init): Adjust.
12700 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12702 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12703 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12704 (s390_gdbarch_tdep_alloc): New function.
12705 (s390_gdbarch_init): Allocate tdep at start and use its fields
12706 instead of separate variables.
12708 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12710 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12711 when looking for cached gdbarch and add comment for remaining.
12713 2018-01-22 Pedro Alves <palves@redhat.com>
12714 Sergio Durigan Junior <sergiodj@redhat.com>
12716 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12719 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12721 * MAINTAINERS: Update my company e-mail address.
12723 2018-01-22 Yao Qi <yao.qi@linaro.org>
12725 * regcache.c (cooked_write_test): New function.
12726 (_initialize_regcache): Register the test.
12728 2018-01-22 Yao Qi <yao.qi@linaro.org>
12730 * ia64-tdep.c (ia64_pseudo_register_read): Call
12731 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12732 * m32c-tdep.c (m32c_cat_read): Likewise.
12733 (m32c_r3r2r1r0_read): Likewise.
12734 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12735 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12737 2018-01-22 Yao Qi <yao.qi@linaro.org>
12739 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12740 method raw_read instead of regcache_raw_read.
12741 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12742 * arm-tdep.c (arm_neon_quad_read): Likewise.
12743 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12744 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12745 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12746 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12747 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12748 (i386_pseudo_register_read_into_value): Likewise.
12749 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12750 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12751 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12752 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12753 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12754 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12755 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12756 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12757 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12759 2018-01-22 Yao Qi <yao.qi@linaro.org>
12761 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12762 * configure.tgt: Remove target mt.
12763 * mt-tdep.c: Remove.
12764 * regcache.c (cooked_read_test): Remove the check for mt.
12766 2018-01-22 Yao Qi <yao.qi@linaro.org>
12768 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12769 instead of gdbarch_pseudo_register_read_value.
12771 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12773 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12776 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12778 * linespec.c (create_sals_line_offset): Remove code that preserved
12779 the symtab_and_line's line number.
12781 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12783 * varobj.c (varobj_create): Don't set valid_block when creating a
12786 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12788 * varobj.c (varobj_create): Remove out of date comment.
12790 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12793 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12794 updating innermost block.
12795 * parse.c (innermost_block_tracker::update): Take extra type
12796 parameter, and check types match before updating innermost block.
12797 (write_dollar_variable): Update innermost block for registers.
12798 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12799 (innermost_block_tracker::innermost_block_tracker): Initialise
12801 (innermost_block_tracker::reset): Take type parameter.
12802 (innermost_block_tracker::update): Take type parameter, and pass
12803 type through as needed.
12804 (innermost_block_tracker::m_types): New member.
12805 * varobj.c (varobj_create): Pass type when reseting innermost
12808 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12810 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12811 * ada-lang.c (resolve_subexp): Likewise.
12812 * breakpoint.c (set_breakpoint_condition) Likewise.
12813 (watch_command_1) Likewise.
12814 * c-exp.y (variable): Likewise.
12815 * d-exp.y (PrimaryExpression): Likewise.
12816 * f-exp.y (variable): Likewise.
12817 * go-exp.y (variable): Likewise.
12818 * m2-exp.y (variable): Likewise.
12819 * objfiles.c (objfile::~objfile): Likewise.
12820 * p-exp.y (variable): Likewise.
12821 * parse.c (innermost_block): Change type.
12822 * parser-defs.h (class innermost_block_tracker): New.
12823 (innermost_block): Change to innermost_block_tracker.
12824 * printcmd.c (display_command): Switch to innermost_block API.
12825 (do_one_display): Likewise.
12826 * rust-exp.y (do_one_display): Likewise.
12827 * symfile.c (clear_symtab_users): Likewise.
12828 * varobj.c (varobj_create): Switch to innermost_block API, replace
12829 use of innermost_block with block stored on varobj object.
12831 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12833 * expression.h (innermost_block): Remove declaration.
12834 * varobj.c: Add 'parser-defs.h' include.
12836 2018-01-19 Tom Tromey <tom@tromey.com>
12838 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12839 symbols in the static and global blocks.
12841 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12843 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12844 gdb_ptrace.h, and move including gdb_wait.h ...
12845 * nat/linux-ptrace.h: ... to here.
12847 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12849 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12850 inf_ptrace_detach_success.
12851 (inf_ptrace_detach_success): Add inferior parameter, use it
12852 instead of inferior_ptid, pass it to detach_inferior.
12853 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12855 * inferior.c (detach_inferior): Add overload that takes an
12857 * inferior.h (detach_inferior): Likewise.
12858 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12859 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12860 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12862 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12864 * target.h (struct target_ops) <to_detach>: Add inferior
12866 (target_detach): Likewise.
12867 * target.c (dispose_inferior): Pass inferior down.
12868 (target_detach): Pass inferior down. Assert that it is equal to
12869 the current inferior.
12870 * aix-thread.c (aix_thread_detach): Pass inferior down.
12871 * corefile.c (core_file_command): Pass current_inferior() down.
12872 * corelow.c (core_detach): Add inferior parameter.
12873 * darwin-nat.c (darwin_detach): Likewise.
12874 * gnu-nat.c (gnu_detach): Likewise.
12875 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12876 * infcmd.c (detach_command): Pass current_inferior() down to
12878 * infrun.c (follow_fork_inferior): Pass parent_inf to
12880 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12882 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12883 * linux-thread-db.c (thread_db_detach): Likewise.
12884 * nto-procfs.c (procfs_detach): Likewise.
12885 * procfs.c (procfs_detach): Likewise.
12886 * record.c (record_detach): Likewise.
12887 * record.h (struct inferior): Forward-declare.
12888 (record_detach): Add inferior parameter.
12889 * remote-sim.c (gdbsim_detach): Likewise.
12890 * remote.c (remote_detach_1): Likewise.
12891 (remote_detach): Likewise.
12892 (extended_remote_detach): Likewise.
12893 * sol-thread.c (sol_thread_detach): Likewise.
12894 * target-debug.h (target_debug_print_inferior_p): New macro.
12895 * target-delegates.c: Re-generate.
12896 * top.c (kill_or_detach): Pass inferior down to target_detach.
12897 * windows-nat.c (windows_detach): Add inferior parameter.
12899 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12901 * target.h (struct target_ops) <to_detach>: Remove args
12903 (target_detach): Likewise.
12904 * target.c (dispose_inferior): Adjust.
12905 (target_detach): Remove args parameter, adjust.
12906 * aix-thread.c (aix_thread_detach): Adjust.
12907 * corefile.c (core_file_command): Adjust.
12908 * corelow.c (core_detach): Adjust.
12909 * darwin-nat.c (darwin_detach): Adjust.
12910 * gnu-nat.c (gnu_detach): Adjust.
12911 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12912 * infcmd.c (detach_command): Adjust
12913 * infrun.c (follow_fork_inferior): Adjust.
12914 (handle_vfork_child_exec_or_exit): Adjust.
12915 * linux-fork.c (linux_fork_detach): Remove args parameter.
12916 * linux-fork.h (linux_fork_detach): Likewise.
12917 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12918 * linux-thread-db.c (thread_db_detach): Likewise.
12919 * nto-procfs.c (procfs_detach): Likewise.
12920 * procfs.c (procfs_detach): Likewise.
12921 (do_detach): Remove signo parameter.
12922 * record.c (record_detach): Remove args parameter.
12923 * record.h (record_detach): Likewise.
12924 * remote-sim.c (gdbsim_detach): Likewise.
12925 * remote.c (remote_detach_1): Likewise.
12926 (remote_detach): Likewise.
12927 (extended_remote_detach): Likewise.
12928 * sol-thread.c (sol_thread_detach): Likewise.
12929 * target-delegates.c: Re-generate.
12930 * top.c (struct qt_args) <args>: Remove field.
12931 (kill_or_detach): Don't pass args.
12932 (quit_force): Don't set args.
12933 * windows-nat.c (windows_detach): Remove args parameter.
12935 2018-01-19 Yao Qi <yao.qi@linaro.org>
12937 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12938 (arm_linux_init_abi): Install it.
12940 2018-01-19 Yao Qi <yao.qi@linaro.org>
12942 * osabi.c (gdb_osabi_names): Extend the regexp for
12943 arm-linux-gnueabihf.
12945 2018-01-18 Yao Qi <yao.qi@linaro.org>
12947 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12949 (abbrev_table::add_abbrev): Update.
12950 (abbrev_table::lookup_abbrev): Update.
12952 2018-01-18 Yao Qi <yao.qi@linaro.org>
12954 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
12956 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
12958 * compile/compile.c (compile_to_object): Convert "triplet_rx"
12961 2018-01-17 Tom Tromey <tom@tromey.com>
12963 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
12965 2018-01-17 Tom Tromey <tom@tromey.com>
12967 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
12968 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
12969 (create_array_type_with_stride): Update.
12970 * dwarf2read.c (set_die_type): Update.
12972 2018-01-17 Tom Tromey <tom@tromey.com>
12974 * dwarf2read.c (delayed_method_info): Remove typedef.
12975 (dwarf2_cu::method_info): Now a std::vector.
12976 (add_to_method_list): Update.
12977 (free_delayed_list): Remove.
12978 (compute_delayed_physnames): Update.
12979 (process_full_comp_unit, process_full_type_unit): Clear the method
12980 list. Remove cleanups.
12981 (psymtab_include_file_name): Add name_holder parameter. Use
12982 unique_xmalloc_ptr.
12983 (dwarf_decode_lines): Update.
12985 2018-01-17 Tom Tromey <tom@tromey.com>
12986 Simon Marchi <simon.marchi@ericsson.com>
12988 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
12989 (dwarf2_per_objfile::free_cached_comp_units)
12990 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
12991 (init_cutu_and_read_dies_no_follow): Update.
12992 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
12993 (dwarf2_cu::~dwarf2_cu): New.
12994 (free_heap_comp_unit, free_stack_comp_unit): Remove.
12995 (age_cached_comp_units, free_one_cached_comp_unit): Update.
12997 2018-01-17 Tom Tromey <tom@tromey.com>
12998 Simon Marchi <simon.marchi@ericsson.com>
13000 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13001 (struct die_reader_specs) <abbrev_table>: New member.
13002 (struct abbrev_table): Add constructor.
13003 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13004 <abbrev_obstack>: Now an auto_obstack.
13005 (abbrev_table_up): New typedef.
13006 (init_cu_die_reader): Add abbrev_table parameter.
13007 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13008 Add result_dwo_abbrev_table.
13009 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13010 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13012 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13014 (skip_children): Update.
13015 (abbrev_table::alloc_abbrev): Rename from
13016 abbrev_table_alloc_abbrev.
13017 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13018 (abbrev_table::lookup_abbrev): Rename from
13019 abbrev_table_lookup_abbrev.
13020 (abbrev_table_read_table): Return abbrev_table_up.
13021 (abbrev_table_free, abbrev_table_free_cleanup)
13022 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13023 (load_partial_dies): Update.
13025 2018-01-17 Tom Tromey <tom@tromey.com>
13027 * dwarf2read.c (dwarf2_compute_name): Update comment.
13028 (read_func_scope, read_variable): Update.
13029 (new_symbol): Remove.
13030 (new_symbol_full): Rename to new_symbol.
13032 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13035 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13036 a warning instead of throwing an error, set section size to 0 and return
13038 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13040 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13042 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13044 (linux_ptrace_attach_fail_reason_string): Likewise.
13045 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13047 (linux_ptrace_attach_fail_reason_string): Likewise.
13048 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13050 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13052 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13054 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13057 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13058 checking for fs_base/gs_base fields in struct user_regs_struct.
13059 * configure: Regenerate.
13061 2018-01-17 Yao Qi <yao.qi@linaro.org>
13063 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13065 (aarch64_linux_init_abi): Install it to gdbarch hook
13066 gcc_target_options.
13068 2018-01-15 Pedro Alves <palves@redhat.com>
13070 * common/signals-state-save-restore.c
13071 (save_original_signals_state): Fix typos.
13073 2017-01-12 Tom Tromey <tom@tromey.com>
13074 Sergio Durigan Junior <sergiodj@redhat.com>
13076 * Makefile.in (install-only): Install gdb-add-index.
13078 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13080 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13082 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13084 * infrun.c (keep_going_pass_signal): Clear step-over info when
13085 insert_breakpoints fails.
13087 2018-01-11 Pedro Alves <palves@redhat.com>
13090 * infrun.c (resume): Rename to ...
13091 (resume_1): ... this.
13092 (resume): Reimplement as wrapper around resume_1.
13094 2018-01-11 Pedro Alves <palves@redhat.com>
13097 * remote.c (remote_parse_stop_reply): Default to the last-set
13098 general thread instead of to 'magic_null_ptid'.
13100 2018-01-10 Pedro Alves <palves@redhat.com>
13102 * language.h (language_get_symbol_name_matcher): Rename ...
13103 (get_symbol_name_matcher): ... this.
13104 * language.c (language_get_symbol_name_matcher): Ditto.
13105 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13108 2018-01-10 Pedro Alves <palves@redhat.com>
13112 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13113 Adjust to use language_get_symbol_name_matcher instead of
13114 language_defn::la_get_symbol_name_matcher.
13115 * language.c (language_get_symbol_name_matcher): If in Ada mode
13116 and the lookup name is a verbatim match, return Ada's matcher.
13117 * language.h (language_get_symbol_name_matcher): Adjust comment.
13118 (ada_lookup_name_info::verbatim_p):: New method.
13120 2018-01-10 Pedro Alves <palves@redhat.com>
13123 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13124 minsym's language is language_auto or language_cplus, pass down
13125 language_ada instead.
13126 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13128 2018-01-10 Pedro Alves <palves@redhat.com>
13131 * minsyms.c (linkage_name_str): New function.
13132 (iterate_over_minimal_symbols): Use it.
13134 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13136 * NEWS: Document that 'info proc' now works on FreeBSD.
13138 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13140 * configure.ac: Check for kinfo_getfile in libutil.
13141 * configure: Regenerate.
13142 * config.in: Regenerate.
13143 * fbsd-nat.c: Include "fbsd-tdep.h".
13144 (fbsd_fetch_cmdline): New.
13145 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13146 rather than calling error.
13147 (fbsd_info_proc): New.
13148 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13149 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13150 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13152 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13154 * fbsd-nat.c (struct free_deleter): Remove.
13155 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13157 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13159 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13160 NULL for an empty pathname.
13162 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13164 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13165 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13166 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13167 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13168 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13169 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13170 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13171 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13172 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13173 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13174 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13175 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13176 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13177 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13178 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13180 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13182 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13183 (gnu_xfer_auxv): New function.
13184 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13185 TARGET_OBJECT_AUXV.
13187 2018-01-08 Yao Qi <yao.qi@linaro.org>
13188 Simon Marchi <simon.marchi@ericsson.com>
13190 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13192 (COMMON_OBS): Remove selftest.o.
13193 * configure.ac: Append selftest-arch.c and common/selftest.c to
13194 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13195 * configure: Re-generated.
13196 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13198 (maintenance_info_selftests): Likewise.
13200 2018-01-08 Xavier Roirand <roirand@adacore.com>
13202 * ada-valprint.c (val_print_packed_array_elements): Use
13203 proper number of elements when printing an array indexed
13204 by an enumeration type.
13206 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13208 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13209 (dw2_get_file_names_reader): Adjust.
13210 (lookup_dwo_signatured_type): Adjust.
13211 (lookup_dwp_signatured_type): Adjust.
13212 (lookup_signatured_type): Adjust.
13213 (create_type_unit_group): Adjust.
13214 (get_type_unit_group): Adjust.
13215 (process_psymtab_comp_unit_reader): Adjust.
13216 (build_type_psymtabs_reader): Adjust.
13217 (scan_partial_symbols): Adjust.
13218 (add_partial_symbol): Adjust.
13219 (add_partial_subprogram): Adjust.
13220 (peek_die_abbrev): Adjust.
13221 (fixup_go_packaging): Adjust.
13222 (process_imported_unit_die): Adjust.
13223 (dwarf2_compute_name): Adjust.
13224 (dwarf2_physname): Adjust.
13225 (read_import_statement): Adjust.
13226 (handle_DW_AT_stmt_list): Adjust.
13227 (read_file_scope): Adjust.
13228 (read_func_scope): Adjust.
13229 (read_lexical_block_scope): Adjust.
13230 (read_call_site_scope): Adjust.
13231 (read_variable): Adjust.
13232 (dwarf2_rnglists_process): Adjust.
13233 (dwarf2_ranges_process): Adjust.
13234 (dwarf2_ranges_read): Adjust.
13235 (dwarf2_get_pc_bounds): Adjust.
13236 (dwarf2_record_block_ranges): Adjust.
13237 (dwarf2_add_field): Adjust.
13238 (dwarf2_add_member_fn): Adjust.
13239 (read_structure_type): Adjust.
13240 (process_structure_scope): Adjust.
13241 (read_enumeration_type): Adjust.
13242 (read_array_type): Adjust.
13243 (mark_common_block_symbol_computed): Adjust.
13244 (read_common_block): Adjust.
13245 (read_namespace_type): Adjust.
13246 (read_namespace): Adjust.
13247 (read_module_type): Adjust.
13248 (read_tag_pointer_type): Adjust.
13249 (read_tag_ptr_to_member_type): Adjust.
13250 (read_tag_string_type): Adjust.
13251 (read_subroutine_type): Adjust.
13252 (read_typedef): Adjust.
13253 (read_base_type): Adjust.
13254 (attr_to_dynamic_prop): Adjust.
13255 (read_subrange_type): Adjust.
13256 (read_unspecified_type): Adjust.
13257 (dwarf2_read_abbrevs): Adjust.
13258 (load_partial_dies): Adjust.
13259 (read_partial_die): Adjust.
13260 (find_partial_die): Adjust.
13261 (guess_partial_die_structure_name): Adjust.
13262 (fixup_partial_die): Adjust.
13263 (read_attribute_value): Adjust.
13264 (read_addr_index): Adjust.
13265 (read_addr_index_from_leb128): Adjust.
13266 (read_str_index): Adjust.
13267 (dwarf2_string_attr): Adjust.
13268 (get_debug_line_section): Adjust.
13269 (dwarf_decode_line_header): Adjust.
13270 (lnp_state_machine::check_line_address): Adjust.
13271 (dwarf_decode_lines_1): Adjust.
13272 (dwarf_decode_lines): Adjust.
13273 (dwarf2_start_symtab): Adjust.
13274 (var_decode_location): Adjust.
13275 (new_symbol_full): Adjust.
13276 (dwarf2_const_value_data): Adjust.
13277 (dwarf2_const_value_attr): Adjust.
13278 (dwarf2_const_value): Adjust.
13279 (die_type): Adjust.
13280 (die_containing_type): Adjust.
13281 (build_error_marker_type): Adjust.
13282 (lookup_die_type): Adjust.
13283 (guess_full_die_structure_name): Adjust.
13284 (anonymous_struct_prefix): Adjust.
13285 (determine_prefix): Adjust.
13286 (dwarf2_name): Adjust.
13287 (follow_die_ref_or_sig): Adjust.
13288 (follow_die_offset): Adjust.
13289 (follow_die_ref): Adjust.
13290 (follow_die_sig_1): Adjust.
13291 (follow_die_sig): Adjust.
13292 (get_signatured_type): Adjust.
13293 (get_DW_AT_signature_type): Adjust.
13294 (decode_locdesc): Adjust.
13295 (dwarf_decode_macros): Adjust.
13296 (cu_debug_loc_section): Adjust.
13297 (fill_in_loclist_baton): Adjust.
13298 (dwarf2_symbol_mark_computed): Adjust.
13299 (init_one_comp_unit): Don't assign
13300 dwarf2_cu::dwarf2_per_objfile.
13301 (set_die_type): Adjust.
13303 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13305 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13306 <dwarf2_per_objfile>: New field.
13307 (dwarf2_per_objfile): Remove global.
13308 (get_dwarf2_per_objfile): New function.
13309 (set_dwarf2_per_objfile): New function.
13310 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13311 dwarf2_per_objfile.
13312 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13313 (read_abbrev_offset): Likewise.
13314 (read_indirect_string): Likewise.
13315 (read_indirect_line_string): Likewise.
13316 (read_indirect_string_at_offset): Likewise.
13317 (read_indirect_string_from_dwz): Likewise.
13318 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13319 dwarf2_per_objfile.
13320 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13321 (create_all_comp_units): Change objfile parameter to
13322 dwarf2_per_objfile.
13323 (create_all_type_units): Likewise.
13324 (process_queue): Add dwarf2_per_objfile parameter.
13325 (read_and_check_comp_unit_head): Likewise.
13326 (lookup_dwo_unit_in_dwp): Likewise.
13327 (get_dwp_file): Likewise.
13328 (process_cu_includes): Likewise.
13329 (struct free_dwo_file_cleanup_data): New struct.
13330 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13331 set_dwarf2_per_objfile.
13332 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13333 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13334 context, adjust calls.
13335 (dw2_instantiate_symtab): Likewise.
13336 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13337 (dw2_get_cu): Likewise.
13338 (create_cu_from_index_list): Change objfile parameter to
13339 dwarf2_per_objfile.
13340 (create_cus_from_index_list): Get dwarf2_per_objfile from
13341 context, adjust calls.
13342 (create_cus_from_index): Likewise.
13343 (create_signatured_type_table_from_index): Change objfile
13344 parameter to dwarf2_per_objfile.
13345 (create_signatured_type_table_from_debug_names): Change objfile
13346 parameter to dwarf2_per_objfile.
13347 (create_addrmap_from_index): Likewise.
13348 (create_addrmap_from_aranges): Likewise.
13349 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13350 (dw2_setup): Remove.
13351 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13353 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13354 get_dwarf2_per_objfile.
13355 (dw2_forget_cached_source_info): Likewise.
13356 (dw2_map_symtabs_matching_filename): Likewise.
13357 (struct dw2_symtab_iterator) <index>: Remove.
13358 <dwarf2_per_objfile>: New field.
13359 (dw2_symtab_iter_init): Replace index parameter with
13360 dwarf2_per_objfile.
13361 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13362 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13363 (dw2_print_stats): Likewise.
13364 (dw2_dump): Likewise.
13365 (dw2_expand_symtabs_for_function): Likewise.
13366 (dw2_expand_all_symtabs): Likewise.
13367 (dw2_expand_symtabs_with_fullname): Likewise.
13368 (dw2_expand_marked_cus): Replace index and objfile parameters
13369 with dwarf2_per_objfile.
13370 (dw_expand_symtabs_matching_file_matcher): Add
13371 dwarf2_per_objfile parameter and adjust calls.
13372 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13374 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13375 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13377 (create_cus_from_debug_names_list): Replace objfile parameter
13378 with dwarf2_per_objfile and adjust calls.
13379 (create_cus_from_debug_names): Likewise.
13380 (dwarf2_read_debug_names): Likewise.
13381 (mapped_debug_names::namei_to_name): Adjust call.
13382 (dw2_debug_names_iterator::next): Likewise.
13383 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13384 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13385 (dw2_debug_names_dump): Likewise.
13386 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13387 (dw2_debug_names_expand_symtabs_matching): Likewise.
13388 (dwarf2_initialize_objfile): Likewise.
13389 (dwarf2_build_psymtabs): Likewise.
13390 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13392 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13393 (read_and_check_comp_unit_head): Likewise.
13394 (read_abbrev_offset): Likewise.
13395 (create_debug_type_hash_table): Likewise.
13396 (create_debug_types_hash_table): Likewise.
13397 (create_all_type_units): Replace objfile parameter with
13398 dwarf2_per_objfile.
13399 (add_type_unit): Add dwarf2_per_objfile parameter.
13400 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13401 with dwarf2_per_objfile.
13402 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13403 (lookup_dwp_signatured_type): Likewise.
13404 (lookup_signatured_type): Likewise.
13405 (read_cutu_die_from_dwo): Likewise.
13406 (init_tu_and_read_dwo_dies): Likewise.
13407 (init_cutu_and_read_dies): Likewise.
13408 (init_cutu_and_read_dies_no_follow): Likewise.
13409 (allocate_type_unit_groups_table): Add objfile parameter.
13410 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13411 (get_type_unit_group): Likewise.
13412 (process_psymtab_comp_unit): Update call.
13413 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13414 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13415 (print_tu_stats): Likewise.
13416 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13417 in void* parameter.
13418 (build_type_psymtabs): Change objfile parameter to
13419 dwarf2_per_objfile.
13420 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13421 passed in void* parameter.
13422 (process_skeletonless_type_units): Change objfile parameter to
13423 dwarf2_per_objfile.
13424 (set_partial_user): Likewise.
13425 (dwarf2_build_psymtabs_hard): Likewise.
13426 (read_comp_units_from_section): Likewise.
13427 (create_all_comp_units): Likewise.
13428 (scan_partial_symbols): Update calls.
13429 (add_partial_symbol): Likewise.
13430 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13431 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13432 (process_queue): Add dwarf2_per_objfile parameter.
13433 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13434 (compute_compunit_symtab_includes): Likewise.
13435 (process_cu_includes): Add dwarf2_per_objfile parameter.
13436 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13437 (process_full_type_unit): Likewise.
13438 (process_imported_unit_die): Update call.
13439 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13440 (read_file_scope): Likewise.
13441 (allocate_dwo_file_hash_table): Add objfile parameter.
13442 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13443 (create_cus_hash_table): Likewise.
13444 (create_dwp_hash_table): Likewise.
13445 (create_dwo_unit_in_dwp_v1): Likewise.
13446 (create_dwp_v2_section): Likewise.
13447 (create_dwo_unit_in_dwp_v2): Likewise.
13448 (lookup_dwo_unit_in_dwp): Likewise.
13449 (try_open_dwop_file): Likewise.
13450 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13451 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13452 cleanup to include a reference to dwarf2_per_objfile.
13453 (open_dwp_file): Add dwarf2_per_objfile parameter.
13454 (open_and_init_dwp_file): Likewise.
13455 (get_dwp_file): Likewise.
13456 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13457 (queue_and_load_all_dwo_tus): Update call.
13458 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13460 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13461 (dwarf2_ranges_process): Likewise.
13462 (dwarf2_get_pc_bounds): Likewise.
13463 (mark_common_block_symbol_computed): Likewise.
13464 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13465 (dwarf2_read_abbrevs): Update call.
13466 (read_partial_die): Use dwarf2_per_objfile from cu.
13467 (find_partial_die): Likewise.
13468 (fixup_partial_die): Likewise.
13469 (read_attribute_value): Likewise.
13470 (read_indirect_string_at_offset_from): Add objfile parameter.
13471 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13473 (read_indirect_string_from_dwz): Add objfile parameter.
13474 (read_indirect_string): Add objfile parameter.
13475 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13476 (read_addr_index): Use dwarf2_per_objfile from cu.
13477 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13479 (read_str_index): Use dwarf2_per_objfile from cu.
13480 (get_debug_line_section): Likewise.
13481 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13482 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13483 (new_symbol_full): Use dwarf2_per_objfile from cu.
13484 (build_error_marker_type): Likewise.
13485 (lookup_die_type): Likewise.
13486 (determine_prefix): Likewise.
13487 (follow_die_offset): Likewise.
13488 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13489 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13490 (dwarf2_fetch_die_type_sect_off): Likewise.
13491 (dwarf2_get_die_type): Likewise.
13492 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13493 (get_signatured_type): Likewise.
13494 (get_DW_AT_signature_type): Likewise.
13495 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13496 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13497 (cu_debug_loc_section): Likewise.
13498 (fill_in_loclist_baton): Likewise.
13499 (dwarf2_symbol_mark_computed): Likewise.
13500 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13501 dwarf2_per_objfile.
13502 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13504 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13505 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13506 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13507 (set_die_type): Use dwarf2_free_objfile from cu.
13508 (get_die_type_at_offset): Likewise.
13509 (dwarf2_per_objfile_free): Don't assign global variable.
13510 (debug_names) <constructor>: Add dwarf2_per_objfile
13511 parameter, update m_debugstrlookup construction.
13512 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13514 <m_dwarf2_per_objfile>: New field.
13515 <lookup>: Use m_dwarf2_per_objfile.
13516 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13517 (psyms_seen_size): Likewise.
13518 (write_gdbindex): Replace objfile parameter with
13519 dwarf2_per_objfile.
13520 (write_debug_names): Likewise.
13521 (write_psymtabs_to_index): Likewise.
13522 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13525 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13527 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13528 <dwarf2_per_objfile>: New field.
13529 (struct dwarf2_per_cu_data) <objfile>: Remove.
13530 <dwarf2_per_objfile>: New field.
13531 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13533 (create_signatured_type_table_from_index): Likewise.
13534 (create_debug_type_hash_table): Likewise.
13535 (fill_in_sig_entry_from_dwo_entry): Likewise.
13536 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13537 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13539 (create_partial_symtab): Access objfile through
13540 dwarf2_per_objfile.
13541 (process_psymtab_comp_unit_reader): Likewise.
13542 (read_comp_units_from_section): Likewise.
13543 (scan_partial_symbols): Likewise.
13544 (add_partial_symbol): Likewise.
13545 (add_partial_subprogram): Likewise.
13546 (peek_die_abbrev): Likewise.
13547 (fixup_go_packaging): Likewise.
13548 (process_full_comp_unit): Likewise.
13549 (process_full_type_unit): Likewise.
13550 (process_imported_unit_die): Likewise.
13551 (dwarf2_compute_name): Likewise.
13552 (dwarf2_physname): Likewise.
13553 (read_import_statement): Likewise.
13554 (create_cus_hash_table): Assign dwarf2_physname instead of
13556 (read_func_scope): Access objfile through dwarf2_per_objfile.
13557 (read_lexical_block_scope): Likewise.
13558 (read_call_site_scope): Likewise.
13559 (read_variable): Likewise.
13560 (dwarf2_rnglists_process): Likewise.
13561 (dwarf2_ranges_process): Likewise.
13562 (dwarf2_ranges_read): Likewise.
13563 (dwarf2_record_block_ranges): Likewise.
13564 (dwarf2_add_field): Likewise.
13565 (dwarf2_add_member_fn): Likewise.
13566 (read_structure_type): Likewise.
13567 (process_structure_scope): Likewise.
13568 (read_enumeration_type): Likewise.
13569 (read_array_type): Likewise.
13570 (read_common_block): Likewise.
13571 (read_namespace_type): Likewise.
13572 (read_namespace): Likewise.
13573 (read_module_type): Likewise.
13574 (read_tag_pointer_type): Likewise.
13575 (read_tag_ptr_to_member_type): Likewise.
13576 (read_tag_string_type): Likewise.
13577 (read_subroutine_type): Likewise.
13578 (read_typedef): Likewise.
13579 (read_base_type): Likewise.
13580 (attr_to_dynamic_prop): Likewise.
13581 (read_subrange_type): Likewise.
13582 (read_unspecified_type): Likewise.
13583 (load_partial_dies): Likewise.
13584 (read_partial_die): Likewise.
13585 (find_partial_die): Likewise.
13586 (guess_partial_die_structure_name): Likewise.
13587 (fixup_partial_die): Likewise.
13588 (read_attribute_value): Likewise.
13589 (read_addr_index_from_leb128): Likewise.
13590 (dwarf2_read_addr_index): Likewise.
13591 (dwarf2_string_attr): Likewise.
13592 (lnp_state_machine::check_line_address): Likewise.
13593 (dwarf_decode_lines_1): Likewise.
13594 (dwarf_decode_lines): Likewise.
13595 (dwarf2_start_symtab): Likewise.
13596 (var_decode_location): Likewise.
13597 (new_symbol_full): Likewise.
13598 (dwarf2_const_value_data): Likewise.
13599 (dwarf2_const_value_attr): Likewise.
13600 (dwarf2_const_value): Likewise.
13601 (die_type): Likewise.
13602 (die_containing_type): Likewise.
13603 (lookup_die_type): Likewise.
13604 (guess_full_die_structure_name): Likewise.
13605 (anonymous_struct_prefix): Likewise.
13606 (dwarf2_name): Likewise.
13607 (follow_die_ref_or_sig): Likewise.
13608 (follow_die_offset): Likewise.
13609 (follow_die_ref): Likewise.
13610 (dwarf2_fetch_die_loc_sect_off): Likewise.
13611 (dwarf2_fetch_constant_bytes): Likewise.
13612 (dwarf2_fetch_die_type_sect_off): Likewise.
13613 (dwarf2_get_die_type): Likewise.
13614 (follow_die_sig): Likewise.
13615 (decode_locdesc): Likewise.
13616 (dwarf2_per_cu_objfile): Likewise.
13617 (dwarf2_per_cu_text_offset): Likewise.
13618 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13620 (set_die_type): Access objfile through
13621 dwarf2_per_objfile.
13623 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13625 * valprint.c (converted_character_d): Remove typedef.
13626 (DEF_VEC_O (converted_character_d)): Remove.
13627 (count_next_character): Use std::vector.
13628 (print_converted_chars_to_obstack): Likewise.
13629 (generic_printstr): Likewise.
13631 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13633 * xml-support.h (struct gdb_xml_value): Add constructor.
13634 <value>: Change type to unique_xmalloc_ptr.
13635 (gdb_xml_value_s): Remove typedef.
13636 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13637 (gdb_xml_element_start_handler): Change parameter type to
13639 (xml_find_attribute): Likewise.
13640 * xml-support.c (xml_find_attribute): Change parameter type to
13641 std::vector and adjust.
13642 (gdb_xml_values_cleanup): Remove.
13643 (gdb_xml_parser::start_element): Adjust to std::vector.
13644 (xinclude_start_include): Change paraeter type to std::vector
13646 * btrace.c (check_xml_btrace_version): Likewise.
13647 (parse_xml_btrace_block): Likewise.
13648 (parse_xml_btrace_pt_config_cpu): Likewise.
13649 (parse_xml_btrace_pt): Likewise.
13650 (parse_xml_btrace_conf_bts): Likewise.
13651 (parse_xml_btrace_conf_pt): Likewise.
13652 * memory-map.c (memory_map_start_memory): Likewise.
13653 (memory_map_start_property): Likewise.
13654 * osdata.c (osdata_start_osdata): Likewise.
13655 (osdata_start_item): Likewise.
13656 (osdata_start_column): Likewise.
13657 * remote.c (start_thread): Likewise.
13658 * solib-aix.c (library_list_start_library): Likewise.
13659 (library_list_start_list): Likewise.
13660 * solib-svr4.c (library_list_start_library): Likewise.
13661 (svr4_library_list_start_list): Likewise.
13662 * solib-target.c (library_list_start_segment): Likewise.
13663 (library_list_start_section): Likewise.
13664 (library_list_start_library): Likewise.
13665 (library_list_start_list): Likewise.
13666 * tracepoint.c (traceframe_info_start_memory): Likewise.
13667 (traceframe_info_start_tvar): Likewise.
13668 * xml-syscall.c (syscall_start_syscall): Likewise.
13669 * xml-tdesc.c (tdesc_start_target): Likewise.
13670 (tdesc_start_feature): Likewise.
13671 (tdesc_start_reg): Likewise.
13672 (tdesc_start_union): Likewise.
13673 (tdesc_start_struct): Likewise.
13674 (tdesc_start_flags): Likewise.
13675 (tdesc_start_enum): Likewise.
13676 (tdesc_start_field): Likewise.
13677 (tdesc_start_enum_value): Likewise.
13678 (tdesc_start_vector): Likewise.
13680 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13682 * extension.h (struct xmethod_worker) <clone>: Remove.
13683 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13685 (python_xmethod_worker::clone): Remove.
13686 * valops.c (find_overload_match): Use std::move instead of
13689 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13691 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13692 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13693 <free_xmethod_worker_data>: Remove.
13694 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13695 <get_xmethod_arg_types>: Remove.
13696 <get_xmethod_result_type>: Remove.
13697 <invoke_xmethod>: Remove.
13698 * extension.c (new_xmethod_worker): Remove.
13699 (clone_xmethod_worker): Remove.
13700 (get_matching_xmethod_workers): Return void, pass std::vector by
13702 (get_xmethod_arg_types): Rename to...
13703 (xmethod_worker::get_arg_types): ... this, and adjust.
13704 (get_xmethod_result_type): Rename to...
13705 (xmethod_worker::get_result_type): ... this, and adjust.
13706 (invoke_xmethod): Remove.
13707 (free_xmethod_worker): Remove.
13708 (free_xmethod_worker_vec): Remove.
13709 * extension.h (enum ext_lang_rc): Move here from
13711 (struct xmethod_worker): Add constructor and destructor.
13714 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13715 virtual pure methods.
13716 <get_arg_types, get_result_type>: New methods.
13717 (xmethod_worker_ptr): Remove typedef.
13718 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13719 (xmethod_worker_vec): Remove typedef.
13720 (xmethod_worker_up): New typedef.
13721 (invoke_xmethod): Remove.
13722 (clone_xmethod_worker): Remove.
13723 (free_xmethod_worker): Remove.
13724 (free_xmethod_worker_vec): Remove.
13725 (get_xmethod_arg_types): Remove.
13726 (get_xmethod_result_type): Remove.
13727 * valops.c (find_method_list): Use std::vector, don't use
13728 intermediate vector.
13729 (value_find_oload_method_list): Use std::vector.
13730 (find_overload_match): Use std::vector.
13731 (find_oload_champ): Use std::vector.
13732 * value.c (value_free): Use operator delete.
13733 (value_of_xmethod): Rename to...
13734 (value_from_xmethod): ... this. Don't assign
13735 xmethod_worker::value, take rvalue-reference.
13736 (result_type_of_xmethod): Adjust.
13737 (call_xmethod): Adjust.
13738 * value.h: Include extension.h.
13739 (struct xmethod_worker): Don't forward-declare.
13740 (value_of_xmethod): Rename to...
13741 (value_from_xmethod): ... this, take rvalue-reference.
13742 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13743 (struct python_xmethod_worker): ... this, add constructor and
13745 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13746 (gdbpy_free_xmethod_worker_data): Rename to...
13747 (python_xmethod_worker::~python_xmethod_worker): ... this and
13749 (gdbpy_clone_xmethod_worker_data): Rename to...
13750 (python_xmethod_worker::clone): ... this and adjust.
13751 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13753 (gdbpy_get_xmethod_arg_types): Rename to...
13754 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13755 (gdbpy_get_xmethod_result_type): Rename to...
13756 (python_xmethod_worker::do_get_result_type): ... this and
13758 (gdbpy_invoke_xmethod): Rename to...
13759 (python_xmethod_worker::invoke): ... this and adjust.
13760 (new_python_xmethod_worker): Rename to...
13761 (python_xmethod_worker::python_xmethod_worker): ... this and
13763 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13765 (gdbpy_free_xmethod_worker_data): Remove.
13766 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13767 (gdbpy_get_xmethod_arg_types): Remove.
13768 (gdbpy_get_xmethod_result_type): Remove.
13769 (gdbpy_invoke_xmethod): Remove.
13770 * python/python.c (python_extension_ops): Remove obsolete
13773 2018-01-05 Pedro Alves <palves@redhat.com>
13776 * common/signals-state-save-restore.c
13777 (save_original_signals_state): New parameter 'quiet'. Warn if we
13778 find a custom handler preinstalled, instead of internal erroring.
13779 But only warn if !quiet.
13780 * common/signals-state-save-restore.h
13781 (save_original_signals_state): New parameter 'quiet'.
13782 * main.c (captured_main_1): Move save_original_signals_state call
13783 after option handling, and pass QUIET.
13785 2018-01-05 Pedro Alves <palves@redhat.com>
13787 * spu-tdep.c (spu_catch_start): Pass
13788 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13790 2018-01-05 Pedro Alves <palves@redhat.com>
13793 * ada-lang.c (literal_symbol_name_matcher): New function.
13794 (ada_get_symbol_name_matcher): Use it for
13795 symbol_name_match_type::SEARCH_NAME.
13796 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13797 it down instead of assuming symbol_name_match_type::FULL.
13798 * block.h (block_lookup_symbol): New parameter 'match_type'.
13799 * c-valprint.c (print_unpacked_pointer): Use
13800 lookup_symbol_search_name instead of lookup_symbol.
13801 * compile/compile-object-load.c (get_out_value_type): Pass down
13802 symbol_name_match_type::SEARCH_NAME.
13803 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13804 symbol_name_match_type::FULL.
13805 * cp-support.c (cp_get_symbol_name_matcher): Handle
13806 symbol_name_match_type::SEARCH_NAME.
13807 * infrun.c (insert_exception_resume_breakpoint): Use
13808 lookup_symbol_search_name.
13809 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13810 * psymtab.c (maintenance_check_psymtabs): Use
13811 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13812 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13813 SYMBOL_SEARCH_NAME.
13814 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13815 if symbol_name_match_type::SEARCH_NAME.
13816 (lookup_symbol_in_language): Pass down
13817 symbol_name_match_type::FULL.
13818 (lookup_symbol_search_name): New.
13819 (lookup_language_this): Pass down
13820 symbol_name_match_type::SEARCH_NAME.
13821 (lookup_symbol_aux, lookup_local_symbol): New parameter
13822 'match_type'. Pass it down.
13823 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13824 (lookup_symbol_search_name): New declaration.
13825 (lookup_symbol_in_block): New 'match_type' parameter.
13827 2018-01-05 Pedro Alves <palves@redhat.com>
13830 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13832 (ada_lookup_symbol): Reimplement in terms of
13833 ada_lookup_symbol_list, bits factored out from
13834 ada_lookup_encoded_symbol.
13836 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13838 * ada-exp.y (write_object_renaming): When subscripting an array
13839 using a symbol as the index, pass the block in call to
13840 ada_lookup_encoded_symbol when looking that symbol up.
13842 2018-01-05 Jerome Guitton <guitton@adacore.com>
13844 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13847 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13849 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13850 the case where VALUE_LVAL (val0) is not lval_memory.
13852 2018-01-05 Xavier Roirand <roirand@adacore.com>
13854 * ada-valprint.c (print_optional_low_bound): Handle
13855 character-indexed array printing like boolean-indexed array
13858 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13860 * NEWS: Create a new section for the next release branch.
13861 Rename the section of the current branch, now that it has
13864 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13866 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13867 * version.in: Bump version to 8.1.50.DATE-git.
13869 2018-01-03 Xavier Roirand <roirand@adacore.com>
13871 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13873 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13875 (default_exception_support_info) <catch_handlers_sym>: Add field.
13876 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13877 (ada_exception_name_addr_1): Add "catch handlers" handling.
13878 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13879 Update all callers.
13880 (create_excep_cond_exprs) <ex>: Add parameter.
13881 (re_set_exception): Update create_excep_cond_exprs call.
13882 (print_it_exception, print_one_exception, print_mention_exception)
13883 (print_recreate_exception): Add "catch handler" handling.
13884 (allocate_location_catch_handlers, re_set_catch_handlers)
13885 (check_status_catch_handlers, print_it_catch_handlers)
13886 (print_one_catch_handlers, print_mention_catch_handlers)
13887 (print_recreate_catch_handlers): New function.
13888 (catch_handlers_breakpoint_ops): New variable.
13889 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13890 Add parameter. Add "catch handler" handling.
13891 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13892 Add "catch handler" handling.
13893 (ada_exception_catchpoint_cond_string): Add "catch handler"
13895 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13897 (catch_ada_handlers_command): New function.
13898 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13899 operations structure.
13900 (_initialize_ada_language): Add "catch handlers" command entry.
13901 * NEWS: Document "catch handlers" feature.
13903 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13905 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13906 account when creating the array type of the slice.
13907 (ada_value_slice): Likewise.
13909 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13911 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13913 (create_array_type_with_stride): Add byte_stride_prop parameter.
13914 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13915 New parameter. Update all callers in this file.
13916 (array_type_has_dynamic_stride): New function.
13917 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13918 of arrays with dynamic byte strides.
13919 * dwarf2read.c (read_array_type): Add support for dynamic
13920 DW_AT_byte_stride attributes.
13922 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13924 * dwarf2read.c (read_unspecified_type): Treat
13925 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13927 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13929 Update copyright year range in all GDB files.
13931 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13933 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13934 and gdb/testsuite/gdb.base/step-line.c.
13936 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13938 * copyright.py (main): Dump the contents of
13939 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13940 even if BY_HAND is empty.
13942 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13944 * top.c (print_gdb_version): Update Copyright year in version
13947 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13949 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13951 For older changes see ChangeLog-2017.
13957 version-control: never