1 2018-09-23 Tom Tromey <tom@tromey.com>
3 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
4 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
5 * python/python-internal.h (gdbpy_handle_exception): Declare.
6 * python/py-utils.c (gdbpy_handle_exception): New function.
8 2018-09-23 Tom Tromey <tom@tromey.com>
11 * python/py-type.c (typy_template_argument): Check for negative
14 2018-09-23 Tom Tromey <tom@tromey.com>
17 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
19 2018-09-23 Tom Tromey <tom@tromey.com>
22 * python/py-value.c (valpy_int): Allow conversion from pointer
25 2018-09-23 Tom Tromey <tom@tromey.com>
28 * python/py-value.c (valpy_int): Respect type sign.
30 2018-09-23 Tom Tromey <tom@tromey.com>
33 * python/py-value.c (valpy_float): Allow conversions from int or
35 (valpy_int, valpy_long): Allow conversions from float.
37 2018-09-23 Tom Tromey <tom@tromey.com>
39 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
40 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
42 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
46 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
48 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
50 * windows-nat.c (windows_nat_target::wait): Remove a spurious
51 target_terminal::ours().
53 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
55 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
58 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
60 * breakpoint.c (update_inserted_breakpoint_locations): Remove
63 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
65 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
67 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
68 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
69 * sol-thread.c (ps_pdmodel): Don't guard definition.
71 * procfs.c: Fix formatting.
73 * procfs.c (sysset_t_alloc): Remove.
74 (create_procinfo): Use XNEW instead of sysset_t_alloc.
75 (procfs_debug_inferior): Likewise.
76 (procfs_set_exec_trap): Likewise.
77 (proc_set_traced_sysentry): Don't allocate argp dynamically.
78 (proc_set_traced_sysexit): Likewise.
80 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
81 (dead_procinfo): Likewise.
82 (proc_warn): Likewise.
83 (proc_error): Likewise.
84 (proc_get_LDT_entry): Likewise.
85 (do_attach): Likewise.
86 (procfs_target::pid_to_str): Likewise.
87 (iterate_over_mappings): Likewise.
89 * procfs.c (create_procinfo): Fix ARI warning.
90 (proc_get_status): Likewise.
91 (proc_stop_process): Likewise.
92 (proc_run_process): Likewise.
93 (proc_kill): Likewise.
94 (proc_get_LDT_entry): Likewise.
95 (procfs_find_LDT_entry): Likewise.
96 (proc_update_threads): Likewise.
97 (proc_iterate_over_threads): Likewise.
98 (do_attach): Likewise.
99 (procfs_xfer_memory): Likewise.
100 (invalidate_cache): Likewise.
101 (procfs_target::resume): Likewise.
102 (procfs_init_inferior): Likewise.
103 (procfs_set_exec_trap): Likewise.
104 (procfs_target::thread_alive): Likewise.
105 (procfs_target::pid_to_exec_file): Likewise.
106 (iterate_over_mappings): Likewise.
107 (procfs_target::make_corefile_notes): Likewise.
108 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
110 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
111 (procfs_find_LDT_entry): Likewise.
112 * sol-thread.c (ps_lgetLDT): Likewise.
114 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
117 * procfs.c (procfs_target): Declare pid_to_exec_file.
118 (procfs_target::pid_to_exec_file): New.
120 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
122 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
124 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
125 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
127 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
129 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
130 (supply_fpregset, fill_fpregset): Move ...
131 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
132 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
133 Remove references to ioctl-based procfs.
135 Remove PR_MODEL_NATIVE guards.
136 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
137 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
139 2018-09-19 Xavier Roirand <roirand@adacore.com>
142 * solib-darwin.c (darwin_get_dyld_bfd): New function.
143 (darwin_solib_get_all_image_info_addr_at_init): Update call.
144 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
146 2018-09-19 John Baldwin <jhb@FreeBSD.org>
148 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
149 (fbsd_print_sockaddr_in6): Likewise.
151 2018-09-19 Richard Bunt <richard.bunt@arm.com>
152 Chris January <chris.january@arm.com>
154 * eval.c (skip_undetermined_arglist): Skip argument list helper.
155 (evaluate_subexp_standard): Return a dummy type when
156 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
157 OP_F77_UNDETERMINED_ARGLIST case.
158 * expression.h (enum noside): Update comment.
160 2018-09-19 George Vasick <george.vasick@oracle.com>
162 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
164 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
165 April Chin <april.chin@oracle.com>
166 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
168 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
170 (create_procinfo): Print pids in /proc without leading zeros.
172 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
174 * nios2-tdep.c (nios2_gcc_target_options): New.
175 (nios2_gdb_arch_init): Install new hook.
177 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
179 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
181 * update-gnulib.sh: Apply patch.
182 * configure: Re-generate.
184 2018-09-18 John Baldwin <jhb@FreeBSD.org>
186 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
187 description. Make "info proc" command descriptions more
190 2018-09-18 John Baldwin <jhb@FreeBSD.org>
192 * NEWS: Mention 'info proc files' command.
194 2018-09-18 John Baldwin <jhb@FreeBSD.org>
196 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
197 descriptors for IP_FILES and IP_ALL.
199 2018-09-18 John Baldwin <jhb@FreeBSD.org>
201 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
202 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
203 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
204 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
205 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
206 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
207 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
208 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
209 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
210 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
211 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
212 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
213 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
214 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
215 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
216 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
217 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
218 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
219 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
220 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
221 (struct fbsd_sockaddr_un): New types.
222 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
223 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
224 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
225 (fbsd_core_info_proc_files): New functions.
226 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
228 * fbsd-tdep.h (fbsd_info_proc_files_header)
229 (fbsd_info_proc_files_entry): New.
231 2018-09-18 John Baldwin <jhb@FreeBSD.org>
233 * defs.h (enum info_proc_what) [IP_FILES]: New value.
234 * infcmd.c (info_proc_cmd_files): New function.
235 (_initialize_infcmd): Register 'info proc files' command.
237 2018-09-18 John Baldwin <jhb@FreeBSD.org>
239 * gnulib/aclocal-m4-deps.mk: Re-generate.
240 * gnulib/aclocal.m4: Re-generate.
241 * gnulib/config.in: Re-generate.
242 * gnulib/configure: Re-generate.
243 * gnulib/import/Makefile.am: Re-generate.
244 * gnulib/import/Makefile.in: Re-generate.
245 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
246 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
247 * gnulib/import/arpa_inet.in.h: New file.
248 * gnulib/import/inet_ntop.c: New file.
249 * gnulib/import/m4/arpa_inet_h.m4: New file.
250 * gnulib/import/m4/inet_ntop.m4: New file.
251 * gnulib/import/m4/netinet_in_h.m4: New file.
252 * gnulib/import/m4/socklen.m4: New file.
253 * gnulib/import/m4/sockpfaf.m4: New file.
254 * gnulib/import/m4/stdalign.m4: New file.
255 * gnulib/import/m4/sys_uio_h.m4: New file.
256 * gnulib/import/netinet_in.in.h: New file.
257 * gnulib/import/stdalign.in.h: New file.
258 * gnulib/import/sys_socket.c: New file.
259 * gnulib/import/sys_socket.in.h: New file.
260 * gnulib/import/sys_uio.in.h: New file.
261 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
264 2018-09-18 John Baldwin <jhb@FreeBSD.org>
266 * gnulib/aclocal-m4-deps.mk: New file.
267 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
270 2018-09-18 John Baldwin <jhb@FreeBSD.org>
272 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
275 2018-09-18 Tom Tromey <tom@tromey.com>
277 * compile/compile-object-load.c (struct
278 link_hash_table_cleanup_data): Add constructor and destructor.
279 Use DISABLE_COPY_AND_ASSIGN.
280 (~link_hash_table_cleanup_data): Rename from
281 link_hash_table_free. Now a destructor.
282 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
284 2018-09-18 Tom Tromey <tom@tromey.com>
286 * compile/compile-object-run.c (do_module_cleanup): Use delete.
287 * compile/compile-object-load.c (struct munmap_list): Move to
289 (munmap_list::add): Rename from munmap_list_add; rewrite.
290 (munmap_list::~munmap_list): Rename from munmap_list_free.
291 (munmap_listp_free_cleanup): Remove.
292 (compile_object_load): Update.
293 * compile/compile-object-load.h (struct munmap_list): Move from
294 compile-object-load.c. Rewrite.
296 2018-09-18 Alan Hayward <alan.hayward@arm.com>
298 * aarch64-tdep.c (pass_in_v): Use register size.
299 (aarch64_extract_return_value): Likewise.
300 (aarch64_store_return_value): Likewise.
302 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
304 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
307 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
309 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
312 2018-09-17 Tom Tromey <tom@tromey.com>
315 * configure: Rebuild.
316 * configure.ac: Conditionally use -DNDEBUG for Python.
318 2018-09-17 Tom Tromey <tom@tromey.com>
320 * configure: Rebuild.
321 * configure.ac: Use gmp as a library dependency when checking for
324 2018-09-17 Pedro Alves <palves@redhat.com>
326 * python/py-inferior.c (find_inferior_object): Delete.
328 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
330 * compile/compile-cplus-types.c
331 (compile_cplus_instance::enter_scope): Don't use new_scope after
334 2018-09-17 Tom Tromey <tom@tromey.com>
336 * common/pathstuff.c (get_standard_cache_dir): Use
337 ~/Library/Caches on macOS.
338 * common/pathstuff.h (get_standard_cache_dir): Update comment.
340 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
343 * breakpoint.c (commands_cmd_element): New.
344 (_initialize_breakpoint): Assign commands_cmd_element.
345 * breakpoint.h (commands_cmd_element): New.
346 * cli/cli-script.c (while_cmd_element, if_command,
347 define_cmd_element): New.
348 (command_name_equals): Remove.
349 (process_next_line): Compare commands by pointer, not by name.
350 (_initialize_cli_script): Assign the various cmd_list_element
352 * compile/compile.c (compile_cmd_element): New.
353 (_initialize_compile): Assign compile_cmd_element.
354 * compile/compile.h (compile_cmd_element): New.
355 * guile/guile.c (guile_cmd_element): New.
356 (install_gdb_commands): Assign guile_cmd_element.
357 * guile/guile.h (guile_cmd_element): New.
358 * python/python.c (python_cmd_element): New.
359 (_initialize_python): Assign python_cmd_element.
360 * python/python.h (python_cmd_element): New.
361 * tracepoint.c (while_stepping_cmd_element): New.
362 (_initialize_tracepoint): Assign while_stepping_cmd_element.
363 * tracepoint.h (while_stepping_cmd_element): New.
365 2018-09-17 Tom Tromey <tom@tromey.com>
367 * infrun.c (save_infcall_suspend_state): Return
368 infcall_suspend_state_up.
369 (save_infcall_control_state): Return infcall_control_state_up.
370 * inferior.h (save_infcall_suspend_state)
371 (save_infcall_control_state): Declare later. Return unique
374 2018-09-17 Tom Tromey <tom@tromey.com>
376 * infrun.c (struct stop_context): Declare constructor,
377 destructor, "changed" method.
378 (stop_context::stop_context): Rename from save_stop_context.
379 (stop_context::~stop_context): Rename from
380 release_stop_context_cleanup.
381 (normal_stop): Update.
382 (stop_context::changed): Rename from stop_context_changed. Return
385 2018-09-17 Tom Tromey <tom@tromey.com>
387 * inferior.h (struct infcall_suspend_state_deleter): New.
388 (infcall_suspend_state_up): New typedef.
389 (struct infcall_control_state_deleter): New.
390 (infcall_control_state_up): New typedef.
391 (make_cleanup_restore_infcall_suspend_state)
392 (make_cleanup_restore_infcall_control_state): Don't declare.
393 * infcall.c (call_function_by_hand_dummy): Update.
394 * infrun.c (do_restore_infcall_suspend_state_cleanup)
395 (make_cleanup_restore_infcall_suspend_state): Remove.
396 (do_restore_infcall_control_state_cleanup)
397 (make_cleanup_restore_infcall_control_state): Remove.
399 2018-09-17 Tom Tromey <tom@tromey.com>
401 * gdbthread.h (struct thread_control_state): Add initializer.
402 (class thread_info) <control>: Remove initializer.
403 * inferior.h (struct inferior_control_state): Add initializer.
404 (class inferior) <control>: Remove initializer.
405 (exit_inferior_1): Update.
406 * infrun.c (struct infcall_control_state): Add constructors.
407 (save_infcall_control_state): Use new.
408 (restore_infcall_control_state, discard_infcall_control_state):
411 2018-09-17 Tom Tromey <tom@tromey.com>
413 * infrun.c (struct infcall_suspend_state) <registers>: Now a
415 <siginfo_data>: Now a unique_xmalloc_ptr.
416 (save_infcall_suspend_state, restore_infcall_suspend_state)
417 (discard_infcall_suspend_state)
418 (get_infcall_suspend_state_regcache): Update.
420 2018-09-17 Tom Tromey <tom@tromey.com>
422 * gdbthread.h (struct thread_suspend_state): Add initializers.
423 (class thread_info) <suspend>: Remove initializer.
424 * infrun.c (struct infcall_suspend_state): Add initializers.
425 (save_infcall_suspend_state): Use new.
426 (discard_infcall_suspend_state): Use delete.
428 2018-09-16 Tom Tromey <tom@tromey.com>
430 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
432 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
433 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
434 (py_varobj_iter_new): Likewise.
435 (py_varobj_get_iterator): Use gdbpy_ref.
437 2018-09-16 Tom Tromey <tom@tromey.com>
439 * python/py-threadevent.c (py_get_event_thread): Simplify.
440 * python/py-inferior.c (infpy_thread_from_thread_handle):
441 Return immediately after calling thread_to_thread_object. Use
443 (thread_to_thread_object): Set the exception on a NULL return.
445 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
447 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
449 2018-09-16 Tom Tromey <tom@tromey.com>
451 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
454 2018-09-16 Tom Tromey <tom@tromey.com>
456 * python/python-internal.h (thread_to_thread_object): Change
458 * python/py-inferior.c (thread_to_thread_object): Return a new
460 (infpy_thread_from_thread_handle): Update.
461 * python/py-infthread.c (gdbpy_selected_thread): Update.
462 * python/py-stopevent.c (create_stop_event_object): Update.
463 * python/py-threadevent.c (py_get_event_thread): Return a new
465 (py_get_event_thread): Update.
466 * python/py-event.h (py_get_event_thread): Change return type.
467 * python/py-continueevent.c (create_continue_event_object):
470 2018-09-16 Tom Tromey <tom@tromey.com>
472 * python/py-progspace.c (pspy_get_objfiles): Update.
473 * python/python-internal.h (objfile_to_objfile_object): Change
475 * python/py-newobjfileevent.c (create_new_objfile_event_object):
477 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
479 * python/python.c (gdbpy_get_current_objfile): Update.
480 (gdbpy_objfiles): Update.
481 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
483 (objfile_to_objfile_object): Return a new reference.
484 * python/py-symtab.c (stpy_get_objfile): Update.
485 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
488 2018-09-16 Tom Tromey <tom@tromey.com>
490 * python/py-inferior.c (infpy_get_progspace): Update.
491 * python/python-internal.h (pspace_to_pspace_object): Change
493 * python/py-newobjfileevent.c
494 (create_clear_objfiles_event_object): Update.
495 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
497 * python/python.c (gdbpy_get_current_progspace): Update.
498 (gdbpy_progspaces): Update.
499 * python/py-progspace.c (pspace_to_pspace_object): Return a new
501 * python/py-objfile.c (objfpy_get_progspace): Update.
502 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
505 2018-09-16 Tom Tromey <tom@tromey.com>
507 * python/lib/gdb/__init__.py (current_progspace, objfiles)
508 (solib_name, block_for_pc, find_pc_line): New functions.
509 (execute_unwinders): Update.
510 * python/py-block.c (gdbpy_block_for_pc): Remove.
511 * python/py-inferior.c (infpy_get_progspace): New function.
512 (inferior_object_getset) <progspace>: Add.
513 * python/py-progspace.c (pspy_objfiles): Rewrite.
514 (pspy_solib_name, pspy_block_for_pc)
515 (pspy_find_pc_line, pspy_is_valid): New functions.
516 (progspace_object_methods): Add entries for solib_name,
517 block_for_pc, find_pc_line, is_valid.
518 * python/python-internal.h (gdbpy_block_for_pc)
519 (build_objfiles_list): Don't declare.
520 * python/python.c: Don't include solib.h.
521 (gdbpy_solib_name, gdbpy_find_pc_line)
522 (gdbpy_get_current_progspace, build_objfiles_list)
523 (gdbpy_objfiles): Remove.
524 (GdbMethods) <current_progspace, objfiles, block_for_pc,
525 solib_name, find_pc_line>: Remove entries.
527 2018-09-16 Tom Tromey <tom@tromey.com>
529 * top.c (new_ui_command): Use GNU style for metasyntactic
531 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
533 * maint.c (maintenance_translate_address): Remove "<>" around
535 * interps.c (interpreter_exec_cmd): Use GNU style for
536 metasyntactic variables.
537 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
538 metasyntactic variables.
539 * tracepoint.c (tfind_range_command): Use GNU style for
540 metasyntactic variables.
541 (tfind_outside_command): Likewise.
542 (_initialize_tracepoint): Likewise.
543 * remote.c (extended_remote_target::create_inferior): Use GNU
544 style for metasyntactic variables.
545 * sparc64-tdep.c (adi_examine_command): Use GNU style for
546 metasyntactic variables.
547 (adi_assign_command): Likewise.
549 2018-09-16 Tom Tromey <tom@tromey.com>
551 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
552 metasyntactic variables. Print message if no disassembler options
555 2018-09-15 Tom Tromey <tom@tromey.com>
557 * infcmd.c (get_inferior_args): Return const char *.
558 * inferior.h (get_inferior_args): Return type now const.
559 * linux-tdep.c (linux_fill_prpsinfo): Update.
560 * procfs.c (procfs_target::make_corefile_notes): Update.
562 2018-09-07 Tom Tromey <tom@tromey.com>
564 * python/python.c (execute_gdb_command): Call bpstat_do_actions
567 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
569 * nios2-tdep.c (nios2_type_align): New.
570 (nios2_gdb_arch_init): Install type_align hook.
572 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
574 * eval.c (fake_method::fake_method): Call xzalloc directly for a
575 type that is neither object file owned, nor gdbarch owned.
576 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
578 (alloc_type_instance): Allocate non-objfile owned types on the
580 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
581 using TYPE_ALLOC to ensure memory is allocated on the correct
583 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
584 obstack, or the gdbarch obstack.
585 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
587 2018-09-14 Tom Tromey <tom@tromey.com>
589 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
592 2018-09-14 Tom Tromey <tom@tromey.com>
594 * nat/fork-inferior.c (get_startup_shell): Remove "static".
596 2018-09-13 Tom Tromey <tom@tromey.com>
598 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
601 2018-09-13 Tom Tromey <tom@tromey.com>
603 * exec.c (try_open_exec_file): Use std::string.
605 2018-09-13 Tom Tromey <tom@tromey.com>
607 * utils.h (gdb_bfd_errmsg): Return std::string.
608 * exec.c (exec_file_attach): Update.
609 * compile/compile-object-load.c (compile_object_load): Update.
610 * utils.c (gdb_bfd_errmsg): Return std::string.
612 2018-09-13 Tom Tromey <tom@tromey.com>
614 * procfs.c (struct procinfo_deleter): New.
615 (procinfo_up): New typedef.
616 (do_destroy_procinfo_cleanup): Remove.
617 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
619 2018-09-13 Tom Tromey <tom@tromey.com>
621 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
623 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
624 2018-09-13 Tom Tromey <tom@tromey.com>
626 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
627 (pspy_get_objfiles): New function.
628 (progspace_object_methods): New.
629 (pspace_object_type): Add tp_methods callback.
630 * python/python-internal.h (build_objfiles_list): New
632 * python/python.c (build_objfiles_list): New function.
633 (gdbpy_objfiles): Implement using build_objfiles_list.
634 * NEWS: Mention the Progspace.objfiles method.
636 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
638 * python/py-inferior.c (infpy_get_progspace): New function.
639 (inferior_object_getset): Add progspace property.
640 * NEWS: Mention the new property.
642 2018-09-13 Tom Tromey <tom@tromey.com>
645 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
647 2018-09-13 Tom Tromey <tom@tromey.com>
650 * rust-lang.c (rust_enum_variant): Now static.
651 (rust_empty_enum_p): New function.
652 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
655 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
657 * python/py-inferior.c (infpy_repr): New.
658 (inferior_object_type): Register infpy_repr.
659 * python/py-objfile.c (objfpy_repr): New.
660 (objfile_object_type): Register objfpy_repr.
662 2018-09-12 John Baldwin <jhb@FreeBSD.org>
664 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
666 2018-09-12 John Baldwin <jhb@FreeBSD.org>
668 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
671 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
673 * common/common-utils.c: Don't include '<sys/stat.h>'.
674 (is_regular_file): Move to...
675 * common/filestuff.c (is_regular_file): ... here.
676 * common/common-utils.h (is_regular_file): Move to...
677 * common/filestuff.h (is_regular_file): ... here.
679 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
681 * skip.c (debug_skip): New variable.
682 (skiplist_entry::do_skip_file_p): Add debug output.
683 (skiplist_entry::do_skip_gfile_p): Likewise.
684 (skiplist_entry::skip_function_p): Likewise.
685 (_initialize_step_skip): Create debug command.
686 * NEWS: Mention set/show debug skip.
688 2018-09-11 Xavier Roirand <roirand@adacore.com>
690 * darwin-nat.c (should_disable_startup_with_shell):
692 (darwin_nat_target::create_inferior): Add call.
694 2018-09-11 Xavier Roirand <roirand@adacore.com>
696 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
697 inf_port, msg_state>: Initialize.
698 (struct darwin_thread_info) <signaled, single_step>: Change
700 (struct darwin_thread_info) <event>: Initialize.
702 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
706 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
709 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
712 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
716 * gnulib/aclocal.m4: Regenerate.
717 * gnulib/config.in: Regenerate.
718 * gnulib/configure: Regenerate.
719 * gnulib/import/Makefile.am: Update.
720 * gnulib/import/Makefile.in: Update.
721 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
722 * gnulib/import/_Noreturn.h: ... this.
723 * gnulib/import/alloca.in.h: Update.
724 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
725 * gnulib/import/arg-nonnull.h: ... this.
726 * gnulib/import/assure.h: Update.
727 * gnulib/import/at-func.c: Update.
728 * gnulib/import/basename-lgpl.c: Update.
729 * gnulib/import/extra/snippet/c++defs.h: Rename to...
730 * gnulib/import/c++defs.h: ... this.
731 * gnulib/import/canonicalize-lgpl.c: Update.
732 * gnulib/import/cdefs.h: Update.
733 * gnulib/import/chdir-long.c: Update.
734 * gnulib/import/chdir-long.h: Update.
735 * gnulib/import/cloexec.c: Update.
736 * gnulib/import/cloexec.h: Update.
737 * gnulib/import/close.c: Update.
738 * gnulib/import/closedir.c: Update.
739 * gnulib/import/config.charset: Update.
740 * gnulib/import/dirent-private.h: Update.
741 * gnulib/import/dirent.in.h: Update.
742 * gnulib/import/dirfd.c: Update.
743 * gnulib/import/dirname-lgpl.c: Update.
744 * gnulib/import/dirname.h: Update.
745 * gnulib/import/dosname.h: Update.
746 * gnulib/import/dup-safer-flag.c: Update.
747 * gnulib/import/dup-safer.c: Update.
748 * gnulib/import/dup.c: Update.
749 * gnulib/import/dup2.c: Update.
750 * gnulib/import/errno.in.h: Update.
751 * gnulib/import/error.c: Update.
752 * gnulib/import/error.h: Update.
753 * gnulib/import/exitfail.c: Update.
754 * gnulib/import/exitfail.h: Update.
755 * gnulib/import/extra/update-copyright: Update.
756 * gnulib/import/fchdir.c: Update.
757 * gnulib/import/fcntl.c: Update.
758 * gnulib/import/fcntl.in.h: Update.
759 * gnulib/import/fd-hook.c: Update.
760 * gnulib/import/fd-hook.h: Update.
761 * gnulib/import/fd-safer-flag.c: Update.
762 * gnulib/import/fd-safer.c: Update.
763 * gnulib/import/fdopendir.c: Update.
764 * gnulib/import/filename.h: Update.
765 * gnulib/import/filenamecat-lgpl.c: Update.
766 * gnulib/import/filenamecat.h: Update.
767 * gnulib/import/flexmember.h: Update.
768 * gnulib/import/float+.h: Update.
769 * gnulib/import/float.c: Update.
770 * gnulib/import/float.in.h: Update.
771 * gnulib/import/fnmatch.c: Update.
772 * gnulib/import/fnmatch.in.h: Update.
773 * gnulib/import/fnmatch_loop.c: Update.
774 * gnulib/import/fpucw.h: Update.
775 * gnulib/import/frexp.c: Update.
776 * gnulib/import/frexpl.c: Update.
777 * gnulib/import/fstat.c: Update.
778 * gnulib/import/fstatat.c: Update.
779 * gnulib/import/getcwd-lgpl.c: Update.
780 * gnulib/import/getcwd.c: Update.
781 * gnulib/import/getdtablesize.c: Update.
782 * gnulib/import/getlogin_r.c: Update.
783 * gnulib/import/getprogname.c: Update.
784 * gnulib/import/getprogname.h: Update.
785 * gnulib/import/gettext.h: Update.
786 * gnulib/import/gettimeofday.c: Update.
787 * gnulib/import/glob-libc.h: Update.
788 * gnulib/import/glob.c: Update.
789 * gnulib/import/glob.in.h: Update.
790 * gnulib/import/glob_internal.h: Update.
791 * gnulib/import/glob_pattern_p.c: Update.
792 * gnulib/import/globfree.c: Update.
793 * gnulib/import/hard-locale.c: Update.
794 * gnulib/import/hard-locale.h: Update.
795 * gnulib/import/intprops.h: Update.
796 * gnulib/import/inttypes.in.h: Update.
797 * gnulib/import/isnan.c: Update.
798 * gnulib/import/isnand-nolibm.h: Update.
799 * gnulib/import/isnand.c: Update.
800 * gnulib/import/isnanl-nolibm.h: Update.
801 * gnulib/import/isnanl.c: Update.
802 * gnulib/import/itold.c: Update.
803 * gnulib/import/libc-config.h: Update.
804 * gnulib/import/limits.in.h: Update.
805 * gnulib/import/localcharset.c: Update.
806 * gnulib/import/localcharset.h: Update.
807 * gnulib/import/localtime-buffer.c: Update.
808 * gnulib/import/localtime-buffer.h: Update.
809 * gnulib/import/lstat.c: Update.
810 * gnulib/import/m4/00gnulib.m4: Update.
811 * gnulib/import/m4/__inline.m4: Update.
812 * gnulib/import/m4/absolute-header.m4: Update.
813 * gnulib/import/m4/alloca.m4: Update.
814 * gnulib/import/m4/builtin-expect.m4: Update.
815 * gnulib/import/m4/canonicalize.m4: Update.
816 * gnulib/import/m4/chdir-long.m4: Update.
817 * gnulib/import/m4/close.m4: Update.
818 * gnulib/import/m4/closedir.m4: Update.
819 * gnulib/import/m4/configmake.m4: Update.
820 * gnulib/import/m4/d-ino.m4: Update.
821 * gnulib/import/m4/d-type.m4: Update.
822 * gnulib/import/m4/dirent_h.m4: Update.
823 * gnulib/import/m4/dirfd.m4: Update.
824 * gnulib/import/m4/dirname.m4: Update.
825 * gnulib/import/m4/double-slash-root.m4: Update.
826 * gnulib/import/m4/dup.m4: Update.
827 * gnulib/import/m4/dup2.m4: Update.
828 * gnulib/import/m4/eealloc.m4: Update.
829 * gnulib/import/m4/environ.m4: Update.
830 * gnulib/import/m4/errno_h.m4: Update.
831 * gnulib/import/m4/error.m4: Update.
832 * gnulib/import/m4/exponentd.m4: Update.
833 * gnulib/import/m4/exponentl.m4: Update.
834 * gnulib/import/m4/extensions.m4: Update.
835 * gnulib/import/m4/extern-inline.m4: Update.
836 * gnulib/import/m4/fchdir.m4: Update.
837 * gnulib/import/m4/fcntl-o.m4: Update.
838 * gnulib/import/m4/fcntl.m4: Update.
839 * gnulib/import/m4/fcntl_h.m4: Update.
840 * gnulib/import/m4/fdopendir.m4: Update.
841 * gnulib/import/m4/filenamecat.m4: Update.
842 * gnulib/import/m4/flexmember.m4: Update.
843 * gnulib/import/m4/float_h.m4: Update.
844 * gnulib/import/m4/fnmatch.m4: Update.
845 * gnulib/import/m4/fnmatch_h.m4: Update.
846 * gnulib/import/m4/fpieee.m4: Update.
847 * gnulib/import/m4/frexp.m4: Update.
848 * gnulib/import/m4/frexpl.m4: Update.
849 * gnulib/import/m4/fstat.m4: Update.
850 * gnulib/import/m4/fstatat.m4: Update.
851 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
852 * gnulib/import/m4/getcwd-path-max.m4: Update.
853 * gnulib/import/m4/getcwd.m4: Update.
854 * gnulib/import/m4/getdtablesize.m4: Update.
855 * gnulib/import/m4/getlogin.m4: Update.
856 * gnulib/import/m4/getlogin_r.m4: Update.
857 * gnulib/import/m4/getpagesize.m4: Update.
858 * gnulib/import/m4/getprogname.m4: Update.
859 * gnulib/import/m4/gettimeofday.m4: Update.
860 * gnulib/import/m4/glibc21.m4: Update.
861 * gnulib/import/m4/glob.m4: Update.
862 * gnulib/import/m4/glob_h.m4: Update.
863 * gnulib/import/m4/gnulib-cache.m4: Update.
864 * gnulib/import/m4/gnulib-common.m4: Update.
865 * gnulib/import/m4/gnulib-comp.m4: Update.
866 * gnulib/import/m4/gnulib-tool.m4: Update.
867 * gnulib/import/m4/hard-locale.m4: Update.
868 * gnulib/import/m4/include_next.m4: Update.
869 * gnulib/import/m4/inttypes-pri.m4: Update.
870 * gnulib/import/m4/inttypes.m4: Update.
871 * gnulib/import/m4/isnand.m4: Update.
872 * gnulib/import/m4/isnanl.m4: Update.
873 * gnulib/import/m4/largefile.m4: Update.
874 * gnulib/import/m4/limits-h.m4: Update.
875 * gnulib/import/m4/localcharset.m4: Update.
876 * gnulib/import/m4/locale-fr.m4: Update.
877 * gnulib/import/m4/locale-ja.m4: Update.
878 * gnulib/import/m4/locale-zh.m4: Update.
879 * gnulib/import/m4/localtime-buffer.m4: Update.
880 * gnulib/import/m4/longlong.m4: Update.
881 * gnulib/import/m4/lstat.m4: Update.
882 * gnulib/import/m4/malloc.m4: Update.
883 * gnulib/import/m4/malloca.m4: Update.
884 * gnulib/import/m4/math_h.m4: Update.
885 * gnulib/import/m4/mbrtowc.m4: Update.
886 * gnulib/import/m4/mbsinit.m4: Update.
887 * gnulib/import/m4/mbsrtowcs.m4: Update.
888 * gnulib/import/m4/mbstate_t.m4: Update.
889 * gnulib/import/m4/memchr.m4: Update.
890 * gnulib/import/m4/memmem.m4: Update.
891 * gnulib/import/m4/mempcpy.m4: Update.
892 * gnulib/import/m4/memrchr.m4: Update.
893 * gnulib/import/m4/mkdir.m4: Update.
894 * gnulib/import/m4/mkstemp.m4: Update.
895 * gnulib/import/m4/mmap-anon.m4: Update.
896 * gnulib/import/m4/mode_t.m4: Update.
897 * gnulib/import/m4/msvc-inval.m4: Update.
898 * gnulib/import/m4/msvc-nothrow.m4: Update.
899 * gnulib/import/m4/multiarch.m4: Update.
900 * gnulib/import/m4/nocrash.m4: Update.
901 * gnulib/import/m4/off_t.m4: Update.
902 * gnulib/import/m4/onceonly.m4: Update.
903 * gnulib/import/m4/open-cloexec.m4: Update.
904 * gnulib/import/m4/open.m4: Update.
905 * gnulib/import/m4/openat.m4: Update.
906 * gnulib/import/m4/opendir.m4: Update.
907 * gnulib/import/m4/pathmax.m4: Update.
908 * gnulib/import/m4/rawmemchr.m4: Update.
909 * gnulib/import/m4/readdir.m4: Update.
910 * gnulib/import/m4/readlink.m4: Update.
911 * gnulib/import/m4/realloc.m4: Update.
912 * gnulib/import/m4/rename.m4: Update.
913 * gnulib/import/m4/rewinddir.m4: Update.
914 * gnulib/import/m4/rmdir.m4: Update.
915 * gnulib/import/m4/save-cwd.m4: Update.
916 * gnulib/import/m4/secure_getenv.m4: Update.
917 * gnulib/import/m4/setenv.m4: Update.
918 * gnulib/import/m4/signal_h.m4: Update.
919 * gnulib/import/m4/ssize_t.m4: Update.
920 * gnulib/import/m4/stat-time.m4: Update.
921 * gnulib/import/m4/stat.m4: Update.
922 * gnulib/import/m4/std-gnu11.m4: Update.
923 * gnulib/import/m4/stdbool.m4: Update.
924 * gnulib/import/m4/stddef_h.m4: Update.
925 * gnulib/import/m4/stdint.m4: Update.
926 * gnulib/import/m4/stdio_h.m4: Update.
927 * gnulib/import/m4/stdlib_h.m4: Update.
928 * gnulib/import/m4/strchrnul.m4: Update.
929 * gnulib/import/m4/strdup.m4: Update.
930 * gnulib/import/m4/strerror.m4: Update.
931 * gnulib/import/m4/string_h.m4: Update.
932 * gnulib/import/m4/strstr.m4: Update.
933 * gnulib/import/m4/strtok_r.m4: Update.
934 * gnulib/import/m4/sys_socket_h.m4: Update.
935 * gnulib/import/m4/sys_stat_h.m4: Update.
936 * gnulib/import/m4/sys_time_h.m4: Update.
937 * gnulib/import/m4/sys_types_h.m4: Update.
938 * gnulib/import/m4/tempname.m4: Update.
939 * gnulib/import/m4/time_h.m4: Update.
940 * gnulib/import/m4/unistd-safer.m4: Update.
941 * gnulib/import/m4/unistd_h.m4: Update.
942 * gnulib/import/m4/warn-on-use.m4: Update.
943 * gnulib/import/m4/wchar_h.m4: Update.
944 * gnulib/import/m4/wchar_t.m4: Update.
945 * gnulib/import/m4/wctype_h.m4: Update.
946 * gnulib/import/m4/wint_t.m4: Update.
947 * gnulib/import/malloc.c: Update.
948 * gnulib/import/malloc/scratch_buffer.h: Update.
949 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
950 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
951 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
952 * gnulib/import/malloca.c: Update.
953 * gnulib/import/malloca.h: Update.
954 * gnulib/import/malloca.valgrind: Update.
955 * gnulib/import/math.in.h: Update.
956 * gnulib/import/mbrtowc.c: Update.
957 * gnulib/import/mbsinit.c: Update.
958 * gnulib/import/mbsrtowcs-impl.h: Update.
959 * gnulib/import/mbsrtowcs-state.c: Update.
960 * gnulib/import/mbsrtowcs.c: Update.
961 * gnulib/import/memchr.c: Update.
962 * gnulib/import/memmem.c: Update.
963 * gnulib/import/mempcpy.c: Update.
964 * gnulib/import/memrchr.c: Update.
965 * gnulib/import/mkdir.c: Update.
966 * gnulib/import/mkstemp.c: Update.
967 * gnulib/import/msvc-inval.c: Update.
968 * gnulib/import/msvc-inval.h: Update.
969 * gnulib/import/msvc-nothrow.c: Update.
970 * gnulib/import/msvc-nothrow.h: Update.
971 * gnulib/import/open.c: Update.
972 * gnulib/import/openat-die.c: Update.
973 * gnulib/import/openat-priv.h: Update.
974 * gnulib/import/openat-proc.c: Update.
975 * gnulib/import/openat.c: Update.
976 * gnulib/import/openat.h: Update.
977 * gnulib/import/opendir.c: Update.
978 * gnulib/import/pathmax.h: Update.
979 * gnulib/import/pipe-safer.c: Update.
980 * gnulib/import/rawmemchr.c: Update.
981 * gnulib/import/readdir.c: Update.
982 * gnulib/import/readlink.c: Update.
983 * gnulib/import/realloc.c: Update.
984 * gnulib/import/ref-add.sin: Update.
985 * gnulib/import/ref-del.sin: Update.
986 * gnulib/import/rename.c: Update.
987 * gnulib/import/rewinddir.c: Update.
988 * gnulib/import/rmdir.c: Update.
989 * gnulib/import/same-inode.h: Update.
990 * gnulib/import/save-cwd.c: Update.
991 * gnulib/import/save-cwd.h: Update.
992 * gnulib/import/scratch_buffer.h: Update.
993 * gnulib/import/secure_getenv.c: Update.
994 * gnulib/import/setenv.c: Update.
995 * gnulib/import/signal.in.h: Update.
996 * gnulib/import/stat-time.c: Update.
997 * gnulib/import/stat-time.h: Update.
998 * gnulib/import/stat-w32.c: Update.
999 * gnulib/import/stat-w32.h: Update.
1000 * gnulib/import/stat.c: Update.
1001 * gnulib/import/stdbool.in.h: Update.
1002 * gnulib/import/stddef.in.h: Update.
1003 * gnulib/import/stdint.in.h: Update.
1004 * gnulib/import/stdio.in.h: Update.
1005 * gnulib/import/stdlib.in.h: Update.
1006 * gnulib/import/str-two-way.h: Update.
1007 * gnulib/import/strchrnul.c: Update.
1008 * gnulib/import/strdup.c: Update.
1009 * gnulib/import/streq.h: Update.
1010 * gnulib/import/strerror-override.c: Update.
1011 * gnulib/import/strerror-override.h: Update.
1012 * gnulib/import/strerror.c: Update.
1013 * gnulib/import/string.in.h: Update.
1014 * gnulib/import/stripslash.c: Update.
1015 * gnulib/import/strnlen1.c: Update.
1016 * gnulib/import/strnlen1.h: Update.
1017 * gnulib/import/strstr.c: Update.
1018 * gnulib/import/strtok_r.c: Update.
1019 * gnulib/import/sys_stat.in.h: Update.
1020 * gnulib/import/sys_time.in.h: Update.
1021 * gnulib/import/sys_types.in.h: Update.
1022 * gnulib/import/tempname.c: Update.
1023 * gnulib/import/tempname.h: Update.
1024 * gnulib/import/time.in.h: Update.
1025 * gnulib/import/unistd--.h: Update.
1026 * gnulib/import/unistd-safer.h: Update.
1027 * gnulib/import/unistd.in.h: Update.
1028 * gnulib/import/unsetenv.c: Update.
1029 * gnulib/import/verify.h: Update.
1030 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1031 * gnulib/import/wchar.in.h: Update.
1032 * gnulib/import/wctype.in.h: Update.
1033 * gnulib/import/xalloc-oversized.h: Update.
1034 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1035 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1037 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1039 * record-btrace.c (get_thread_current_frame): Remove
1042 2018-09-10 Jerome Guitton <guitton@adacore.com>
1044 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1045 with check_tag to 1 if and only if the type is tagged and the
1046 component being searched cannot been found in the current
1047 view. Otherwise, always call ada_to_fixed_type with
1050 2018-09-10 Xavier Roirand <roirand@adacore.com>
1052 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1054 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1055 * ada-varobj.c (ada_varobj_get_number_of_children,
1056 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1058 2018-09-10 Xavier Roirand <roirand@adacore.com>
1060 * ada-valprint.c (ada_value_print): Use type instead of
1063 2018-09-10 Xavier Roirand <roirand@adacore.com>
1065 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1066 an array of access to unconstrained array.
1068 2018-09-10 Xavier Roirand <roirand@adacore.com>
1070 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1071 (ada_check_typedef): Use it.
1073 2018-09-10 Xavier Roirand <roirand@adacore.com>
1075 * ada-varobj.c (ada_varobj_describe_struct_child)
1076 (ada_varobj_describe_child): Handle union case like struct one.
1078 2018-09-10 Tom Tromey <tom@tromey.com>
1081 * python/python.c (_initialize_python): Make example in "python"
1082 help work in Python 3.
1084 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1086 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1087 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1088 $(EXEEXT) to the script, as it is not a program.
1090 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1092 * python/py-prettyprint.c (pretty_print_one_value): Return
1094 (print_string_repr): Adjust.
1095 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1096 * python/python-internal.h (apply_varobj_pretty_printer): Return
1098 * varobj.c (varobj_value_get_print_value): Adjust.
1100 2018-09-08 Tom Tromey <tom@tromey.com>
1103 * python/py-prettyprint.c (pretty_print_one_value): Check for
1106 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1108 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1109 replace_operator_with_call.
1111 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1113 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1115 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1117 * ada-typeprint.c (print_range): Print the bounds using TYPE
1118 rather than its TYPE_TARGET_TYPE.
1120 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1122 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1123 call to ada_to_fixed_value_create.
1125 2018-09-08 Jerome Guitton <guitton@adacore.com>
1127 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1129 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1131 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1134 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1136 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1137 Move update of loop variable "fi".
1139 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1141 * ada-lang.c (value_assign_to_component): In the case of
1142 big-endian targets, extract the bits of the given VAL
1143 using an src_offset of zero if container is not a scalar.
1145 2018-09-06 Simon Ser <contact@emersion.fr>
1148 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1149 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1150 * fbsd-tdep.c (fbsd_make_note_desc): New.
1151 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1152 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1153 * target.h (enum target_object) Add FreeBSD-specific
1154 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1156 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1158 * compile/compile-c.h (generate_c_for_variable_locations):
1159 Change reference to pointer.
1160 * compile/compile-c-support.c (compile_program) <compute>:
1162 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1163 (generate_c_for_for_one_variable): Likewise
1164 (generate_c_for_variable_locations): Likewise
1165 * compile/compile-c-types.c (compile_c_instance::convert_type):
1167 * compile/compile-cplus-symbols.c (convert_one_symbol):
1168 std::move the scope passed to enter_scope.
1169 * compile/compile-cplus-types.c
1170 (compile_cplus_instance::enter_scope): Make parameter
1172 (compile_cplus_instance::new_scope): Change reference to
1174 (compile_cplus_instance::convert_type): Likewise
1175 (compile_cplus_convert_typedef): std::move the scope passed to
1177 (compile_cplus_convert_struct_or_union): Likewise.
1178 (compile_cplus_convert_enum): Likewise.
1179 (compile_cplus_convert_namespace): Likewise.
1180 * compile/compile-cplus.h (compile_cplus_instance)
1181 <enter_scope>: Make parameter rvalue-reference.
1182 * compile/compile-internal.h (compile_instance)
1183 <get_cached_type>: Likewise
1184 * compile/compile-loc2c.c (push): Likewise
1188 (print_label): Likewise
1189 (pushf_register_address): Likewise
1190 (pushf_register): Likewise
1191 (do_compile_dwarf_expr_to_c): Likewise
1192 (compile_dwarf_expr_to_c): Likewise
1193 (compile_dwarf_bounds_to_c): Likewise
1194 * compile/compile.c (compile_instance::get_cached_type):
1196 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1197 (compile_dwarf_bounds_to_c): Likewise
1198 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1199 (dwarf2_compile_property_to_c): Likewise
1200 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1201 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1204 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1206 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1207 * tui/tui-data.c (init_content_element): Don't initialize it.
1209 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1211 * tui/tui-data.h (struct tui_win_info)
1212 <detail::opaque>: Remove.
1213 * tui/tui-data.c (init_win_info): Remove assignment.
1215 2018-09-05 Tom Tromey <tom@tromey.com>
1217 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1218 -Wformat-nonliteral.
1219 * target-float.c (host_float_ops<T>::to_string)
1220 (host_float_ops<T>::from_string): Use
1221 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1222 * configure: Rebuild.
1224 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1226 * printcmd.c (printf_c_string): Use
1227 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1228 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1230 2018-09-05 Tom Tromey <tom@tromey.com>
1232 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1234 2018-09-05 Tom de Vries <tdevries@suse.de>
1236 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1237 with resolve_abstract_p == true.
1238 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1239 defaulting to false. Propagate resolve_abstract_p to
1240 dwarf2_fetch_die_loc_sect_off.
1241 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1242 parameter, defaulting to false.
1243 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1244 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1246 * dwarf2read.h (struct die_info): Forward-declare.
1247 (die_info_ptr): New typedef.
1248 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1250 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1254 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1255 Pedro Alves <palves@redhat.com>
1257 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1258 "aclocal-m4-deps.mk". Include file here.
1259 $(srcdir)/aclocal.m4: Add "configure.ac".
1260 * gnulib/aclocal-m4-deps.mk: New file.
1261 * gnulib/update-gnulib.sh: Automatically update
1262 "aclocal-m4-deps.mk".
1264 2018-09-04 Tom Tromey <tom@tromey.com>
1266 * configure: Rebuild.
1267 * configure.ac: Remove multi-ice code.
1269 2018-09-04 Tom Tromey <tom@tromey.com>
1271 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1272 (ada-exp.o): Update.
1274 2018-09-04 Tom Tromey <tom@tromey.com>
1276 * Makefile.in (printcmd.o, target-float.o): Remove.
1277 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1279 2018-09-04 Tom Tromey <tom@tromey.com>
1281 * gnulib/Makefile.in: Remove obsolete comment.
1282 * Makefile.in: Remove obsolete comment.
1284 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1286 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1289 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1291 * riscv-tdep.c: Add 'prologue-value.h' include.
1292 (struct riscv_unwind_cache): New struct.
1293 (riscv_debug_unwinder): New global.
1294 (riscv_scan_prologue): Update arguments, capture register details
1296 (riscv_skip_prologue): Reformat arguments line, move end of
1297 prologue calculation into riscv_scan_prologue.
1298 (riscv_frame_cache): Update return type, create
1299 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1301 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1302 (riscv_frame_prev_register): Use the trad_frame within the
1304 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1307 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1309 * trad-frame.h (trad_frame_set_realreg): Declare.
1310 (trad_frame_set_addr): Declare.
1311 * trad-frame.c (trad_frame_set_realreg): Define new function.
1312 (trad_frame_set_addr): Define new function.
1313 (trad_frame_set_reg_realreg): Use new function.
1314 (trad_frame_set_reg_addr): Use new function.
1316 2018-09-01 Keith Seitz <keiths@redhat.com>
1318 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1319 pulongest instead of "%lld".
1320 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1323 2018-08-31 Tom Tromey <tom@tromey.com>
1325 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1328 2018-08-31 Pedro Alves <palves@redhat.com>
1330 * gdbarch.h: Regenerate.
1332 2018-08-31 Pedro Alves <palves@redhat.com>
1334 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1335 * target.h (Hardware watchpoint interfaces): Describe
1336 continuable/steppable/non-steppable watchpoints.
1337 * gdbarch.h, gdbarch.c: Regenerate.
1339 2018-08-31 Pedro Alves <palves@redhat.com>
1341 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1344 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1345 * target.h (target_ops::have_continuable_watchpoint): Delete.
1346 (target_have_continuable_watchpoint): Delete.
1347 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1348 * target-delegates.c: Regenerate.
1350 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1352 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1353 the files present in "gnulib/import/m4/".
1355 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1357 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1358 c.sw, c.swsp, and c.sdsp.
1360 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1362 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1363 (riscv_read_misa_reg): Don't cache value read into inferior data.
1364 (riscv_new_inferior_data): Delete.
1365 (riscv_inferior_data_cleanup): Delete.
1366 (riscv_inferior_data): Delete.
1367 (riscv_invalidate_inferior_data): Delete.
1368 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1370 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1372 * compile/compile-cplus-types.c
1373 (compile_cplus_instance::leave_scope): Take the address of scope
1375 (compile_cplus_instance::convert_qualified_base): Compare quals
1378 2018-08-30 Keith Seitz <keiths@redhat.com>
1380 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1381 Use "%s" and host_address_to_string instead of "%p" in printf.
1383 2018-08-29 Keith Seitz <keiths@redhat.com>
1385 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1386 and compile-cplus-types.c.
1387 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1388 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1389 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1391 * compile/compile-c-support.c: Include compile-cplus.h.
1392 (load_libcompile): Templatize.
1393 (get_compile_context): "New" function.
1394 (c_get_compile_context): Use get_compile_context.
1395 (cplus_get_compile_context): New function.
1396 (cplus_push_user_expression, cplus_pop_user_expression)
1397 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1398 (cplus_compute_program): Define new structs/functions.
1399 * compile/compile-cplus-symmbols.c: New file.
1400 * compile/compile-cplus-types.c: New file.
1401 * compile/compile-cplus.h: New file.
1402 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1404 * compile/compile-object-load.c (get_out_value_type): Use
1405 strncmp_iw when comparing symbol names.
1406 (compile_object_load): Add mst_bss and mst_data.
1407 * compile/compile.c (_initialize_compile): Remove
1408 -Wno-implicit-function-declaration from `compile_args'.
1409 * compile/gcc-cp-plugin.h: New file.
1410 * NEWS: Mention C++ compile support and new debug options.
1412 2018-08-29 Keith Seitz <keiths@redhat.com>
1414 * linespec.c (collect_info::add_symbol): Make virtual.
1415 (struct symbol_searcher_collect_info): New struct.
1416 (symbol_searcher::find_all_symbols): New method.
1417 * symtab.h (class symbol_searcher): New class.
1419 2018-08-29 Keith Seitz <keiths@redhat.com>
1421 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1422 Change to vector of block_symbol. Update all users.
1423 (struct collect_info) <symbols>: Likewise.
1424 (collect_info::add_symbol): Take block_symbol as argument.
1426 (decode_compound_collector) <m_symbols>: Change type to vector
1427 of block_symbol. Update all users.
1428 (decode_compound_collector::operator ()): Change parameter type
1430 (find_method, find_function_symbols, find_linespec_symbols)
1431 (find_label_symbols_in_block, find_label_symbols): Change symbol
1432 vectors to block_symbol vectors.
1433 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1436 2018-08-29 Keith Seitz <keiths@redhat.com>
1438 * linespec.c (symbolp): Remove typedef and VEC definitions.
1439 (bound_minimal_symbol_d): Likewise.
1441 2018-08-29 Keith Seitz <keiths@redhat.com>
1443 * linespec.c (decode_compound_collector::decode_compound_collector):
1444 Remove initialization for `m_symtabs'.
1445 (decode_compound_collector::release_symbols): Change return type
1446 to std::vector. Update all callers.
1447 (class decode_compound_collector) <m_symbols>: Change type to
1449 (lookup_prefix_sym): Change return type to std::vector. Update all
1451 (compare_symbols): Remove.
1452 (std_compare_symbols): Rename to `compare_symbols'.
1453 (find_method): Change `sym_classes' parameter to std::vector.
1454 Update all callers. Use std::sort to sort sym_classes.
1455 (find_linespec_symbols): Remove cleanup.
1457 2018-08-29 Keith Seitz <keiths@redhat.com>
1459 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1460 std::vector. Update all users.
1461 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1462 (struct collect_info) <minimal_symbols>: Likewise.
1463 (compare_msymbols): Return bool. Change parameters to const
1464 bound_minimal_symbol references.
1465 (find_method, find_function_symbols, find_linespec_symbols): Change
1466 `minsyms' parameter to std::vector. Update all callers.
1468 2018-08-29 Keith Seitz <keiths@redhat.com>
1470 * linespec.c (struct linespec) <label_symbols>: Change type to
1471 std::vector. Update all users.
1472 (find_label_symbols_in_block): Change `result' parameter to
1473 std::vector. Update all callers.
1474 (find_label_symbols): Return std::vector. Update all callers.
1476 2018-08-29 Keith Seitz <keiths@redhat.com>
1478 * linespec.c (struct linespec) <function_symbols>: Change type to
1479 std::vector. Update all users.
1480 (struct collect_info) <function_symbols>: Likewise.
1481 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1482 (std_compare_symbols): New function.
1483 (find_method, find_function_symbols, find_linespec_symbols)
1484 (find_label_symbols_in_block): Change `symbols' parameter to
1485 std::vector. Update all callers.
1486 (find_label_symbols): Likewise for `function_symbols' and
1489 2018-08-29 Keith Seitz <keiths@redhat.com>
1491 * linespec.c (symtab_vector_up): Define.
1492 (struct linespec) <file_symtabs>: Change type to std::vector *.
1494 (struct collect_info) <file_symtabs>: Likewise.
1495 (collect_symtabs_from_filename): Return symtab_vector_up.
1497 (decode_objc): Remove cleanup.
1498 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1499 (symtab_collector::release_symtabs): Return symtab_vector_up.
1501 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1503 (collect_symtabs_from_filename, symtabs_from_filename): Return
1504 symtab_vector_up. Update all callers.
1506 2018-08-29 Tom Tromey <tom@tromey.com>
1508 * csky-tdep.c (csky_analyze_prologue): Use
1509 core_addr_to_string_nz.
1511 2018-08-29 Tom Tromey <tom@tromey.com>
1513 * windows-nat.c (struct xlate_exception) <them>: Change type to
1515 (xlate): Fix formatting. Remove last entry.
1516 (struct xlate_exception, xlate): Comment out.
1517 (windows_nat_target::resume): Use ranged for.
1519 2018-08-29 Jim Wilson <jimw@sifive.com>
1521 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1522 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1524 (riscv_linux_nat_target::store_registers): Likewise.
1526 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1530 * gnulib/aclocal.m4: Regenerate.
1531 * gnulib/config.in: Regenerate.
1532 * gnulib/configure: Regenerate.
1533 * gnulib/import/Makefile.am: Update.
1534 * gnulib/import/Makefile.in: Update.
1535 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1536 * gnulib/import/_Noreturn.h: ... this.
1537 * gnulib/import/alloca.in.h: Update.
1538 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1539 * gnulib/import/arg-nonnull.h: ... this.
1540 * gnulib/import/assure.h: Update.
1541 * gnulib/import/at-func.c: Update.
1542 * gnulib/import/basename-lgpl.c: Update.
1543 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1544 * gnulib/import/c++defs.h: ... this.
1545 * gnulib/import/canonicalize-lgpl.c: Update.
1546 * gnulib/import/cdefs.h: Update.
1547 * gnulib/import/chdir-long.c: Update.
1548 * gnulib/import/chdir-long.h: Update.
1549 * gnulib/import/cloexec.c: Update.
1550 * gnulib/import/cloexec.h: Update.
1551 * gnulib/import/close.c: Update.
1552 * gnulib/import/closedir.c: Update.
1553 * gnulib/import/config.charset: Update.
1554 * gnulib/import/dirent-private.h: Update.
1555 * gnulib/import/dirent.in.h: Update.
1556 * gnulib/import/dirfd.c: Update.
1557 * gnulib/import/dirname-lgpl.c: Update.
1558 * gnulib/import/dirname.h: Update.
1559 * gnulib/import/dosname.h: Update.
1560 * gnulib/import/dup-safer-flag.c: Update.
1561 * gnulib/import/dup-safer.c: Update.
1562 * gnulib/import/dup.c: Update.
1563 * gnulib/import/dup2.c: Update.
1564 * gnulib/import/errno.in.h: Update.
1565 * gnulib/import/error.c: Update.
1566 * gnulib/import/error.h: Update.
1567 * gnulib/import/exitfail.c: Update.
1568 * gnulib/import/exitfail.h: Update.
1569 * gnulib/import/extra/update-copyright: Update.
1570 * gnulib/import/fchdir.c: Update.
1571 * gnulib/import/fcntl.c: Update.
1572 * gnulib/import/fcntl.in.h: Update.
1573 * gnulib/import/fd-hook.c: Update.
1574 * gnulib/import/fd-hook.h: Update.
1575 * gnulib/import/fd-safer-flag.c: Update.
1576 * gnulib/import/fd-safer.c: Update.
1577 * gnulib/import/fdopendir.c: Update.
1578 * gnulib/import/filename.h: Update.
1579 * gnulib/import/filenamecat-lgpl.c: Update.
1580 * gnulib/import/filenamecat.h: Update.
1581 * gnulib/import/flexmember.h: Update.
1582 * gnulib/import/float+.h: Update.
1583 * gnulib/import/float.c: Update.
1584 * gnulib/import/float.in.h: Update.
1585 * gnulib/import/fnmatch.c: Update.
1586 * gnulib/import/fnmatch.in.h: Update.
1587 * gnulib/import/fnmatch_loop.c: Update.
1588 * gnulib/import/fpucw.h: Update.
1589 * gnulib/import/frexp.c: Update.
1590 * gnulib/import/frexpl.c: Update.
1591 * gnulib/import/fstat.c: Update.
1592 * gnulib/import/fstatat.c: Update.
1593 * gnulib/import/getcwd-lgpl.c: Update.
1594 * gnulib/import/getcwd.c: Update.
1595 * gnulib/import/getdtablesize.c: Update.
1596 * gnulib/import/getlogin_r.c: Update.
1597 * gnulib/import/getprogname.c: Update.
1598 * gnulib/import/getprogname.h: Update.
1599 * gnulib/import/gettext.h: Update.
1600 * gnulib/import/gettimeofday.c: Update.
1601 * gnulib/import/glob-libc.h: Update.
1602 * gnulib/import/glob.c: Update.
1603 * gnulib/import/glob.in.h: Update.
1604 * gnulib/import/glob_internal.h: Update.
1605 * gnulib/import/glob_pattern_p.c: Update.
1606 * gnulib/import/globfree.c: Update.
1607 * gnulib/import/hard-locale.c: Update.
1608 * gnulib/import/hard-locale.h: Update.
1609 * gnulib/import/intprops.h: Update.
1610 * gnulib/import/inttypes.in.h: Update.
1611 * gnulib/import/isnan.c: Update.
1612 * gnulib/import/isnand-nolibm.h: Update.
1613 * gnulib/import/isnand.c: Update.
1614 * gnulib/import/isnanl-nolibm.h: Update.
1615 * gnulib/import/isnanl.c: Update.
1616 * gnulib/import/itold.c: Update.
1617 * gnulib/import/libc-config.h: Update.
1618 * gnulib/import/limits.in.h: Update.
1619 * gnulib/import/localcharset.c: Update.
1620 * gnulib/import/localcharset.h: Update.
1621 * gnulib/import/localtime-buffer.c: Update.
1622 * gnulib/import/localtime-buffer.h: Update.
1623 * gnulib/import/lstat.c: Update.
1624 * gnulib/import/m4/00gnulib.m4: Update.
1625 * gnulib/import/m4/__inline.m4: Update.
1626 * gnulib/import/m4/absolute-header.m4: Update.
1627 * gnulib/import/m4/alloca.m4: Update.
1628 * gnulib/import/m4/builtin-expect.m4: Update.
1629 * gnulib/import/m4/canonicalize.m4: Update.
1630 * gnulib/import/m4/chdir-long.m4: Update.
1631 * gnulib/import/m4/close.m4: Update.
1632 * gnulib/import/m4/closedir.m4: Update.
1633 * gnulib/import/m4/configmake.m4: Update.
1634 * gnulib/import/m4/d-ino.m4: Update.
1635 * gnulib/import/m4/d-type.m4: Update.
1636 * gnulib/import/m4/dirent_h.m4: Update.
1637 * gnulib/import/m4/dirfd.m4: Update.
1638 * gnulib/import/m4/dirname.m4: Update.
1639 * gnulib/import/m4/double-slash-root.m4: Update.
1640 * gnulib/import/m4/dup.m4: Update.
1641 * gnulib/import/m4/dup2.m4: Update.
1642 * gnulib/import/m4/eealloc.m4: Update.
1643 * gnulib/import/m4/environ.m4: Update.
1644 * gnulib/import/m4/errno_h.m4: Update.
1645 * gnulib/import/m4/error.m4: Update.
1646 * gnulib/import/m4/exponentd.m4: Update.
1647 * gnulib/import/m4/exponentl.m4: Update.
1648 * gnulib/import/m4/extensions.m4: Update.
1649 * gnulib/import/m4/extern-inline.m4: Update.
1650 * gnulib/import/m4/fchdir.m4: Update.
1651 * gnulib/import/m4/fcntl-o.m4: Update.
1652 * gnulib/import/m4/fcntl.m4: Update.
1653 * gnulib/import/m4/fcntl_h.m4: Update.
1654 * gnulib/import/m4/fdopendir.m4: Update.
1655 * gnulib/import/m4/filenamecat.m4: Update.
1656 * gnulib/import/m4/flexmember.m4: Update.
1657 * gnulib/import/m4/float_h.m4: Update.
1658 * gnulib/import/m4/fnmatch.m4: Update.
1659 * gnulib/import/m4/fnmatch_h.m4: Update.
1660 * gnulib/import/m4/fpieee.m4: Update.
1661 * gnulib/import/m4/frexp.m4: Update.
1662 * gnulib/import/m4/frexpl.m4: Update.
1663 * gnulib/import/m4/fstat.m4: Update.
1664 * gnulib/import/m4/fstatat.m4: Update.
1665 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1666 * gnulib/import/m4/getcwd-path-max.m4: Update.
1667 * gnulib/import/m4/getcwd.m4: Update.
1668 * gnulib/import/m4/getdtablesize.m4: Update.
1669 * gnulib/import/m4/getlogin.m4: Update.
1670 * gnulib/import/m4/getlogin_r.m4: Update.
1671 * gnulib/import/m4/getpagesize.m4: Update.
1672 * gnulib/import/m4/getprogname.m4: Update.
1673 * gnulib/import/m4/gettimeofday.m4: Update.
1674 * gnulib/import/m4/glibc21.m4: Update.
1675 * gnulib/import/m4/glob.m4: Update.
1676 * gnulib/import/m4/glob_h.m4: Update.
1677 * gnulib/import/m4/gnulib-cache.m4: Update.
1678 * gnulib/import/m4/gnulib-common.m4: Update.
1679 * gnulib/import/m4/gnulib-comp.m4: Update.
1680 * gnulib/import/m4/gnulib-tool.m4: Update.
1681 * gnulib/import/m4/hard-locale.m4: Update.
1682 * gnulib/import/m4/include_next.m4: Update.
1683 * gnulib/import/m4/inttypes-pri.m4: Update.
1684 * gnulib/import/m4/inttypes.m4: Update.
1685 * gnulib/import/m4/isnand.m4: Update.
1686 * gnulib/import/m4/isnanl.m4: Update.
1687 * gnulib/import/m4/largefile.m4: Update.
1688 * gnulib/import/m4/limits-h.m4: Update.
1689 * gnulib/import/m4/localcharset.m4: Update.
1690 * gnulib/import/m4/locale-fr.m4: Update.
1691 * gnulib/import/m4/locale-ja.m4: Update.
1692 * gnulib/import/m4/locale-zh.m4: Update.
1693 * gnulib/import/m4/localtime-buffer.m4: Update.
1694 * gnulib/import/m4/longlong.m4: Update.
1695 * gnulib/import/m4/lstat.m4: Update.
1696 * gnulib/import/m4/malloc.m4: Update.
1697 * gnulib/import/m4/malloca.m4: Update.
1698 * gnulib/import/m4/math_h.m4: Update.
1699 * gnulib/import/m4/mbrtowc.m4: Update.
1700 * gnulib/import/m4/mbsinit.m4: Update.
1701 * gnulib/import/m4/mbsrtowcs.m4: Update.
1702 * gnulib/import/m4/mbstate_t.m4: Update.
1703 * gnulib/import/m4/memchr.m4: Update.
1704 * gnulib/import/m4/memmem.m4: Update.
1705 * gnulib/import/m4/mempcpy.m4: Update.
1706 * gnulib/import/m4/memrchr.m4: Update.
1707 * gnulib/import/m4/mkdir.m4: Update.
1708 * gnulib/import/m4/mkstemp.m4: Update.
1709 * gnulib/import/m4/mmap-anon.m4: Update.
1710 * gnulib/import/m4/mode_t.m4: Update.
1711 * gnulib/import/m4/msvc-inval.m4: Update.
1712 * gnulib/import/m4/msvc-nothrow.m4: Update.
1713 * gnulib/import/m4/multiarch.m4: Update.
1714 * gnulib/import/m4/nocrash.m4: Update.
1715 * gnulib/import/m4/off_t.m4: Update.
1716 * gnulib/import/m4/onceonly.m4: Update.
1717 * gnulib/import/m4/open-cloexec.m4: Update.
1718 * gnulib/import/m4/open.m4: Update.
1719 * gnulib/import/m4/openat.m4: Update.
1720 * gnulib/import/m4/opendir.m4: Update.
1721 * gnulib/import/m4/pathmax.m4: Update.
1722 * gnulib/import/m4/rawmemchr.m4: Update.
1723 * gnulib/import/m4/readdir.m4: Update.
1724 * gnulib/import/m4/readlink.m4: Update.
1725 * gnulib/import/m4/realloc.m4: Update.
1726 * gnulib/import/m4/rename.m4: Update.
1727 * gnulib/import/m4/rewinddir.m4: Update.
1728 * gnulib/import/m4/rmdir.m4: Update.
1729 * gnulib/import/m4/save-cwd.m4: Update.
1730 * gnulib/import/m4/secure_getenv.m4: Update.
1731 * gnulib/import/m4/setenv.m4: Update.
1732 * gnulib/import/m4/signal_h.m4: Update.
1733 * gnulib/import/m4/ssize_t.m4: Update.
1734 * gnulib/import/m4/stat-time.m4: Update.
1735 * gnulib/import/m4/stat.m4: Update.
1736 * gnulib/import/m4/std-gnu11.m4: Update.
1737 * gnulib/import/m4/stdbool.m4: Update.
1738 * gnulib/import/m4/stddef_h.m4: Update.
1739 * gnulib/import/m4/stdint.m4: Update.
1740 * gnulib/import/m4/stdio_h.m4: Update.
1741 * gnulib/import/m4/stdlib_h.m4: Update.
1742 * gnulib/import/m4/strchrnul.m4: Update.
1743 * gnulib/import/m4/strdup.m4: Update.
1744 * gnulib/import/m4/strerror.m4: Update.
1745 * gnulib/import/m4/string_h.m4: Update.
1746 * gnulib/import/m4/strstr.m4: Update.
1747 * gnulib/import/m4/strtok_r.m4: Update.
1748 * gnulib/import/m4/sys_socket_h.m4: Update.
1749 * gnulib/import/m4/sys_stat_h.m4: Update.
1750 * gnulib/import/m4/sys_time_h.m4: Update.
1751 * gnulib/import/m4/sys_types_h.m4: Update.
1752 * gnulib/import/m4/tempname.m4: Update.
1753 * gnulib/import/m4/time_h.m4: Update.
1754 * gnulib/import/m4/unistd-safer.m4: Update.
1755 * gnulib/import/m4/unistd_h.m4: Update.
1756 * gnulib/import/m4/warn-on-use.m4: Update.
1757 * gnulib/import/m4/wchar_h.m4: Update.
1758 * gnulib/import/m4/wchar_t.m4: Update.
1759 * gnulib/import/m4/wctype_h.m4: Update.
1760 * gnulib/import/m4/wint_t.m4: Update.
1761 * gnulib/import/malloc.c: Update.
1762 * gnulib/import/malloc/scratch_buffer.h: Update.
1763 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1764 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1765 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1766 * gnulib/import/malloca.c: Update.
1767 * gnulib/import/malloca.h: Update.
1768 * gnulib/import/malloca.valgrind: Update.
1769 * gnulib/import/math.in.h: Update.
1770 * gnulib/import/mbrtowc.c: Update.
1771 * gnulib/import/mbsinit.c: Update.
1772 * gnulib/import/mbsrtowcs-impl.h: Update.
1773 * gnulib/import/mbsrtowcs-state.c: Update.
1774 * gnulib/import/mbsrtowcs.c: Update.
1775 * gnulib/import/memchr.c: Update.
1776 * gnulib/import/memmem.c: Update.
1777 * gnulib/import/mempcpy.c: Update.
1778 * gnulib/import/memrchr.c: Update.
1779 * gnulib/import/mkdir.c: Update.
1780 * gnulib/import/mkstemp.c: Update.
1781 * gnulib/import/msvc-inval.c: Update.
1782 * gnulib/import/msvc-inval.h: Update.
1783 * gnulib/import/msvc-nothrow.c: Update.
1784 * gnulib/import/msvc-nothrow.h: Update.
1785 * gnulib/import/open.c: Update.
1786 * gnulib/import/openat-die.c: Update.
1787 * gnulib/import/openat-priv.h: Update.
1788 * gnulib/import/openat-proc.c: Update.
1789 * gnulib/import/openat.c: Update.
1790 * gnulib/import/openat.h: Update.
1791 * gnulib/import/opendir.c: Update.
1792 * gnulib/import/pathmax.h: Update.
1793 * gnulib/import/pipe-safer.c: Update.
1794 * gnulib/import/rawmemchr.c: Update.
1795 * gnulib/import/readdir.c: Update.
1796 * gnulib/import/readlink.c: Update.
1797 * gnulib/import/realloc.c: Update.
1798 * gnulib/import/ref-add.sin: Update.
1799 * gnulib/import/ref-del.sin: Update.
1800 * gnulib/import/rename.c: Update.
1801 * gnulib/import/rewinddir.c: Update.
1802 * gnulib/import/rmdir.c: Update.
1803 * gnulib/import/same-inode.h: Update.
1804 * gnulib/import/save-cwd.c: Update.
1805 * gnulib/import/save-cwd.h: Update.
1806 * gnulib/import/scratch_buffer.h: Update.
1807 * gnulib/import/secure_getenv.c: Update.
1808 * gnulib/import/setenv.c: Update.
1809 * gnulib/import/signal.in.h: Update.
1810 * gnulib/import/stat-time.c: Update.
1811 * gnulib/import/stat-time.h: Update.
1812 * gnulib/import/stat-w32.c: Update.
1813 * gnulib/import/stat-w32.h: Update.
1814 * gnulib/import/stat.c: Update.
1815 * gnulib/import/stdbool.in.h: Update.
1816 * gnulib/import/stddef.in.h: Update.
1817 * gnulib/import/stdint.in.h: Update.
1818 * gnulib/import/stdio.in.h: Update.
1819 * gnulib/import/stdlib.in.h: Update.
1820 * gnulib/import/str-two-way.h: Update.
1821 * gnulib/import/strchrnul.c: Update.
1822 * gnulib/import/strdup.c: Update.
1823 * gnulib/import/streq.h: Update.
1824 * gnulib/import/strerror-override.c: Update.
1825 * gnulib/import/strerror-override.h: Update.
1826 * gnulib/import/strerror.c: Update.
1827 * gnulib/import/string.in.h: Update.
1828 * gnulib/import/stripslash.c: Update.
1829 * gnulib/import/strnlen1.c: Update.
1830 * gnulib/import/strnlen1.h: Update.
1831 * gnulib/import/strstr.c: Update.
1832 * gnulib/import/strtok_r.c: Update.
1833 * gnulib/import/sys_stat.in.h: Update.
1834 * gnulib/import/sys_time.in.h: Update.
1835 * gnulib/import/sys_types.in.h: Update.
1836 * gnulib/import/tempname.c: Update.
1837 * gnulib/import/tempname.h: Update.
1838 * gnulib/import/time.in.h: Update.
1839 * gnulib/import/unistd--.h: Update.
1840 * gnulib/import/unistd-safer.h: Update.
1841 * gnulib/import/unistd.in.h: Update.
1842 * gnulib/import/unsetenv.c: Update.
1843 * gnulib/import/verify.h: Update.
1844 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1845 * gnulib/import/wchar.in.h: Update.
1846 * gnulib/import/wctype.in.h: Update.
1847 * gnulib/import/xalloc-oversized.h: Update.
1848 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1849 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1851 2018-08-16 Gary Benson <gbenson@redhat.com>
1854 * gdb/main.c (captured_main_1): Exit with nonzero status
1855 in batch mode if the last command to be executed failed.
1856 * NEWS: Mention the above.
1858 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1860 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1861 end of warning message.
1863 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1866 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1867 (aarch64_extract_return_value): Use
1868 aapcs_is_vfp_call_or_return_candidate.
1869 (aarch64_return_in_memory): Likewise.
1870 (aarch64_store_return_value): Likewise.
1872 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1875 (aapcs_is_vfp_call_or_return_candidate): Make static
1876 (pass_in_v_or_stack): Remove function.
1877 (pass_in_v_vfp_candidate): New function.
1878 (aarch64_push_dummy_call): Check for float register candidates.
1880 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1882 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1883 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1884 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1886 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1889 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1890 (struct ipa_sym_addresses): Rename to...
1891 (struct ipa_sym_addresses_common): ... this.
1892 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1894 2018-08-28 Tom Tromey <tom@tromey.com>
1896 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1897 (token_fifo): Now a std::vector.
1898 (yylex, c_parse): Update.
1899 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1900 (token_fifo): Now a std::vector.
1901 (yylex, d_parse): Update.
1902 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1903 (token_fifo): Now a std::vector.
1904 (yylex, go_parse): Update.
1906 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1908 * parser-defs.h (struct type_stack) <elements>: Change type to
1909 std::vector<union type_stack_elt>.
1910 <depth, size>: Remove.
1911 * parse.c (parse_exp_in_context_1): Adjust.
1912 (type_stack_reserve): Remove.
1913 (check_type_stack_depth): Remove.
1914 (insert_into_type_stack): Adjust to std::vector.
1915 (insert_type): Likewise.
1916 (push_type): Likewise.
1917 (push_type_int): Likewise.
1918 (insert_type_address_space): Likewise.
1919 (pop_type): Likewise.
1920 (pop_type_int): Likewise.
1921 (pop_typelist): Likewise.
1922 (pop_type_stack): Likewise.
1923 (append_type_stack): Likewise.
1924 (push_type_stack): Likewise.
1925 (get_type_stack): Likewise.
1926 (type_stack_cleanup): Likewise.
1927 (push_typelist): Likewise.
1928 (follow_types): Likewise.
1929 (_initialize_parse): Likewise.
1931 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1933 * NEWS: Mention csky target.
1935 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1936 Hafiz Abid Qadeer <abidh@codesourcery.com>
1937 Don Breazeal <donb@codesourcery.com>
1939 * csky-linux-tdep.c: New file.
1940 * csky-tdep.c: Likewise.
1941 * csky-tdep.h: Likewise.
1942 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1944 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1945 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1946 * configure.tgt: Add csky support.
1948 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1950 * python/py-framefilter.c (py_print_frame): Print frame architecture
1951 when printing on an MI output.
1953 2018-08-27 Tom Tromey <tom@tromey.com>
1956 * configure: Rebuild.
1957 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1959 2018-08-27 Tom Tromey <tom@tromey.com>
1961 * aarch64-linux-tdep.c
1962 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1965 2018-08-27 Tom Tromey <tom@tromey.com>
1967 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1969 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1970 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1971 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1972 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1975 2018-08-27 Tom Tromey <tom@tromey.com>
1977 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
1978 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
1980 2018-08-27 Tom Tromey <tom@tromey.com>
1982 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
1983 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
1985 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
1987 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
1989 * sparc-linux-tdep.c (sparc32_linux_sigframe)
1990 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
1991 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
1993 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
1994 (ppc64_linux_sigaction_tramp_frame)
1995 (ppc32_linux_sighandler_tramp_frame)
1996 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
1997 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
1998 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
1999 * mn10300-linux-tdep.c (am33_linux_sigframe)
2000 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2001 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2002 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2003 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2004 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2005 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2006 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2007 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2008 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2009 * microblaze-linux-tdep.c
2010 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2011 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2012 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2013 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2014 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2015 * common/common-types.h (ULONGEST_MAX): New define.
2016 (CORE_ADDR_MAX): Fix formatting.
2017 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2018 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2019 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2020 (arm_linux_rt_sigreturn_tramp_frame)
2021 (arm_eabi_linux_sigreturn_tramp_frame)
2022 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2023 (thumb2_eabi_linux_sigreturn_tramp_frame)
2024 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2025 (arm_linux_restart_syscall_tramp_frame)
2026 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2027 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2028 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2030 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2032 2018-08-27 Tom Tromey <tom@tromey.com>
2034 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2036 * mips-tdep.c (mips_deal_with_atomic_sequence)
2037 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2038 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2039 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2040 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2042 * aarch64-tdep.c (aarch64_software_single_step): Use
2045 2018-08-27 Tom Tromey <tom@tromey.com>
2047 * linespec.c (complete_linespec_component): Add cast to "char".
2048 * completer.c (completion_tracker::build_completion_result): Add
2051 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2053 * solist.h (struct solist, struct target_so_ops): Fix
2056 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2058 * ada-tasks.c (ada_task_info_s): Remove typedef.
2059 (DEF_VEC_O(ada_task_info_s)): Remove.
2060 (struct ada_tasks_inferior_data): Initialize fields.
2061 <task_list>: Make an std::vector.
2062 (get_ada_tasks_inferior_data): Allocate with new.
2063 (ada_get_task_number): Adjust.
2064 (get_task_number_from_id): Likewise.
2065 (valid_task_id): Likewise.
2066 (ada_get_task_info_from_ptid): Likewise.
2067 (iterate_over_live_ada_tasks): Likewise.
2068 (add_ada_task): Likewise.
2069 (read_known_tasks): Likewise.
2070 (ada_build_task_list): Likewise.
2071 (print_ada_task_info): Likewise.
2072 (info_task): Likewise.
2073 (task_command_1): Likewise.
2075 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2077 * ada-lang.c (add_angle_brackets): Return std::string.
2079 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2081 * python/py-threadevent.c (py_get_event_thread): Initialize
2084 2018-08-24 Pedro Alves <palves@redhat.com>
2086 * python/py-bpevent.c (create_breakpoint_event_object): Use
2087 copy-initialization.
2088 * python/py-continueevent.c (emit_continue_event): Use
2089 copy-initialization.
2090 * python/py-exitedevent.c (create_exited_event_object): Return a
2092 (emit_exited_event): Use copy-initialization.
2093 * python/py-inferior.c (python_new_inferior)
2094 (python_inferior_deleted, add_thread_object): Use
2095 copy-initialization.
2096 * python/py-infevents.c (create_inferior_call_event_object)
2097 (create_register_changed_event_object)
2098 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2099 (emit_inferior_call_event, emit_memory_changed_event)
2100 (emit_register_changed_event): Use copy-initialization.
2101 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2102 Return a gdbpy_ref<>.
2103 (emit_new_objfile_event): Use copy-initialization.
2104 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2105 (emit_clear_objfiles_event): Use copy-initialization.
2106 * python/py-signalevent.c (create_signal_event_object): Use
2107 copy-initialization.
2108 * python/py-threadevent.c (create_thread_event_object): Use
2109 copy-initialization.
2111 2018-08-24 Pedro Alves <palves@redhat.com>
2112 Simon Marchi <simon.marchi@ericsson.com>
2115 * python/py-continueevent.c: Include "gdbthread.h".
2116 (create_continue_event_object): Add intro comment. Add 'ptid'
2117 parameter. Use it to find thread to pass to
2118 create_thread_event_object.
2119 (emit_continue_event): Pass PTID down to
2120 create_continue_event_object.
2121 * python/py-event.h (py_get_event_thread): Declare.
2122 (create_thread_event_object): Remove default from 'thread'
2124 * python/py-stopevent.c (create_stop_event_object): Use
2125 py_get_event_thread.
2126 * python/py-threadevent.c (get_event_thread): Rename to ...
2127 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2128 and use it to find the thread.
2129 (create_thread_event_object): Assert that THREAD isn't null.
2130 Don't find the event thread here.
2132 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2134 * block.h (blockrange, blockranges): New struct declarations.
2135 (struct block): Add new field named `ranges'.
2136 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2137 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2138 macros for accessing ranges in struct block.
2139 (make_blockranges): New declaration.
2140 block.c (make_blockranges): New function.
2141 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2143 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2144 * blockframe.c (cache_pc_function_block): New static global.
2145 (clear_pc_function_cache): Clear cache_pc_function_block.
2146 (find_pc_partial_function): Move comment to symtab.h. Add
2147 support for non-contiguous blocks.
2148 * cli/cli-cmds.c (block.h): Include.
2149 (print_disassembly): Handle printing of non-contiguous blocks.
2150 (disassemble_current_function): Likewise.
2151 (disassemble_command): Likewise.
2153 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2155 * blockframe.c (get_pc_function_start): Likewise.
2156 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2157 (gcc_symbol_address): Likewise.
2158 * compile/compile-object-run.c (compile_object_run): Likewise.
2159 * compile/compile.c (get_expr_block_and_pc): Likewise.
2160 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2161 (func_addr_to_tail_call_list): Likewise.
2162 * findvar.c (default_read_var_value): Likewise.
2163 * inline-frame.c (inline_frame_this_id): Likewise.
2164 (skip-inline_frames): Likewise.
2165 * infcmd.c (until_next_command): Likewise.
2166 * linespec.c (convert_linespec_to_sals): Likewise.
2167 * parse.c (parse_exp_in_context_1): Likewise.
2168 * printcmd.c (build_address_symbolic): likewise.
2169 (info_address_command): Likewise.
2170 symtab.c (find_function_start_sal): Likewise.
2171 (skip_prologue_sal): Likewise.
2172 (find_function_alias_target): Likewise.
2173 (find_gnu_ifunc): Likewise.
2174 * stack.c (find_frame_funname): Likewise.
2175 * symtab.c (fixup_symbol_section): Likewise.
2176 (find_function_start_sal): Likewise.
2177 (skip_prologue_sal): Likewsie.
2178 (find_function_alias_target): Likewise.
2179 (find_gnu_ifunc): Likewise.
2180 * tracepoint.c (info_scope_command): Likewise.
2181 * value.c (value_fn_field): Likewise.
2183 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2184 in place of find_pc_partial_function.
2185 * blockframe.c (find_function_entry_range_from_pc): New function.
2186 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2187 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2188 for each range in a block.
2191 2018-08-23 Xavier Roirand <roirand@adacore.com>
2193 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2196 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2198 * solib-svr4.c (read_program_headers_from_bfd): Return
2199 gdb::optional<gdb::byte_vector>.
2200 (svr4_exec_displacement): Adjust.
2202 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2204 * solib-svr4.c (read_program_header): Return
2205 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2206 (find_program_interpreter): Return
2207 gdb::optional<gdb::byte_vector>.
2208 (scan_dyntag_auxv): Adjust.
2209 (enable_break): Adjust.
2210 (svr4_exec_displacement): Adjust.
2212 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2214 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2215 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2217 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2219 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2221 * guile/scm-utils.c (gdbscm_printf): Likewise.
2222 * serial.c (serial_printf): Likewise.
2223 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2225 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2227 * stack.c (print_frame): Print frame architecture when printing on
2229 * NEWS: Mention new "arch" attribute in frame output.
2231 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2233 * arch/aarch64.h (aarch64_regnum): Update comment.
2235 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2237 * NEWS: Add SVE to 8.2 section.
2239 2018-08-21 Pedro Alves <palves@redhat.com>
2241 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2242 out from gdbscm_parse_function_args.
2243 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2244 gdbscm_parse_function_args_1.
2246 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2249 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2252 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2254 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2256 2018-08-19 Michael Spang <spang@google.com>
2259 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2260 for PT_TLS segments.
2262 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2264 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2265 dwarf_variable_value.
2266 * dwarf2-frame.c (class dwarf_expr_executor):
2267 Add override for dwarf_variable_value.
2268 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2269 (class symbol_needs_eval_context): Likewise.
2270 (indirect_synthetic_pointer): Add forward declaration.
2271 (sect_variable_value): New function.
2272 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2273 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2274 for DW_OP_GNU_variable_value.
2276 2018-08-16 Tom Tromey <tom@tromey.com>
2278 * top.c (read_command_file): Update.
2279 (command_line_input): Remove "repeat" argument.
2280 * ada-lang.c (get_selections): Update.
2281 * linespec.c (decode_line_2): Update.
2282 * defs.h (command_line_input): Remove argument.
2283 * cli/cli-script.c (read_next_line): Update.
2284 * python/py-gdb-readline.c: Update.
2286 2018-08-17 Tom Tromey <tom@tromey.com>
2288 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2291 2018-08-15 Tom Tromey <tom@tromey.com>
2293 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2295 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2297 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2298 If used, use find_pc_partial_function to find address range
2300 * mi/mi-main.c (mi_cmd_list_features): Report
2301 "data-disassemble-a-option" feature.
2302 * NEWS: Mention new -data-disassemble option -a.
2304 2018-08-13 Tom Tromey <tom@tromey.com>
2306 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2308 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2310 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2311 (aarch64_linux_collect_sve_regset): Likewise.
2312 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2313 * regcache.h (regcache_map_entry_size): New function.
2315 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2317 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2318 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2319 (SVE_HEADER_VL_LENGTH): Likewise.
2320 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2321 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2322 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2323 (SVE_HEADER_SIZE_OFFSET): Likewise.
2324 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2325 (SVE_HEADER_VL_OFFSET): Likewise.
2326 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2327 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2328 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2329 (SVE_HEADER_SIZE): Likewise.
2330 (aarch64_linux_core_read_vq): Add function.
2331 (aarch64_linux_core_read_description): Check for SVE section.
2333 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2335 * aarch64-fbsd-tdep.c
2336 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2338 * aarch64-linux-tdep.c
2339 (aarch64_linux_iterate_over_regset_sections): Likewise.
2340 * alpha-linux-tdep.c
2341 (alpha_linux_iterate_over_regset_sections):
2343 (alphanbsd_iterate_over_regset_sections): Likewise.
2345 (amd64fbsd_iterate_over_regset_sections): Likewise.
2346 * amd64-linux-tdep.c
2347 (amd64_linux_iterate_over_regset_sections): Likewise.
2349 (armbsd_iterate_over_regset_sections): Likewise.
2351 (arm_fbsd_iterate_over_regset_sections): Likewise.
2353 (arm_linux_iterate_over_regset_sections): Likewise.
2354 * corelow.c (get_core_registers_cb): Likewise.
2355 (core_target::fetch_registers): Likewise.
2356 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2357 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2358 * gdbarch.h (void): Regenerate.
2359 * gdbarch.sh: Add supply_size and collect_size.
2360 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2361 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2362 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2363 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2364 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2365 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2366 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2367 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2368 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2369 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2370 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2371 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2372 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2373 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2374 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2375 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2376 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2377 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2378 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2379 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2380 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2381 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2382 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2383 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2384 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2385 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2386 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2387 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2388 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2389 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2391 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2393 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2396 2018-08-10 Keith Seitz <keiths@redhat.com>
2398 * compile/compile-c-support.c (add_code_header, add_code_footer):
2399 Move into policy class.
2400 (c_push_user_expression, pop_user_expression_nop)
2401 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2402 (compile_program): New host class.
2403 (c_compile_program): New typedef.
2404 (c_compute_porgram): Use c_compile_program.
2406 2018-08-10 Keith Seitz <keiths@redhat.com>
2408 * compile/compile-internal.h (compile_instance::~compile_instance):
2409 Remove calls to htab_delete.
2410 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2411 * compile.c (compile_instance::compile_instance): Initialize
2412 htab unique pointers.
2413 (compile_instance::get_cached_type, compile_instance::insert_type)
2414 (compile_instance::error_symbol_once): Update for unique_ptr.
2416 2018-08-10 Keith Seitz <keiths@redhat.com>
2418 * compile/compile-c-symbols.c (struct symbol_error)
2419 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2420 (compile_instance::insert_symbol_error)
2421 (compile_instance::error_symbol_once): Move to ...
2422 * compile/compile.c: ... here.
2424 2018-08-10 Keith Seitz <keiths@redhat.com>
2426 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2427 instead of `new_compile_instance'.
2428 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2430 If the symbol error map is not initialized, create it.
2431 (generate_c_for_for_one_symbol): Do not check/initialize
2432 the symbol error map.
2433 * compile/compile-c-types.c (compile_c_instance): Make a class.
2435 (compile_instance::compile_instance): Initialize the type cache.
2436 (get_cached_type): New function.
2437 (insert_type): Update description.
2438 (compile_c_instance::m_default_cflags): Define.
2439 (convert_type): Update description. Use get_cached_type.
2440 (delete_instance): Moved to destructor.
2441 (new_compile_instance): Moved to constructor.
2442 * compile/compile-c.h (compile_c_instance): Make class inheriting
2443 from compile_instance.
2444 <base>: Remove field.
2445 <type_map, symbol_err_map>: Move to base class.
2446 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2447 * compile/compile-internal.h (compile_instance): Make class.
2448 <type_map_t, symbol_err_map_t>: Define.
2449 <fe>: Rename to `m_gcc_fe'.
2450 <scope, block, gcc_target_options>: Add `m_' prefix.
2451 <m_type_map, m_symbol_err_map>: New fields, moved from
2454 (convert_type, new_compile_instance): Remove.
2455 * compile/compile.c (cleanup_compile_instance): Remove.
2456 (compile_to_object): Use unique_ptr to eliminate cleanups.
2457 (compile_instance::set_print_callback, compile_instance::version)
2458 (compile_instance::set_verbose)
2459 (compile_instance::set_driver_filename)
2460 (compile_instance::set_triplet_regexp)
2461 (compile_instance::set_arguments)
2462 (compile_instance::set_source_file)
2463 (compile_instance::compile): Define.
2465 2018-08-10 Keith Seitz <keiths@redhat.com>
2467 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2468 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2469 gcc-c-fe.def to define C plugin.
2470 (delete_instance): Delete `c_plugin'.
2471 (new_compile_instance): Initialize `c_plugin'.
2472 * compile/compile-c.h: Include gcc_c_plugin.h.
2473 (struct compile_c_instance) <c_plugin>: New member.
2474 * gcc-c-plugin.h: New file.
2475 Update all callers with API change.
2477 2018-08-10 Keith Seitz <keiths@redhat.com>
2479 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2480 (HFILES_NO_SRCDIR): ... to here.
2481 Add compile-internal.h and compile-c.h.
2482 * compile/compile-c-support.c: Include compile-c.h.
2483 * compile/compile-c-symbols.c: Include compile-c.h.
2484 (generate_c_for_variable_locations): Update comment.
2485 * compile/compile-c-types.c: Include compile-c.h.
2486 * compile/compile-c.h: New file -- moved C language declarations
2487 from other files here.
2488 * compile/compile-internal.h: Do not include hashtab.h or
2489 common/enum-flags.h.
2490 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2491 (gcc_convert_symbol, gcc_symbol_address)
2492 (generate_c_for_variable_locations, c_get_mode_for_size)
2493 (c_get_range_decl_name): Definitions moved to compile-c.h.
2494 * compile/compile-loc2c.c: Include compile-c.h.
2496 2018-08-10 Keith Seitz <keiths@redhat.com>
2498 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2499 (c_symbol_substitution_name): ... this.
2502 2018-08-10 Keith Seitz <keiths@redhat.com>
2504 * compile/compile-c-support.c (c_compute_program): Use
2505 unique_xmalloc_ptr to eliminate cleanup.
2506 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2507 Return a unique_xmalloc_ptr and eliminate cleanup.
2508 * compile/compile-internal.h (generate_c_for_variable_locations):
2509 Return unique_xmalloc_ptr and update description.
2511 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2513 * corelow.c (core_target::get_core_register_section): Rename
2514 min_size to section_min_size.
2516 2018-08-09 Jim Wilson <jimw@sifive.com>
2518 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2519 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2520 * NEWS: Mention new GNU/Linux RISC-V target.
2521 * configure.host: Add riscv*-*-linux*.
2522 * configure.nat: Add riscv*.
2523 * configure.tgt: Add riscv*-*-linux*.
2524 * riscv-linux-nat.c: New file.
2525 * riscv-linux-tdep.c: New file.
2527 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2529 * infrun.c (resume): Make static, add forward declaration.
2530 (proceed): Update header comment.
2531 * infrun.h (resume): Delete declaration.
2533 2018-08-09 Tom Tromey <tom@tromey.com>
2535 * riscv-tdep.h: Minor formatting fixes.
2537 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2539 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2540 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2541 (test_mkdir_recursive): Likewise.
2542 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2544 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2546 * valarith.c (value_subscripted_rvalue): If an array is not in
2547 memory, and we don't know the upper bound, then we can't know that
2548 the requested element exists or not.
2550 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2552 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2553 (target_options_to_string): Add comment.
2555 2018-08-08 Tom Tromey <tom@tromey.com>
2557 * unittests/scoped_mmap-selftests.c: Check result of "write".
2559 2018-08-08 Jim Wilson <jimw@sifive.com>
2561 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2562 (decode_register_index_short): New.
2563 (decode_j_type_insn, decode_cj_type_insn): New.
2564 (decode_b_type_insn, decode_cb_type_insn): New.
2565 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2566 local xlen. Check xlen when decoding ambiguous compressed insns. In
2567 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2568 is_c_sw_insn instead of is_sw_insn.
2569 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2570 (riscv_software_single_step): New.
2571 * riscv-tdep.h (riscv_software_single_step): Declare.
2573 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2574 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2576 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2579 * target.c (dispose_inferior): Don't dispose of inferiors that are
2582 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2584 * remote.c (remote_target::download_tracepoint): Change char* to
2587 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2589 * target.h (target_options_to_string): Return an std::string.
2590 * target.c (str_comma_list_concat_elem): Return void, use
2592 (do_option): Likewise.
2593 (target_options_to_string): Return an std::string.
2594 * linux-nat.c (linux_nat_target::wait): Adjust.
2595 * target-debug.h (target_debug_print_options): Adjust.
2597 2018-08-07 Tom Tromey <tom@tromey.com>
2599 * Makefile.in (CPPFLAGS): New variable.
2600 (INTERNAL_CPPFLAGS): Use it.
2602 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2604 * NEWS: Mention the index cache.
2606 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2608 * common/pathstuff.h (get_standard_cache_dir): New.
2609 * common/pathstuff.c (get_standard_cache_dir): New.
2610 * build-id.h (build_id_to_string): New.
2611 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2612 DEBUG_STR_SUFFIX): Move to here.
2613 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2614 DEBUG_STR_SUFFIX): Move from there.
2615 (write_psymtabs_to_index): Make non-static, add basename
2616 parameter. Write to temporary files, rename when done.
2617 (save_gdb_index_command): Adjust call to
2618 write_psymtabs_to_index.
2619 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2621 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2622 (get_gdb_index_contents_from_cache): New.
2623 (get_gdb_index_contents_from_cache_dwz): New.
2624 (dwarf2_initialize_objfile): Read index from cache.
2625 (dwarf2_build_psymtabs): Save to index.
2626 * dwarf-index-cache.h: New file.
2627 * dwarf-index-cache.c: New file.
2628 * dwarf-index-write.h: New file.
2630 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2632 * gnulib/aclocal.m4: Re-generate.
2633 * gnulib/config.in: Re-generate.
2634 * gnulib/configure: Re-generate.
2635 * gnulib/import/Makefile.am: Re-generate.
2636 * gnulib/import/Makefile.in: Re-generate.
2637 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2638 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2639 * gnulib/import/m4/mkdir.m4: New file.
2640 * gnulib/import/mkdir.c: New file.
2641 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2644 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2646 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2647 * common/scoped_mmap.c: New file.
2648 * common/scoped_mmap.h (destroy): New method.
2649 (~scoped_mmap, reset): Use destroy.
2650 (scoped_mmap): New move constructor.
2651 (mmap_file): New declaration.
2652 * unittests/scoped_mmap-selftests.c (test_normal,
2653 test_invalid_filename, run_tests): New functions.
2654 (_initialize_scoped_mmap_selftests): Register selftest.
2656 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2658 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2659 (read_gdb_index_from_buffer): ... this. Remove section
2660 parameter, add buffer parameter.
2661 (get_gdb_index_contents_ftype,
2662 get_gdb_index_contents_dwz_ftype): New typedefs.
2663 (dwarf2_read_gdb_index): Add callback parameters to get the
2665 (get_gdb_index_contents_from_section): New.
2666 (dwarf2_initialize_objfile): Update call to
2667 dwarf2_read_gdb_index.
2669 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2671 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2672 (gdb_open_cloexec): Likewise.
2673 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2674 (commandline_from_pid): Likewise.
2675 (linux_xfer_osdata_threads): Likewise.
2676 (linux_xfer_osdata_fds): Likewise.
2677 * ada-lang.c (is_package_name): Likewise.
2678 * auxv.c (procfs_xfer_auxv): Likewise.
2679 * breakpoint.c (print_one_breakpoint_location): Use
2681 (print_one_catch_solib): Use string_printf.
2682 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2683 (add_pe_forwarded_sym): Likewise.
2684 * dwarf2read.c (create_type_unit_group): Likewise.
2685 (build_error_marker_type): Likewise.
2686 * infcall.c (get_function_name): Likewise.
2687 * valprint.c (print_converted_chars_to_obstack): Likewise.
2688 * xtensa-tdep.c (xtensa_register_type): Likewise.
2690 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2692 * remote.c (remote_target::download_tracepoint): Fix format
2695 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2697 * tracefile.c: Include common/byte-vector.h.
2698 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2699 with trace_regblock_size if needed. Update uses of buf.
2701 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2703 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2704 std::vector<unsigned char>.
2705 * tracepoint.c (collection_list::collection_list): Remove
2706 m_regs_mask initializer from initializer list. Resize
2707 m_regs_mask using the largest remote register number.
2708 (collection_list::add_remote_register): Remove size check on
2709 m_regs_mask. Use at to access element.
2710 (collection_list::stringify): Change type of temp_buf to
2711 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2712 stringify the register mask. Use pack_hex_byte for the register
2715 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2717 * tracepoint.h (class collection_list) <add_register>: Remove.
2718 <add_remote_register, add_ax_registers, add_local_register>:
2720 <add_memrange>: Add scope parameter.
2721 * tracepoint.c (encode_actions_1): Likewise.
2722 (collection_list::add_register): Rename to ...
2723 (collection_list::add_remote_register): ... this. Update
2725 (collection_list::add_ax_registers, add_local_register): New
2727 (collection_list::add_memrange): Add scope parameter. Call
2728 add_local_register instead of add_register.
2729 (finalize_tracepoint_aexpr): New function.
2730 (collection_list::collect_symbol): Update calls to add_memrange.
2731 Call add_local_register instead of add_register. Call
2732 add_ax_registers. Call finalize_tracepoint_aexpr.
2733 (encode_actions_1): Get remote regnos for $reg action. Call
2734 add_remote_register, add_ax_registers, and add_local_register.
2735 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2736 (validate_actionline): Call finalize_tracepoint_aexpr.
2738 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2740 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2741 Replace array buf with gdb::char_vector buf, of size
2742 get_remote_packet_size (). Replace references to buf and
2743 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2744 and xsnprintf with snprintf. Raise errors if the buffer is too
2747 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2749 * remote.c (remote_target::download_tracepoint): Fix the has_more
2750 predicate in the QTDP action list iteration.
2752 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2754 * remote.c (remote_target::download_tracepoint): Fix indentation
2757 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2759 * proc-api.c (_initialize_proc_api): Remove c, unused.
2760 * procfs.c (procfs_init_inferior): Remove signals, unused.
2761 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2764 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2765 Andrew Burgess <andrew.burgess@embecosm.com>
2767 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2768 'W_STOPCODE (0)' as this could be ambiguous.
2770 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2772 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2773 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2776 2018-08-02 Tom Tromey <tom@tromey.com>
2779 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2781 (process_structure_scope): Likewise.
2783 2018-08-02 Xavier Roirand <roirand@adacore.com>
2786 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2789 2018-08-02 Tom Tromey <tom@tromey.com>
2791 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2792 (darwin_suspend_inferior, darwin_resume_inferior)
2793 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2794 (darwin_check_new_threads): Check result of get_darwin_inferior.
2796 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2800 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2802 * varobj.c (varobj_get_path_expr_parent): Report an error if
2803 parent is a dynamic varobj.
2805 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2807 * gnulib/aclocal.m4: Re-generate.
2808 * gnulib/config.in: Re-generate.
2809 * gnulib/configure: Re-generate.
2810 * gnulib/import/Makefile.in: Re-generate.
2811 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2812 * gnulib/import/m4/onceonly.m4: Re-generate.
2814 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2816 * target-descriptions.c (struct xml_test_tdesc): New.
2817 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2818 (record_xml_tdesc): Update.
2819 (maintenance_check_xml_descriptions): Update.
2820 * target-descriptions.h (record_xml_tdesc): Update comment.
2822 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2824 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2825 checking array bounds are defined.
2827 2018-07-30 Tom Tromey <tom@tromey.com>
2829 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2830 irreflexivity violation.
2832 2018-07-30 Tom Tromey <tom@tromey.com>
2834 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2835 * value.c (unpack_long): Remove lint code.
2836 * valops.c (value_ind): Remove lint code.
2837 * valarith.c (value_x_binop, value_x_unop, value_equal)
2838 (value_pos): Remove lint code.
2840 2018-07-28 Tom de Vries <tdevries@suse.de>
2842 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2843 with undefined upper bound as <optimized out>.
2845 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2847 * gcore.in: Rename variable "name" to "prefix". Expand
2850 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2852 * windows-nat.c (windows_nat_target::create_inferior): Update to
2853 call close() in global namespace.
2855 2018-07-26 Tom Tromey <tom@tromey.com>
2857 * dwarf-index-write.c (add_address_entry): Don't add objfile
2859 * dbxread.c (find_stab_function): Rename from
2860 find_stab_function_addr. Return a bound_minimal_symbol.
2861 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2862 Don't add objfile offsets.
2863 (end_psymtab): Use raw_text_low, raw_text_high,
2864 MSYMBOL_VALUE_RAW_ADDRESS.
2865 (read_ofile_symtab): Update.
2866 (process_one_symbol): Update.
2867 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2869 (dw2_relocate): Remove.
2870 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2872 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2874 (process_psymtab_comp_unit_reader, add_partial_symbol)
2875 (add_partial_subprogram, dwarf2_ranges_read): Update.
2876 (load_partial_dies): Update.
2877 (add_address_entry): Don't add objfile offsets.
2878 (dwarf2_build_include_psymtabs): Update.
2879 (create_addrmap_from_aranges): Don't add objfile offsets.
2880 (dw2_find_pc_sect_compunit_symtab): Update.
2881 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2882 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2884 (parse_partial_symbols): Don't add objfile offsets. Use
2885 raw_text_low, raw_text_high. Update.
2886 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2887 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2888 or call 'relocate' quick function. Clear psymbol_map.
2889 * psympriv.h (struct partial_symbol) <address>: Add section
2891 <set_unrelocated_address>: Rename from set_address.
2892 <raw_text_low, raw_text_high>: New methods.
2893 <text_low, text_high>: Add objfile parameter.
2894 (add_psymbol_to_bcache): Add 'section' parameter. Call
2895 set_unrelocated_address.
2896 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2897 (find_pc_psymbol): Update.
2898 (fixup_psymbol_section, relocate_psymtabs): Remove.
2899 (dump_psymtab, psym_functions): Update.
2900 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2902 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2903 (start_psymtab_common): Update.
2904 * symfile-debug.c (debug_qf_relocate): Remove.
2905 (debug_sym_quick_functions): Update.
2906 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2907 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2910 2018-07-26 Tom Tromey <tromey@redhat.com>
2912 * dbxread.c (end_psymtab): Use text_high_valid and
2914 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2915 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2916 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2918 <text_low_valid, text_high_valid>: New fields.
2919 <set_text_low, set_text_high>: Update.
2920 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2922 2018-07-26 Tom Tromey <tom@tromey.com>
2924 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2926 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2927 textlow and texthigh fields.
2928 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2930 * mdebugread.c (parse_lines, parse_partial_symbols)
2931 (psymtab_to_symtab_1): Update.
2932 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2933 Rename fields. Update comment. Now private.
2934 <text_low, text_high, set_text_low, set_text_high>: New methods.
2935 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2936 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2937 (start_psymtab_common, maintenance_info_psymtabs)
2938 (maintenance_check_psymtabs): Update.
2939 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2941 (scan_xcoff_symtab): Update.
2943 2018-07-26 Tom Tromey <tromey@redhat.com>
2945 * psympriv.h (struct partial_symbol) <unrelocated_address,
2946 address, set_address>: New methods.
2947 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2948 (fixup_psymbol_section, relocate_psymtabs): Update.
2949 (print_partial_symbols): Add 'objfile' parameter. Update.
2950 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2953 2018-07-26 Tom Tromey <tom@tromey.com>
2955 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2956 (debug_names::write_psymbols): Update.
2957 * psympriv.h (struct partial_symbol): Derive from
2958 general_symbol_info.
2959 <obj_section>: New method.
2960 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2961 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2962 (find_pc_sect_psymbol, fixup_psymbol_section)
2963 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2964 (print_partial_symbols, recursively_search_psymtabs)
2965 (compare_psymbols, psymbol_hash, psymbol_compare)
2966 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2967 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2969 2018-07-26 Tom Tromey <tromey@redhat.com>
2971 * dbxread.c (end_psymtab): Remove dead code.
2973 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2975 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
2976 DWARF unwinders are disabled.
2977 * dwarf2-frame.c: Add dwarf2read.h include.
2978 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
2980 (dwarf2_frame_unwinders_enabled_p): Define.
2981 (show_dwarf_unwinders_enabled_p): New function.
2982 (_initialize_dwarf2_frame): Register switch to control DWARF
2984 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
2985 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
2986 (show_dwarf_cmdlist): Remove static keyword.
2987 * dwarf2read.h (set_dwarf_cmdlist): Declare.
2988 (show_dwarf_cmdlist): Declare.
2989 * NEWS: Document new feature.
2991 2018-07-26 Tom de Vries <tdevries@suse.de>
2993 PR breakpoints/23366
2994 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
2996 2018-07-26 Tom de Vries <tdevries@suse.de>
2998 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
2999 DW_AT_count can't be translated to a dynamic prop.
3001 2018-07-25 Tom de Vries <tdevries@suse.de>
3003 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3006 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3008 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3010 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3012 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3014 2018-07-24 Keith Seitz <keiths@redhat.comt
3017 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3018 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3019 instead of add_symbol_to_list.
3020 (read_file_scope): Call prepare_one_comp_unit before reading
3023 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3025 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3027 2018-07-24 Tom Tromey <tom@tromey.com>
3029 * utils.c (malloc, realloc, free): Don't declare.
3030 * configure, config.in: Rebuild.
3031 * configure.ac: Don't check for declarations of free, malloc, or
3034 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3036 * aarch64-linux-nat.c
3037 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3039 * arm-linux-nat.c (fetch_regs): Likewise.
3040 (store_regs): Likewise.
3041 (fetch_vfp_regs): Likewise.
3042 (store_vfp_regs): Likewise.
3043 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3044 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3045 (arm_linux_nat_target::insert_watchpoint): Likewise.
3046 (arm_linux_nat_target::remove_watchpoint): Likewise.
3047 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3049 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3051 * ppc-linux-nat.c (fetch_register): Likewise.
3052 (fetch_all_gp_regs): Likewise.
3053 (fetch_ppc_registers): Likewise.
3054 (store_all_gp_regs): Likewise.
3055 (store_ppc_registers): Likewise.
3056 (hwdebug_insert_point): Likewise.
3057 (can_use_watchpoint_cond_accel): Likewise.
3058 * remote-sim.c (gdb_os_write_stdout): Likewise.
3060 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3061 Tom Tromey <tom@tromey.com>
3063 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3065 * configure: Rebuild.
3067 2018-07-22 Tom Tromey <tom@tromey.com>
3069 * regformats/regdat.sh: Define xmltarget_${name} inside
3070 #ifndef IN_PROCESS_AGENT.
3072 2018-07-22 Tom Tromey <tom@tromey.com>
3074 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3076 2018-07-22 Tom Tromey <tom@tromey.com>
3078 * symfile.c (reread_symbols): Notify iter, not objfile.
3080 2018-07-22 Tom Tromey <tom@tromey.com>
3082 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3084 (ravenscar_thread_target::prepare_to_store): Likewise.
3086 2018-07-22 Tom Tromey <tom@tromey.com>
3088 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3089 unused variable. Call value_fetch_lazy when needed.
3090 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3091 Remove unused variable. Call value_fetch_lazy when needed.
3093 2018-07-22 Tom Tromey <tom@tromey.com>
3095 * m32c-tdep.c (mark_dma): Return void.
3096 (make_regs): Remove unused declarations.
3098 2018-07-22 Tom Tromey <tom@tromey.com>
3100 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3101 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3102 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3103 bkscm_get_valid_block_smob_arg_unsafe for effect.
3105 2018-07-22 Tom Tromey <tom@tromey.com>
3107 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3110 2018-07-22 Tom Tromey <tom@tromey.com>
3112 * windows-nat.c (saved_context): Conditionally define.
3113 * remote.c (remote_target::remote_btrace_maybe_reopen):
3114 Conditionally declare "warned".
3115 * inflow.c (sigquit_ours): Conditionally define.
3116 (new_tty): Move "tty" declaration inside #if.
3117 * guile/guile.c (guile_datadir): Conditionally define.
3118 * charset.c (set_be_le_names): Move some declarations inside #if.
3119 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3121 (parse_xml_btrace_conf): Likewise.
3123 2018-07-22 Tom Tromey <tom@tromey.com>
3125 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3127 2018-07-22 Tom Tromey <tom@tromey.com>
3129 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3130 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3131 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3132 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3133 * stack.c (frame_apply_level_command): Remove unused variable.
3134 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3135 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3136 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3138 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3139 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3140 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3142 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3143 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3145 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3146 Remove unused variable.
3147 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3149 * common/tdesc.c (print_xml_feature::visit): Remove unused
3151 * compile/compile-object-load.c (store_regs): Remove unused
3153 * complaints.c (clear_complaints): Remove unused variable.
3154 * corelow.c (core_target_open): Remove unused variable.
3155 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3157 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3159 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3161 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3163 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3165 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3167 * ia64-tdep.c (examine_prologue): Remove unused variable.
3168 * infcall.c (run_inferior_call): Remove unused variable.
3169 * inferior.c (exit_inferior): Remove unused variable.
3170 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3171 * linespec.c (decode_line_2): Remove unused variable.
3172 * linux-nat.c (super_close): Remove.
3173 * linux-tdep.c (linux_info_proc): Remove unused variable.
3174 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3175 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3176 Remove unused variable.
3177 * parse.c (find_minsym_type_and_address): Remove unused variable.
3178 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3180 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3182 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3184 * record-btrace.c (record_btrace_target::store_registers): Remove
3186 (cmd_show_record_btrace_cpu): Remove unused variable.
3187 * riscv-tdep.c (riscv_register_reggroup_p)
3188 (riscv_push_dummy_call, riscv_return_value): Remove unused
3190 * rust-exp.y (literal): Remove unused variable.
3191 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3193 <STRUCTOP_ANONYMOUS>: Likewise.
3194 * s390-linux-tdep.c (s390_linux_init_abi_31)
3195 (s390_linux_init_abi_64): Remove unused variable.
3196 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3197 (file_select_thread, net_windows_open, _initialize_ser_windows):
3198 Remove unused variables.
3199 * symtab.c (find_pc_sect_line): Remove unused variable.
3200 * target-memory.c (compute_garbled_blocks): Remove unused
3202 (target_write_memory_blocks): Remove unused variable.
3203 * target.c (target_stack::unpush): Remove unused variables.
3204 * tracepoint.c (start_tracing, all_tracepoint_actions)
3205 (merge_uploaded_trace_state_variables)
3206 (print_one_static_tracepoint_marker): Remove unused variable.
3207 * unittests/basic_string_view/element_access/char/1.cc (test01):
3208 Remove unused variable.
3209 * windows-nat.c (windows_continue, windows_add_all_dlls)
3210 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3211 Remove unused variables.
3213 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3215 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3216 attr_profile in HAVE_ELF.
3217 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3220 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3222 * frame.c (frame_register_unwind): Change parameter name.
3223 (frame_unwind_register): Likewise.
3224 (frame_unwind_register_value): Likewise.
3225 (frame_unwind_register_signed): Likewise.
3226 (frame_unwind_register_unsigned): Likewise.
3227 * frame.h (frame_register_unwind): Likewise.
3228 (frame_unwind_register): Likewise.
3229 (frame_unwind_register_value): Likewise.
3230 (frame_unwind_register_signed): Likewise.
3231 (frame_unwind_register_unsigned): Likewise.
3232 (frame_unwind_arch): Likewise.
3234 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3236 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3239 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3241 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3242 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3245 2018-07-20 Keith Seitz <keiths@redhat.com>
3247 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3248 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3249 m_compunit_symtab, m_language>: Add "m_" prefix.
3251 * buildsym.c: Update all uses.
3253 2018-07-20 Tom Tromey <tom@tromey.com>
3255 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3256 * buildsym.h (record_line_ftype): Remove typedef.
3258 2018-07-20 Tom Tromey <tom@tromey.com>
3260 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3261 (end_expandable_symtab): Likewise.
3262 (end_symtab_get_static_block): Likewise.
3263 (end_symtab_from_static_block): Likewise.
3264 * buildsym-legacy.c (augment_type_symtab): Remove.
3265 (end_expandable_symtab): Remove.
3266 (end_symtab_get_static_block): Remove.
3267 (end_symtab_from_static_block): Remove.
3269 2018-07-20 Tom Tromey <tom@tromey.com>
3271 * dwarf2read.c: Include buildsym.h.
3272 (struct dwarf2_cu) <builder>: New method.
3273 (fixup_go_packaging): Update.
3274 (process_full_comp_unit, process_full_type_unit): Update. Don't
3275 use scoped_free_pendings.
3276 (using_directives): Add "cu" parameter, remove "language".
3277 (read_import_statement, setup_type_unit_groups, )
3278 (read_func_scope, read_lexical_block_scope)
3279 (dwarf2_record_block_ranges, read_namespace): Update.
3280 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3281 (lnp_state_machine::handle_end_sequence): Update.
3282 (class lnp_state_machine) <m_cu>: New member.
3283 <m_record_line_callback>: Remove.
3284 <m_currently_recording_lines>: New member.
3285 (lnp_state_machine::handle_set_file): Update.
3286 (noop_record_line): Remove.
3287 (dwarf_record_line_p): Add cu parameter.
3288 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3289 (lnp_state_machine::record_line)
3290 (lnp_state_machine::lnp_state_machine)
3291 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3292 (dwarf_decode_lines): Update.
3293 (dwarf2_start_subfile): Add cu parameter.
3294 (dwarf2_start_symtab, new_symbol): Update.
3295 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3296 Remove dwarf2_per_objfile parameter.
3297 (dwarf_decode_macros): Update.
3299 2018-07-20 Tom Tromey <tom@tromey.com>
3301 * stabsread.c (define_symbol): Update.
3302 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3303 * dwarf2read.c (new_symbol): Update.
3304 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3305 * cp-namespace.c: Include buildsym.h.
3306 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3307 * buildsym-legacy.c (get_buildsym_compunit): New function.
3309 2018-07-20 Tom Tromey <tom@tromey.com>
3311 * xcoffread.c: Include buildsym-legacy.h.
3312 * windows-nat.c: Include buildsym-legacy.h.
3313 * stabsread.c: Include buildsym-legacy.h.
3314 * mdebugread.c: Include buildsym-legacy.h.
3315 * buildsym-legacy.h: New file.
3316 * buildsym-legacy.c: New file, from buildsym.c.
3317 * go32-nat.c: Include buildsym-legacy.h.
3318 * dwarf2read.c: Include buildsym-legacy.h.
3319 * dbxread.c: Include buildsym-legacy.h.
3320 * cp-namespace.c: Include buildsym-legacy.h.
3321 * coffread.c: Include buildsym-legacy.h.
3322 * buildsym.h: Move some contents to buildsym-legacy.h.
3323 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3325 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3327 2018-07-20 Tom Tromey <tom@tromey.com>
3329 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3330 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3331 (buildsym_compunit::buildsym_compunit)
3332 (buildsym_compunit::~buildsym_compunit)
3333 (buildsym_compunit::get_macro_table): Define.
3335 2018-07-20 Tom Tromey <tom@tromey.com>
3337 * buildsym.c (reset_symtab_globals): Remove.
3338 (buildsym_compunit::end_symtab_from_static_block): Update.
3339 (buildsym_compunit::augment_type_symtab): Update.
3340 (end_symtab_from_static_block): Call free_buildsym_compunit.
3341 (augment_type_symtab, end_symtab, end_expandable_symtab):
3344 2018-07-20 Tom Tromey <tom@tromey.com>
3346 * arch-utils.c: Do not include buildsym.h.
3347 * mipsread.c: Do not include buildsym.h.
3348 * machoread.c: Do not include buildsym.h.
3349 * elfread.c: Do not include buildsym.h.
3351 2018-07-20 Tom Tromey <tom@tromey.com>
3353 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3355 (buildsym_compunit): Add new constructor.
3356 (struct buildsym_compunit) <get_last_source_file, finish_block,
3357 record_block_range, start_subfile, patch_subfile_names,
3358 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3359 set_last_source_start_addr, get_last_source_start_addr,
3360 get_local_using_directives, set_local_using_directives,
3361 get_global_using_directives, outermost_context_p,
3362 get_current_context_stack, get_context_stack_depth,
3363 get_current_subfile, get_local_symbols, get_file_symbols,
3364 get_global_symbols, record_debugformat, record_producer,
3365 push_context, pop_context, end_symtab_get_static_block,
3366 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3368 <record_pending_block, finish_block_internal, make_blockvector,
3369 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3373 2018-05-22 Tom Tromey <tom@tromey.com>
3375 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3377 (finish_block_internal): Update.
3379 2018-07-20 Tom Tromey <tom@tromey.com>
3381 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3383 (finish_block_internal): Update.
3385 2018-07-20 Tom Tromey <tom@tromey.com>
3387 * buildsym.h (EXTERN): Don't define or undef.
3388 * buildsym.c (EXTERN): Don't define.
3390 2018-07-20 Tom Tromey <tom@tromey.com>
3392 * buildsym.c: Remove TODO comment.
3394 2018-07-20 Tom Tromey <tom@tromey.com>
3396 * coffread.c (coff_symtab_read): Update.
3397 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3398 (xcoff_new_init): Update.
3399 * mipsread.c (mipscoff_new_init): Update.
3400 * mdebugread.c (mdebug_build_psymtabs): Update.
3401 * elfread.c (elf_new_init): Update.
3402 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3404 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3405 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3406 (stabsect_build_psymtabs): Update.
3407 * buildsym.h (buildsym_init): Don't declare.
3408 * buildsym.c: Update comment.
3409 (prepare_for_building): Remove.
3410 (start_symtab, restart_symtab): Update.
3411 (reset_symtab_globals): Update comment.
3412 (buildsym_init): Remove.
3414 2018-07-20 Tom Tromey <tom@tromey.com>
3416 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3417 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3418 (read_enum_type, common_block_start, common_block_end)
3419 (cleanup_undefined_types_1, finish_global_stabs): Update.
3420 * mdebugread.c (psymtab_to_symtab_1): Update.
3421 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3422 (read_lexical_block_scope, new_symbol): Update.
3423 * dbxread.c (process_one_symbol): Update.
3424 * coffread.c (coff_symtab_read, process_coff_symbol)
3425 (coff_read_enum_type): Update.
3426 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3428 (get_local_symbols, get_file_symbols, get_global_symbols): New
3430 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3432 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3433 (~scoped_free_pendings): Update.
3434 (finish_block, prepare_for_building, reset_symtab_globals)
3435 (end_symtab_get_static_block, end_symtab_with_blockvector)
3436 (augment_type_symtab, push_context): Update.
3437 (get_local_symbols, get_file_symbols, get_global_symbols): New
3439 (buildsym_init): Update.
3441 2018-07-20 Tom Tromey <tom@tromey.com>
3443 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3444 (process_full_type_unit): Likewise.
3445 (dwarf2_start_symtab): Set list_in_scope.
3447 2018-07-20 Tom Tromey <tom@tromey.com>
3449 * dwarf2read.c (process_psymtab_comp_unit_reader)
3450 (build_type_psymtabs_reader): Do not set list_in_scope.
3452 2018-07-20 Tom Tromey <tom@tromey.com>
3454 * buildsym.c (free_pendings): Remove.
3455 (add_symbol_to_list, scoped_free_pendings)
3456 (finish_block_internal, buildsym_init): Update.
3458 2018-07-20 Tom Tromey <tom@tromey.com>
3460 * xcoffread.c (read_xcoff_symtab): Update.
3461 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3463 * dbxread.c (process_one_symbol): Update.
3464 * coffread.c (coff_symtab_read): Update.
3465 * buildsym.h (finish_block): Update.
3466 * buildsym.c (finish_block): Remove "listhead" argument.
3467 (end_symtab_get_static_block): Update.
3469 2018-07-20 Tom Tromey <tom@tromey.com>
3471 * buildsym.h (class scoped_free_pendings): Remove constructor.
3472 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3474 <m_pending_block_obstack, m_pending_blocks>: New members.
3475 (pending_block_obstack, pending_blocks): Remove.
3476 (scoped_free_pendings::scoped_free_pendings): Default.
3477 (~scoped_free_pendings): Update.
3478 (free_pending_blocks): Remove.
3479 (finish_block_internal, record_pending_block, make_blockvector)
3480 (end_symtab_get_static_block, augment_type_symtab, push_context)
3481 (buildsym_init): Update.
3483 2018-07-20 Tom Tromey <tom@tromey.com>
3485 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3486 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3488 (pending_addrmap, pending_addrmap_obstack)
3489 (pending_addrmap_interesting): Remove.
3490 (scoped_free_pendings, record_block_range, make_blockvector)
3491 (prepare_for_building, reset_symtab_globals, buildsym_init):
3494 2018-07-20 Tom Tromey <tom@tromey.com>
3496 * xcoffread.c (process_linenos): Update.
3497 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3498 * mdebugread.c (psymtab_to_symtab_1): Update.
3499 * dwarf2read.c (setup_type_unit_groups)
3500 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3501 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3502 * dbxread.c (process_one_symbol): Update.
3503 * coffread.c (coff_symtab_read, enter_linenos)
3504 (process_coff_symbol): Update.
3505 * buildsym.h (current_subfile): Don't declare.
3506 (get_current_subfile): Declare.
3507 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3509 (start_subfile, free_buildsym_compunit, push_subfile)
3510 (prepare_for_building, start_symtab): Update.
3511 (get_current_subfile): New function.
3513 2018-07-20 Tom Tromey <tom@tromey.com>
3515 * coffread.c (coff_symtab_read): Update.
3516 * xcoffread.c (read_xcoff_symtab): Update.
3517 * dwarf2read.c (new_symbol): Update.
3518 (read_func_scope, read_lexical_block_scope): Update.
3519 * dbxread.c (process_one_symbol): Update.
3520 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3521 (outermost_context_p): Remove macro.
3522 (outermost_context_p, get_current_context_stack)
3523 (get_context_stack_depth): Declare.
3524 (pop_context): Return struct context_stack.
3525 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3527 (context_stack_size): Remove.
3528 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3529 (prepare_for_building, end_symtab_get_static_block)
3530 (augment_type_symtab, push_context): Update.
3531 (pop_context): Return struct context_stack.
3532 (outermost_context_p, get_current_context_stack)
3533 (get_context_stack_depth): New functions.
3534 (buildsym_init): Update.
3536 2018-07-20 Tom Tromey <tom@tromey.com>
3538 * rust-exp.y: Now a pure parser. Update all rules.
3539 (%union): Move earlier.
3540 (current_parser, work_obstack): Remove globals.
3541 (rust_parser, ~rust_parser): Update.
3542 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3543 lex_character, lex_number, lex_string, lex_identifier,
3544 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3545 convert_name, convert_params_to_expression,
3546 convert_ast_to_expression, ast_basic_type, ast_operation,
3547 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3548 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3549 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3550 ast_array_type, ast_slice_type, ast_reference_type,
3551 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3552 (rust_parse): Update.
3553 (rustyyerror, rustyylex): Add parser parameter.
3554 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3555 (rust_lex_stringish_test, rust_lex_test_sequence)
3556 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3557 (rust_lex_test_push_back, rust_lex_tests): Update.
3559 2018-07-19 Pedro Alves <palves@redhat.com>
3561 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3562 gdb::unique_xmalloc_ptr.
3563 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3564 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3565 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3566 copy-initialization.
3567 * guile/scm-pretty-print.c (ppscm_print_children): Use
3568 gdb::unique_xmalloc_ptr instead of cleanups.
3569 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3570 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3571 gdb::unique_xmalloc_ptr.
3572 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3573 Adjust to use gdb::unique_xmalloc_ptr.
3574 * guile/scm-utils.c (extract_arg): Adjust.
3575 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3576 gdb::unique_xmalloc_ptr instead of a cleanup.
3578 2018-07-19 Tom Tromey <tom@tromey.com>
3580 * utils.c (do_value_free_to_mark)
3581 (make_cleanup_value_free_to_mark): Remove.
3582 * utils.h (make_cleanup_value_free_to_mark): Remove.
3584 2018-07-19 Pedro Alves <palves@redhat.com>
3586 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3587 forwarding reference.
3589 2018-07-18 Pedro Alves <palves@redhat.com>
3591 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3592 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3595 2018-07-18 Pedro Alves <palves@redhat.com>
3597 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3599 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3601 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3602 directly instead of a cleanup.
3603 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3604 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3605 (vlscm_binop_gdbthrow): New, factored out from ...
3606 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3607 (vlscm_rich_compare): Use gdbscm_wrap.
3608 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3609 instead of a cleanup.
3610 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3612 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3613 Use xfree directly instead of a cleanup.
3614 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3615 Adjust to use gdbscm_wrap and scoped_value_mark.
3616 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3617 (gdbscm_value_address, gdbscm_value_dereference)
3618 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3620 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3621 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3623 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3624 gdbscm_wrap and scoped_value_mark.
3625 (gdbscm_value_to_string): Use xfree directly instead of a
3626 cleanup. Move 'buffer' unique_ptr to TRY scope.
3627 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3628 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3630 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3631 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3633 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3636 2018-07-18 Tom de Vries <tdevries@suse.de>
3638 * findvar.c (default_read_var_value): Also resolve dynamic type for
3639 LOC_OPTIMIZED_OUT vars.
3641 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3643 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3646 2018-07-17 Tom Tromey <tom@tromey.com>
3648 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3649 (compute_enum_list, pascm_set_param_value_x)
3650 (gdbscm_parameter_value): Update.
3651 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3652 (gdbscm_scm_to_host_string): Update.
3653 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3655 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3656 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3657 * guile/scm-string.c (gdbscm_scm_to_string): Return
3659 (gdbscm_scm_to_host_string): Likewise.
3661 2018-07-17 Tom Tromey <tom@tromey.com>
3663 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3664 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3665 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3666 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3669 2018-07-17 Tom Tromey <tom@tromey.com>
3671 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3672 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3674 * guile/scm-cmd.c (cmdscm_function): Update.
3675 * guile/scm-pretty-print.c
3676 (ppscm_print_exception_unless_memory_error): Update.
3677 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3678 Return unique_xmalloc_ptr.
3680 2018-07-17 Tom Tromey <tom@tromey.com>
3682 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3685 2018-07-17 Jim Wilson <jimw@sifive.com>
3687 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3688 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3689 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3690 unecessary braces after EF_RISCV_RVC test. Delete call to
3691 set_gdbarch_decr_pc_after_break.
3693 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3694 RISCV_LAST_FP_REGNUM + 1.
3695 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3697 2018-07-17 Tom Tromey <tom@tromey.com>
3699 * configure.ac: Remove --disable-gdbcli.
3700 * configure: Rebuild.
3701 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3702 (SUBDIR_CLI_CFLAGS): Remove.
3703 (SFILES): Use SUBDIR_CLI_SRCS.
3704 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3706 2018-07-17 Tom Tromey <tom@tromey.com>
3709 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3711 2018-07-16 Jim Wilson <jimw@sifive.com>
3713 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3715 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3717 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3719 (libunwind_frame_sniffer): Likewise.
3720 (libunwind_frame_prev_register): Likewise.
3721 (libunwind_sigtramp_frame_sniffer): Likewise.
3722 * ia64-tdep.c (ia64_access_reg): Likewise.
3723 (ia64_access_rse_reg): Likewise.
3724 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3725 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3727 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3729 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3731 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3733 * remote-sim.c (gdbsim_target::close,
3734 gdbsim_target::mourn_inferior): Remove unused variables.
3736 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3738 * ia64-tdep.c (ktab_buf): New global.
3739 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3740 (get_kernel_table): Adjust.
3742 2018-07-16 Tom Tromey <tom@tromey.com>
3744 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3745 * dwarf2read.c (using_directives, new_symbol): Use
3746 outermost_context_p.
3747 * dbxread.c (process_one_symbol): Use outermost_context_p.
3748 * coffread.c (coff_symtab_read): Use outermost_context_p.
3750 2018-07-16 Tom Tromey <tom@tromey.com>
3752 * dwarf2read.c (using_directives, read_func_scope)
3753 (read_lexical_block_scope): Update.
3754 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3755 * buildsym.h (local_using_directives, global_using_directives):
3757 (get_local_using_directives, set_local_using_directives)
3758 (get_global_using_directives): Declare.
3759 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3760 m_global_using_directives>: New members.
3761 (finish_block_internal, prepare_for_building)
3762 (reset_symtab_globals, end_symtab_get_static_block)
3763 (push_context): Update.
3764 (get_local_using_directives, set_local_using_directives)
3765 (get_global_using_directives): New functions.
3766 (buildsym_init): Update.
3768 2018-07-16 Tom Tromey <tom@tromey.com>
3770 * xcoffread.c (xcoff_initial_scan): Don't call
3771 free_pending_blocks.
3772 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3773 * buildsym.h (class scoped_free_pendings): Add constructor.
3774 (free_pending_blocks): Don't declare.
3775 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3776 (free_pending_blocks): Now static.
3778 2018-07-16 Tom Tromey <tom@tromey.com>
3780 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3781 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3783 (struct subfile_stack): Remove.
3784 (subfile_stack): Remove.
3785 (push_subfile, pop_subfile, buildsym_init): Update.
3787 2018-07-16 Tom Tromey <tom@tromey.com>
3789 * buildsym.c (push_subfile): Use gdb_assert.
3790 (pop_subfile): Use gdb_assert.
3792 2018-07-16 Tom Tromey <tom@tromey.com>
3794 * buildsym.h (merge_symbol_lists): Remove.
3795 * buildsym.c (merge_symbol_lists): Remove.
3797 2018-07-16 Tom Tromey <tom@tromey.com>
3799 * stabsread.c (scan_file_globals): Update comment.
3800 * stabsread.h (scan_file_globals): Move from buildsym.h.
3801 * buildsym.h (scan_file_globals): Move to stabsread.h.
3803 2018-07-16 Tom Tromey <tom@tromey.com>
3805 * xcoffread.c (xcoff_new_init): Update.
3806 * mipsread.c (mipscoff_new_init): Update.
3807 * mdebugread.c (mdebug_build_psymtabs): Update.
3808 * elfread.c (elf_new_init): Update.
3809 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3810 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3811 * buildsym.h (buildsym_new_init): Don't declare.
3812 * buildsym.c (buildsym_new_init): Remove.
3814 2018-07-16 Tom Tromey <tom@tromey.com>
3816 * stabsread.h (within_function): Move from buildsym.h.
3817 * stabsread.c (start_stabs): Clear within_function.
3818 * coffread.c (coff_start_symtab): Clear within_function.
3819 * buildsym.h (within_function): Move to stabsread.h.
3820 * buildsym.c (prepare_for_building): Update.
3822 2018-07-16 Tom Tromey <tom@tromey.com>
3824 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3825 * dwarf2read.c (dwarf2_start_symtab): Don't set
3826 processing_gcc_compilation.
3827 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3829 2018-07-16 Tom Tromey <tom@tromey.com>
3831 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3832 (next_symbol_text_func): Move from buildsym.h.
3833 * stabsread.c (hashname): Move from buildsym.c.
3834 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3835 (next_symbol_text_func, hashname): Move to stabsread.h.
3836 * buildsym.c: Don't include bcache.h
3837 (hashname): Move to stasbread.c.
3839 2018-07-16 Tom Tromey <tom@tromey.com>
3841 * buildsym.h (context_stack_size): Don't declare.
3842 * buildsym.c (context_stack_size): New global.
3844 2018-07-16 Tom Tromey <tom@tromey.com>
3846 * dbxread.c (processing_acc_compilation): New global.
3847 * buildsym.h (processing_acc_compilation): Don't declare.
3849 2018-07-16 Tom Tromey <tom@tromey.com>
3851 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3852 * dbxread.c (read_ofile_symtab): Update.
3853 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3854 * buildsym.h (last_source_start_addr): Remove.
3855 (set_last_source_start_addr, get_last_source_start_addr):
3857 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3859 (struct buildsym_compunit) <m_last_source_start_addr>: New
3861 (prepare_for_building): Remove start_addr parameter.
3862 (start_symtab, restart_symtab, end_symtab_get_static_block)
3863 (end_symtab_with_blockvector): Update.
3864 (set_last_source_start_addr, get_last_source_start_addr): New
3867 2018-07-16 Tom Tromey <tom@tromey.com>
3869 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3871 (have_line_numbers): Remove.
3872 (record_line, prepare_for_building, end_symtab_get_static_block)
3873 (augment_type_symtab): Update.
3875 2018-07-16 Tom Tromey <tom@tromey.com>
3877 * buildsym.c (~buildsym_compunit): Free the macro table.
3878 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3880 <m_pending_macros>: New member.
3881 (pending_macros): Remove.
3882 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3883 (reset_symtab_globals, end_symtab_get_static_block)
3884 (end_symtab_with_blockvector, augment_type_symtab)
3885 (buildsym_init): Update.
3887 2018-07-16 Tom Tromey <tom@tromey.com>
3889 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3891 (buildsym_compunit::set_last_source_file): New method.
3892 <m_last_source_file>: New member.
3893 (prepare_for_building): Remove "name" parameter.
3894 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3895 (last_source_file): Remove.
3896 (set_last_source_file, get_last_source_file): Update.
3898 2018-07-16 Tom Tromey <tom@tromey.com>
3900 * buildsym.c (prepare_for_building): Add assert.
3902 2018-07-16 Tom Tromey <tom@tromey.com>
3904 * buildsym.c (~buildsym_compunit): Update.
3905 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3906 (start_subfile, patch_subfile_names)
3907 (end_symtab_with_blockvector): Update.
3909 2018-07-16 Tom Tromey <tom@tromey.com>
3911 * buildsym.c (struct buildsym_compunit): Add constructor,
3912 destructor, initializers.
3913 (start_buildsym_compunit): Remove.
3914 (free_buildsym_compunit): Use "delete".
3915 (start_symtab, restart_symtab): Use "new".
3917 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3919 * symfile.c (set_objfile_default_section_offset): Remove struct
3922 2018-07-14 Stafford Horne <shorne@gmail.com>
3924 * (Responsible Maintainers): Add myself as or1k maintainer.
3926 2018-07-13 Tom Tromey <tom@tromey.com>
3928 * symfile.c (set_objfile_default_section_offset): Use extra braces
3931 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3933 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3936 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3938 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3939 unittests/cli-utils-selftests.c
3940 * unittests/cli-utils-selftests.c: New file.
3942 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3944 * NEWS: Mention new commands. Mention change to 'thread apply'.
3946 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3948 * thread.c (thr_try_catch_cmd): New function.
3949 (thread_apply_all_command): Handle qcs flags.
3950 (thread_apply_command): Handle qcs flags.
3951 (taas_command): New function.
3952 (tfaas_command): New function.
3953 (_initialize_thread): Update to setup the new commands 'taas
3954 and 'tfaas'. Change doc string for 'thread apply'.
3956 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3958 * stack.c: (trailing_outermost_frame): New function, mostly
3959 extracted from backtrace_command_1.
3960 (leading_innermost_frame): New function.
3961 (backtrace_command_1): Update to call trailing_outermost_frame.
3962 (frame_apply_command_count): New function.
3963 (frame_apply_level_command): New function.
3964 (frame_apply_all_command): New function.
3965 (frame_apply_command): New function.
3966 (faas_command): New function.
3967 (frame_cmd_list): New variable.
3968 (_initialize_stack): Update to setup the new commands 'frame apply'
3971 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3973 * cli-utils.c (number_or_range_parser::get_number): Only handle
3974 numbers or convenience var as numbers.
3975 (parse_flags): New function.
3976 (parse_flags_qcs): New function.
3977 (number_or_range_parser::finished): Ensure parsing end is detected
3978 before end of string.
3979 * cli-utils.h (parse_flags): New function.
3980 (parse_flags_qcs): New function.
3981 (number_or_range_parser): Remove m_finished bool.
3982 (number_or_range_parser::skip_range): Set m_in_range to false.
3984 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
3986 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
3989 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
3990 Jan Kratochvil <jan.kratochvil@redhat.com>
3991 Paul Fertser <fercerpav@gmail.com>
3992 Tsutomu Seki <sekiriki@gmail.com>
3993 Pedro Alves <palves@redhat.com>
3995 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3996 'unittests/parse-connection-spec-selftests.c'.
3997 (COMMON_SFILES): Add 'common/netstuff.c'.
3998 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
3999 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4000 * common/netstuff.c: New file.
4001 * common/netstuff.h: New file.
4002 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4003 (wait_for_connect): Update comment. New parameter
4004 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4005 Use 'sock' directly instead of 'scb->fd'.
4006 (try_connect): New function, with code from 'net_open'.
4007 (net_open): Rewrite main loop to deal with multiple
4008 sockets/addresses. Handle IPv6-style hostnames; implement
4009 support for IPv6 connections.
4010 * unittests/parse-connection-spec-selftests.c: New file.
4012 2018-07-11 Pedro Alves <palves@redhat.com>
4015 * remote.c (remote_target::remote_detach_pid): Call
4016 set_current_process.
4018 2018-07-11 Pedro Alves <palves@redhat.com>
4020 * h8300-tdep.c (h8300_gdbarch_init): Remove
4021 set_gdbarch_ecoff_reg_to_regnum calls.
4023 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4026 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4027 offsets/sizes for static members of a class/struct.
4029 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4031 * target-descriptions.c (tdesc_register_bitsize): Rename.
4032 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4033 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4034 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4036 2018-07-10 Tom Tromey <tom@tromey.com>
4038 * breakpoint.c (moribund_locations): Now static and a
4040 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4041 (build_bpstat_chain, update_global_location_list)
4042 (breakpoint_retire_moribund): Update.
4043 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4046 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4048 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4049 (riscv_register_reggroup_p): Use new function, remove unneeded
4051 (riscv_push_dummy_call): Extend assert to compare against xlen or
4052 flen based on register type.
4054 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4056 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4058 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4060 * remote.c (show_hardware_watchpoint_limit): New function.
4061 (show_hardware_watchpoint_length_limit): New function.
4062 (show_hardware_breakpoint_limit): New function.
4063 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4064 where appropriate, update help text.
4066 2018-07-09 Tom Tromey <tom@tromey.com>
4068 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4069 (CLIBS): Don't mention NAT_CLIBS.
4071 2018-07-09 Tom Tromey <tom@tromey.com>
4073 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4074 (LIBGDB_OBS, clean mostlyclean): Update.
4075 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4077 2018-07-09 Tom Tromey <tom@tromey.com>
4079 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4080 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4081 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4083 2018-07-09 Tom Tromey <tom@tromey.com>
4085 * Makefile.in (ALLDEPFILES): Remove exec.c.
4086 (COMMON_OBS): Remove exec.o.
4087 (COMMON_SFILES): Add exec.c.
4089 2018-07-09 Tom Tromey <tom@tromey.com>
4091 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4093 2018-07-09 Tom Tromey <tom@tromey.com>
4095 * Makefile.in (clean mostlyclean): Remove stamp-version.
4096 (version.c): Depend on stamp-version.
4097 (stamp-version): New rule, from version.c rule.
4099 2018-07-09 Tom Tromey <tom@tromey.com>
4101 * Makefile.in (init.c): Depend on stamp-init.
4102 (stamp-init): New rule, from init.c rule.
4103 (clean mostlyclean): Remove stamp-init.
4105 2018-07-09 Tom Tromey <tom@tromey.com>
4107 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4108 SUBDIR_GCC_COMPILE_SRCS.
4110 2018-07-09 Tom Tromey <tom@tromey.com>
4112 * Makefile.in (init.c): Remove some unused sed rules.
4114 2018-07-09 Tom Tromey <tom@tromey.com>
4116 * Makefile.in (TSOBS): Remove.
4117 (INIT_FILES): Update.
4118 (LIBGDB_OBS): Update.
4119 (COMMON_SFILES): Add inflow.c.
4120 (SFILES): Remove inflow.c.
4122 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4124 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4126 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4128 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4129 get_saveloc_name, is_signal_frame_name, step_name,
4130 init_remote_name, create_addr_space_name,
4131 destroy_addr_space_name, search_unwind_table_name,
4132 find_dyn_list_name): Constify.
4134 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4136 * darwin-nat.c (darwin_pthread_kill): New function.
4137 (darwin_resume_thread): Use darwin_pthread_kill.
4139 2018-07-05 Tom de Vries <tdevries@suse.de>
4141 * macroexp.c (macro_buffer) <operator=>: New member function.
4143 2018-07-04 Tom Tromey <tom@tromey.com>
4145 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4147 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4149 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4150 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4151 * maint.c: Likewise.
4154 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4156 * NEWS: Create a new section for the next release branch.
4157 Rename the section of the current branch, now that it has
4160 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4162 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4163 * version.in: Bump version to 8.2.50.DATE-git.
4165 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4166 Pedro Alves <palves@redhat.com>
4168 * linux-nat.c (linux_init_ptrace): Rename to ...
4169 (linux_init_ptrace_procfs): ... this. Call
4170 linux_proc_init_warnings.
4171 (linux_nat_target::post_attach)
4172 (linux_nat_target::post_startup_inferior): Adjust.
4173 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4174 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4176 2018-07-04 Tom de Vries <tdevries@suse.de>
4178 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4180 (read_comp_unit_head): ... here.
4182 2018-07-03 Tom Tromey <tom@tromey.com>
4184 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4185 (stop_tracing, tstatus_command)
4186 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4187 (print_one_static_tracepoint_marker): Update.
4188 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4190 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4192 (all_tracepoints, static_tracepoints_here): Return std::vector.
4194 2018-07-03 Tom Tromey <tom@tromey.com>
4196 * common/ptid.c (ptid_equal): Remove.
4197 * common/ptid.h (ptid_equal): Don't declare.
4198 * ada-tasks.c: Update.
4199 * breakpoint.c: Update.
4200 * common/agent.c: Update.
4201 * corelow.c: Update.
4202 * darwin-nat-info.c: Update.
4203 * darwin-nat.c: Update.
4205 * dtrace-probe.c: Update.
4206 * dummy-frame.c: Update.
4207 * fbsd-nat.c: Update.
4209 * gdbthread.h: Update.
4210 * gnu-nat.c: Update.
4211 * go32-nat.c: Update.
4212 * inf-loop.c: Update.
4213 * inf-ptrace.c: Update.
4214 * infcall.c: Update.
4218 * linux-fork.c: Update.
4219 * linux-nat.c: Update.
4220 * linux-thread-db.c: Update.
4221 * mi/mi-cmd-var.c: Update.
4222 * mi/mi-interp.c: Update.
4223 * mi/mi-main.c: Update.
4224 * nto-procfs.c: Update.
4225 * ppc-linux-tdep.c: Update.
4227 * python/py-inferior.c: Update.
4228 * python/py-record-btrace.c: Update.
4229 * python/py-record.c: Update.
4230 * ravenscar-thread.c: Update.
4231 * regcache.c: Update.
4232 * remote-sim.c: Update.
4234 * sol-thread.c: Update.
4237 * tui/tui-stack.c: Update.
4239 * windows-nat.c: Update.
4240 * windows-tdep.c: Update.
4242 2018-07-03 Tom Tromey <tom@tromey.com>
4244 * common/ptid.c (ptid_match): Remove.
4245 * common/ptid.h (ptid_match): Don't declare.
4246 * fbsd-nat.c: Update.
4249 * linux-nat.c: Update.
4250 * record-btrace.c: Update.
4251 * regcache.c: Update.
4254 2018-07-03 Tom Tromey <tom@tromey.com>
4256 * common/ptid.c (ptid_tid_p): Remove.
4257 * common/ptid.h (ptid_tid_p): Don't declare.
4258 * sol-thread.c: Update.
4260 2018-07-03 Tom Tromey <tom@tromey.com>
4262 * common/ptid.c (ptid_lwp_p): Remove.
4263 * common/ptid.h (ptid_lwp_p): Don't declare.
4264 * fbsd-nat.c: Update.
4265 * linux-nat.c: Update.
4266 * nat/linux-procfs.c: Update.
4267 * nat/x86-linux-dregs.c: Update.
4268 * sol-thread.c: Update.
4270 2018-07-03 Tom Tromey <tom@tromey.com>
4272 * common/ptid.c (ptid_is_pid): Remove.
4273 * common/ptid.h (ptid_is_pid): Don't declare.
4275 * linux-nat.c: Update.
4276 * mi/mi-interp.c: Update.
4280 2018-07-03 Tom Tromey <tom@tromey.com>
4282 * common/ptid.c (ptid_get_tid): Remove.
4283 * common/ptid.h (ptid_get_tid): Don't declare.
4284 * ada-tasks.c: Update.
4285 * aix-thread.c: Update.
4286 * bsd-uthread.c: Update.
4287 * darwin-nat.c: Update.
4288 * fbsd-nat.c: Update.
4289 * i386-darwin-nat.c: Update.
4291 * linux-tdep.c: Update.
4292 * nto-procfs.c: Update.
4293 * ppc-ravenscar-thread.c: Update.
4294 * python/py-infthread.c: Update.
4295 * ravenscar-thread.c: Update.
4296 * sol-thread.c: Update.
4297 * sparc-ravenscar-thread.c: Update.
4298 * windows-nat.c: Update.
4300 2018-07-03 Tom Tromey <tom@tromey.com>
4302 * common/ptid.c (ptid_get_lwp): Remove.
4303 * common/ptid.h (ptid_get_lwp): Don't declare.
4304 * aarch64-linux-nat.c: Update.
4305 * ada-tasks.c: Update.
4306 * aix-thread.c: Update.
4307 * amd64-linux-nat.c: Update.
4308 * arm-linux-nat.c: Update.
4309 * corelow.c: Update.
4310 * fbsd-nat.c: Update.
4311 * fbsd-tdep.c: Update.
4312 * gnu-nat.c: Update.
4313 * i386-cygwin-tdep.c: Update.
4314 * i386-gnu-nat.c: Update.
4315 * i386-linux-nat.c: Update.
4316 * ia64-linux-nat.c: Update.
4317 * inf-ptrace.c: Update.
4319 * linux-fork.c: Update.
4320 * linux-nat.c: Update.
4321 * linux-tdep.c: Update.
4322 * linux-thread-db.c: Update.
4323 * mips-linux-nat.c: Update.
4324 * nat/aarch64-linux-hw-point.c: Update.
4325 * nat/aarch64-linux.c: Update.
4326 * nat/linux-btrace.c: Update.
4327 * nat/linux-osdata.c: Update.
4328 * nat/linux-procfs.c: Update.
4329 * nat/x86-linux-dregs.c: Update.
4330 * obsd-nat.c: Update.
4331 * ppc-fbsd-nat.c: Update.
4332 * ppc-linux-nat.c: Update.
4334 * python/py-infthread.c: Update.
4335 * ravenscar-thread.c: Update.
4337 * s390-linux-nat.c: Update.
4338 * sol-thread.c: Update.
4339 * sol2-tdep.c: Update.
4340 * spu-linux-nat.c: Update.
4341 * x86-linux-nat.c: Update.
4342 * xtensa-linux-nat.c: Update.
4344 2018-07-03 Tom Tromey <tom@tromey.com>
4346 * common/ptid.c (ptid_get_pid): Remove.
4347 * common/ptid.h (ptid_get_pid): Don't declare.
4348 * aarch64-linux-nat.c: Update.
4349 * ada-lang.c: Update.
4350 * aix-thread.c: Update.
4351 * alpha-bsd-nat.c: Update.
4352 * amd64-fbsd-nat.c: Update.
4353 * amd64-linux-nat.c: Update.
4354 * arm-linux-nat.c: Update.
4355 * arm-nbsd-nat.c: Update.
4357 * break-catch-syscall.c: Update.
4358 * breakpoint.c: Update.
4359 * bsd-uthread.c: Update.
4360 * corelow.c: Update.
4362 * darwin-nat.c: Update.
4363 * fbsd-nat.c: Update.
4364 * fbsd-tdep.c: Update.
4366 * gnu-nat.c: Update.
4367 * hppa-nbsd-nat.c: Update.
4368 * hppa-obsd-nat.c: Update.
4369 * i386-fbsd-nat.c: Update.
4370 * ia64-linux-nat.c: Update.
4371 * inf-ptrace.c: Update.
4373 * inferior.c: Update.
4374 * inferior.h: Update.
4377 * linux-fork.c: Update.
4378 * linux-nat.c: Update.
4379 * linux-tdep.c: Update.
4380 * linux-thread-db.c: Update.
4381 * m68k-bsd-nat.c: Update.
4382 * mi/mi-interp.c: Update.
4383 * mi/mi-main.c: Update.
4384 * mips-linux-nat.c: Update.
4385 * mips-nbsd-nat.c: Update.
4386 * mips64-obsd-nat.c: Update.
4387 * nat/aarch64-linux-hw-point.c: Update.
4388 * nat/aarch64-linux.c: Update.
4389 * nat/linux-btrace.c: Update.
4390 * nat/linux-osdata.c: Update.
4391 * nat/linux-procfs.c: Update.
4392 * nat/x86-linux-dregs.c: Update.
4393 * nto-procfs.c: Update.
4394 * obsd-nat.c: Update.
4395 * ppc-linux-nat.c: Update.
4396 * ppc-nbsd-nat.c: Update.
4397 * ppc-obsd-nat.c: Update.
4398 * proc-service.c: Update.
4400 * python/py-inferior.c: Update.
4401 * python/py-infthread.c: Update.
4402 * ravenscar-thread.c: Update.
4404 * remote-sim.c: Update.
4406 * rs6000-nat.c: Update.
4407 * s390-linux-nat.c: Update.
4408 * sh-nbsd-nat.c: Update.
4409 * sol-thread.c: Update.
4410 * sparc-nat.c: Update.
4411 * sparc64-tdep.c: Update.
4412 * spu-linux-nat.c: Update.
4413 * spu-tdep.c: Update.
4414 * target-debug.h: Update.
4417 * tid-parse.c: Update.
4418 * tracefile-tfile.c: Update.
4419 * vax-bsd-nat.c: Update.
4420 * windows-nat.c: Update.
4421 * x86-linux-nat.c: Update.
4422 * x86-nat.c: Update.
4424 2018-07-03 Tom Tromey <tom@tromey.com>
4426 * common/ptid.c (pid_to_ptid): Remove.
4427 * common/ptid.h (pid_to_ptid): Don't declare.
4428 * aix-thread.c: Update.
4429 * arm-linux-nat.c: Update.
4430 * common/ptid.c: Update.
4431 * common/ptid.h: Update.
4432 * corelow.c: Update.
4434 * darwin-nat.c: Update.
4435 * fbsd-nat.c: Update.
4436 * fork-child.c: Update.
4437 * gnu-nat.c: Update.
4438 * go32-nat.c: Update.
4439 * inf-ptrace.c: Update.
4441 * inferior.c: Update.
4443 * linux-fork.c: Update.
4444 * linux-nat.c: Update.
4445 * nat/aarch64-linux-hw-point.c: Update.
4446 * nat/fork-inferior.c: Update.
4447 * nat/x86-linux-dregs.c: Update.
4448 * nto-procfs.c: Update.
4449 * obsd-nat.c: Update.
4451 * progspace.c: Update.
4453 * rs6000-nat.c: Update.
4454 * s390-linux-nat.c: Update.
4455 * sol-thread.c: Update.
4456 * spu-linux-nat.c: Update.
4459 * tracefile-tfile.c: Update.
4460 * windows-nat.c: Update.
4462 2018-07-03 Tom Tromey <tom@tromey.com>
4464 * common/ptid.h (ptid_build): Don't declare.
4465 * common/ptid.c (ptid_build): Remove.
4466 * aix-thread.c: Update.
4467 * bsd-kvm.c: Update.
4468 * bsd-uthread.c: Update.
4469 * common/agent.c: Update.
4470 * common/ptid.c: Update.
4471 * common/ptid.h: Update.
4472 * corelow.c: Update.
4473 * darwin-nat.c: Update.
4474 * fbsd-nat.c: Update.
4475 * gnu-nat.c: Update.
4476 * linux-fork.c: Update.
4477 * linux-nat.c: Update.
4478 * linux-thread-db.c: Update.
4479 * nat/linux-osdata.c: Update.
4480 * nat/linux-procfs.c: Update.
4481 * nto-procfs.c: Update.
4482 * obsd-nat.c: Update.
4483 * proc-service.c: Update.
4485 * ravenscar-thread.c: Update.
4486 * remote-sim.c: Update.
4488 * sol-thread.c: Update.
4490 * windows-nat.c: Update.
4492 2018-07-03 Tom Tromey <tom@tromey.com>
4494 * infrun.c (follow_exec): Use exit_inferior_silent.
4495 * inferior.c (exit_inferior_num_silent): Remove.
4496 * inferior.h (exit_inferior_num_silent): Don't declare.
4498 2018-07-03 Tom Tromey <tom@tromey.com>
4501 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4502 inferior_ptid on error.
4504 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4505 Simon Marchi <simon.marchi@polymtl.ca>
4508 * disasm.h (gdb_disassembler): Add
4509 `m_disassembler_options_holder'. member
4510 * disasm.c (get_all_disassembler_options): New function.
4511 (gdb_disassembler::gdb_disassembler): Use it.
4512 (gdb_buffered_insn_length_init_dis): Likewise.
4513 (gdb_buffered_insn_length): Adjust accordingly.
4514 (set_disassembler_options): Handle options with arguments.
4515 (show_disassembler_options_sfunc): Likewise. Add a leading new
4516 line if showing options with descriptions.
4517 (disassembler_options_completer): Adapt to using the
4518 `disasm_options_and_args_t' structure.
4519 * mips-tdep.c (mips_disassembler_options): New variable.
4520 (mips_disassembler_options_o32): Likewise.
4521 (mips_disassembler_options_n32): Likewise.
4522 (mips_disassembler_options_n64): Likewise.
4523 (gdb_print_insn_mips): Don't set `disassembler_options'.
4524 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4526 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4527 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4528 `gdbarch_disassembler_options_implicit' and
4529 `gdbarch_valid_disassembler_options'.
4530 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4531 `disasm_options_and_args_t' structure.
4532 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4534 (valid_disassembler_options): Switch from `disasm_options_t' to
4535 the `disasm_options_and_args_t' structure.
4536 * NEWS: Document `set disassembler-options' support for the MIPS
4538 * gdbarch.h: Regenerate.
4539 * gdbarch.c: Regenerate.
4541 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4543 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4545 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4547 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4548 parameter in call to amd64_target_description.
4549 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4550 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4551 (amd64fbsd_init_abi): Likewise.
4552 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4553 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4554 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4555 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4557 2018-06-29 Pedro Alves <palves@redhat.com>
4559 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4560 "segments" parameter.
4561 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4562 (_initialize_amd64_tdep): Update call to
4563 amd64_create_target_description.
4564 (amd64_target_description): Add "segments" parameter. Adjust
4565 the implementation to use it.
4566 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4567 call to amd64_create_target_description.
4568 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4569 * gdb/arch/amd64.h (amd64_create_target_description): Add
4570 "segments" register.
4571 * gdb/arch/amd64.c (amd64_create_target_description): Add
4572 "segments" parameter. Call create_feature_i386_64bit_segments
4573 only if SEGMENTS is true.
4574 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4575 call to amd64_create_target_description.
4577 2018-06-29 Pedro Alves <palves@redhat.com>
4579 * thread.c (thread_target_id_str): New, factored out from ...
4580 (print_thread_info_1): ... here. Use it to compute the max
4581 "Target Id" column width.
4583 2018-06-29 Pedro Alves <palves@redhat.com>
4585 * remote.c (remote_target::extra_thread_info): Delete
4586 'display_buf' and 'n' locals. from the cache, regardless of
4587 packet mechanims is in use. Use cache for qThreadExtra and qP
4590 2018-06-29 Pedro Alves <palves@redhat.com>
4592 * blockframe.c (find_pc_sect_containing_function): New function.
4593 * breakpoint.c (print_breakpoint_location): Don't call
4594 find_pc_sect_function.
4595 * linespec.c (create_sals_line_offset): Record the location's
4597 * linespec.c (convert_address_location_to_sals): Fill in sal's
4598 symbol with find_pc_sect_containing_function.
4599 * symtab.c (find_function_start_sal): Rename to ...
4600 (find_function_start_sal_1): ... this.
4601 (find_function_start_sal): Reimplement as wrapper around
4602 find_function_start_sal_1, and use
4603 find_pc_sect_containing_function to fill in the sal's symbol.
4604 (find_function_start_sal(symbol*, bool)): Adjust.
4605 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4607 (find_pc_sect_containing_function): Declare.
4609 2018-06-29 Pedro Alves <palves@redhat.com>
4611 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4612 true if the the location has no symbol.
4614 2018-06-28 Tom Tromey <tom@tromey.com>
4616 * NEWS: Mention --enable-codesign.
4617 * silent-rules.mk (ECHO_SIGN): New variable.
4618 * configure.ac: Add --enable-codesign.
4619 * configure: Rebuild.
4620 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4621 (gdb$(EXEEXT)): Optionally invoke codesign.
4623 2018-06-28 Pedro Alves <palves@redhat.com>
4625 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4627 (switch_to_thread_no_regs): Adjust comment.
4628 * infcmd.c (stop_pc): Delete.
4629 (post_create_inferior, info_program_command): Replace references
4630 to stop_pc with references to thread_info->suspend.stop_pc.
4631 * inferior.h (stop_pc): Delete declaration.
4632 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4633 (handle_inferior_event_1, handle_signal_stop)
4634 (process_event_stop_test, keep_going_stepped_thread)
4635 (handle_step_into_function, handle_step_into_function_backward)
4636 (print_stop_location): Replace references to stop_pc with
4637 references to thread_info->suspend.stop_pc.
4638 (struct infcall_suspend_state) <stop_pc>: Delete field.
4639 (save_infcall_suspend_state, restore_infcall_suspend_state):
4640 Remove references to inf_stat->stop_pc.
4641 * linux-fork.c (fork_load_infrun_state): Likewise.
4642 * record-btrace.c (record_btrace_set_replay): Likewise.
4643 * record-full.c (record_full_goto_entry): Likewise.
4644 * remote.c (print_one_stopped_thread): Likewise.
4645 * target.c (target_resume): Extend comment.
4646 * thread.c (set_executing_thread): New.
4647 (set_executing): Use it.
4648 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4649 Remove references to stop_pc.
4651 2018-06-28 Pedro Alves <palves@redhat.com>
4653 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4654 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4656 2018-06-28 Tom Tromey <tom@tromey.com>
4658 * coffread.c (coff_symfile_finish): Update.
4659 * xcoffread.c (xcoff_symfile_finish): Update.
4660 * elfread.c (elf_symfile_finish): Update.
4661 * symfile.h (dwarf2_free_objfile): Don't declare.
4662 * dwarf2read.c (_initialize_dwarf2_read): Use
4663 register_objfile_data_with_cleanup.
4664 (dwarf2_free_objfile): Now static. Change signature.
4666 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4668 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4669 option "-o" to add-symbol-file-load to add an offset to each
4670 section's load address.
4671 * symfile.c (set_objfile_default_section_offset): New function.
4673 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4675 * symfile.c (add_symbol_file_command): Make sure that sections
4676 with the same name are sorted in the same order.
4678 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4680 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4681 require the second argument. If omitted, load sections at the
4682 addresses specified in the file.
4684 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4686 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4687 (_initialize_symfile): Add option "-o" to symbol-file to add an
4688 offset to each section of the symbol file.
4690 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4692 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4694 2018-06-27 Tom Tromey <tom@tromey.com>
4696 * stack.c (_initialize_stack): Update "func" help text.
4698 2018-06-27 Tom Tromey <tom@tromey.com>
4700 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4702 (unwind_infopy_str, pyuw_create_unwind_info)
4703 (unwind_infopy_add_saved_register, pyuw_sniffer)
4704 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4706 (struct saved_reg): Add constructor.
4707 <value>: Now a gdbpy_ref<>.
4709 2018-06-27 Tom Tromey <tom@tromey.com>
4711 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4713 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4715 * gdb-gdb.py.in: Format using autopep8.
4717 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4719 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4720 (type_lookup_function): Recognize CORE_ADDR values.
4722 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4724 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4727 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4729 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4732 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4734 * gdb-gdb.py: Move to...
4735 * gdb-gdb.py.in: ... here.
4736 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4737 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4739 (distclean): Remove gdb-gdb.py when cleaning.
4740 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4741 * configure: Re-generate.
4743 2018-06-27 Pedro Alves <palves@redhat.com>
4745 * proc-service.c (get_ps_regcache): New.
4746 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4747 (ps_lsetfpregs): Use it.
4749 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4752 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4753 (dwarf_decode_lines_1): Adjust.
4755 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4757 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4759 <info_proc>: Likewise.
4761 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4763 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4764 to windows_fetch_one_register, and only handle the case of
4765 fetching one register. Move the code that reloads the context
4766 and iterates over all registers if R is negative to...
4767 (windows_nat_target::fetch_registers): ... here.
4768 (do_windows_store_inferior_registers): Rename to
4769 windows_store_one_register, and only handle the case of storing
4770 one register. Move the code that handles the case where r is
4772 (windows_nat_target::store_registers) ... here.
4774 2018-06-26 Tom Tromey <tom@tromey.com>
4777 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4778 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4780 (rust_internal_print_type): Add podata parameter.
4781 (rust_print_type): Update.
4783 2018-06-26 Tom Tromey <tom@tromey.com>
4785 * typeprint.h (struct print_offset_data) <update, finish,
4786 maybe_print_hole>: New methods.
4787 <indentation>: New constant.
4788 * typeprint.c (print_offset_data::indentation): Define.
4789 (print_offset_data::maybe_print_hole, print_offset_data::update)
4790 (print_offset_data::finish): Move from c-typeprint.c and rename.
4791 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4792 (print_spaces_filtered_with_print_options): Update.
4793 (c_print_type_union_field_offset, maybe_print_hole)
4794 (c_print_type_struct_field_offset): Move to typeprint.c and
4796 (c_type_print_base_struct_union): Update.
4798 2018-06-25 Pedro Alves <palves@redhat.com>
4800 * gdbthread.h (thread_info_ref, delete_thread)
4801 (delete_thread_silent, first_thread_of_inferior)
4802 (any_thread_of_inferior, switch_to_thread)
4803 (enable_thread_stack_temporaries)
4804 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4805 (get_last_thread_stack_temporary)
4806 (value_in_thread_stack_temporaries, can_access_registers_thread):
4807 Spell out "struct thread_info" instead of just "thread_info".
4808 * inferior.h (notice_new_inferior): Likewise.
4810 2018-06-25 Pedro Alves <palves@redhat.com>
4812 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4813 pass thread_info pointer to delete_thread.
4814 (windows_nat_target::detach): Pass inferior pointer to
4816 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4818 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4819 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4820 and pass a thread_info pointer to delete_thread.
4821 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4822 pass thread_info pointer to delete_thread.
4823 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4824 delete_thread_silent call.
4825 * procfs.c (procfs_target::detach): Pass inferior pointer to
4827 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4828 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4829 delete_thread_silent call.
4830 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4831 pass thread_info pointer to delete_thread.
4832 (windows_nat_target::detach): Pass inferior pointer to
4835 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4837 * regcache.c (readable_regcache::read_part): Fix asserts.
4838 (reg_buffer::raw_collect_part): New function.
4839 (regcache::write_part): Fix asserts.
4840 (reg_buffer::raw_supply_part): New function.
4841 (regcache::transfer_regset_register): New helper function.
4842 (regcache::transfer_regset): Call new functions.
4843 (regcache_supply_regset): Use gdb_byte*.
4844 (regcache::supply_regset): Likewise.
4845 (regcache_collect_regset): Likewise.
4846 (regcache::collect_regset): Likewise.
4847 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4848 (reg_buffer::raw_supply_part): Likewise.
4849 (regcache::transfer_regset_register): Likewise.
4850 (regcache::transfer_regset): Use gdb_byte*.
4852 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4854 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4856 2018-06-21 Pedro Alves <palves@redhat.com>
4858 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4859 instead of a ptid_t. All callers adjusted.
4860 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4862 (print_ada_task_info, display_current_task_id, task_command_1):
4864 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4866 (breakpoint_kind): Adjust.
4867 (remove_breakpoints_pid): Rename to ...
4868 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4869 pointer. All callers adjusted.
4870 (bpstat_clear_actions): Use inferior_thread.
4871 (get_bpstat_thread): New.
4872 (bpstat_do_actions): Use it.
4873 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4874 to take a thread_info pointer. All callers adjusted.
4875 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4876 (breakpoint_re_set_thread): Use inferior_thread.
4877 * breakpoint.h (struct inferior): Forward declare.
4878 (bpstat_stop_status): Update.
4879 (remove_breakpoints_pid): Delete.
4880 (remove_breakpoints_inf): New.
4881 * bsd-uthread.c (bsd_uthread_target::wait)
4882 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4883 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4884 (maint_btrace_packet_history_cmd)
4885 (maint_btrace_clear_packet_history_cmd): Adjust.
4886 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4888 * cli/cli-interp.c: Include "inferior.h".
4889 * common/refcounted-object.h (struct
4890 refcounted_object_ref_policy): New.
4891 * compile/compile-object-load.c: Include gdbthread.h.
4892 (store_regs): Use inferior_thread.
4893 * corelow.c (core_target::close): Use current_inferior.
4894 (core_target_open): Adjust to use first_thread_of_inferior and use
4895 the current inferior.
4896 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4897 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4898 <thread>: ... this new field. All references adjusted.
4899 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4900 Take a thread_info pointer instead of a ptid_t.
4901 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4902 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4903 thread_info pointer instead of a ptid_t.
4904 * elfread.c: Include "inferior.h".
4905 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4906 Use inferior_thread.
4907 * eval.c (evaluate_subexp): Likewise.
4908 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4910 * gdb_proc_service.h (struct thread_info): Forward declare.
4911 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4912 <thread>: ... this new field. All references adjusted.
4913 * gdbarch.h, gdbarch.c: Regenerate.
4914 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4915 'thread' parameter. All implementations and callers adjusted.
4916 * gdbthread.h (thread_info) <set_running>: New method.
4917 (delete_thread, delete_thread_silent): Take a thread_info pointer
4919 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4920 (first_thread_of_process): Delete, replaced by ...
4921 (first_thread_of_inferior): ... this new function. All callers
4923 (any_live_thread_of_process): Delete, replaced by ...
4924 (any_live_thread_of_inferior): ... this new function. All callers
4926 (switch_to_thread, switch_to_no_thread): Declare.
4927 (is_executing): Delete.
4928 (enable_thread_stack_temporaries): Update comment.
4929 <enable_thread_stack_temporaries>: Take a thread_info pointer
4930 instead of a ptid_t. Incref the thread.
4931 <~enable_thread_stack_temporaries>: Decref the thread.
4934 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4935 (get_last_thread_stack_temporary)
4936 (value_in_thread_stack_temporaries, can_access_registers_thread):
4937 Take a thread_info pointer instead of a ptid_t. All callers
4939 * infcall.c (get_call_return_value): Use inferior_thread.
4940 (run_inferior_call): Work with thread pointers instead of ptid_t.
4941 (call_function_by_hand_dummy): Work with thread pointers instead
4942 of ptid_t. Use thread_info_ref.
4943 * infcmd.c (proceed_thread_callback): Access thread's state
4945 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4946 access thread's state directly.
4947 (continue_command): Use inferior_thread.
4948 (info_program_command): Use find_thread_ptid and access thread
4950 (proceed_after_attach_callback): Use thread state directly.
4951 (notice_new_inferior): Take a thread_info pointer instead of a
4952 ptid_t. All callers adjusted.
4953 (exit_inferior): Take an inferior pointer instead of a pid. All
4955 (exit_inferior_silent): New.
4956 (detach_inferior): Delete.
4957 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4958 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4959 (detach_inferior_command, kill_inferior_command): Use
4960 find_inferior_id instead of valid_gdb_inferior_id and
4961 gdb_inferior_id_to_pid.
4962 (inferior_command): Use inferior and thread pointers.
4963 * inferior.h (struct thread_info): Forward declare.
4964 (notice_new_inferior): Take a thread_info pointer instead of a
4965 ptid_t. All callers adjusted.
4966 (detach_inferior): Delete declaration.
4967 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4968 instead of a pid. All callers adjusted.
4969 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4970 (valid_gdb_inferior_id): Delete.
4971 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4972 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4973 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4975 <inf>: ... this new field.
4976 <step_ptid>: Delete, replaced by ...
4977 <step_thread>: ... this new field.
4978 (get_displaced_stepping_state): Take an inferior pointer instead
4979 of a pid. All callers adjusted.
4980 (displaced_step_in_progress_any_inferior): Adjust.
4981 (displaced_step_in_progress_thread): Take a thread pointer instead
4982 of a ptid_t. All callers adjusted.
4983 (displaced_step_in_progress, add_displaced_stepping_state): Take
4984 an inferior pointer instead of a pid. All callers adjusted.
4985 (get_displaced_step_closure_by_addr): Adjust.
4986 (remove_displaced_stepping_state): Take an inferior pointer
4987 instead of a pid. All callers adjusted.
4988 (displaced_step_prepare_throw, displaced_step_prepare)
4989 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
4990 All callers adjusted.
4991 (start_step_over): Adjust.
4992 (infrun_thread_ptid_changed): Remove bit updating ptids in the
4993 displaced step queue.
4994 (do_target_resume): Adjust.
4995 (fetch_inferior_event): Use inferior_thread.
4996 (context_switch, get_inferior_stop_soon): Take an
4997 execution_control_state pointer instead of a ptid_t. All callers
4999 (switch_to_thread_cleanup): Delete.
5000 (stop_all_threads): Use scoped_restore_current_thread.
5001 * inline-frame.c: Include "gdbthread.h".
5002 (inline_state) <inline_state>: Take a thread pointer instead of a
5003 ptid_t. All callers adjusted.
5004 <ptid>: Delete, replaced by ...
5005 <thread>: ... this new field.
5006 (find_inline_frame_state): Take a thread pointer instead of a
5007 ptid_t. All callers adjusted.
5008 (skip_inline_frames, step_into_inline_frame)
5009 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5010 pointer instead of a ptid_t. All callers adjusted.
5011 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5012 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5013 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5015 * linux-nat.c (get_detach_signal): Likewise.
5016 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5017 (thread_db_notice_clone): Adjust.
5018 (thread_db_find_new_threads_silently)
5019 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5020 a thread pointer instead of a ptid_t. All callers adjusted.
5021 * mi/mi-cmd-var.c: Include "inferior.h".
5022 (mi_cmd_var_update_iter): Update to use thread pointers.
5023 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5025 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5027 (mi_output_running): ... this new function.
5028 (mi_on_resume_1): Adjust to use it.
5029 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5030 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5032 (interrupt_thread_callback): : Adjust to use thread and inferior
5034 * proc-service.c: Include "gdbthread.h".
5035 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5036 * progspace-and-thread.c: Include "inferior.h".
5037 * progspace.c: Include "inferior.h".
5038 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5039 hold a reference to an inferior_object.
5040 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5042 * python/py-inferior.c (struct inferior_object): Give the type a
5043 tag name instead of a typedef.
5044 (python_on_normal_stop): No need to check if the current thread is
5046 (inferior_to_inferior_object): Change return type to
5047 inferior_object. All callers adjusted.
5048 (find_thread_object): Delete, bits factored out to ...
5049 (thread_to_thread_object): ... this new function.
5050 * python/py-infthread.c (create_thread_object): Use
5051 inferior_to_inferior_object.
5052 (thpy_is_stopped): Use thread pointer directly.
5053 (gdbpy_selected_thread): Use inferior_thread.
5054 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5055 field, replaced with ...
5056 <thread>: ... this new field. All users adjusted.
5057 (btpy_insn_or_gap_new): Drop const.
5058 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5060 * python/py-record.c: Include "gdbthread.h".
5061 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5062 a ptid_t. All callers adjusted.
5063 (gdbpy_current_recording): Use inferior_thread.
5064 * python/py-record.h (recpy_record_object) <ptid>: Delete
5065 field, replaced with ...
5066 <thread>: ... this new field. All users adjusted.
5067 (recpy_element_object) <ptid>: Delete
5068 field, replaced with ...
5069 <thread>: ... this new field. All users adjusted.
5070 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5071 a ptid_t. All callers adjusted.
5072 * python/py-threadevent.c: Include "gdbthread.h".
5073 (get_event_thread): Use thread_to_thread_object.
5074 * python/python-internal.h (struct inferior_object): Forward
5076 (find_thread_object, find_inferior_object): Delete declarations.
5077 (thread_to_thread_object, inferior_to_inferior_object): New
5079 * record-btrace.c: Include "inferior.h".
5080 (require_btrace_thread): Use inferior_thread.
5081 (record_btrace_frame_sniffer)
5082 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5083 (get_thread_current_frame): Use scoped_restore_current_thread and
5085 (get_thread_current_frame): Use thread pointer directly.
5086 (record_btrace_replay_at_breakpoint): Use thread's inferior
5088 * record-full.c: Include "inferior.h".
5089 * regcache.c: Include "gdbthread.h".
5090 (get_thread_arch_regcache): Use the inferior's address space
5092 (get_thread_regcache, registers_changed_thread): New.
5093 * regcache.h (get_thread_regcache(thread_info *thread)): New
5095 (registers_changed_thread): New.
5096 (remote_target) <remote_detach_1>: Swap order of parameters.
5097 (remote_add_thread): <remote_add_thread>: Return the new thread.
5098 (get_remote_thread_info(ptid_t)): New overload.
5099 (remote_target::remote_notice_new_inferior): Use thread pointers
5101 (remote_target::process_initial_stop_replies): Use
5102 thread_info::set_running.
5103 (remote_target::remote_detach_1, remote_target::detach)
5104 (extended_remote_target::detach): Adjust.
5105 * stack.c (frame_show_address): Use inferior_thread.
5106 * target-debug.h (target_debug_print_thread_info_pp): New.
5107 * target-delegates.c: Regenerate.
5108 * target.c (default_thread_address_space): Delete.
5109 (memory_xfer_partial_1): Use current_inferior.
5110 (target_detach): Use current_inferior.
5111 (target_thread_address_space): Delete.
5112 (generic_mourn_inferior): Use current_inferior.
5113 * target.h (struct target_ops) <thread_address_space>: Delete.
5114 (target_thread_address_space): Delete.
5115 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5117 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5118 thread pointer instead of a ptid_t. Adjust all callers.
5119 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5120 (first_thread_of_process): Delete, replaced by ...
5121 (first_thread_of_inferior): ... this new function. All callers
5123 (any_thread_of_process): Rename to ...
5124 (any_thread_of_inferior): ... this, and take an inferior pointer.
5125 (any_live_thread_of_process): Rename to ...
5126 (any_live_thread_of_inferior): ... this, and take an inferior
5128 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5129 (value_in_thread_stack_temporaries)
5130 (get_last_thread_stack_temporary): Take a thread pointer instead
5131 of a ptid_t. Adjust all callers.
5132 (thread_info::set_running): New.
5133 (validate_registers_access): Use inferior_thread.
5134 (can_access_registers_ptid): Rename to ...
5135 (can_access_registers_thread): ... this, and take a thread
5137 (print_thread_info_1): Adjust to compare thread pointers instead
5139 (switch_to_no_thread, switch_to_thread): Make extern.
5140 (scoped_restore_current_thread::~scoped_restore_current_thread):
5141 Use m_thread pointer directly.
5142 (scoped_restore_current_thread::scoped_restore_current_thread):
5143 Use inferior_thread.
5144 (thread_command): Use thread pointer directly.
5145 (thread_num_make_value_helper): Use inferior_thread.
5146 * top.c (execute_command): Use inferior_thread.
5147 * tui/tui-interp.c: Include "inferior.h".
5148 * varobj.c (varobj_create): Use inferior_thread.
5149 (value_of_root_1): Use find_thread_global_id instead of
5150 global_thread_id_to_ptid.
5152 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5154 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5156 (regcache::write_part): Likewise.
5157 (readable_regcache::cooked_read_part): Update comment.
5158 (readable_regcache::cooked_write_part): Likewise.
5159 * regcache.h: (readable_regcache::read_part): Likewise.
5160 (regcache::write_part): Likewise.
5162 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5163 Dirk Schubert <dirk.schubert@arm.com>
5165 * aarch64-linux-nat.c (post_attach): New.
5166 (aarch64_linux_nat_target::post_attach): Override post_attach to
5167 record the number of hardware debug registers.
5169 2018-06-20 Tom Tromey <tom@tromey.com>
5171 * python/py-param.c (add_setshow_generic): Make parameters const.
5172 (parmpy_init): Update.
5174 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5176 * regcache.h (regcache_cooked_read_ftype): Rename to...
5177 (register_read_ftype): ...this, change type to function_view.
5178 (class reg_buffer) <save>: Remove src parameter.
5179 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5180 parameter non-const in first overload. Remove src parameter in
5182 * regcache.c (do_cooked_read): Remove.
5183 (readonly_detached_regcache::readonly_detached_regcache): Make
5184 parameter non-const, adjust call to other constructor.
5185 (reg_buffer::save): Remove src parameter.
5186 * frame.c (do_frame_register_read): Remove.
5187 (frame_save_as_regcache): Use lambda function.
5188 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5189 parameter to ppu2spu_data *.
5190 (ppu2spu_sniffer): Use lambda function.
5192 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5194 * record-full.c (record_full_target::insert_breakpoint): Remove
5195 "struct" keyword, add const.
5197 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5199 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5200 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5201 * configure.ac: Remove AC_PREREQ, add missing quoting.
5202 * gnulib/configure.ac: Modernize usage of
5203 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5204 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5205 (AUTOMAKE_VERSION): Bump to 1.15.1.
5206 * configure: Re-generate.
5207 * config.in: Re-generate.
5208 * aclocal.m4: Re-generate.
5209 * gnulib/aclocal.m4: Re-generate.
5210 * gnulib/config.in: Re-generate.
5211 * gnulib/configure: Re-generate.
5212 * gnulib/import/Makefile.in: Re-generate.
5214 2018-06-19 Pedro Alves <palves@redhat.com>
5216 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5217 (lookup_minimal_symbol_by_pc_section): ... here with
5218 gdb_assert_not_reached added.
5220 2018-06-19 Pedro Alves <palves@redhat.com>
5222 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5223 parameter with a block parameter. Compare location's block symbol
5224 with the frame's block instead of addresses.
5225 (skip_inline_frames): Pass the current block instead of the
5226 frame's address. Break out as soon as we determine the frame
5227 should not be skipped.
5229 2018-06-18 Tom Tromey <tom@tromey.com>
5231 * solib-aix.c (solib_aix_get_section_offsets): Return
5233 (solib_aix_solib_create_inferior_hook): Update.
5235 2018-06-18 Tom Tromey <tom@tromey.com>
5237 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5239 2018-06-18 Tom Tromey <tom@tromey.com>
5241 * solib-frv.c (frv_relocate_main_executable): Use
5243 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5246 2018-06-18 Tom Tromey <tom@tromey.com>
5248 * objfiles.h (inhibit_section_map_updates): Update.
5249 (resume_section_map_updates, resume_section_map_updates_cleanup):
5251 * solib-svr4.c (svr4_handle_solib_event): Update.
5252 * objfiles.c (inhibit_section_map_updates): Return
5253 scoped_restore_tmpl<int>.
5254 (resume_section_map_updates, resume_section_map_updates_cleanup):
5257 2018-06-18 Tom Tromey <tom@tromey.com>
5259 * valprint.h (read_string): Update.
5260 * valprint.c (read_string): Change type of "buffer".
5261 (val_print_string): Update.
5262 * python/py-value.c (valpy_string): Update.
5263 * language.h (struct language_defn) <la_get_string>: Change
5265 (default_get_string, c_get_string): Update.
5266 * language.c (default_get_string): Change type of "buffer".
5267 * guile/scm-value.c (gdbscm_value_to_string): Update.
5268 * c-lang.c (c_get_string): Change type of "buffer".
5270 2018-06-18 Tom Tromey <tom@tromey.com>
5272 * ser-mingw.c (struct pipe_state_destroyer): New.
5273 (pipe_state_up): New typedef.
5274 (cleanup_pipe_state): Remove.
5275 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5277 2018-06-18 Tom Tromey <tom@tromey.com>
5279 * rust-lang.h (rust_yyerror): Don't declare.
5280 * rust-lang.c (rust_language_defn): Update.
5281 * rust-exp.y (yyerror): Now static.
5282 * parse.c (parse_exp_in_context_1): Update.
5283 * p-lang.h (p_yyerror): Don't declare.
5284 * p-lang.c (p_language_defn): Update.
5285 * p-exp.y (yyerror): Now static.
5286 * opencl-lang.c (opencl_language_defn): Update.
5287 * objc-lang.c (objc_language_defn): Update.
5288 * m2-lang.h (m2_yyerror): Don't declare.
5289 * m2-lang.c (m2_language_defn): Update.
5290 * m2-exp.y (yyerror): Now static.
5291 * language.h (struct language_defn) <la_error>: Remove.
5292 * language.c (unk_lang_error): Remove.
5293 (unknown_language_defn, auto_language_defn): Remove.
5294 * go-lang.h (go_yyerror): Don't declare.
5295 * go-lang.c (go_language_defn): Update.
5296 * go-exp.y (yyerror): Now static.
5297 * f-lang.h (f_yyerror): Don't declare.
5298 * f-lang.c (f_language_defn): Update.
5299 * f-exp.y (yyerror): Now static.
5300 * d-lang.h (d_yyerror): Don't declare.
5301 * d-lang.c (d_language_defn): Update.
5302 * d-exp.y (yyerror): Now static.
5303 * c-lang.h (c_yyerror): Don't declare.
5304 * c-lang.c (c_language_defn, cplus_language_defn)
5305 (asm_language_defn, minimal_language_defn): Update.
5306 * c-exp.y (yyerror): Now static.
5307 * ada-lang.h (ada_yyerror): Don't declare.
5308 * ada-lang.c (ada_language_defn): Update.
5309 * ada-exp.y (yyerror): Now static.
5311 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5313 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5314 (store_sveregs_to_thread): Likewise.
5315 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5316 (aarch64_linux_store_inferior_registers): Likewise.
5317 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5319 (aarch64_sve_regs_copy_to_regcache): Likewise.
5320 (aarch64_sve_regs_copy_from_regcache): Likewise.
5321 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5323 (aarch64_sve_regs_copy_to_regcache): Likewise.
5324 (aarch64_sve_regs_copy_from_regcache): Likewise.
5325 (sve_context): Structure from Linux headers.
5326 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5327 (SVE_SIG_ZREG_SIZE): Likewise.
5328 (SVE_SIG_PREG_SIZE): Likewise.
5329 (SVE_SIG_FFR_SIZE): Likewise.
5330 (SVE_SIG_REGS_OFFSET): Likewise.
5331 (SVE_SIG_ZREGS_OFFSET): Likewise.
5332 (SVE_SIG_ZREG_OFFSET): Likewise.
5333 (SVE_SIG_ZREGS_SIZE): Likewise.
5334 (SVE_SIG_PREGS_OFFSET): Likewise.
5335 (SVE_SIG_PREG_OFFSET): Likewise.
5336 (SVE_SIG_PREGS_SIZE): Likewise.
5337 (SVE_SIG_FFR_OFFSET): Likewise.
5338 (SVE_SIG_REGS_SIZE): Likewise.
5339 (SVE_SIG_CONTEXT_SIZE): Likewise.
5340 (SVE_PT_REGS_MASK): Likewise.
5341 (SVE_PT_REGS_FPSIMD): Likewise.
5342 (SVE_PT_REGS_SVE): Likewise.
5343 (SVE_PT_VL_INHERIT): Likewise.
5344 (SVE_PT_VL_ONEXEC): Likewise.
5345 (SVE_PT_REGS_OFFSET): Likewise.
5346 (SVE_PT_FPSIMD_OFFSET): Likewise.
5347 (SVE_PT_FPSIMD_SIZE): Likewise.
5348 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5349 (SVE_PT_SVE_PREG_SIZE): Likewise.
5350 (SVE_PT_SVE_FFR_SIZE): Likewise.
5351 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5352 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5353 (__SVE_SIG_TO_PT): Likewise.
5354 (SVE_PT_SVE_OFFSET): Likewise.
5355 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5356 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5357 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5358 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5359 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5360 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5361 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5362 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5363 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5364 (SVE_PT_SVE_SIZE): Likewise.
5365 (SVE_PT_SIZE): Likewise.
5366 (HAS_SVE_STATE): New define.
5368 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5370 * nat/aarch64-sve-linux-sigcontext.h: New file.
5371 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5373 (SVE_VQ_MIN): Likewise.
5374 (SVE_VQ_MAX): Likewise.
5375 (SVE_VL_MIN): Likewise.
5376 (SVE_VL_MAX): Likewise.
5377 (SVE_NUM_ZREGS): Likewise.
5378 (SVE_NUM_PREGS): Likewise.
5379 (sve_vl_valid): Likewise.
5380 (struct user_sve_header): Likewise.
5382 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5383 Richard Bunt <Richard.Bunt@arm.com>
5385 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5386 was requested by GDB.
5388 2018-06-15 Tom de Vries <tdevries@suse.de>
5390 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5392 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5394 * gnulib/update-gnulib.sh: Print expected versions of
5397 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5399 * arch-utils.c (default_type_align): Use type_length_units.
5400 * gdbtypes.c (type_align): Use type_length_units.
5402 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5404 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5405 of 'define' command.
5407 2018-06-14 Tom de Vries <tdevries@suse.de>
5410 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5411 get_no_prettyformat_print_options.
5413 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5415 * sparc-nat.h: Include target.h.
5416 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5417 <fetch_registers>: Remove this argument in function call.
5418 <store_registers>: Remove this argument in function call, remove
5420 <low_forget_process>: Call sparc64_forget_process instead of
5421 sparc_forget_process.
5423 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5425 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5426 (procfs_target::make_corefile_notes): Adjust to new
5427 target_read_alloc return type.
5429 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5430 Stephen Roberts <stephen.roberts@arm.com>
5433 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5434 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5435 Move should_notify_stop local into more inner scope.
5437 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5438 Stephen Roberts <stephen.roberts@arm.com>
5441 * infrun.c (resume_1): Add call to mark_async_event_handler.
5443 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5445 * infrun.c (do_target_wait): Change old version of $pc printed.
5447 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5449 * dwarf2read.c (read_index_from_section): Rename to...
5450 (read_gdb_index_from_section): ... this, update all callers.
5451 (dwarf2_read_index): Rename to...
5452 (dwarf2_read_gdb_index): ... this, update all callers.
5454 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5456 * gdb/hppa-linux-nat.c
5457 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5458 hppa_linux_nat_target::fetch_registers.
5460 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5462 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5463 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5464 (AARCH64_DWARF_SVE_FFR): Likewise.
5465 (AARCH64_DWARF_SVE_P0): Likewise.
5466 (AARCH64_DWARF_SVE_Z0): Likewise.
5468 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5470 * common/common-regcache.h (raw_compare): New function.
5471 * regcache.c (regcache::raw_compare): Likewise.
5472 * regcache.h (regcache::raw_compare): New declaration.
5474 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5476 * common/common-regcache.h (reg_buffer_common): New structure.
5477 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5478 (reg_buffer::raw_supply): Likewise.
5479 (reg_buffer::raw_supply_integer): Likewise.
5480 (reg_buffer::raw_supply_zeroed): Likewise.
5481 (reg_buffer::raw_collect): Likewise.
5482 (reg_buffer::raw_collect_integer): Likewise.
5483 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5484 (reg_buffer::raw_supply): Likewise.
5485 (reg_buffer::raw_supply_integer): Likewise.
5486 (reg_buffer::raw_supply_zeroed): Likewise.
5487 (reg_buffer::raw_collect): Likewise.
5488 (reg_buffer::raw_collect_integer): Likewise.
5490 2018-06-10 Tom Tromey <tom@tromey.com>
5492 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5493 (class remote_state) <stop_reply_queue>: Now std::vector.
5494 (remote_state::~remote_state)
5495 (remote_target::stop_reply_queue_length): Update.
5496 (struct queue_iter_param, remove_child_of_pending_fork)
5497 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5498 (check_pending_event_prevents_wildcard_vcont_callback)
5499 (remove_stop_reply_for_inferior)
5500 (remove_stop_reply_of_remote_state)
5501 (remote_notif_remove_once_on_match)
5502 (stop_reply_match_ptid_and_ws)
5503 (remote_kill_child_of_pending_fork): Remove.
5504 (remote_target::remove_new_fork_children)
5505 (remote_target::check_pending_events_prevent_wildcard_vcont)
5506 (remote_target::discard_pending_stop_replies)
5507 (remote_target::discard_pending_stop_replies_in_queue)
5508 (remote_target::remote_notif_remove_queued_reply)
5509 (remote_target::queued_stop_reply)
5510 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5511 (remote_target::wait, remote_target::kill_new_fork_children)
5512 (remote_target::async): Update.
5514 2018-06-10 Tom Tromey <tom@tromey.com>
5516 * record-full.c (record_full_arch_list_cleanups): Remove.
5517 (record_full_message): Use try/catch.
5518 (record_full_wait_cleanups): Remove.
5519 (record_full_wait_1): Use try/catch.
5520 (record_full_restore): Likewise.
5522 2018-06-10 Tom Tromey <tom@tromey.com>
5524 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5525 declare VEC. Add constructor.
5526 <in_target_beneath>: Now bool.
5527 (record_full_breakpoints): Now a std::vector, static.
5528 (record_full_sync_record_breakpoints)
5529 (record_full_init_record_breakpoints)
5530 (record_full_target::insert_breakpoint)
5531 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5533 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5535 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5536 * serial.c (serial_interface_lookup): Remove struct keyword.
5538 2018-06-10 Tom Tromey <tom@tromey.com>
5540 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5542 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5544 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5546 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5547 "beneath" as a method.
5548 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5549 Use "beneath" as a method.
5551 2018-06-10 Tom Tromey <tom@tromey.com>
5553 * tracefile.c (struct trace_file_writer_deleter): New.
5554 <operator()>: Rename from trace_file_writer_xfree.
5555 (trace_file_writer_up): New typedef.
5556 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5558 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5560 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5561 <m_registers, m_register_status>: Change type to
5563 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5566 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5568 * common/common-regcache.h (enum register_status): Add
5569 underlying type "signed char".
5570 * regcache.h (reg_buffer) <m_register_status>: Change type to
5572 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5573 register_status instead of signed char.
5574 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5575 (reg_buffer::get_register_status): Remove cast.
5576 (readable_regcache::raw_read): Remove cast.
5577 (readable_regcache::cooked_read): Remove cast.
5579 2018-06-09 Tom Tromey <tom@tromey.com>
5581 * source.c (reverse_search_command, forward_search_command): Use
5584 2018-06-09 Tom Tromey <tom@tromey.com>
5586 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5587 (serial_ops_list): Now static, std::vector.
5588 (serial_interface_lookup, serial_add_interface): Update.
5590 2018-06-09 Tom Tromey <tom@tromey.com>
5592 * dwarf2read.c (process_cu_includes): Update.
5593 (process_full_comp_unit): Update.
5594 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5597 2018-06-08 Paul Koning <paul_koning@dell.com>
5601 * python/python.c (do_start_initialization):
5602 Avoid call to internal Python API.
5603 (init__gdb_module): New function.
5605 2018-06-08 Gary Benson <gbenson@redhat.com>
5607 * linux-thread-db.c (valprint.h): New include.
5608 (struct check_thread_db_info): New structure.
5609 (check_thread_db_on_load, tdb_testinfo): New static globals.
5610 (check_thread_db, check_thread_db_callback): New functions.
5611 (try_thread_db_load_1): Run integrity checks if requested.
5612 (maintenance_check_libthread_db): New function.
5613 (_initialize_thread_db): Register "maint check libthread-db"
5614 and "maint set/show check-libthread-db".
5615 * NEWS: Mention the above new commands.
5617 2018-06-08 Tom Tromey <tom@tromey.com>
5619 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5622 2018-06-08 Tom Tromey <tom@tromey.com>
5624 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5626 2018-06-08 Tom Tromey <tom@tromey.com>
5628 * common/btrace-common.h (struct btrace_data): Add constructor,
5629 destructor, move assignment operator.
5630 <empty, clear, fini>: New methods.
5631 <format>: Initialize.
5632 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5633 (btrace_data_empty): Don't declare.
5634 * common/btrace-common.c (btrace_data_init): Remove.
5635 (btrace_data::fini): Rename from btrace_data_fini.
5636 (btrace_data::empty): Rename from btrace_data_empty.
5637 (btrace_data::clear): Rename from btrace_data_clear. Return
5639 * btrace.h (make_cleanup_btrace_data): Don't declare.
5640 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5641 (parse_xml_btrace): Update.
5642 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5643 (maint_btrace_clear_packet_history_cmd): Update.
5645 2018-06-07 Pedro Alves <palves@redhat.com>
5647 * target.h (target_ops) <beneath>: Now a method. All references
5649 (class target_stack): New.
5650 * target.c (g_target_stack): New.
5651 (g_current_top_target): Delete.
5652 (current_top_target): Get the top target out of g_target_stack.
5653 (target_stack::push, target_stack::unpush): New.
5654 (push_target, unpush_target): Reimplement.
5655 (target_is_pushed): Reimplement in terms of g_target_stack.
5656 (target_ops::beneath, target_stack::find_beneath): New.
5658 2018-06-07 Pedro Alves <palves@redhat.com>
5660 * target.h (find_target_beneath): Delete declaration.
5661 * target.c (find_target_beneath): Delete definition.
5662 * aix-thread.c: All callers of find_target_beneath adjusted to
5663 call target_ops::beneath instead.
5664 * bsd-uthread.c: Likewise.
5665 * linux-thread-db.c: Likewise.
5666 * ravenscar-thread.c: Likewise.
5667 * sol-thread.c: Likewise.
5668 * spu-multiarch.c: Likewise.
5670 2018-06-07 Pedro Alves <palves@redhat.com>
5672 * target.h (target_ops) <beneath>: Now a method. All references
5674 (target_ops) <m_beneath>: New.
5675 * target.c (target_ops::beneath): New.
5676 * corelow.c: Adjust all references to target_ops::beneath.
5677 * linux-thread-db.c: Likewise.
5678 * make-target-delegates: Likewise.
5679 * record-btrace.c: Likewise.
5680 * record-full.c: Likewise.
5681 * remote.c: Likewise.
5682 * target.c: Likewise.
5683 * target-delegates.c: Regenerate.
5685 2018-06-07 Pedro Alves <palves@redhat.com>
5687 * target.h (target_stack): Delete.
5688 (current_top_target): Declare function.
5689 * target.c (target_stack): Delete.
5690 (g_current_top_target): New.
5691 (current_top_target): New function.
5692 * auxv.c: Use current_top_target instead of target_stack
5694 * avr-tdep.c: Likewise.
5695 * breakpoint.c: Likewise.
5696 * corefile.c: Likewise.
5697 * elfread.c: Likewise.
5699 * exceptions.c: Likewise.
5700 * frame.c: Likewise.
5701 * gdbarch-selftests.c: Likewise.
5702 * gnu-v3-abi.c: Likewise.
5703 * ia64-tdep.c: Likewise.
5704 * ia64-vms-tdep.c: Likewise.
5705 * infcall.c: Likewise.
5706 * infcmd.c: Likewise.
5707 * infrun.c: Likewise.
5708 * linespec.c: Likewise.
5709 * linux-tdep.c: Likewise.
5710 * minsyms.c: Likewise.
5711 * ppc-linux-nat.c: Likewise.
5712 * ppc-linux-tdep.c: Likewise.
5713 * procfs.c: Likewise.
5714 * regcache.c: Likewise.
5715 * remote.c: Likewise.
5716 * rs6000-tdep.c: Likewise.
5717 * s390-linux-nat.c: Likewise.
5718 * s390-tdep.c: Likewise.
5719 * solib-aix.c: Likewise.
5720 * solib-darwin.c: Likewise.
5721 * solib-dsbt.c: Likewise.
5722 * solib-spu.c: Likewise.
5723 * solib-svr4.c: Likewise.
5724 * solib-target.c: Likewise.
5725 * sparc-tdep.c: Likewise.
5726 * sparc64-tdep.c: Likewise.
5727 * spu-tdep.c: Likewise.
5728 * symfile.c: Likewise.
5729 * symtab.c: Likewise.
5730 * target-descriptions.c: Likewise.
5731 * target-memory.c: Likewise.
5732 * target.c: Likewise.
5733 * target.h: Likewise.
5734 * tracefile-tfile.c: Likewise.
5735 * tracepoint.c: Likewise.
5736 * valops.c: Likewise.
5737 * valprint.c: Likewise.
5738 * value.c: Likewise.
5739 * windows-tdep.c: Likewise.
5740 * mi/mi-main.c: Likewise.
5742 2018-06-07 Tom Tromey <tom@tromey.com>
5744 * valprint.h (build_address_symbolic): Declare.
5745 * printcmd.c (print_address_symbolic): Update.
5746 (build_address_symbolic): Change "name" and "filename" to
5748 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5750 * defs.h (build_address_symbolic): Remove declaration.
5752 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5754 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5755 (aarch64_vnv_type): Add function.
5756 (aarch64_pseudo_register_name): Add V regs for SVE.
5757 (aarch64_pseudo_register_type): Likewise.
5758 (aarch64_pseudo_register_reggroup_p): Likewise.
5759 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5760 (aarch64_pseudo_read_value): Add V regs for SVE.
5761 (aarch64_pseudo_write_2): Use V0 offset for SVE
5762 (aarch64_pseudo_write): Add V regs for SVE.
5763 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5765 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5767 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5768 (sve_vl_from_vq): Likewise.
5770 2018-06-05 Tom Tromey <tom@tromey.com>
5772 * cli/cli-cmds.c (show_version): Update.
5773 * top.c (print_gdb_version): Add "interactive" parameter.
5775 * main.c (captured_main_1): Update.
5776 * top.h (print_gdb_version): Add "interactive" parameter and a
5779 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5781 * common/enum-flags.h: Add trailing semicolon to example in
5784 2018-06-05 Tom Tromey <tom@tromey.com>
5787 * NEWS: Add entry about pager.
5788 * utils.c (pagination_disabled_for_command): New global.
5789 (prompt_for_continue): Allow "c" response to prompt.
5790 (reinitialize_more_filter): Clear
5791 pagination_disabled_for_command.
5792 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5794 2018-06-04 Tom Tromey <tom@tromey.com>
5796 * ada-lang.h (ada_lookup_symbol_list): Update.
5797 * ada-lang.c (resolve_subexp): Update.
5798 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5800 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5801 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5802 results parameter to std::vector.
5803 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5805 * ada-exp.y (block_lookup): Update.
5806 (select_possible_type_sym): Change type of syms. Remove nsyms
5808 (write_var_or_type, write_name_assoc): Update.
5810 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5812 * windows-nat.c (windows_nat_target::xfer_partial): Return
5813 TARGET_XFER_E_IO if we need to delegate to the target beneath
5814 but BENEATH is NULL.
5816 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5818 * Makefile.in (config.status): Add configure.nat as a
5821 2018-06-04 Tom Tromey <tom@tromey.com>
5823 * cp-name-parser.y (cpname_state): Add method declarations.
5824 (HANDLE_QUAL): Update.
5825 (cpname_state::d_grab, cpname_state::fill_comp)
5826 (cpname_state::make_operator, cpname_state::make_dtor)
5827 (cpname_state::make_builtin_type, cpname_state::make_name)
5828 (cpname_state::d_qualify, cpname_state::d_int_type)
5829 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5830 (%union): Move earlier.
5832 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5834 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5836 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5838 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5839 (aarch64_pseudo_write_1): Likewise.
5840 (aarch64_pseudo_read_value): Use helper.
5841 (aarch64_pseudo_write): Likewise.
5843 2018-06-04 Pedro Alves <palves@redhat.com>
5845 * darwin-nat.c (darwin_ops): Delete.
5846 (darwin_attach_pid): Use get_native_target.
5848 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5850 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5851 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5853 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5855 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5856 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5857 (aarch64_gdbarch_init): Check for SVE.
5858 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5860 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5862 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5863 * aarch64-tdep.h (aarch64_read_description): Likewise.
5864 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5865 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5866 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5867 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5868 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5870 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5872 * value.c (value_fetch_lazy_bitfield): New.
5873 (value_fetch_lazy_memory): New.
5874 (value_fetch_lazy_register): New.
5875 (value_fetch_lazy): Factor out to smaller functions.
5877 2018-06-01 Tom Tromey <tom@tromey.com>
5879 * cp-name-parser.y (backslashable, represented): Now const.
5881 2018-06-01 Tom Tromey <tom@tromey.com>
5883 * cp-name-parser.y: Include parser-defs.h.
5884 (parser_fprintf): Remove declaration.
5886 2018-06-01 Tom Tromey <tom@tromey.com>
5888 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5890 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5891 (global_result): Remove globals.
5892 (struct cpname_state): New.
5893 (yyparse): Don't declare.
5894 (yylex, yyerror): Move declarations after %union.
5895 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5896 (make_name): Add state parameter.
5898 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5900 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5902 (yylex): Add lvalp, state parameters.
5903 (yyerror): Add state parameter.
5904 (cp_demangled_name_to_comp): Update.
5906 2018-06-01 Tom Tromey <tom@tromey.com>
5908 * cp-name-parser.y (parser_fprintf): Declare.
5909 (GDB_YY_REMAP_PREFIX): Define.
5910 Include yy-remap.h. Don't redefine yy* identifiers.
5912 2018-06-01 Tom Tromey <tom@tromey.com>
5914 * python/py-type.c (typy_legacy_template_argument): Update.
5915 * cp-support.h (cp_demangled_name_to_comp): Update.
5916 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5917 parameter to be a "std::string *".
5920 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5922 * ada-lex.l: Include "diagnostics.h" instead of
5923 "common/diagnostics.h".
5924 * unittests/environ-selftests.c: Likewise.
5925 * common/diagnostics.h: Moved to ../include.
5927 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5929 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5930 to language_mode_manual while calling breakpoint_re_set_one.
5932 2018-06-01 Tom Tromey <tom@tromey.com>
5934 * valops.c (value_cast_structs, destructor_name_p): Update.
5935 * symtab.c (gdb_mangle_name): Update.
5936 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5938 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5939 (pascal_object_print_value_fields, pascal_object_print_value):
5941 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5942 * linespec.c (find_methods): Update.
5943 * gdbtypes.h (type_name_no_tag): Remove.
5944 (type_name_or_error): Rename from type_name_no_tag_or_error.
5945 * gdbtypes.c (type_name_no_tag): Remove.
5946 (type_name_or_error): Rename from type_name_no_tag_or_error.
5947 (lookup_struct_elt_type, check_typedef): Update.
5948 * expprint.c (print_subexp_standard): Update.
5949 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5950 * d-namespace.c (d_lookup_nested_symbol): Update.
5951 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5952 (cp_print_class_member): Update.
5953 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5954 * completer.c (add_struct_fields): Update.
5955 * c-typeprint.c (cp_type_print_derivation_info)
5956 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5958 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5959 (ada_prefer_type, ada_is_exception_sym): Update.
5961 2018-06-01 Tom Tromey <tom@tromey.com>
5963 * valops.c (enum_constant_from_type, value_namespace_elt)
5964 (value_maybe_namespace_elt): Update.
5965 * valarith.c (find_size_for_pointer_math): Update.
5966 * target-descriptions.c (make_gdb_type): Update.
5967 * symmisc.c (print_symbol): Update.
5968 * stabsread.c (define_symbol, read_type)
5969 (complain_about_struct_wipeout, add_undefined_type)
5970 (cleanup_undefined_types_1): Update.
5971 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5972 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5973 (rust_internal_print_type, rust_composite_type)
5974 (rust_evaluate_funcall, rust_evaluate_subexp)
5975 (rust_inclusive_range_type_p): Update.
5976 * python/py-type.c (typy_get_tag): Update.
5977 * p-typeprint.c (pascal_type_print_base): Update.
5978 * mdebugread.c (parse_symbol, parse_type): Update.
5979 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
5981 * guile/scm-type.c (gdbscm_type_tag): Update.
5982 * go-lang.c (sixg_string_p): Update.
5983 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
5985 * gdbtypes.h (struct main_type) <tag_name>: Remove.
5986 (TYPE_TAG_NAME): Remove.
5987 * gdbtypes.c (type_name_no_tag): Simplify.
5988 (check_typedef, check_types_equal, recursive_dump_type)
5989 (copy_type_recursive, arch_composite_type): Update.
5990 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
5991 in summary mode when needed.
5992 * eval.c (evaluate_funcall): Update.
5993 * dwarf2read.c (fixup_go_packaging, read_structure_type)
5994 (process_structure_scope, read_enumeration_type)
5995 (read_namespace_type, read_module_type, determine_prefix): Update.
5996 * cp-support.c (inspect_type): Update.
5997 * coffread.c (process_coff_symbol, decode_base_type): Update.
5998 * c-varobj.c (c_is_path_expr_parent): Update.
5999 * c-typeprint.c (c_type_print_base_struct_union): Update.
6000 (c_type_print_base_1): Update. Print struct/class/union/enum in
6001 summary when using C language.
6002 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6003 (gen_maybe_namespace_elt): Update.
6004 * ada-lang.c (ada_type_name): Simplify.
6005 (empty_record, ada_template_to_fixed_record_type_1)
6006 (template_to_static_fixed_type)
6007 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6009 2018-06-01 Tom Tromey <tom@tromey.com>
6011 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6013 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6014 (c_print_type): Update.
6015 (c_print_type): New overload.
6016 (c_type_print_varspec_prefix, c_type_print_args)
6017 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6018 (c_type_print_base_struct_union, c_type_print_base_1)
6019 (cp_type_print_method_args): Add "language" parameter.
6020 (c_type_print_base): Update.
6021 * c-lang.h (c_print_type): Add new overload.
6023 2018-06-01 Tom Tromey <tom@tromey.com>
6025 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6026 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6028 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6030 * aarch64-tdep.c (aarch64_sve_register_names): New const
6032 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6033 (AARCH64_SVE_Z_REGS_NUM): New define.
6034 (AARCH64_SVE_P_REGS_NUM): Likewise.
6035 (AARCH64_SVE_NUM_REGS): Likewise.
6037 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6039 * nat/linux-ptrace.h [__alpha__]
6040 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6043 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6045 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6046 the endianness selected.
6047 * NEWS: Document `set endian auto' mode operation update.
6049 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6051 * Makefile.in: Add new header.
6052 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6053 (sve_vl_from_vg): Likewise.
6054 (sve_vq_from_vl): Likewise.
6055 (sve_vl_from_vq): Likewise.
6056 (sve_vq_from_vg): Likewise.
6057 (sve_vg_from_vq): Likewise.
6058 * configure.nat: Add new c file.
6059 * nat/aarch64-sve-linux-ptrace.c: New file.
6060 * nat/aarch64-sve-linux-ptrace.h: New file.
6062 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6064 * aarch64-linux-nat.c (aarch64_linux_read_description):
6066 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6068 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6069 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6070 (aarch64_gdbarch_init): Add parmeter zero.
6071 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6072 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6073 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6075 * doc/gdb.texinfo: Describe SVE feature
6076 * features/aarch64-sve.c: New file.
6078 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6081 * gdbarch.sh (significant_addr_bit): Default to zero when
6082 not set by target architecture.
6083 * gdbarch.c: Re-generated.
6084 * utils.c (address_significant): Update.
6086 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6088 * stack.c (func_command): Remove trailing newline in call to error.
6090 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6092 * regcache.h (regcache_raw_collect): Remove, update callers to
6093 use regcache::raw_collect.
6094 * regcache.c (regcache_raw_collect): Remove.
6096 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6098 * regcache.h (regcache_raw_supply): Remove, update callers to
6099 use detached_regcache::raw_supply.
6100 * regcache.c (regcache_raw_supply): Remove.
6102 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6104 * regcache.h (regcache_cooked_write_part): Remove, update
6105 callers to use regcache::cooked_write_part.
6106 * regcache.c (regcache_cooked_write_part): Remove.
6108 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6110 * regcache.h (regcache_cooked_read_part): Remove, update callers
6111 to use readable_regcache::cooked_read_part.
6112 * regcache.c (regcache_cooked_read_part): Remove.
6114 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6116 * regcache.h (regcache_cooked_read_value): Remove, update
6117 callers to use readable_regcache::cooked_read_value.
6118 * regcache.c (regcache_cooked_read_value): Remove.
6120 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6122 * regcache.h (regcache_cooked_write): Remove, update callers to
6123 use regcache::cooked_write.
6124 * regcache.c (regcache_cooked_write): Remove.
6126 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6128 * regcache.h (regcache_invalidate): Remove, update callers to
6129 use detached_regcache::invalidate instead.
6130 * regcache.c (regcache_invalidate): Remove.
6132 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6134 * regcache.h (regcache_raw_write_part): Remove, update callers
6135 to use regcache::raw_write_part instead.
6136 * regcache.c (regcache_raw_write_part): Remove.
6138 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6140 * regcache.h (regcache_raw_read_part): Remove, update callers to
6141 use readable_regcache::raw_read_part instead.
6142 * regcache.c (regcache_raw_read_part): Remove.
6144 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6146 * regcache.h (regcache_cooked_read): Remove, update callers to
6147 use readable_regcache::cooked_read instead.
6148 * regcache.c (regcache_cooked_read): Remove.
6150 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6152 * regcache.h (regcache_raw_write): Remove, update callers to use
6153 regcache::raw_write instead.
6154 * regcache.c (regcache_raw_write): Remove.
6156 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6158 * regcache.h (regcache_raw_read): Remove, update callers to use
6159 readable_regcache::raw_read instead.
6160 * regcache.c (regcache_raw_read): Remove.
6162 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6164 * regcache.h (regcache_raw_update): Remove, update callers to
6165 use readable_regcache::raw_update instead.
6166 * regcache.c (regcache_raw_update): Remove.
6168 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6170 * regcache.h (regcache_register_status): Remove, update callers
6171 to use reg_buffer::get_register_status directly instead.
6172 * regcache.c (regcache_register_status): Remove.
6174 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6176 * regcache.h (regcache_get_ptid): Remove, update all callers to
6177 call regcache::ptid instead.
6178 * regcache.c (regcache_get_ptid): Remove.
6180 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6182 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6184 2018-05-30 Pedro Alves <palves@redhat.com>
6186 * common/common-exceptions.h (exception_rethrow): Use
6189 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6191 * breakpoint.c (print_solib_event, check_status_catch_solib):
6192 Remove struct keyword in range-based for loops.
6193 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6194 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6196 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6198 * symfile.c (addr_info_make_relative): Likewise.
6199 * thread.c (value_in_thread_stack_temporaries): Likewise.
6201 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6204 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6205 aggregate type to get its real type before accessing it.
6207 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6209 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6210 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6211 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6212 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6213 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6214 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6215 * printcmd.c (info_address_command): Likewise.
6217 2018-05-29 Tom Tromey <tom@tromey.com>
6219 * windows-nat.c (handle_exception): Update fall-through comment.
6221 2018-05-29 Tom Tromey <tom@tromey.com>
6223 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6224 (struct program_space) <added_solibs>: Now a std::vector.
6225 * breakpoint.c (print_solib_event): Update.
6226 (check_status_catch_solib): Update.
6227 * progspace.c (clear_program_space_solib_cache): Update.
6228 * solib.c (update_solib_list): Update.
6230 2018-05-29 Tom Tromey <tom@tromey.com>
6232 * python/py-type.c (typy_richcompare): Update.
6233 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6234 * gdbtypes.h (types_deeply_equal): Return bool.
6235 (types_equal): Likewise.
6236 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6238 (check_types_equal): Change worklist to std::vector. Return
6240 (struct type_equality_entry): Add constructor.
6241 (compare_maybe_null_strings): Return bool.
6242 (check_types_worklist): Return bool. Change worklist to
6244 (types_deeply_equal): Use std::vector.
6245 (types_equal): Return bool.
6246 (compare_maybe_null_strings): Simplify.
6248 2018-05-29 Tom Tromey <tom@tromey.com>
6250 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6252 2018-05-29 Tom Tromey <tom@tromey.com>
6254 * objc-lang.h: Don't include cp-support.h.
6255 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6258 2018-05-27 Tom Tromey <tom@tromey.com>
6260 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6262 2018-05-25 Tom Tromey <tom@tromey.com>
6264 * value.c (value::location): Initialize.
6266 2018-05-25 Tom Tromey <tom@tromey.com>
6268 * dbxread.c (init_bincl_list): Remove.
6269 (bincl_list): Now a std::vector.
6270 (bincls_allocated, next_bincl): Remove.
6271 (free_bincl_list, do_free_bincl_list_cleanup)
6272 (make_cleanup_free_bincl_list): Remove.
6273 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6275 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6276 (struct header_file_location): Add constructor.
6277 (add_bincl_to_list): Remove.
6279 2018-05-25 Tom Tromey <tom@tromey.com>
6281 * tui/tui.c (tui_enable): Update.
6282 * mi/mi-interp.c (mi_interp::init): Update.
6283 * interps.h (class interp) <name>: New method.
6284 <m_name>: Rename from name.
6285 (~scoped_restore_interp): Update.
6286 * interps.c (interp::interp): Update.
6287 (interp_add, interp_set, interp_lookup_existing)
6288 (current_interp_named_p): Update.
6290 2018-05-25 Tom Tromey <tom@tromey.com>
6292 * interps.c (interp_name): Remove.
6293 * mi/mi-interp.c (mi_interp::init): Update.
6294 * interps.h (interp_name): Remove.
6295 (~scoped_restore_interp): Update.
6296 * tui/tui.c (tui_enable): Update.
6298 2018-05-25 Tom Tromey <tom@tromey.com>
6300 * utils.c (fputs_maybe_filtered): Update.
6301 * linespec.c (decode_line_full): Update.
6302 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6303 (mi_print_breakpoint_for_event, mi_solib_loaded)
6304 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6305 (mi_user_selected_context_changed): Update.
6306 * mi/mi-main.c (mi_execute_command): Update.
6307 * cli/cli-script.c (execute_control_command): Update.
6308 * python/python.c (execute_gdb_command): Update.
6309 * solib.c (info_sharedlibrary_command): Update.
6310 * interps.c (interp_ui_out): Remove.
6311 * interps.h (interp_ui_out): Remove.
6313 2018-05-25 Tom Tromey <tom@tromey.com>
6315 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6316 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6317 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6319 2018-05-25 Tom Tromey <tom@tromey.com>
6321 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6322 * interps.c (interp_exec): Use scoped_restore.
6324 2018-05-25 Tom Tromey <tom@tromey.com>
6326 * remote.c (remote_target::remote_file_get): Use
6328 (remote_target::remote_file_put): Likewise.
6330 2018-05-25 Tom Tromey <tom@tromey.com>
6332 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6334 (get_pe_section_index, add_pe_exported_sym): Update.
6335 (read_pe_exported_syms): Use gdb::def_vector.
6337 2018-05-25 Tom Tromey <tom@tromey.com>
6339 * frame.c (remove_prev_frame): Remove.
6340 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6342 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6344 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6346 * mips-linux-nat.c (supply_fpregset): Always call
6347 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6348 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6349 `mips_fill_fpregset'.
6350 * mips-linux-tdep.c (mips_supply_fpregset)
6351 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6352 (mips_fill_fpregset_wrapper): Remove functions.
6353 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6354 (mips_linux_fpregset): Remove variable.
6355 (mips_linux_iterate_over_regset_sections): Use
6356 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6357 (mips_linux_o32_sigframe_init): Remove comment.
6359 2018-05-25 Pedro Alves <palves@redhat.com>
6361 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6362 (struct readahead_cache, struct packet_reg, struct
6363 remote_arch_state, class remote_state): Move higher up in the
6365 (remote_target::m_remote_state): Now an object instead of a pointer.
6366 (remote_target::get_remote_state): Adjust.
6368 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6370 * stack.c (select_and_print_frame): Delete.
6371 (struct function_bounds): Move struct within function.
6372 (func_command): Most content moved into new function
6373 find_frame_for_function, use new function, print result, add
6375 (find_frame_for_function): New function, now returns a result.
6377 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6379 * stack.c (iterate_over_block_arg_vars): Fix comment.
6380 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6382 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6386 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6388 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6390 * frame.h (class scoped_restore_selected_frame): New class.
6391 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6392 of any exception, use scoped_restore_selected_frame to restore the
6395 2018-05-24 Pedro Alves <palves@redhat.com>
6397 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6400 2018-05-23 Tom Tromey <tom@tromey.com>
6402 * complaints.c (struct complaints): Remove.
6403 (symfile_complaint_book): Remove.
6404 (series): New global.
6405 (complaint_internal): Update.
6406 (clear_complaints): Update.
6408 2018-05-23 Tom Tromey <tom@tromey.com>
6410 * complaints.c (counters): New global.
6411 (struct complain): Remove.
6412 (struct complaints) <root>: Remove.
6413 (complaint_sentinel): Remove.
6414 (symfile_complaint_book): Update.
6415 (find_complaint) Remove.
6416 (complaint_internal, clear_complaints): Update.
6418 2018-05-23 Tom Tromey <tom@tromey.com>
6420 * complaints.c (struct complain) <file, line>: Remove.
6421 (find_complaint): Remove file, line parameters.
6422 (complaint_internal): Update.
6424 2018-05-23 Tom Tromey <tom@tromey.com>
6426 * complaints.c (vcomplaint): Remove.
6427 (complaint_internal) Merge in contents of vcomplaint.
6429 2018-05-23 Tom Tromey <tom@tromey.com>
6431 * complaints.c (struct complaints) <explanation>: Remove.
6432 (symfile_explanations): Remove.
6433 (symfile_complaint_book): Update.
6434 (vcomplaint): Update.
6435 (struct explanation): Remove.
6437 2018-05-23 Tom Tromey <tom@tromey.com>
6439 * complaints.c (symfile_complaints): Remove.
6440 (complaint_internal): Remove "complaints" parameter.
6441 (clear_complaints, vcomplaint): Remove "c" parameter.
6442 (get_complaints): Remove.
6443 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6444 (dwarf2_debug_line_missing_file_complaint)
6445 (dwarf2_debug_line_missing_end_sequence_complaint)
6446 (dwarf2_complex_location_expr_complaint)
6447 (dwarf2_const_value_length_mismatch_complaint)
6448 (dwarf2_section_buffer_overflow_complaint)
6449 (dwarf2_macro_malformed_definition_complaint)
6450 (dwarf2_invalid_attrib_class_complaint)
6451 (create_addrmap_from_index, dw2_symtab_iter_next)
6452 (dw2_expand_marked_cus)
6453 (dw2_debug_names_iterator::find_vec_in_debug_names)
6454 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6455 (create_debug_type_hash_table, init_cutu_and_read_dies)
6456 (partial_die_parent_scope, add_partial_enumeration)
6457 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6458 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6459 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6460 (create_cus_hash_table, create_dwp_hash_table)
6461 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6462 (dwarf2_rnglists_process, dwarf2_ranges_process)
6463 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6464 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6465 (handle_struct_member_die, process_structure_scope)
6466 (read_array_type, read_common_block, read_module_type)
6467 (read_tag_pointer_type, read_typedef, read_base_type)
6468 (read_subrange_type, load_partial_dies, partial_die_info::read)
6469 (partial_die_info::read, partial_die_info::read)
6470 (partial_die_info::read, read_checked_initial_length_and_offset)
6471 (dwarf2_string_attr, read_formatted_entries)
6472 (dwarf_decode_line_header)
6473 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6474 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6475 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6476 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6477 (get_signatured_type, get_DW_AT_signature_type)
6478 (decode_locdesc, file_file_name, consume_improper_spaces)
6479 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6480 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6481 (dwarf2_symbol_mark_computed, set_die_type)
6482 (read_attribute_value): Update.
6483 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6485 * dbxread.c (unknown_symtype_complaint)
6486 (lbrac_mismatch_complaint, repeated_header_complaint)
6487 (set_namestring, function_outside_compilation_unit_complaint)
6488 (read_dbx_symtab, process_one_symbol): Update.
6489 * gdbtypes.c (stub_noname_complaint): Update.
6490 * windows-nat.c (handle_unload_dll): Update.
6491 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6492 (decode_base_type): Update.
6493 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6494 (eb_complaint, record_include_begin, record_include_end)
6495 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6496 (process_xcoff_symbol, read_symbol)
6497 (function_outside_compilation_unit_complaint)
6498 (scan_xcoff_symtab): Update.
6499 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6500 * buildsym.c (finish_block_internal, make_blockvector)
6501 (end_symtab_get_static_block, augment_type_symtab): Update.
6502 * dtrace-probe.c (dtrace_process_dof)
6503 (dtrace_static_probe_ops::get_probes): Update.
6504 * complaints.h (struct complaint): Don't declare.
6505 (symfile_complaints): Remove.
6506 (complaint_internal): Remove "complaints" parameter.
6507 (complaint): Likewise.
6508 (clear_complaints): Likewise.
6509 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6510 (reread_symbols): Update.
6511 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6512 (dwarf2_frame_cache, decode_frame_entry): Update.
6513 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6514 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6515 (info_selectors_command): Update.
6516 * macrotab.c (macro_include, check_for_redefinition)
6517 (macro_undef): Update.
6518 * objfiles.c (filter_overlapping_sections): Update.
6519 * stabsread.c (invalid_cpp_abbrev_complaint)
6520 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6521 (define_symbol, error_type, read_type, rs6000_builtin_type)
6522 (stabs_method_name_from_physname, read_member_functions)
6523 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6524 (attach_fields_to_type, complain_about_struct_wipeout)
6525 (read_range_type, read_args, common_block_start)
6526 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6528 * mdebugread.c (index_complaint, unknown_ext_complaint)
6529 (basic_type_complaint, bad_tag_guess_complaint)
6530 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6531 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6532 (parse_procedure, parse_lines)
6533 (function_outside_compilation_unit_complaint)
6534 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6535 (bad_tag_guess_complaint, reg_value_complaint): Update.
6536 * cp-support.c (demangled_name_complaint): Update.
6537 * macroscope.c (sal_macro_scope): Update.
6538 * dwarf-index-write.c (class debug_names): Update.
6540 2018-05-23 Tom Tromey <tom@tromey.com>
6542 * complaints.c (clear_complaints): Remove "noisy" parameter.
6543 * complaints.h (clear_complaints): Update.
6544 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6545 (reread_symbols): Update.
6547 2018-05-23 Tom Tromey <tom@tromey.com>
6549 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6551 (vcomplaint, clear_complaints): Update.
6552 (symfile_explanations): Remove some messages.
6554 2018-05-23 Tom Tromey <tom@tromey.com>
6556 * complaints.c (internal_complaint): Remove.
6557 * complaints.h (internal_complaint): Remove.
6559 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6561 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6563 2018-05-22 Pedro Alves <palves@redhat.com>
6565 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6566 (remote_fileio_badfd, remote_fileio_return_errno)
6567 (remote_fileio_return_success, remote_fileio_func_open)
6568 (remote_fileio_func_open, remote_fileio_func_close)
6569 (remote_fileio_func_read, remote_fileio_func_write)
6570 (remote_fileio_func_lseek, remote_fileio_func_rename)
6571 (remote_fileio_func_unlink, remote_fileio_func_stat)
6572 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6573 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6574 remote_target parameter.
6575 (remote_fio_func_map) <func>: Add remote_target parameter.
6576 (do_remote_fileio_request, remote_fileio_request):
6577 * remote-fileio.h (remote_fileio_request):
6578 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6579 remote_target parameter.
6580 (remote_notif_process, handle_notification): Adjust to pass down
6582 (remote_notif_state_allocate): Add remote_target parameter. Save
6584 * remote-notif.h (struct remote_target): Forward declare.
6585 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6586 remote_target parameter.
6587 (struct remote_notif_state) <remote>: New field.
6588 (remote_notif_ack, remote_notif_parse): Add remote_target
6590 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6591 remote_target parameter.
6592 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6593 (threads_listing_context, rmt_thread_action, protocol_feature)
6594 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6595 (packet_result, struct threads_listing_context, remote_state):
6596 Move definitions and declarations higher up.
6597 (remote_target) <~remote_target>: Declare.
6598 (remote_download_command_source, remote_file_put, remote_file_get)
6599 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6600 (remote_hostio_pread_vFile, remote_hostio_send_command)
6601 (remote_hostio_set_filesystem, remote_hostio_open)
6602 (remote_hostio_close, remote_hostio_unlink, remote_state)
6603 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6604 (get_memory_write_packet_size, get_memory_read_packet_size)
6605 (append_pending_thread_resumptions, remote_detach_1)
6606 (append_resumption, remote_resume_with_vcont)
6607 (add_current_inferior_and_thread, wait_ns, wait_as)
6608 (process_stop_reply, remote_notice_new_inferior)
6609 (process_initial_stop_replies, remote_add_thread)
6610 (btrace_sync_conf, remote_btrace_maybe_reopen)
6611 (remove_new_fork_children, kill_new_fork_children)
6612 (discard_pending_stop_replies, stop_reply_queue_length)
6613 (check_pending_events_prevent_wildcard_vcont)
6614 (discard_pending_stop_replies_in_queue, stop_reply)
6615 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6616 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6617 (remote_interrupt_as, remote_interrupt_ns)
6618 (remote_get_noisy_reply, remote_query_attached)
6619 (remote_add_inferior, remote_current_thread, get_current_thread)
6620 (set_thread, set_general_thread, set_continue_thread)
6621 (set_general_process, write_ptid)
6622 (remote_unpack_thread_info_response, remote_get_threadinfo)
6623 (parse_threadlist_response, remote_get_threadlist)
6624 (remote_threadlist_iterator, remote_get_threads_with_ql)
6625 (remote_get_threads_with_qxfer)
6626 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6627 (get_offsets, remote_check_symbols, remote_supported_packet)
6628 (remote_query_supported, remote_packet_size)
6629 (remote_serial_quit_handler, remote_detach_pid)
6630 (remote_vcont_probe, remote_resume_with_hc)
6631 (send_interrupt_sequence, interrupt_query)
6632 (remote_notif_get_pending_events, fetch_register_using_p)
6633 (send_g_packet, process_g_packet, fetch_registers_using_g)
6634 (store_register_using_P, store_registers_using_G)
6635 (set_remote_traceframe, check_binary_download)
6636 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6637 (remote_xfer_live_readonly_partial, remote_read_bytes)
6638 (remote_send_printf, remote_flash_write, readchar)
6639 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6640 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6641 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6642 (extended_remote_disable_randomization, extended_remote_run)
6643 (send_environment_packet, extended_remote_environment_support)
6644 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6645 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6646 (packet_command): Now methods of ...
6647 (remote_target): ... this class.
6648 (m_remote_state) <remote_target>: New field.
6649 (struct remote_state) <stop_reply_queue,
6650 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6652 (remote_state::remote_state): Allocate stop_reply_queue.
6653 (remote_state): Delete global.
6654 (get_remote_state_raw): Delete.
6655 (remote_target::get_remote_state): Allocate m_remote_state on
6657 (get_current_remote_target): New.
6658 (remote_ops, extended_remote_ops): Delete.
6659 (wait_forever_enabled_p, remote_async_inferior_event_token):
6660 Delete, moved to struct remote_state.
6661 (remote_target::close): Delete self. Destruction bits split to
6663 (remote_target::~remote_target): ... this.
6664 (show_memory_packet_size): Adjust to use
6665 get_current_remote_target.
6666 (struct protocol_feature) <func>: Add remote_target parameter.
6667 All callers adjusted.
6668 (curr_quit_handler_target): New.
6669 (remote_serial_quit_handler): Reimplement.
6670 (remote_target::open_1): Adjust to use get_current_remote_target.
6671 Heap-allocate remote_target/extended_remote_target instances.
6672 (vcont_builder::vcont_builder): Add remote_target parameter, and
6673 save it in m_remote. All callers adjusted.
6674 (vcont_builder::m_remote): New field.
6675 (vcont_builder::restart, vcont_builder::flush)
6676 (vcont_builder::push_action): Use it.
6677 (remote_target::commit_resume): Use it.
6678 (struct queue_iter_param) <remote>: New field.
6679 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6680 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6681 (check_pending_event_prevents_wildcard_vcont_callback)
6682 (remote_target::check_pending_events_prevent_wildcard_vcont)
6683 (remote_target::discard_pending_stop_replies)
6684 (remote_target::discard_pending_stop_replies_in_queue)
6685 (remote_target::remote_notif_remove_queued_reply): Fill in
6687 (remote_notif_get_pending_events): New.
6688 (remote_target::readchar, remote_target::remote_serial_write):
6689 Save/restore curr_quit_handler_target.
6691 (kill_new_fork_children): Fill in 'remote' field.
6692 (packet_command): Use get_current_remote_target, defer to
6693 remote_target method of same name.
6694 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6695 parameter, and save it in m_remote. All callers adjusted.
6696 (scoped_remote_fd::release): Use m_remote.
6697 (scoped_remote_fd::m_remote): New field.
6698 (remote_file_put, remote_file_get, remote_file_delete): Use
6699 get_current_remote_target, defer to remote_target method of same
6701 (remote_btrace_reset): Add remote_state paremeter. Update all
6703 (remote_async_inferior_event_handler). Pass down 'data'.
6704 (remote_new_objfile): Use get_current_remote_target.
6705 (remote_target::vcont_r_supported): New.
6706 (set_range_stepping): Use get_current_remote_target and
6707 remote_target::vcont_r_supported.
6708 (_initialize_remote): Don't allocate 'remote_state' and
6709 'stop_reply_queue' globals.
6710 * remote.h (struct remote_target): Forward declare.
6711 (getpkt, putpkt, remote_notif_get_pending_events): Add
6712 'remote_target' parameter.
6714 2018-05-22 Pedro Alves <palves@redhat.com>
6716 * remote.c (vcont_builder): Now a class. Make all data members
6718 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6720 (vcont_builder_restart): Rename to ...
6721 (vcont_builder::restart): ... this.
6722 (vcont_builder_flush): Rename to ...
6723 (vcont_builder::flush): ... this.
6724 (vcont_builder_push_action): Rename to ...
6725 (vcont_builder::push_action): ... this.
6726 (remote_target::commit_resume): Adjust.
6728 2018-05-22 Pedro Alves <palves@redhat.com>
6730 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6731 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6732 (get_fixed_memory_packet_size): New.
6733 (get_memory_packet_size): Use it.
6734 (set_memory_packet_size): Don't override the config size with
6735 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6736 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6737 Don't refer to get_memory_packet_size if not connected to a remote
6738 target. Show "(default)" if configured size is 0.
6740 2018-05-22 Pedro Alves <palves@redhat.com>
6742 * remote.c (remote_target::mourn_inferior): Move
6743 discard_pending_stop_replies call here from ...
6744 (_initialize_remote): ... here.
6746 2018-05-22 Pedro Alves <palves@redhat.com>
6748 * remote.c (compare_section_command): Remove set_general_process
6751 2018-05-22 Pedro Alves <palves@redhat.com>
6753 * remote.c (struct packet_reg, struct remote_arch_state):
6754 Move higher up in the file.
6755 (remote_state) <m_arch_states>: Store remote_arch_state values
6756 instead of remote_arch_state pointers.
6757 (remote_state::get_remote_arch_state): Adjust.
6759 2018-05-22 Pedro Alves <palves@redhat.com>
6761 * remote.c: Include <unordered_map>.
6762 (remote_state): Now a class.
6763 (remote_state) <get_remote_arch_state>: Declare method.
6764 <get_remote_arch_state>: New field.
6765 (remote_arch_state) <remote_arch_state>: Declare ctor.
6766 <regs>: Now a unique_ptr.
6767 (remote_gdbarch_data_handle): Delete.
6768 (get_remote_arch_state): Delete.
6769 (remote_state::get_remote_arch_state): New.
6770 (get_remote_state): Adjust to call remote_state's
6771 get_remote_arch_state method.
6772 (init_remote_state): Delete, bits factored out to ...
6773 (remote_arch_state::remote_arch_state): ... this new method.
6774 (get_remote_packet_size, get_memory_packet_size)
6775 (process_g_packet, remote_target::fetch_registers)
6776 (remote_target::prepare_to_store, store_registers_using_G)
6777 (remote_target::store_registers, remote_target::get_trace_status):
6778 Adjust to call remote_state's method.
6779 (_initialize_remote): Remove reference to
6780 remote_gdbarch_data_handle.
6782 2018-05-22 Pedro Alves <palves@redhat.com>
6784 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6785 pread>: New method declarations.
6786 (remote_target::open_1): Adjust.
6787 (readahead_cache_invalidate): Rename to ...
6788 (readahead_cache::invalidate): ... this, and adjust to be a class
6790 (readahead_cache_invalidate_fd): Rename to ...
6791 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6793 (remote_hostio_pwrite): Adjust.
6794 (remote_hostio_pread_from_cache): Rename to ...
6795 (readahead_cache::pread): ... this, and adjust to be a class
6797 (remote_hostio_close): Adjust.
6799 2018-05-22 Pedro Alves <palves@redhat.com>
6801 * remote.c (remote_hostio_close_cleanup): Delete.
6802 (class scoped_remote_fd): New.
6803 (remote_file_put, remote_file_get): Use it.
6805 2018-05-22 Pedro Alves <palves@redhat.com>
6807 (struct vCont_action_support): Use bool and initialize all fields.
6808 (struct readahead_cache): Initialize all fields.
6809 (remote_state): Use bool and initialize all fields.
6810 (remote_state::remote_state, remote_state::~remote_state): New.
6811 (new_remote_state): Delete.
6812 (_initialize_remote): Use new to allocate remote_state.
6814 2018-05-22 Pedro Alves <palves@redhat.com>
6818 * c-exp.y: Include "c-support.h".
6819 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6820 of tolower. Use c_ident_is_alpha to scan names.
6821 * c-lang.c: Include "c-support.h".
6822 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6823 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6824 * c-support.h: New file, with bits factored out from ...
6825 * cp-name-parser.y: ... this file.
6826 Include "c-support.h".
6827 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6828 c-support.h and renamed.
6829 (symbol_end, yylex): Adjust.
6831 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6833 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6834 parameter type to CORE_ADDR.
6835 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6836 parameter type in declaration to CORE_ADDR.
6837 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6838 target_auxv_search to get AT_HWCAP and use the result to get the
6840 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6841 to CORE_ADDR. Remove the cast of the return value to unsigned
6842 long. Fix error predicate of target_auxv_search.
6843 (ppc_linux_nat_target::read_description): Change the type of the
6844 hwcap variable to CORE_ADDR.
6846 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6848 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6849 if the size of fpscr is larger than 32 bits.
6851 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6853 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6854 (ppc32_linux_vsxregmap): New global.
6855 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6856 regcache_supply_regset, and regcache_collect_regset.
6857 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6858 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6859 (fetch_vsx_register, store_vsx_register): Remove.
6860 (fetch_vsx_registers): Add regno parameter. Get regset using
6861 ppc_linux_vsxregset. Use regset to supply registers.
6862 (store_vsx_registers): Add regno parameter. Get regset using
6863 ppc_linux_vsxregset. Use regset to collect registers.
6864 (fetch_register): Call fetch_vsx_registers instead of
6866 (store_register): Call store_vsx_registers instead of
6868 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6869 new regno parameter.
6870 (store_ppc_registers): Call store_vsx_registers with -1 for the
6871 new regno parameter.
6872 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6873 (ppc_collect_vsxregset): Remove.
6875 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6877 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6879 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6880 for vector register offset fields.
6881 (ppc64_fbsd_reg_offsets): Likewise.
6882 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6883 to vector register offset fields.
6884 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6885 to vector register offset fields.
6886 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6887 vector register offset fields.
6888 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6889 initializers for vector register offset fields.
6890 (rs6000_aix64_reg_offsets): Likewise.
6891 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6892 (ppc_supply_vrregset): Remove.
6893 (ppc_collect_vrregset): Remove.
6894 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6895 (ppc_linux_vrregset) : New function.
6896 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6897 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6898 (ppc32_linux_vrregset): Remove.
6899 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6900 and use result instead of ppc32_linux_vrregset.
6901 (ppc32_linux_reg_offsets): Remove initializers for vector register
6903 (ppc64_linux_reg_offsets): Likewise.
6904 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6905 * ppc-linux-nat.c: Include regset.h.
6906 (gdb_vrregset_t): Adjust comment to account for little-endian
6908 (supply_vrregset, fill_vrregset): Remove.
6909 (fetch_altivec_register, store_altivec_register): Remove.
6910 (fetch_altivec_registers): Add regno parameter. Get regset using
6911 ppc_linux_vrregset. Use regset to supply registers.
6912 (store_altivec_registers): Add regno parameter. Get regset using
6913 ppc_linux_vrregset. Use regset to collect registers.
6914 (fetch_register): Call fetch_altivec_registers instead of
6915 fetch_altivec_register.
6916 (store_register): Call store_altivec_registers instead of
6917 store_altivec_register.
6918 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6919 the new regno parameter.
6920 (store_ppc_registers): Call store_altivec_registers with -1 for
6921 the new regno parameter.
6923 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6925 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6926 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6927 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6928 (gdb_vrregset_t): Change array type size to
6929 PPC_LINUX_SIZEOF_VRREGSET.
6930 (gdb_vsxregset_t): Change array type size to
6931 PPC_LINUX_SIZEOF_VSXREGSET.
6932 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6933 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6934 PPC_LINUX_SIZEOF_VSXREGSET.
6936 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6938 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6939 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6941 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6942 ppc_linux_target_wordsize with tid.
6943 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6945 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6946 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6947 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6948 tid parameter. Remove static specifier.
6949 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6950 (ppc_linux_target_wordsize): New declaration.
6952 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6954 * arch/ppc-linux-common.c: New file.
6955 * arch/ppc-linux-common.h: New file.
6956 * arch/ppc-linux-tdesc.h: New file.
6957 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6958 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6959 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6960 arch/ppc-linux-tdesc.h.
6961 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6962 arch/ppc-linux-tdesc.h.
6963 (ppc_linux_nat_target::read_description): Remove target
6964 description matching code. Fill a ppc_linux_features struct and
6965 call ppc_linux_match_description with it. Move comment about ISA
6966 2.05 to ppc-linux-common.c.
6967 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6968 arch/ppc-linux-tdesc.h.
6969 (ppc_linux_core_read_description): Remove target description
6970 matching code. Fill a ppc_linux_features struct and call
6971 ppc_linux_match_description with it.
6972 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6973 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6974 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6975 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6976 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6977 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6978 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6979 (tdesc_powerpc_e500l): Remove.
6981 2018-05-22 Joel Brobecker <brobecker@adacore.com>
6983 * ada-lang.c (catch_assert_command): Pass empty string instead
6984 of NULL for excep_string argument.
6986 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6988 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
6989 the width of the requested register exceeds the width of the
6992 2018-05-21 Tom Tromey <tom@tromey.com>
6994 * printcmd.c (output_command): Remove.
6995 (output_command_const): Rename to output_command.
6996 * valprint.h (output_command): Rename from output_command_const.
6997 * tracepoint.c (trace_dump_actions): Call output_command.
6999 2018-05-21 Tom Tromey <tom@tromey.com>
7001 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7002 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7003 * ada-lang.h (create_ada_exception_catchpoint): Update.
7004 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7006 (create_excep_cond_exprs, ~ada_catchpoint)
7007 (should_stop_exception, print_one_exception)
7008 (print_mention_exception, print_recreate_exception): Update.
7009 (ada_get_next_arg): Remove.
7010 (catch_ada_exception_command_split): Use std::string. Change type
7011 of "excep_string", "cond_string".
7012 (catch_ada_exception_command): Update.
7013 (create_ada_exception_catchpoint): Change type of excep_string.
7014 (ada_exception_sal): Remove excep_string parameter.
7015 (~ada_catchpoint): Remove.
7017 2018-05-21 Tom Tromey <tom@tromey.com>
7019 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7022 2018-05-21 Tom Tromey <tom@tromey.com>
7024 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7025 Return unique_xmalloc_ptr.
7026 (print_it_exception): Update.
7028 2018-05-21 Tom Tromey <tom@tromey.com>
7030 * tracepoint.c (trace_dump_actions): Use std::string.
7032 2018-05-21 Tom Tromey <tom@tromey.com>
7034 * symfile.c (reread_symbols): Use std::string for original_name.
7036 2018-05-21 Tom Tromey <tom@tromey.com>
7038 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7039 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7042 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7044 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7046 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7047 * objfiles.c (get_objfile_bfd_data): Allocate
7048 objfile_per_bfd_storage with obstack_new when allocating on
7051 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7053 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7055 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7056 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7057 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7058 (add_pending): Likewise.
7059 (parse_symbol): Likewise.
7060 (parse_partial_symbols): Likewise.
7061 (psymtab_to_symtab_1): Likewise.
7062 (new_psymtab): Likewise.
7063 (elfmdebug_build_psymtabs): Likewise.
7064 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7065 * objfiles.c (get_objfile_bfd_data): Likewise.
7066 (objfile_register_static_link): Likewise.
7067 * psymtab.c (allocate_psymtab): Likewise.
7068 * stabsread.c (read_member_functions): Likewise.
7069 * xcoffread.c (xcoff_end_psymtab): Likewise.
7071 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7073 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7074 compiler supports std::is_trivially_constructible.
7075 * common/poison.h: Include obstack.h.
7076 (IsMallocable): Define to is_trivially_constructible if the
7077 compiler supports it, define to true_type otherwise.
7081 (XOBNEWVEC): Redefine.
7082 * gdb_obstack.h (obstack_zalloc): New.
7083 (OBSTACK_ZALLOC): Redefine.
7084 (obstack_calloc): New.
7085 (OBSTACK_CALLOC): Redefine.
7087 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7088 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7090 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7091 obstack_calloc/obstack_zalloc.
7092 (gdbarch_obstack_zalloc): Remove.
7093 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7095 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7097 * stack.c (backtrace_command_1): Remove useless variable int i.
7099 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7101 * stack.c (print_frame_info): Fix comment.
7103 2018-05-18 Tom Tromey <tom@tromey.com>
7105 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7106 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7107 (~dwarf2_per_objfile): Update
7108 (dwarf2_get_dwz_file): Use new.
7109 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7112 2018-05-18 Tom Tromey <tom@tromey.com>
7114 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7116 * dwarf2read.c (struct dwp_file): Add constructor and
7118 (open_and_init_dwp_file): Return a unique_ptr.
7119 (dwarf2_per_objfile, create_dwp_hash_table)
7120 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7121 (lookup_dwo_unit_in_dwp): Update.
7122 (open_and_init_dwp_file, get_dwp_file): Update.
7124 2018-05-18 Tom Tromey <tom@tromey.com>
7126 * dwarf2read.c (dwarf2_per_objfile): Update.
7127 (struct mapped_index): Add initializers.
7128 (dwarf2_read_index): Use new.
7129 (dw2_symtab_iter_init): Update.
7130 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7133 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7135 * dwarf2read.c (mapped_index) <total_size>: Remove.
7137 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7139 * unittests/format_pieces-selftests.c (test_format_specifier):
7142 2018-05-18 Tom Tromey <tom@tromey.com>
7144 * c-typeprint.c (maybe_print_hole): New function.
7145 (c_print_type_struct_field_offset): Update.
7146 (c_type_print_base_struct_union): Call maybe_print_hole.
7148 2018-05-17 Keith Seitz <keiths@redhat.com>
7150 * breakpoint.c (build_bpstat_chain): New function, moved from
7152 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7153 If no stop chain is passed, call build_bpstat_chain to build it.
7154 * breakpoint.h (build_bpstat_chain): Declare.
7155 (bpstat_stop_status): Move documentation here from breakpoint.c.
7156 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7157 build the stop chain and pass it to skip_inline_frames.
7158 Pass this stop chain to bpstat_stop_status.
7159 * inline-frame.c: Include breakpoint.h.
7160 (stopped_by_user_bp_inline_frame): New function.
7161 (skip_inline_frames): Add parameter `stop_chain'.
7162 Move documention to inline-frame.h.
7163 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7164 whether the frame should be elided.
7165 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7166 Add moved documentation and update for new parameter.
7168 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7171 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7172 unittests/format_pieces-selftests.c.
7173 * common/format.h (format_piece) <operator==>: New.
7174 (format_pieces) <operator[]>: Remove.
7175 * common/format.c (format_pieces::format_pieces): Handle \e.
7176 * unittests/format_pieces-selftests.c: New.
7178 2018-05-17 Tom Tromey <tom@tromey.com>
7181 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7182 (dw2_instantiate_symtab): Add skip_partial parameter.
7183 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7184 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7185 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7186 (dw2_expand_symtabs_matching_one)
7187 (dw2_find_pc_sect_compunit_symtab)
7188 (dw2_debug_names_lookup_symbol)
7189 (dw2_debug_names_expand_symtabs_for_function): Update.
7190 (init_cutu_and_read_dies): Add skip_partial parameter.
7191 (process_psymtab_comp_unit, build_type_psymtabs_1)
7192 (process_skeletonless_type_unit, load_partial_comp_unit)
7193 (psymtab_to_symtab_1): Update.
7194 (load_full_comp_unit): Add skip_partial parameter.
7195 (process_imported_unit_die, dwarf2_read_addr_index)
7196 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7197 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7198 (read_signatured_type): Update.
7200 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7202 * value.c (release_value): Remove unused variable.
7203 (record_latest_value): Likewise.
7204 (access_value_history): Likewise.
7205 (preserve_values): Likewise.
7207 2018-05-17 Tom Tromey <tom@tromey.com>
7209 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7212 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7215 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7216 Also handle registers whose width is not a multiple of
7218 (linux_nat_trad_target::store_register): Likewise.
7220 2018-05-16 Tom Tromey <tom@tromey.com>
7222 * gdbcore.h (core_bfd): Redefine.
7223 * corelow.c (core_target::close): Update.
7224 (core_target_open): Update.
7225 * progspace.h (struct program_space) <cbfd>: Now a
7228 2018-05-16 Tom Tromey <tom@tromey.com>
7231 * symfile-add-flags.h (enum symfile_add_flags)
7232 <SYMFILE_NOT_FILENAME>: New constant.
7233 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7234 objfile name from BFD.
7235 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7236 * minidebug.c (find_separate_debug_file_in_section): Put
7237 ".gnu_debugdata" into BFD's file name.
7239 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7241 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7244 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7247 * aarch64-tdep.c (aarch64_analyze_prologue,
7248 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7249 Indicate not interested in errors.
7251 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7253 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7254 Supply the MIPS_ZERO_REGNUM register.
7256 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7258 * mips-tdep.c (mask_address_var): Make variable static.
7260 2018-05-14 Tom Tromey <tom@tromey.com>
7262 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7264 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7266 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7267 FXSAVE_ADDR for the mxcsr register.
7269 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7271 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7273 2018-05-11 Pedro Alves <palves@redhat.com>
7275 * corelow.c (core_target) <core_target>: No longer inline.
7276 Initialize m_core_gdbarch, m_core_vec and build the section table
7278 <~core_target>: New.
7279 <core_gdbarch, get_core_register_section>: New methods.
7280 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7281 factored out from ...
7282 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7284 (sniff_core_bfd): Add gdbarch parameter.
7285 (core_close): Delete, merged into ...
7286 (core_target::close): ... here. Delete self.
7287 (core_close_cleanup): Delete.
7288 (core_target_open): Allocate a core_target on the heap. Use a
7289 unique_ptr instead of a cleanup. Bits moved into the core_target
7290 ctor. Adjust to use core_target methods instead of globals.
7291 (get_core_register_section): Rename to ...
7292 (core_target::get_core_register_section): ... this and adjust.
7293 (struct get_core_registers_cb_data): New.
7294 (get_core_registers_cb): Use it. Use bool.
7295 (core_target::fetch_registers, core_target::files_info)
7296 (core_target::xfer_partial, core_target::read_description)
7297 (core_target::pid_to, core_target::thread_name): Adjust to
7298 reference class fields instead of globals.
7299 * target.h (struct target_ops_deleter, target_ops_up): New.
7301 2018-05-11 Pedro Alves <palves@redhat.com>
7303 * corefile.c (core_file_command): Move to corelow.c.
7304 * corelow.c (the_core_target): Delete.
7305 (core_file_command): Moved from corefile.c. Check exec_bfd
7306 instead of the_core_target. Use target_detach instead of calling
7307 into the_core_target directly.
7308 (maybe_say_no_core_file_now): New.
7309 (core_target::detach): Use it.
7310 (_initialize_corelow): Remove references to the_core_target.
7311 * gdbcore.h (the_core_target): Delete.
7313 2018-05-11 Tom Tromey <tromey@redhat.com>
7314 Pedro Alves <palves@redhat.com>
7316 * corefile.c (core_bfd): Remove.
7317 * gdbcore.h (core_bfd): Now a macro.
7318 * progspace.h (struct program_space) <cbfd>: New field.
7320 2018-05-11 Tom Tromey <tom@tromey.com>
7322 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7325 2018-05-10 Tom Tromey <tom@tromey.com>
7327 * configure: Rebuild.
7328 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7330 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7333 * regformats/regdat.sh: Adjust script, following the addition
7334 of the new expedite_regs parameter to init_target_desc.
7336 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7339 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7340 set_gdbarch_significant_addr_bit.
7341 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7342 set_gdbarch_significant_addr_bit.
7343 * utils.c (address_significant): Update to sign extend addr.
7345 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7347 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7348 (xtensa_linux_init_abi): Limit tdep->num_regs by
7349 tdep->num_nopriv_regs.
7350 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7351 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7354 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7356 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7358 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7360 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7361 (I387_MXCSR_INIT_VAL): New constant.
7362 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7363 buffer if it was supplied by the inferior.
7364 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7365 (i387_xsave_get_clear_bv): New function.
7366 (i387_supply_xsave): Only read x87 control registers from the
7367 xsave buffer if the feature is enabled, and the state will have
7368 been written, otherwise, provide a suitable default.
7369 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7370 including x87 control registers. Update control registers if they
7371 have changed from the default value, and mark features as enabled
7373 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7375 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7377 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7379 2018-05-07 Tom Tromey <tom@tromey.com>
7381 * configure: Rebuild.
7382 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7384 2018-05-07 Tom Tromey <tom@tromey.com>
7387 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7388 bit. Use correct value for VDIV.
7390 2018-05-04 Tom Tromey <tom@tromey.com>
7392 * configure: Rebuild.
7393 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7395 2018-05-04 Tom Tromey <tom@tromey.com>
7397 * linux-record.c (record_linux_system_call) <case
7398 RECORD_SYS_RECVFROM>: Add "break".
7400 2018-05-04 Tom Tromey <tom@tromey.com>
7402 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7403 Add missing "break".
7404 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7405 Add missing "break".
7407 2018-05-04 Tom Tromey <tom@tromey.com>
7409 * rs6000-tdep.c (ppc_process_record_op4)
7410 (ppc_process_record_op63): Add fall-through comment.
7412 2018-05-04 Tom Tromey <tom@tromey.com>
7414 * i386-tdep.c (i386_process_record): Add fall-through comment.
7416 2018-05-04 Tom Tromey <tom@tromey.com>
7418 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7421 2018-05-04 Tom Tromey <tom@tromey.com>
7423 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7424 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7425 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7427 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7429 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7432 2018-05-04 Tom Tromey <tom@tromey.com>
7434 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7436 2018-05-04 Tom Tromey <tom@tromey.com>
7438 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7439 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7440 * symfile.c (section_is_mapped): Fix fall-through comment.
7441 * stabsread.c (define_symbol, read_member_functions): Fix
7442 fall-through comment.
7443 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7445 * remote.c (remote_wait_as): Fix fall-through comment.
7446 * p-exp.y (yylex): Fix fall-through comment.
7447 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7449 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7450 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7451 * jv-exp.y (yylex): Fix fall-through comment.
7452 * go-exp.y (lex_one_token): Fix fall-through comment.
7453 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7454 fall-through comment.
7455 * f-exp.y (yylex): Fix fall-through comment.
7456 * dwarf2read.c (process_die): Fix fall-through comments.
7457 * dbxread.c (process_one_symbol): Fix fall-through comment.
7458 * d-exp.y (lex_one_token): Fix fall-through comment.
7459 * cp-name-parser.y (yylex): Fix fall-through comment.
7460 * coffread.c (coff_symtab_read): Fix fall-through comment.
7461 * c-exp.y (lex_one_token): Fix fall-through comment.
7462 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7464 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7467 2018-05-04 Tom Tromey <tom@tromey.com>
7470 * NEWS: Mention gdb.execute change.
7471 * gdbcmd.h (execute_control_command): Don't declare.
7472 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7473 execute_control_commands, execute_control_commands_to_string.
7474 * cli/cli-script.h (execute_control_commands)
7475 (execute_control_commands_to_string): Declare.
7476 (execute_control_command): Add from_tty parameter.
7477 * cli/cli-script.c (execute_control_commands)
7478 (execute_control_commands_to_string): New functions.
7479 (execute_user_command): Use execute_control_commands.
7480 (execute_control_command_1): Add "from_tty" parameter. Update.
7481 (execute_control_command): Likewise.
7483 2018-05-04 Tom Tromey <tom@tromey.com>
7486 * NEWS: Mention that breakpoint commands are writable.
7487 * python/py-breakpoint.c (bppy_set_commands): New function.
7488 (breakpoint_object_getset) <"commands">: Use it.
7490 2018-05-04 Tom Tromey <tom@tromey.com>
7492 * tracepoint.c (actions_command): Update.
7493 * mi/mi-cmd-break.c (mi_command_line_array)
7494 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7495 (mi_read_next_line): Remove.
7496 (mi_cmd_break_commands): Update.
7497 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7499 * cli/cli-script.c (get_command_line): Update.
7500 (process_next_line): Use function_view. Constify.
7501 (recurse_read_control_structure, read_command_lines)
7502 (read_command_lines_1): Change argument types to function_view.
7503 (do_define_command, document_command): Update.
7504 * breakpoint.h (check_tracepoint_command): Don't declare.
7505 * breakpoint.c (check_tracepoint_command): Remove.
7506 (commands_command_1, create_tracepoint_from_upload): Update.
7508 2018-05-04 Tom Tromey <tom@tromey.com>
7511 * cli/cli-script.h (enum command_control_type) <define_control>:
7513 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7514 (build_command_line, execute_control_command_1)
7515 (process_next_line): Likewise.
7516 (do_define_command): New function, extracted from define_command.
7517 (define_command): Use it.
7519 2018-05-04 Tom Tromey <tom@tromey.com>
7521 * tracepoint.c (actions_command): Update.
7522 * cli/cli-script.h (read_command_lines): Update.
7523 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7524 (MAX_TMPBUF): Remove define.
7525 (define_command): Use string_printf.
7526 (document_command): Likewise.
7527 * breakpoint.c (commands_command_1): Update.
7529 2018-05-04 Tom Tromey <tom@tromey.com>
7531 * top.c (execute_command): Update.
7532 * cli/cli-script.h (print_command_lines): Now varargs.
7533 * cli/cli-script.c (print_command_lines): Now varargs.
7534 (execute_control_command_1) <case while_control, case if_control>:
7537 2018-05-04 Tom Tromey <tom@tromey.com>
7539 * tracepoint.c (all_tracepoint_actions): Rename from
7540 all_tracepoint_actions_and_cleanup. Change return type.
7541 (actions_command, encode_actions_1, encode_actions)
7542 (trace_dump_actions, tdump_command): Update.
7543 * remote.c (remote_download_command_source): Update.
7544 * python/python.c (gdbpy_eval_from_control_command)
7545 (python_command, python_interactive_command): Update.
7546 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7547 * guile/guile.c (guile_command)
7548 (gdbscm_eval_from_control_command, guile_command): Update.
7549 * compile/compile.c (compile_code_command)
7550 (compile_print_command, compile_to_object): Update.
7551 * cli/cli-script.h (struct command_lines_deleter): New.
7552 (counted_command_line): New typedef.
7553 (struct command_line): Add constructor, destructor.
7554 <body_list>: Remove.
7555 <body_list_0, body_list_1>: New members.
7556 (command_line_up): Remove typedef.
7557 (read_command_lines, read_command_lines_1, get_command_line):
7559 (copy_command_lines): Don't declare.
7560 * cli/cli-script.c (build_command_line): Use "new".
7561 (get_command_line): Return counted_command_line.
7562 (print_command_lines, execute_user_command)
7563 (execute_control_command_1, while_command, if_command): Update.
7564 (realloc_body_list): Remove.
7565 (process_next_line, recurse_read_control_structure): Update.
7566 (read_command_lines, read_command_lines_1): Return counted_command_line.
7567 (free_command_lines): Use "delete".
7568 (copy_command_lines): Remove.
7569 (define_command, document_command, show_user_1): Update.
7570 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7571 a counted_command_line.
7572 * breakpoint.h (counted_command_line): Remove typedef.
7573 (breakpoint_set_commands): Update.
7574 * breakpoint.c (check_no_tracepoint_commands)
7575 (validate_commands_for_breakpoint): Update.
7576 (breakpoint_set_commands): Change commands to be a
7577 counted_command_line.
7578 (commands_command_1, update_dprintf_command_list)
7579 (create_tracepoint_from_upload): Update.
7581 2018-05-04 Tom Tromey <tom@tromey.com>
7583 * cli/cli-decode.h (cmd_list_element): New constructor.
7584 (~cmd_list_element): New destructor.
7585 (struct cmd_list_element): Add initializers.
7586 * cli/cli-decode.c (do_add_cmd): Use "new".
7587 (delete_cmd): Use "delete".
7589 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7590 Pedro Alves <palves@redhat.com>
7592 PR breakpoints/19806 and support for PR external/20207.
7593 * NEWS: Mention Aarch64 watchpoint improvements.
7594 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7595 watchpoints and PR external/20207 watchpoints.
7596 * nat/aarch64-linux-hw-point.c
7597 (kernel_supports_any_contiguous_range): New.
7598 (aarch64_watchpoint_offset): New.
7599 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7600 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7601 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7602 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7603 next_addr_orig_p. Support PR external/20207 watchpoints.
7604 (aarch64_downgrade_regs): New.
7605 (aarch64_dr_state_insert_one_point): New parameters offset and
7607 (aarch64_dr_state_remove_one_point): Likewise.
7608 (aarch64_handle_breakpoint): Update caller.
7609 (aarch64_handle_aligned_watchpoint): Likewise.
7610 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7612 (aarch64_linux_set_debug_regs): Remove const from state. Call
7613 aarch64_downgrade_regs.
7614 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7615 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7616 (DR_CONTROL_MASK): ... this.
7617 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7618 (unsigned int aarch64_watchpoint_offset): New prototype.
7619 (aarch64_linux_set_debug_regs): Remove const from state.
7620 * utils.c (align_up, align_down): Move to ...
7621 * common/common-utils.c (align_up, align_down): ... here.
7622 * utils.h (align_up, align_down): Move to ...
7623 * common/common-utils.h (align_up, align_down): ... here.
7625 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7627 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7628 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7629 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7630 Re-implement to match the ABI as summarized in GCC's
7631 gcc/config/sparc/sparc.c. All callers updated.
7632 (sparc32_store_arguments): Remove assertion.
7634 2018-05-04 Tom Tromey <tom@tromey.com>
7636 * printcmd.c: Don't include tui.h.
7637 (decode_format): Use skip_spaces.
7639 2018-05-04 Tom Tromey <tom@tromey.com>
7642 * printcmd.c (last_count): New global.
7643 (x_command): Use saved count when repeating.
7645 2018-05-04 Tom Tromey <tom@tromey.com>
7647 * nto-procfs.c (do_closedir_cleanup): Remove.
7648 (procfs_pidlist): Use gdb_dir_up.
7649 * procfs.c (do_closedir_cleanup): Remove.
7650 (proc_update_threads): Use gdb_dir_up.
7651 * common/filestuff.h (struct gdb_dir_deleter): New.
7652 (gdb_dir_up): New typedef.
7654 2018-05-04 Tom Tromey <tom@tromey.com>
7656 * ada-lang.c (print_mention_exception): Use std::string.
7658 2018-05-04 Tom Tromey <tom@tromey.com>
7660 * ada-lang.c (create_excep_cond_exprs): Update.
7661 (ada_exception_catchpoint_cond_string): Use std::string.
7663 2018-05-04 Tom Tromey <tom@tromey.com>
7665 * ada-lang.c (xget_renaming_scope): Return std::string.
7666 (old_renaming_is_invisible): Update.
7668 2018-05-04 Tom Tromey <tom@tromey.com>
7670 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7671 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7673 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7675 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7677 2018-05-04 Tom Tromey <tom@tromey.com>
7679 * remote.c (remote_query_supported_append): Change type.
7680 (remote_check_symbols): Update.
7682 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7685 * configure.ac: Prepend libpython.
7686 * python/python-config.py: Likewise.
7687 * configure: Regenerate.
7689 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7691 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7693 2018-05-03 Pedro Alves <palves@redhat.com>
7696 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7697 override. Write 'true' instead of '1'.
7698 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7701 2018-05-02 Pedro Alves <palves@redhat.com>
7703 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7704 add_inf_child_target.
7705 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7706 add_inf_child_target.
7707 * aix-thread.c (aix_thread_target_info): New.
7708 (aix_thread_target) <shortname, longname, doc>: Delete.
7710 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7711 add_inf_child_target.
7712 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7713 add_inf_child_target.
7714 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7715 add_inf_child_target.
7716 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7717 add_inf_child_target.
7718 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7719 add_inf_child_target.
7720 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7721 add_inf_child_target.
7722 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7723 add_inf_child_target.
7724 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7725 add_inf_child_target.
7726 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7727 add_inf_child_target.
7728 * bfd-target.c (target_bfd_target_info): New.
7729 (target_bfd) <shortname, longname, doc>: Delete.
7731 * bsd-kvm.c (bsd_kvm_target_info): New.
7732 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7734 (bsd_kvm_target::open): Rename to ...
7735 (bsd_kvm_target_open): ... this. Adjust.
7736 * bsd-uthread.c (bsd_uthread_target_info): New.
7737 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7739 * corefile.c (core_file_command): Adjust.
7740 * corelow.c (core_target_info): New.
7741 (core_target) <shortname, longname, doc>: Delete.
7743 (core_target::open): Rename to ...
7744 (core_target_open): ... this. Adjust.
7745 * ctf.c (ctf_target_info): New.
7746 (ctf_target) <shortname, longname, doc>: Delete.
7748 (ctf_target::open): Rename to ...
7749 (ctf_target_open): ... this.
7750 (_initialize_ctf): Adjust.
7751 * exec.c (exec_target_info): New.
7752 (exec_target) <shortname, longname, doc>: Delete.
7754 (exec_target::open): Rename to ...
7755 (exec_target_open): ... this.
7756 * gdbcore.h (core_target_open): Declare.
7757 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7758 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7759 add_inf_child_target.
7760 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7761 add_inf_child_target.
7762 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7763 add_inf_child_target.
7764 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7765 add_inf_child_target.
7766 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7767 add_inf_child_target.
7768 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7769 add_inf_child_target.
7770 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7771 add_inf_child_target.
7772 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7773 add_inf_child_target.
7774 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7775 add_inf_child_target.
7776 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7777 add_inf_child_target.
7778 * inf-child.c (inf_child_target_info): New.
7779 (inf_child_target::info): New.
7780 (inf_child_open_target): Remove 'target' parameter. Use
7781 get_native_target instead.
7782 (inf_child_target::open): Delete.
7783 (add_inf_child_target): New.
7784 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7787 (add_inf_child_target): Declare.
7788 (inf_child_open_target): Declare.
7789 * linux-thread-db.c (thread_db_target_info): New.
7790 (thread_db_target) <shortname, longname, doc>: Delete.
7792 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7793 add_inf_child_target.
7794 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7795 add_inf_child_target.
7796 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7797 add_inf_child_target.
7798 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7799 add_inf_child_target.
7800 * make-target-delegates (print_class): Adjust.
7801 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7802 add_inf_child_target.
7803 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7804 add_inf_child_target.
7805 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7806 add_inf_child_target.
7807 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7808 add_inf_child_target.
7809 * nto-procfs.c (nto_native_target_info): New.
7810 (nto_procfs_target_native) <shortname, longname, doc>:
7813 (nto_procfs_target_info): New.
7814 (nto_procfs_target_procfs) <shortname, longname, doc>:
7817 (init_procfs_targets): Adjust.
7818 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7819 add_inf_child_target.
7820 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7821 add_inf_child_target.
7822 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7823 add_inf_child_target.
7824 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7825 add_inf_child_target.
7826 * ravenscar-thread.c (ravenscar_target_info): New.
7827 (ravenscar_thread_target) <shortname, longname, doc>:
7830 * record-btrace.c (record_btrace_target_info):
7831 (record_btrace_target) <shortname, longname, doc>: Delete.
7833 (record_btrace_target::open): Rename to ...
7834 (record_btrace_target_open): ... this. Adjust.
7835 * record-full.c (record_longname, record_doc): New.
7836 (record_full_base_target) <shortname, longname, doc>: Delete.
7838 (record_full_target_info): New.
7839 (record_full_target): <shortname>: Delete.
7841 (record_full_core_open_1, record_full_open_1): Update comments.
7842 (record_full_base_target::open): Rename to ...
7843 (record_full_open): ... this.
7844 (cmd_record_full_restore): Update.
7845 (_initialize_record_full): Update.
7846 * remote-sim.c (remote_sim_target_info): New.
7847 (gdbsim_target) <shortname, longname, doc>: Delete.
7849 (gdbsim_target::open): Rename to ...
7850 (gdbsim_target_open): ... this.
7851 (_initialize_remote_sim): Adjust.
7852 * remote.c (remote_doc): New.
7853 (remote_target_info): New.
7854 (remote_target) <shortname, longname, doc>: Delete.
7856 (extended_remote_target_info): New.
7857 (extended_remote_target) <shortname, longname, doc>: Delete.
7859 (remote_target::open_1): Make static. Adjust.
7860 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7861 * s390-linux-nat.c (_initialize_s390_nat): Use
7862 add_inf_child_target.
7863 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7864 add_inf_child_target.
7865 * sol-thread.c (thread_db_target_info): New.
7866 (sol_thread_target) <shortname, longname, doc>: Delete.
7868 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7869 add_inf_child_target.
7870 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7871 add_inf_child_target.
7872 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7873 add_inf_child_target.
7874 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7875 add_inf_child_target.
7876 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7877 add_inf_child_target.
7878 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7879 add_inf_child_target.
7880 * spu-linux-nat.c (_initialize_spu_nat): Use
7881 add_inf_child_target.
7882 * spu-multiarch.c (spu_multiarch_target_info): New.
7883 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7885 * target-delegates.c: Regenerate.
7886 * target.c: Include <unordered_map>.
7887 (target_ops_p): Delete.
7888 (DEF_VEC_P(target_ops_p)): Delete.
7889 (target_factories): New.
7890 (test_target_info): New.
7891 (test_target_ops::info): New.
7892 (open_target): Adjust to use target_factories.
7893 (add_target_with_completer): Rename to ...
7894 (add_target): ... this. Change prototype. Register target_info
7895 and open callback in target_factories. Register target_info in
7896 command context instead of target_ops.
7897 (add_target): Delete old implementation.
7898 (add_deprecated_target_alias): Change prototype. Adjust.
7899 (the_native_target): New.
7900 (set_native_target, get_native_target): New.
7901 (find_default_run_target): Use the_native_target.
7902 (find_attach_target, find_run_target): Simplify.
7903 (target_ops::open): Delete.
7904 (dummy_target_info): New.
7905 (dummy_target::shortname, dummy_target::longname)
7906 (dummy_target::doc): Delete.
7907 (dummy_target::info): New.
7908 (debug_target::shortname, debug_target::longname)
7909 (debug_target::doc): Delete.
7910 (debug_target::info): New.
7911 * target.h (struct target_info): New.
7912 (target_ops::~target_ops): Add comment.
7913 (target_ops::info): New.
7914 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7915 longer virtual. Implement in terms of target_info.
7916 (set_native_target, get_native_target): Declare.
7917 (target_open_ftype): New.
7918 (add_target, add_target_with_completer)
7919 (add_deprecated_target_alias): Change prototype.
7920 (test_target) <shortname, longname, doc>: Delete.
7922 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7923 add_inf_child_target.
7924 * tracefile-tfile.c (tfile_target_info): New.
7925 (tfile_target) <shortname, longname, doc>: Delete.
7927 (tfile_target::open): Rename to ...
7928 (tfile_target_open): ... this.
7929 (_initialize_tracefile_tfile): Adjust.
7930 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7931 add_inf_child_target.
7932 * windows-nat.c (_initialize_windows_nat): Use
7933 add_inf_child_target.
7934 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7935 add_inf_child_target.
7937 2018-05-02 Pedro Alves <palves@redhat.com>
7939 * linux-nat.h (linux_nat_target) <low_new_thread,
7940 low_delete_thread, low_new_fork, low_forget_process,
7941 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7942 New virtual methods.
7943 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7944 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7945 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7946 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7947 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7949 * linux-fork.c (delete_fork): Adjust to call low method.
7950 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7951 (linux_nat_new_fork, linux_nat_forget_process_hook)
7952 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7953 (linux_nat_status_is_event):
7954 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7955 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7957 (sigtrap_is_event): Rename to ...
7958 (linux_nat_target::low_status_is_event): ... this.
7959 (linux_nat_set_status_is_event): Delete.
7960 (save_stop_reason, linux_nat_wait_1)
7961 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7963 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7964 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7965 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7966 (linux_nat_set_prepare_to_resume): Delete.
7967 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7968 low virtual methods.
7969 * amd64-linux-nat.c: Likewise.
7970 * arm-linux-nat.c: Likewise.
7971 * i386-linux-nat.c: Likewise.
7972 * ia64-linux-nat.c: Likewise.
7973 * mips-linux-nat.c: Likewise.
7974 * ppc-linux-nat.c: Likewise.
7975 * s390-linux-nat.c: Likewise.
7976 * sparc64-linux-nat.c: Likewise.
7977 * x86-linux-nat.c: Likewise.
7978 * x86-linux-nat.h: Include "nat/x86-linux.h".
7979 (x86_linux_nat_target) <low_new_fork, low_forget_process,
7980 low_prepare_to_resume, low_new_thread, low_delete_thread>:
7983 2018-05-02 Pedro Alves <palves@redhat.com>
7985 * target.h (target_ops)
7986 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7987 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
7988 stopped_by_watchpoint, have_continuable_watchpoint,
7989 stopped_data_address, watchpoint_addr_within_range,
7990 can_accel_watchpoint_condition, can_run, thread_alive,
7991 has_all_memory, has_memory, has_stack, has_registers,
7992 has_execution, can_async_p, is_async_p, supports_non_stop,
7993 always_non_stop_p, can_execute_reverse, supports_multi_process,
7994 supports_enable_disable_tracepoint,
7995 supports_disable_randomization, supports_string_tracing,
7996 supports_evaluation_of_breakpoint_conditions,
7997 can_run_breakpoint_commands, filesystem_is_local,
7998 can_download_tracepoint, get_trace_state_variable_value,
7999 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8000 record_is_replaying, record_will_replay,
8001 augmented_libraries_svr4_read>: Adjust to return bool.
8002 * aarch64-linux-nat.c: All implementations adjusted.
8003 * aix-thread.c: All implementations adjusted.
8004 * arm-linux-nat.c: All implementations adjusted.
8005 * breakpoint.c: All implementations adjusted.
8006 * bsd-kvm.c: All implementations adjusted.
8007 * bsd-uthread.c: All implementations adjusted.
8008 * corelow.c: All implementations adjusted.
8009 * ctf.c: All implementations adjusted.
8010 * darwin-nat.c: All implementations adjusted.
8011 * darwin-nat.h: All implementations adjusted.
8012 * exec.c: All implementations adjusted.
8013 * fbsd-nat.c: All implementations adjusted.
8014 * fbsd-nat.h: All implementations adjusted.
8015 * gnu-nat.c: All implementations adjusted.
8016 * gnu-nat.h: All implementations adjusted.
8017 * go32-nat.c: All implementations adjusted.
8018 * ia64-linux-nat.c: All implementations adjusted.
8019 * inf-child.c: All implementations adjusted.
8020 * inf-child.h: All implementations adjusted.
8021 * inf-ptrace.c: All implementations adjusted.
8022 * inf-ptrace.h: All implementations adjusted.
8023 * linux-nat.c: All implementations adjusted.
8024 * linux-nat.h: All implementations adjusted.
8025 * mips-linux-nat.c: All implementations adjusted.
8026 * nto-procfs.c: All implementations adjusted.
8027 * ppc-linux-nat.c: All implementations adjusted.
8028 * procfs.c: All implementations adjusted.
8029 * ravenscar-thread.c: All implementations adjusted.
8030 * record-btrace.c: All implementations adjusted.
8031 * record-full.c: All implementations adjusted.
8032 * remote-sim.c: All implementations adjusted.
8033 * remote.c: All implementations adjusted.
8034 * s390-linux-nat.c: All implementations adjusted.
8035 * sol-thread.c: All implementations adjusted.
8036 * spu-multiarch.c: All implementations adjusted.
8037 * target-delegates.c: All implementations adjusted.
8038 * target.c: All implementations adjusted.
8039 * target.h: All implementations adjusted.
8040 * tracefile-tfile.c: All implementations adjusted.
8041 * tracefile.c: All implementations adjusted.
8042 * tracefile.h: All implementations adjusted.
8043 * windows-nat.c: All implementations adjusted.
8044 * x86-linux-nat.h: All implementations adjusted.
8045 * x86-nat.h: All implementations adjusted.
8047 2018-05-02 Pedro Alves <palves@redhat.com>
8049 * make-target-delegates (scan_target_h): Don't trim lines here.
8050 Replace sequences of tabs and/or whitespace with a single
8052 (top level, parsing methods): Trim each line before processing it
8055 2018-05-02 Pedro Alves <palves@redhat.com>
8056 John Baldwin <jhb@freebsd.org>
8058 * target.h (enum strata) <debug_stratum>: New.
8059 (struct target_ops) <all delegation methods>: Replace by C++
8060 virtual methods, and drop "to_" prefix. All references updated
8062 <to_shortname, to_longname, to_doc, to_data,
8063 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8064 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8065 virtual methods. All references updated throughout.
8066 <can_attach, supports_terminal_ours, can_create_inferior,
8067 get_thread_control_capabilities, attach_no_wait>: New
8069 <insert_breakpoint, remove_breakpoint>: Now
8070 TARGET_DEFAULT_NORETURN methods.
8071 <info_proc>: Now returns bool.
8073 (OPS_MAGIC): Delete.
8074 (current_target): Delete. All references replaced by references
8076 (target_stack): ... this. New.
8077 (target_shortname, target_longname): Adjust.
8078 (target_can_run): Now a function declaration.
8079 (default_child_has_all_memory, default_child_has_memory)
8080 (default_child_has_stack, default_child_has_registers)
8081 (default_child_has_execution): Remove target_ops parameter.
8082 (complete_target_initialization): Delete.
8083 (memory_breakpoint_target): New template class.
8084 (test_target_ops): Refactor as a C++ class with virtual methods.
8085 * make-target-delegates (NAME_PART): Tighten.
8086 (POINTER_PART, CP_SYMBOL): New.
8087 (SIMPLE_RETURN_PART): Reimplement.
8088 (VEC_RETURN_PART): Expect less.
8089 (RETURN_PART, VIRTUAL_PART): New.
8090 (METHOD): Adjust to C++ virtual methods.
8091 (scan_target_h): Remove reference to C99.
8092 (dname): Output "target_ops::" prefix.
8093 (write_function_header): Adjust to output a C++ class method.
8094 (write_declaration): New.
8095 (write_delegator): Adjust to output a C++ class method.
8096 (tdname): Output "dummy_target::" prefix.
8097 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8099 (tdefault_names, debug_names): Delete.
8100 (return_types, tdefaults, styles, argtypes_array): New.
8101 (top level): All methods are delegators.
8103 (top level): Print dummy_target and debug_target classes.
8104 * target-delegates.c: Regenerate.
8105 * target-debug.h (target_debug_print_enum_info_proc_what)
8106 (target_debug_print_thread_control_capabilities)
8107 (target_debug_print_thread_info_p): New.
8108 * target.c (dummy_target): Delete.
8109 (the_dummy_target, the_debug_target): New.
8110 (target_stack): Now extern.
8111 (set_targetdebug): Push/unpush debug target.
8112 (default_child_has_all_memory, default_child_has_memory)
8113 (default_child_has_stack, default_child_has_registers)
8114 (default_child_has_execution): Remove target_ops parameter.
8115 (complete_target_initialization): Delete.
8116 (add_target_with_completer): No longer call
8117 complete_target_initialization.
8118 (target_supports_terminal_ours): Use regular delegation.
8119 (update_current_target): Delete.
8120 (push_target): No longer check magic number. Don't call
8121 update_current_target.
8122 (unpush_target): Don't call update_current_target.
8123 (target_is_pushed): No longer check magic number.
8124 (target_require_runnable): Skip for all stratums over
8126 (target_ops::info_proc): New.
8127 (target_info_proc): Use find_target_at and
8128 find_default_run_target.
8129 (target_supports_disable_randomization): Use regular delegation.
8130 (target_get_osdata): Use find_target_at.
8131 (target_ops::open, target_ops::close, target_ops::can_attach)
8132 (target_ops::attach, target_ops::can_create_inferior)
8133 (target_ops::create_inferior, target_ops::can_run)
8134 (target_can_run): New.
8135 (default_fileio_target): Use regular delegation.
8136 (target_ops::fileio_open, target_ops::fileio_pwrite)
8137 (target_ops::fileio_pread, target_ops::fileio_fstat)
8138 (target_ops::fileio_close, target_ops::fileio_unlink)
8139 (target_ops::fileio_readlink): New.
8140 (target_fileio_open_1, target_fileio_unlink)
8141 (target_fileio_readlink): Always call the target method. Handle
8143 (return_zero, return_zero_has_execution): Delete.
8144 (init_dummy_target): Delete.
8145 (dummy_target::dummy_target, dummy_target::shortname)
8146 (dummy_target::longname, dummy_target::doc)
8147 (debug_target::debug_target, debug_target::shortname)
8148 (debug_target::longname, debug_target::doc): New.
8149 (target_supports_delete_record): Use regular delegation.
8150 (setup_target_debug): Delete.
8151 (maintenance_print_target_stack): Skip debug_stratum.
8152 (initialize_targets): Instantiate the_dummy_target and
8154 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8156 (target_auxv_search, fprint_target_auxv): Adjust.
8157 (info_auxv_command): Adjust to use target_stack.
8158 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8159 * exceptions.c (print_flush): Handle a NULL target_stack.
8160 * regcache.c (target_ops_no_register): Refactor as class with
8163 * exec.c (exec_target): New class.
8164 (exec_ops): Now an exec_target.
8165 (exec_open, exec_close_1, exec_get_section_table)
8166 (exec_xfer_partial, exec_files_info, exec_has_memory)
8167 (exec_make_note_section): Refactor as exec_target methods.
8168 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8170 (exec_target::find_memory_regions): New.
8171 (_initialize_exec): Don't call init_exec_ops.
8172 * gdbcore.h (exec_file_clear): Delete.
8174 * corefile.c (core_target): Delete.
8175 (core_file_command): Adjust.
8176 * corelow.c (core_target): New class.
8177 (the_core_target): New.
8178 (core_close): Remove target_ops parameter.
8179 (core_close_cleanup): Adjust.
8180 (core_target::close): New.
8181 (core_open, core_detach, get_core_registers, core_files_info)
8182 (core_xfer_partial, core_thread_alive, core_read_description)
8183 (core_pid_to_str, core_thread_name, core_has_memory)
8184 (core_has_stack, core_has_registers, core_info_proc): Rework as
8185 core_target methods.
8186 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8187 (_initialize_corelow): Initialize the_core_target.
8188 * gdbcore.h (core_target): Delete.
8189 (the_core_target): New.
8191 * ctf.c: (ctf_target): New class.
8192 (ctf_ops): Now a ctf_target.
8193 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8194 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8195 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8197 (init_ctf_ops): Delete.
8198 (_initialize_ctf): Don't call it.
8199 * tracefile-tfile.c (tfile_target): New class.
8200 (tfile_ops): Now a tfile_target.
8201 (tfile_open, tfile_close, tfile_files_info)
8202 (tfile_get_tracepoint_status, tfile_trace_find)
8203 (tfile_fetch_registers, tfile_xfer_partial)
8204 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8205 Refactor as tfile_target methods.
8206 (tfile_xfer_partial_features): Remove target_ops parameter.
8207 (init_tfile_ops): Delete.
8208 (_initialize_tracefile_tfile): Don't call it.
8209 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8210 (tracefile_has_stack, tracefile_has_registers)
8211 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8212 tracefile_target methods.
8213 (init_tracefile_ops): Delete.
8214 (tracefile_target::tracefile_target): New.
8215 * tracefile.h: Include "target.h".
8216 (tracefile_target): New class.
8217 (init_tracefile_ops): Delete.
8219 * spu-multiarch.c (spu_multiarch_target): New class.
8220 (spu_ops): Now a spu_multiarch_target.
8221 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8222 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8223 (spu_search_memory, spu_mourn_inferior): Refactor as
8224 spu_multiarch_target methods.
8225 (init_spu_ops): Delete.
8226 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8227 complete_target_initialization.
8229 * ravenscar-thread.c (ravenscar_thread_target): New class.
8230 (ravenscar_ops): Now a ravenscar_thread_target.
8231 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8232 (ravenscar_thread_alive, ravenscar_pid_to_str)
8233 (ravenscar_fetch_registers, ravenscar_store_registers)
8234 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8235 (ravenscar_stopped_by_hw_breakpoint)
8236 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8237 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8238 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8240 (init_ravenscar_thread_ops): Delete.
8241 (_initialize_ravenscar): Remove references to
8242 init_ravenscar_thread_ops and complete_target_initialization.
8244 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8245 (bsd_uthread_target): New class.
8246 (bsd_uthread_ops): Now a bsd_uthread_target.
8247 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8248 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8249 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8250 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8251 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8252 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8253 (bsd_uthread_target): Delete function.
8254 (_initialize_bsd_uthread): Remove reference to
8255 complete_target_initialization.
8257 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8258 (target_bfd): ... this new class.
8259 (target_bfd_xfer_partial, target_bfd_get_section_table)
8260 (target_bfd_close): Refactor as target_bfd methods.
8261 (target_bfd::~target_bfd): New.
8262 (target_bfd_reopen): Adjust.
8263 (target_bfd::close): New.
8265 * record-btrace.c (record_btrace_target): New class.
8266 (record_btrace_ops): Now a record_btrace_target.
8267 (record_btrace_open, record_btrace_stop_recording)
8268 (record_btrace_disconnect, record_btrace_close)
8269 (record_btrace_async, record_btrace_info)
8270 (record_btrace_insn_history, record_btrace_insn_history_range)
8271 (record_btrace_insn_history_from, record_btrace_call_history)
8272 (record_btrace_call_history_range)
8273 (record_btrace_call_history_from, record_btrace_record_method)
8274 (record_btrace_is_replaying, record_btrace_will_replay)
8275 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8276 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8277 (record_btrace_store_registers, record_btrace_prepare_to_store)
8278 (record_btrace_to_get_unwinder)
8279 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8280 (record_btrace_commit_resume, record_btrace_wait)
8281 (record_btrace_stop, record_btrace_can_execute_reverse)
8282 (record_btrace_stopped_by_sw_breakpoint)
8283 (record_btrace_supports_stopped_by_sw_breakpoint)
8284 (record_btrace_stopped_by_hw_breakpoint)
8285 (record_btrace_supports_stopped_by_hw_breakpoint)
8286 (record_btrace_update_thread_list, record_btrace_thread_alive)
8287 (record_btrace_goto_begin, record_btrace_goto_end)
8288 (record_btrace_goto, record_btrace_stop_replaying_all)
8289 (record_btrace_execution_direction)
8290 (record_btrace_prepare_to_generate_core)
8291 (record_btrace_done_generating_core): Refactor as
8292 record_btrace_target methods.
8293 (init_record_btrace_ops): Delete.
8294 (_initialize_record_btrace): Remove reference to
8295 init_record_btrace_ops.
8296 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8297 the execution_direction global.
8298 (record_full_base_target, record_full_target)
8299 (record_full_core_target): New classes.
8300 (record_full_ops): Now a record_full_target.
8301 (record_full_core_ops): Now a record_full_core_target.
8302 (record_full_target::detach, record_full_target::disconnect)
8303 (record_full_core_target::disconnect)
8304 (record_full_target::mourn_inferior, record_full_target::kill):
8306 (record_full_open, record_full_close, record_full_async): Refactor
8307 as methods of the record_full_base_target class.
8308 (record_full_resume, record_full_commit_resume): Refactor
8309 as methods of the record_full_target class.
8310 (record_full_wait, record_full_stopped_by_watchpoint)
8311 (record_full_stopped_data_address)
8312 (record_full_stopped_by_sw_breakpoint)
8313 (record_full_supports_stopped_by_sw_breakpoint)
8314 (record_full_stopped_by_hw_breakpoint)
8315 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8316 methods of the record_full_base_target class.
8317 (record_full_store_registers, record_full_xfer_partial)
8318 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8319 Refactor as methods of the record_full_target class.
8320 (record_full_can_execute_reverse, record_full_get_bookmark)
8321 (record_full_goto_bookmark, record_full_execution_direction)
8322 (record_full_record_method, record_full_info, record_full_delete)
8323 (record_full_is_replaying, record_full_will_replay)
8324 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8325 (record_full_stop_replaying): Refactor as methods of the
8326 record_full_base_target class.
8327 (record_full_core_resume, record_full_core_kill)
8328 (record_full_core_fetch_registers)
8329 (record_full_core_prepare_to_store)
8330 (record_full_core_store_registers, record_full_core_xfer_partial)
8331 (record_full_core_insert_breakpoint)
8332 (record_full_core_remove_breakpoint)
8333 (record_full_core_has_execution): Refactor
8334 as methods of the record_full_core_target class.
8335 (record_full_base_target::supports_delete_record): New.
8336 (init_record_full_ops): Delete.
8337 (init_record_full_core_ops): Delete.
8338 (record_full_save): Refactor as method of the
8339 record_full_base_target class.
8340 (_initialize_record_full): Remove references to
8341 init_record_full_ops and init_record_full_core_ops.
8343 * remote.c (remote_target, extended_remote_target): New classes.
8344 (remote_ops): Now a remote_target.
8345 (extended_remote_ops): Now an extended_remote_target.
8346 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8347 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8348 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8349 (remote_pass_signals, remote_set_syscall_catchpoint)
8350 (remote_program_signals, )
8351 (remote_thread_always_alive): Remove target_ops parameter.
8352 (remote_thread_alive, remote_thread_name)
8353 (remote_update_thread_list, remote_threads_extra_info)
8354 (remote_static_tracepoint_marker_at)
8355 (remote_static_tracepoint_markers_by_strid)
8356 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8357 (remote_open): Refactor as methods of remote_target.
8358 (extended_remote_open, extended_remote_detach)
8359 (extended_remote_attach, extended_remote_post_attach):
8360 (extended_remote_supports_disable_randomization)
8361 (extended_remote_create_inferior): : Refactor as method of
8362 extended_remote_target.
8363 (remote_set_permissions, remote_open_1, remote_detach)
8364 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8365 (remote_resume, remote_commit_resume, remote_stop)
8366 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8367 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8368 (remote_prepare_to_store, remote_store_registers)
8369 (remote_flash_erase, remote_flash_done, remote_files_info)
8370 (remote_kill, remote_mourn, remote_insert_breakpoint)
8371 (remote_remove_breakpoint, remote_insert_watchpoint)
8372 (remote_watchpoint_addr_within_range)
8373 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8374 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8375 (remote_supports_stopped_by_sw_breakpoint)
8376 (remote_stopped_by_hw_breakpoint)
8377 (remote_supports_stopped_by_hw_breakpoint)
8378 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8379 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8380 (remote_verify_memory): Refactor as methods of remote_target.
8381 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8383 (remote_xfer_partial, remote_get_memory_xfer_limit)
8384 (remote_search_memory, remote_rcmd, remote_memory_map)
8385 (remote_pid_to_str, remote_get_thread_local_address)
8386 (remote_get_tib_address, remote_read_description): Refactor as
8387 methods of remote_target.
8388 (remote_target::fileio_open, remote_target::fileio_pwrite)
8389 (remote_target::fileio_pread, remote_target::fileio_close): New.
8390 (remote_hostio_readlink, remote_hostio_fstat)
8391 (remote_filesystem_is_local, remote_can_execute_reverse)
8392 (remote_supports_non_stop, remote_supports_disable_randomization)
8393 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8394 (remote_supports_enable_disable_tracepoint)
8395 (remote_supports_string_tracing)
8396 (remote_can_run_breakpoint_commands, remote_trace_init)
8397 (remote_download_tracepoint, remote_can_download_tracepoint)
8398 (remote_download_trace_state_variable, remote_enable_tracepoint)
8399 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8400 (remote_trace_start, remote_get_trace_status)
8401 (remote_get_tracepoint_status, remote_trace_stop)
8402 (remote_trace_find, remote_get_trace_state_variable_value)
8403 (remote_save_trace_data, remote_get_raw_trace_data)
8404 (remote_set_disconnected_tracing, remote_core_of_thread)
8405 (remote_set_circular_trace_buffer, remote_traceframe_info)
8406 (remote_get_min_fast_tracepoint_insn_len)
8407 (remote_set_trace_buffer_size, remote_set_trace_notes)
8408 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8409 (remote_disable_btrace, remote_teardown_btrace)
8410 (remote_read_btrace, remote_btrace_conf)
8411 (remote_augmented_libraries_svr4_read, remote_load)
8412 (remote_pid_to_exec_file, remote_can_do_single_step)
8413 (remote_execution_direction, remote_thread_handle_to_thread_info):
8414 Refactor as methods of remote_target.
8415 (init_remote_ops, init_extended_remote_ops): Delete.
8416 (remote_can_async_p, remote_is_async_p, remote_async)
8417 (remote_thread_events, remote_upload_tracepoints)
8418 (remote_upload_trace_state_variables): Refactor as methods of
8420 (_initialize_remote): Remove references to init_remote_ops and
8421 init_extended_remote_ops.
8423 * remote-sim.c (gdbsim_target): New class.
8424 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8425 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8426 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8427 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8428 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8429 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8430 Refactor as methods of gdbsim_target.
8431 (gdbsim_ops): Now a gdbsim_target.
8432 (init_gdbsim_ops): Delete.
8433 (gdbsim_cntrl_c): Adjust.
8434 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8436 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8437 (the_amd64_linux_nat_target): New.
8438 (amd64_linux_fetch_inferior_registers)
8439 (amd64_linux_store_inferior_registers): Refactor as methods of
8440 amd64_linux_nat_target.
8441 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8442 * i386-linux-nat.c: Don't include "linux-nat.h".
8443 (i386_linux_nat_target): New class.
8444 (the_i386_linux_nat_target): New.
8445 (i386_linux_fetch_inferior_registers)
8446 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8447 as methods of i386_linux_nat_target.
8448 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8449 * inf-child.c (inf_child_ops): Delete.
8450 (inf_child_fetch_inferior_registers)
8451 (inf_child_store_inferior_registers): Delete.
8452 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8453 methods of inf_child_target.
8454 (inf_child_target::supports_terminal_ours)
8455 (inf_child_target::terminal_init)
8456 (inf_child_target::terminal_inferior)
8457 (inf_child_target::terminal_ours_for_output)
8458 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8459 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8461 (inf_child_open, inf_child_disconnect, inf_child_close)
8462 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8463 (inf_child_post_startup_inferior, inf_child_can_run)
8464 (inf_child_pid_to_exec_file): Refactor as methods of
8466 (inf_child_follow_fork): Delete.
8467 (inf_child_target::can_create_inferior)
8468 (inf_child_target::can_attach): New.
8469 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8470 (inf_child_target::has_stack, inf_child_target::has_registers)
8471 (inf_child_target::has_execution): New.
8472 (inf_child_fileio_open, inf_child_fileio_pwrite)
8473 (inf_child_fileio_pread, inf_child_fileio_fstat)
8474 (inf_child_fileio_close, inf_child_fileio_unlink)
8475 (inf_child_fileio_readlink, inf_child_use_agent)
8476 (inf_child_can_use_agent): Refactor as methods of
8478 (return_zero, inf_child_target): Delete.
8479 (inf_child_target::inf_child_target): New.
8480 * inf-child.h: Include "target.h".
8481 (inf_child_target): Delete function prototype.
8482 (inf_child_target): New class.
8483 (inf_child_open_target, inf_child_mourn_inferior)
8484 (inf_child_maybe_unpush_target): Delete.
8485 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8486 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8487 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8488 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8489 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8490 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8491 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8492 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8493 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8494 methods of inf_ptrace_target.
8495 (inf_ptrace_target): Delete function.
8496 * inf-ptrace.h: Include "inf-child.h".
8497 (inf_ptrace_target): Delete function declaration.
8498 (inf_ptrace_target): New class.
8499 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8500 * linux-nat.c (linux_target): New.
8501 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8502 (linux_nat_target::~linux_nat_target): New.
8503 (linux_child_post_attach, linux_child_post_startup_inferior)
8504 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8505 (linux_child_remove_fork_catchpoint)
8506 (linux_child_insert_vfork_catchpoint)
8507 (linux_child_remove_vfork_catchpoint)
8508 (linux_child_insert_exec_catchpoint)
8509 (linux_child_remove_exec_catchpoint)
8510 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8511 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8512 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8513 (linux_nat_stopped_data_address)
8514 (linux_nat_stopped_by_sw_breakpoint)
8515 (linux_nat_supports_stopped_by_sw_breakpoint)
8516 (linux_nat_stopped_by_hw_breakpoint)
8517 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8518 (linux_nat_kill, linux_nat_mourn_inferior)
8519 (linux_nat_xfer_partial, linux_nat_thread_alive)
8520 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8521 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8522 (linux_child_static_tracepoint_markers_by_strid)
8523 (linux_nat_is_async_p, linux_nat_can_async_p)
8524 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8525 (linux_nat_supports_multi_process)
8526 (linux_nat_supports_disable_randomization, linux_nat_async)
8527 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8528 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8529 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8530 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8531 methods of linux_nat_target.
8532 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8533 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8535 (check_stopped_by_watchpoint): Adjust.
8536 (linux_xfer_partial): Delete.
8537 (linux_target_install_ops, linux_target, linux_nat_add_target):
8539 (linux_nat_target::linux_nat_target): New.
8540 * linux-nat.h: Include "inf-ptrace.h".
8541 (linux_nat_target): New.
8542 (linux_target, linux_target_install_ops, linux_nat_add_target):
8543 Delete function declarations.
8544 (linux_target): Declare global.
8545 * linux-thread-db.c (thread_db_target): New.
8546 (thread_db_target::thread_db_target): New.
8547 (thread_db_ops): Delete.
8548 (the_thread_db_target): New.
8549 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8550 (thread_db_update_thread_list, thread_db_pid_to_str)
8551 (thread_db_extra_thread_info)
8552 (thread_db_thread_handle_to_thread_info)
8553 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8554 (thread_db_resume): Refactor as methods of thread_db_target.
8555 (init_thread_db_ops): Delete.
8556 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8557 * x86-linux-nat.c: Don't include "linux-nat.h".
8558 (super_post_startup_inferior): Delete.
8559 (x86_linux_nat_target::~x86_linux_nat_target): New.
8560 (x86_linux_child_post_startup_inferior)
8561 (x86_linux_read_description, x86_linux_enable_btrace)
8562 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8563 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8564 methods of x86_linux_nat_target.
8565 (x86_linux_create_target): Delete. Bits folded ...
8566 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8568 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8569 (x86_linux_nat_target): New class.
8570 (x86_linux_create_target): Delete.
8571 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8572 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8573 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8574 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8575 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8576 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8578 (x86_use_watchpoints): Delete.
8579 * x86-nat.h: Include "breakpoint.h" and "target.h".
8580 (x86_use_watchpoints): Delete.
8581 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8582 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8583 (x86_insert_watchpoint, x86_remove_watchpoint)
8584 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8585 (x86_stopped_by_hw_breakpoint): New declarations.
8586 (x86_nat_target): New template class.
8588 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8589 (the_ppc_linux_nat_target): New.
8590 (ppc_linux_fetch_inferior_registers)
8591 (ppc_linux_can_use_hw_breakpoint)
8592 (ppc_linux_region_ok_for_hw_watchpoint)
8593 (ppc_linux_ranged_break_num_registers)
8594 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8595 (ppc_linux_insert_mask_watchpoint)
8596 (ppc_linux_remove_mask_watchpoint)
8597 (ppc_linux_can_accel_watchpoint_condition)
8598 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8599 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8600 (ppc_linux_watchpoint_addr_within_range)
8601 (ppc_linux_masked_watch_num_registers)
8602 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8603 (ppc_linux_read_description): Refactor as methods of
8604 ppc_linux_nat_target.
8605 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8607 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8608 (procfs_target): New class.
8609 (the_procfs_target): New.
8610 (procfs_target): Delete function.
8611 (procfs_auxv_parse, procfs_attach, procfs_detach)
8612 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8613 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8614 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8615 (procfs_create_inferior, procfs_update_thread_list)
8616 (procfs_thread_alive, procfs_pid_to_str)
8617 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8618 (procfs_stopped_data_address, procfs_insert_watchpoint)
8619 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8620 (proc_find_memory_regions, procfs_info_proc)
8621 (procfs_make_note_section): Refactor as methods of procfs_target.
8622 (_initialize_procfs): Adjust.
8623 * sol-thread.c (sol_thread_target): New class.
8624 (sol_thread_ops): Now a sol_thread_target.
8625 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8626 (sol_thread_fetch_registers, sol_thread_store_registers)
8627 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8628 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8629 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8630 (init_sol_thread_ops): Delete.
8631 (_initialize_sol_thread): Adjust. Remove references to
8632 init_sol_thread_ops and complete_target_initialization.
8634 * windows-nat.c (windows_nat_target): New class.
8635 (windows_fetch_inferior_registers)
8636 (windows_store_inferior_registers, windows_resume, windows_wait)
8637 (windows_attach, windows_detach, windows_pid_to_exec_file)
8638 (windows_files_info, windows_create_inferior)
8639 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8640 (windows_close, windows_pid_to_str, windows_xfer_partial)
8641 (windows_get_tib_address, windows_get_ada_task_ptid)
8642 (windows_thread_name, windows_thread_alive): Refactor as
8643 windows_nat_target methods.
8644 (do_initial_windows_stuff): Adjust.
8645 (windows_target): Delete function.
8646 (_initialize_windows_nat): Adjust.
8648 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8649 (darwin_mourn_inferior, darwin_kill_inferior)
8650 (darwin_create_inferior, darwin_attach, darwin_detach)
8651 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8652 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8653 (darwin_supports_multi_process): Refactor as darwin_nat_target
8655 (darwin_resume_to, darwin_files_info): Delete.
8656 (_initialize_darwin_inferior): Rename to ...
8657 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8658 * darwin-nat.h: Include "inf-child.h".
8659 (darwin_nat_target): New class.
8660 (darwin_complete_target): Delete.
8661 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8662 (darwin_target): New.
8663 (i386_darwin_fetch_inferior_registers)
8664 (i386_darwin_store_inferior_registers): Refactor as methods of
8666 (darwin_complete_target): Delete, with ...
8667 (_initialize_i386_darwin_nat): ... bits factored out here.
8669 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8670 (the_alpha_linux_nat_target): New.
8671 (alpha_linux_register_u_offset): Refactor as
8672 alpha_linux_nat_target method.
8673 (_initialize_alpha_linux_nat): Adjust.
8674 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8675 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8676 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8677 methods of linux_nat_trad_target.
8678 (linux_trad_target): Delete.
8679 * linux-nat-trad.h (linux_trad_target): Delete function.
8680 (linux_nat_trad_target): New class.
8681 * mips-linux-nat.c (mips_linux_nat_target): New class.
8682 (super_fetch_registers, super_store_registers, super_close):
8684 (the_mips_linux_nat_target): New.
8685 (mips64_linux_regsets_fetch_registers)
8686 (mips64_linux_regsets_store_registers)
8687 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8688 (mips_linux_register_u_offset, mips_linux_read_description)
8689 (mips_linux_can_use_hw_breakpoint)
8690 (mips_linux_stopped_by_watchpoint)
8691 (mips_linux_stopped_data_address)
8692 (mips_linux_region_ok_for_hw_watchpoint)
8693 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8694 (mips_linux_close): Refactor as methods of mips_linux_nat.
8695 (_initialize_mips_linux_nat): Adjust to C++ification.
8697 * aix-thread.c (aix_thread_target): New class.
8698 (aix_thread_ops): Now an aix_thread_target.
8699 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8700 (aix_thread_fetch_registers, aix_thread_store_registers)
8701 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8702 (aix_thread_thread_alive, aix_thread_pid_to_str)
8703 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8704 Refactor as methods of aix_thread_target.
8705 (init_aix_thread_ops): Delete.
8706 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8707 and complete_target_initialization.
8708 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8709 (rs6000_nat_target): New class.
8710 (the_rs6000_nat_target): New.
8711 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8712 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8713 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8714 (super_create_inferior): Delete.
8715 (_initialize_rs6000_nat): Adjust to C++ification.
8717 * arm-linux-nat.c (arm_linux_nat_target): New class.
8718 (the_arm_linux_nat_target): New.
8719 (arm_linux_fetch_inferior_registers)
8720 (arm_linux_store_inferior_registers, arm_linux_read_description)
8721 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8722 (arm_linux_remove_hw_breakpoint)
8723 (arm_linux_region_ok_for_hw_watchpoint)
8724 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8725 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8726 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8727 arm_linux_nat_target.
8728 (_initialize_arm_linux_nat): Adjust to C++ification.
8730 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8731 (the_aarch64_linux_nat_target): New.
8732 (aarch64_linux_fetch_inferior_registers)
8733 (aarch64_linux_store_inferior_registers)
8734 (aarch64_linux_child_post_startup_inferior)
8735 (aarch64_linux_read_description)
8736 (aarch64_linux_can_use_hw_breakpoint)
8737 (aarch64_linux_insert_hw_breakpoint)
8738 (aarch64_linux_remove_hw_breakpoint)
8739 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8740 (aarch64_linux_region_ok_for_hw_watchpoint)
8741 (aarch64_linux_stopped_data_address)
8742 (aarch64_linux_stopped_by_watchpoint)
8743 (aarch64_linux_watchpoint_addr_within_range)
8744 (aarch64_linux_can_do_single_step): Refactor as methods of
8745 aarch64_linux_nat_target.
8746 (super_post_startup_inferior): Delete.
8747 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8749 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8750 (the_hppa_linux_nat_target): New.
8751 (hppa_linux_fetch_inferior_registers)
8752 (hppa_linux_store_inferior_registers): Refactor as methods of
8753 hppa_linux_nat_target.
8754 (_initialize_hppa_linux_nat): Adjust to C++ification.
8756 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8757 (the_ia64_linux_nat_target): New.
8758 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8759 (ia64_linux_stopped_data_address)
8760 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8761 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8762 ia64_linux_nat_target methods.
8763 (super_xfer_partial): Delete.
8764 (_initialize_ia64_linux_nat): Adjust to C++ification.
8766 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8767 (the_m32r_linux_nat_target): New.
8768 (m32r_linux_fetch_inferior_registers)
8769 (m32r_linux_store_inferior_registers): Refactor as
8770 m32r_linux_nat_target methods.
8771 (_initialize_m32r_linux_nat): Adjust to C++ification.
8773 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8774 (the_m68k_linux_nat_target): New.
8775 (m68k_linux_fetch_inferior_registers)
8776 (m68k_linux_store_inferior_registers): Refactor as
8777 m68k_linux_nat_target methods.
8778 (_initialize_m68k_linux_nat): Adjust to C++ification.
8780 * s390-linux-nat.c (s390_linux_nat_target): New class.
8781 (the_s390_linux_nat_target): New.
8782 (s390_linux_fetch_inferior_registers)
8783 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8784 (s390_insert_watchpoint, s390_remove_watchpoint)
8785 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8786 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8787 (s390_auxv_parse, s390_read_description): Refactor as methods of
8788 s390_linux_nat_target.
8789 (_initialize_s390_nat): Adjust to C++ification.
8791 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8792 (the_sparc_linux_nat_target): New.
8793 (_initialize_sparc_linux_nat): Adjust to C++ification.
8794 * sparc-nat.c (sparc_fetch_inferior_registers)
8795 (sparc_store_inferior_registers): Remove target_ops parameter.
8796 * sparc-nat.h (sparc_fetch_inferior_registers)
8797 (sparc_store_inferior_registers): Remove target_ops parameter.
8798 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8799 (the_sparc64_linux_nat_target): New.
8800 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8802 * spu-linux-nat.c (spu_linux_nat_target): New class.
8803 (the_spu_linux_nat_target): New.
8804 (spu_child_post_startup_inferior, spu_child_post_attach)
8805 (spu_child_wait, spu_fetch_inferior_registers)
8806 (spu_store_inferior_registers, spu_xfer_partial)
8807 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8809 (_initialize_spu_nat): Adjust to C++ification.
8811 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8812 (the_tilegx_linux_nat_target): New.
8813 (fetch_inferior_registers, store_inferior_registers):
8814 Refactor as methods.
8815 (_initialize_tile_linux_nat): Adjust to C++ification.
8817 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8818 (the_xtensa_linux_nat_target): New.
8819 (xtensa_linux_fetch_inferior_registers)
8820 (xtensa_linux_store_inferior_registers): Refactor as
8821 xtensa_linux_nat_target methods.
8822 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8824 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8825 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8826 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8827 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8828 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8829 (fbsd_stopped_by_sw_breakpoint)
8830 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8831 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8832 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8833 (fbsd_post_startup_inferior, fbsd_post_attach)
8834 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8835 (fbsd_set_syscall_catchpoint)
8836 (super_xfer_partial, super_resume, super_wait)
8837 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8838 (fbsd_handle_debug_trap): Remove target_ops parameter.
8839 (fbsd_nat_add_target): Delete.
8840 * fbsd-nat.h: Include "inf-ptrace.h".
8841 (fbsd_nat_add_target): Delete.
8842 (USE_SIGTRAP_SIGINFO): Define.
8843 (fbsd_nat_target): New class.
8845 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8846 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8847 (amd64bsd_target): Delete.
8848 * amd64-bsd-nat.h: New file.
8849 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8851 (amd64_fbsd_nat_target): New class.
8852 (the_amd64_fbsd_nat_target): New.
8853 (amd64fbsd_read_description): Refactor as method of
8854 amd64_fbsd_nat_target.
8855 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8856 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8857 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8858 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8859 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8860 (i386bsd_target): Delete.
8861 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8862 (i386bsd_fetch_inferior_registers)
8863 (i386bsd_store_inferior_registers): Declare.
8864 (i386_bsd_nat_target): New class.
8865 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8866 (the_i386_fbsd_nat_target): New.
8867 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8868 i386_fbsd_nat_target methods.
8869 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8870 (_initialize_i386fbsd_nat): Adjust to C++ification.
8871 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8872 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8873 (_initialize_x86_bsd_nat): Adjust to C++ification.
8874 * x86-bsd-nat.h: Include "x86-nat.h".
8875 (x86bsd_target): Delete declaration.
8876 (x86bsd_nat_target): New class.
8878 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8879 (the_aarch64_fbsd_nat_target): New.
8880 (aarch64_fbsd_fetch_inferior_registers)
8881 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8882 aarch64_fbsd_nat_target.
8883 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8884 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8885 (the_alpha_bsd_nat_target): New.
8886 (alphabsd_fetch_inferior_registers)
8887 (alphabsd_store_inferior_registers): Refactor as
8888 alpha_bsd_nat_target methods.
8889 (_initialize_alphabsd_nat): Refactor as methods of
8890 alpha_bsd_nat_target.
8891 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8892 (the_amd64_nbsd_nat_target): New.
8893 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8894 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8895 (the_amd64_obsd_nat_target): New.
8896 (_initialize_amd64obsd_nat): Adjust to C++ification.
8897 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8898 (the_arm_fbsd_nat_target): New.
8899 (arm_fbsd_fetch_inferior_registers)
8900 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8901 (_initialize_arm_fbsd_nat): Refactor as methods of
8902 arm_fbsd_nat_target.
8903 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8904 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8905 (the_arm_netbsd_nat_target): New.
8906 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8907 arm_netbsd_nat_target.
8908 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8909 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8910 (the_hppa_nbsd_nat_target): New.
8911 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8912 hppa_nbsd_nat_target methods.
8913 (_initialize_hppanbsd_nat): Adjust to C++ification.
8914 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8915 (the_hppa_obsd_nat_target): New.
8916 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8917 methods of hppa_obsd_nat_target.
8918 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8920 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8921 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8923 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8924 (_initialize_i386obsd_nat): Use add_target.
8925 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8926 (the_m68k_bsd_nat_target): New.
8927 (m68kbsd_fetch_inferior_registers)
8928 (m68kbsd_store_inferior_registers): Refactor as methods of
8929 m68k_bsd_nat_target.
8930 (_initialize_m68kbsd_nat): Adjust to C++ification.
8931 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8932 (the_mips_fbsd_nat_target): New.
8933 (mips_fbsd_fetch_inferior_registers)
8934 (mips_fbsd_store_inferior_registers): Refactor as methods of
8935 mips_fbsd_nat_target.
8936 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8938 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8939 (the_mips_nbsd_nat_target): New.
8940 (mipsnbsd_fetch_inferior_registers)
8941 (mipsnbsd_store_inferior_registers): Refactor as methods of
8942 mips_nbsd_nat_target.
8943 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8944 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8945 (the_mips64_obsd_nat_target): New.
8946 (mips64obsd_fetch_inferior_registers)
8947 (mips64obsd_store_inferior_registers): Refactor as methods of
8948 mips64_obsd_nat_target.
8949 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8951 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8953 * nbsd-nat.h: Include "inf-ptrace.h".
8954 (nbsd_nat_target): New class.
8955 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8956 (obsd_wait): Refactor as methods of obsd_nat_target.
8957 (obsd_add_target): Delete.
8958 * obsd-nat.h: Include "inf-ptrace.h".
8959 (obsd_nat_target): New class.
8960 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8961 (the_ppc_fbsd_nat_target): New.
8962 (ppcfbsd_fetch_inferior_registers)
8963 (ppcfbsd_store_inferior_registers): Refactor as methods of
8964 ppc_fbsd_nat_target.
8965 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8967 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8968 (the_ppc_nbsd_nat_target): New.
8969 (ppcnbsd_fetch_inferior_registers)
8970 (ppcnbsd_store_inferior_registers): Refactor as methods of
8971 ppc_nbsd_nat_target.
8972 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8973 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8974 (the_ppc_obsd_nat_target): New.
8975 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
8976 methods of ppc_obsd_nat_target.
8977 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
8979 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
8980 (the_sh_nbsd_nat_target): New.
8981 (shnbsd_fetch_inferior_registers)
8982 (shnbsd_store_inferior_registers): Refactor as methods of
8984 (_initialize_shnbsd_nat): Adjust to C++ification.
8985 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
8986 (inf_ptrace_xfer_partial): Delete.
8987 (sparc_xfer_partial, sparc_target): Delete.
8988 * sparc-nat.h (sparc_fetch_inferior_registers)
8989 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
8990 (sparc_target): Delete function declaration.
8991 (sparc_target): New template class.
8992 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
8993 (_initialize_sparcnbsd_nat): Adjust to C++ification.
8994 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
8995 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
8997 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
8998 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
8999 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9000 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9002 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9003 (the_vax_bsd_nat_target): New.
9004 (vaxbsd_fetch_inferior_registers)
9005 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9007 (_initialize_vaxbsd_nat): Adjust to C++ification.
9009 * bsd-kvm.c (bsd_kvm_target): New class.
9010 (bsd_kvm_ops): Now a bsd_kvm_target.
9011 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9012 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9013 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9015 (bsd_kvm_return_one): Delete.
9016 (bsd_kvm_add_target): Adjust to C++ification.
9018 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9019 (nto_procfs_target_procfs): New classes.
9020 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9021 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9022 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9023 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9024 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9025 (procfs_remove_hw_breakpoint, procfs_resume)
9026 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9027 (procfs_kill_inferior, procfs_store_registers)
9028 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9029 as methods of nto_procfs_target.
9030 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9031 (nto_native_ops): Delete.
9032 (procfs_open, procfs_native_open): Delete.
9033 (nto_native_ops): Now an nto_procfs_target_native.
9034 (init_procfs_targets): Adjust to C++ification.
9035 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9036 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9037 Refactor as methods of nto_procfs_target.
9039 * go32-nat.c (go32_nat_target): New class.
9040 (the_go32_nat_target): New.
9041 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9042 (go32_store_registers, go32_xfer_partial, go32_files_info)
9043 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9044 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9045 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9046 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9047 (go32_target): Delete.
9048 (_initialize_go32_nat): Adjust to C++ification.
9050 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9051 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9052 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9053 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9055 (gnu_target): Delete.
9056 * gnu-nat.h (gnu_target): Delete.
9057 (gnu_nat_target): New class.
9058 * i386-gnu-nat.c (gnu_base_target): New.
9059 (i386_gnu_nat_target): New class.
9060 (the_i386_gnu_nat_target): New.
9061 (_initialize_i386gnu_nat): Adjust to C++ification.
9063 2018-05-02 Pedro Alves <palves@redhat.com>
9065 * bfd-target.c (target_bfd_xclose): Rename to ...
9066 (target_bfd_close): ... this.
9067 (target_bfd_reopen): Adjust.
9068 * target.c (target_close): Remove references to to_xclose.
9069 * target.h (target_ops::to_xclose): Delete.
9070 (target_ops::to_close): Update comments.
9072 2018-05-02 Pedro Alves <palves@redhat.com>
9074 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9076 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9077 * inf-ptrace.c (inf_ptrace_register_u_offset)
9078 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9079 (inf_ptrace_store_register, inf_ptrace_store_registers)
9080 (inf_ptrace_trad_target): Move to ...
9081 * linux-nat-trad.c: ... this new file.
9082 * linux-nat-trad.h: New file.
9083 * linux-nat.c (linux_target_install_ops): Make extern.
9084 (linux_trad_target): Delete.
9085 * linux-nat.h (linux_trad_target): Delete declaration.
9086 (linux_target_install_ops): Declare.
9087 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9090 2018-05-02 Pedro Alves <palves@redhat.com>
9092 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9093 procfs_target/add_target here.
9094 * procfs.c (procfs_target): Make static.
9095 (_initialize_procfs): Call add_target here.
9096 * procfs.h (struct target_ops): Remove forward declaration.
9097 (procfs_target): Remove declaration.
9098 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9100 2018-05-02 Pedro Alves <palves@redhat.com>
9102 * procfs.c (procfs_stopped_by_watchpoint)
9103 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9104 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9106 (procfs_use_watchpoints): Delete, move contents...
9107 (procfs_target): ... here.
9108 * procfs.h (procfs_use_watchpoints): Delete declaration.
9109 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9110 procfs_use_watchpoints.
9111 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9112 procfs_use_watchpoints.
9114 2018-05-02 Tom Tromey <tom@tromey.com>
9117 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9118 and var_zuinteger_unlimited.
9119 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9120 and PARAM_ZUINTEGER_UNLIMITED.
9121 (set_parameter_value): Handle var_zuinteger and
9122 var_zuinteger_unlimited.
9123 (add_setshow_generic): Likewise.
9124 (parmpy_init): Likewise.
9126 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9129 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9130 pointer is not null before dereferencing it.
9132 2018-04-30 Tom Tromey <tom@tromey.com>
9134 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9137 2018-04-30 Tom Tromey <tom@tromey.com>
9139 * breakpoint.c (mention): Remove use of is_mi_like_p.
9140 (print_mention_ranged_breakpoint): Likewise.
9141 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9144 2018-04-30 Tom Tromey <tom@tromey.com>
9146 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9148 2018-04-30 Tom Tromey <tom@tromey.com>
9150 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9151 (info_spu_event_command): Remove some uses of is_mi_like_p.
9153 2018-04-30 Tom Tromey <tom@tromey.com>
9155 * python/py-framefilter.c (py_print_single_arg)
9156 (enumerate_locals, py_print_args, py_print_frame): Remove some
9157 uses of is_mi_like_p.
9159 2018-04-30 Tom Tromey <tom@tromey.com>
9162 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9163 * ui-out.h (ui_out::is_mi_like_p): Now const.
9164 (ui_out::do_is_mi_like_p): Now const.
9165 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9167 2018-04-30 Tom Tromey <tom@tromey.com>
9169 * varobj.c (varobj_set_visualizer): Use new_reference.
9170 * python/python.c (gdbpy_decode_line): Use new_reference.
9171 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9174 2018-04-30 Tom Tromey <tom@tromey.com>
9176 * varobj.c (install_new_value): Use new_reference.
9177 * value.h (value_incref): Return void. Swap intro comment with
9179 * value.c (set_value_parent): Use new_reference.
9180 (value_incref): Return void. Update intro comment.
9181 (release_value): Use new_reference.
9182 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9184 2018-04-30 Tom Tromey <tom@tromey.com>
9186 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9187 * gdb_bfd.h (new_bfd_ref): Remove.
9188 (gdb_bfd_open): Update comment.
9189 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9190 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9191 (gdb_bfd_fdopenr): Use new_reference.
9192 * exec.c (exec_file_attach): Use new_reference.
9194 2018-04-30 Tom Tromey <tom@tromey.com>
9196 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9199 2018-04-30 Tom Tromey <tom@tromey.com>
9201 * jit.c (jit_read_code_entry): Use type_align.
9202 * i386-tdep.c (i386_gdbarch_init): Don't call
9203 set_gdbarch_long_long_align_bit.
9204 * gdbarch.sh: Remove long_long_align_bit.
9205 * gdbarch.c, gdbarch.h: Rebuild.
9206 * arc-tdep.c (arc_type_align): New function.
9207 (arc_gdbarch_init): Use arc_type_align. Don't call
9208 set_gdbarch_long_long_align_bit.
9210 2018-04-30 Tom Tromey <tom@tromey.com>
9212 * rust-lang.c (rust_type_alignment): Remove.
9213 (rust_composite_type): Use type_align.
9215 2018-04-30 Tom Tromey <tom@tromey.com>
9217 * NEWS: Mention Type.align.
9218 * python/py-type.c (typy_get_alignof): New function.
9219 (type_object_getset): Add "alignof".
9221 2018-04-30 Tom Tromey <tom@tromey.com>
9225 * std-operator.def (UNOP_ALIGNOF): New operator.
9226 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9228 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9229 * c-lang.c (c_op_print_tab): Add alignof.
9230 * c-exp.y (ALIGNOF): New token.
9231 (exp): Add "ALIGNOF" production.
9232 (ident_tokens): Add _Alignof and alignof.
9234 2018-04-30 Tom Tromey <tom@tromey.com>
9236 * i386-tdep.c (i386_type_align): New function.
9237 (i386_gdbarch_init): Update.
9238 * gdbarch.sh (type_align): New method.
9239 * gdbarch.c, gdbarch.h: Rebuild.
9240 * arch-utils.h (default_type_align): Declare.
9241 * arch-utils.c (default_type_align): New function.
9242 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9243 (struct type) <align_log2>: New field.
9244 <instance_flags>: Now a bitfield.
9245 (TYPE_RAW_ALIGN): New macro.
9246 (type_align, type_raw_align, set_type_align): Declare.
9247 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9249 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9250 (get_alignment, maybe_set_alignment): New functions.
9251 (read_structure_type, read_enumeration_type, read_array_type)
9252 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9253 (read_subrange_type, read_base_type): Set type alignment.
9255 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9257 * dwarf2read.c (read_index_from_section): Use bool.
9259 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9262 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9265 2018-04-29 John Reiser <jreiser@BitWagon.com>
9268 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9269 last step, and do it atomically.
9271 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9273 * compile/compile-c-types.c (convert_int, convert_float):
9276 2018-04-27 Tom Tromey <tom@tromey.com>
9279 * rust-lang.c (rust_inclusive_range_type_p): New function.
9280 (rust_range): Handle inclusive ranges.
9281 (rust_compute_range): Likewise.
9282 * rust-exp.y (struct rust_op) <inclusive>: New field.
9283 (DOTDOTEQ): New constant.
9284 (range_expr): Add "..=" productions.
9285 (operator_tokens): Add "..=" token.
9286 (ast_range): Add "inclusive" parameter.
9287 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9289 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9291 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9292 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9294 * expprint.c (print_subexp_standard): Handle new bounds values.
9295 (dump_subexp_body_standard): Likewise.
9297 2018-04-27 Tom Tromey <tom@tromey.com>
9299 * configure: Rebuild.
9300 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9301 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9303 (class symbol_needs_eval_context): Likewise.
9304 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9305 (mock_mapped_index::symbol_name_at): Use "override". Remove
9307 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9309 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9310 * aarch64-tdep.c (instruction_reader::read): Use "override".
9311 (instruction_reader_test::read): Likewise.
9312 * arm-tdep.c (instruction_reader::read): Use "override".
9313 (instruction_reader_thumb::read): Likewise.
9315 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9318 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9319 instead of remote_send.
9320 (remote_send): Remove.
9322 2018-04-26 Pedro Alves <palves@redhat.com>
9324 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9325 find_function_start_sal instead of find_pc_line.
9327 2018-04-26 Pedro Alves <palves@redhat.com>
9329 * breakpoint.c (set_breakpoint_location_function): Handle
9331 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9332 * elfread.c (elf_symtab_read): Give data symbols with
9333 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9334 (elf_rel_plt_read): Update comment.
9335 * linespec.c (convert_linespec_to_sals): Handle
9337 (minsym_found): Handle mst_data_gnu_ifunc.
9338 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9339 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9340 * parse.c (find_minsym_type_and_address): Handle
9342 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9343 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9344 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9346 <mst_data_gnu_ifunc>: New enumerator.
9348 2018-04-26 Pedro Alves <palves@redhat.com>
9350 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9351 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9352 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9354 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9355 (lookup_minimal_symbol_by_pc): Adjust.
9356 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9357 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9358 * minsyms.h (lookup_msym_prefer): New enum.
9359 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9360 parameter by a lookup_msym_prefer parameter.
9362 2018-04-26 Pedro Alves <palves@redhat.com>
9364 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9365 ends in "@plt" instead of looking at the symbol's section.
9367 2018-04-26 Pedro Alves <palves@redhat.com>
9369 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9371 (find_pc_partial_function_gnu_ifunc): Rename to ...
9372 (find_pc_partial_function): ... this, and remove references to
9374 (find_pc_partial_function): Delete old implementation.
9375 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9377 2018-04-26 Pedro Alves <palves@redhat.com>
9379 * linespec.c (struct bound_minimal_symbol_search_key): New.
9380 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9381 skip first line if we found a GNU ifunc minimal symbol by name.
9382 (compare_msymbols): Change parameters to work with a destructured
9384 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9387 2018-04-26 Pedro Alves <palves@redhat.com>
9389 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9390 ifunc targets here. Instead, if we have an ifunc minsym, use its
9392 (add_location_to_breakpoint): Store the minsym and the objfile in
9393 the breakpoint location.
9394 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9395 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9396 Record the minsym in the sal.
9397 * symtab.h (symtab_and_line) <msymbol>: New field.
9399 2018-04-26 Pedro Alves <palves@redhat.com>
9401 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9402 unless we actually resolved the ifunc.
9404 2018-04-26 Pedro Alves <palves@redhat.com>
9406 * c-exp.y (variable production): Prefer ifunc minsyms over
9407 regular function symbols.
9408 * symtab.c (find_gnu_ifunc): New function.
9409 * minsyms.h (lookup_msym_prefer): New enum.
9410 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9411 parameter by a lookup_msym_prefer parameter.
9412 * symtab.h (find_gnu_ifunc): New declaration.
9414 2018-04-26 Pedro Alves <palves@redhat.com>
9416 * blockframe.c (find_gnu_ifunc_target_type): New function.
9417 (find_function_type): New.
9418 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9419 return a value with a memory address.
9420 (eval_call): For calls to GNU ifunc functions, try to find the
9421 type of the target function from the type that the resolver
9423 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9425 * infcall.c (find_function_return_type): Delete.
9426 (find_function_addr): Add 'function_type' parameter. For calls to
9427 GNU ifunc functions, try to find the type of the target function
9428 from the type that the resolver returns, and return it via
9430 (call_function_by_hand_dummy): Adjust to use the function type
9431 returned by find_function_addr.
9432 (find_function_addr): Add 'function_type' parameter and move
9434 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9437 2018-04-26 Pedro Alves <palves@redhat.com>
9439 * c-exp.y (variable production): Skip finding an alias for ifunc
9442 2018-04-26 Pedro Alves <palves@redhat.com>
9444 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9446 2018-04-25 Pedro Alves <palves@redhat.com>
9448 * infcmd.c (kill_command): Print the pid as string, not the whole
9449 thread's ptid. Add comment. s/has been killed/killed/ in output
9451 * remote.c (remote_detach_1): Print the pid as string, not the
9452 whole thread's ptid.
9454 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9455 Sergio Durigan Junior <sergiodj@redhat.com>
9456 Pedro Alves <palves@redhat.com>
9458 * infcmd.c (kill_command): Print message when inferior has
9460 * inferior.c (print_inferior_events): Remove 'static'. Set as
9462 (add_inferior): Improve message printed when
9463 'print_inferior_events' is on.
9464 (exit_inferior): Remove message printed when
9465 'print_inferior_events' is on.
9466 (detach_inferior): Improve message printed when
9467 'print_inferior_events' is on.
9468 (initialize_inferiors): Use 'add_inferior_silent' to set
9469 'current_inferior_'.
9470 * inferior.h (print_inferior_events): Declare here as
9472 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9473 '[Detaching...]' messages when 'print_inferior_events' is on.
9474 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9475 as prefix/suffix for messages. Remove periods. Fix erroneous
9476 'Detaching after fork from child...', replace it by '... from
9478 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9479 prefix/suffix when printing 'Detaching...' messages. Print
9480 them when 'print_inferior_events' is on.
9481 * remote.c (remote_detach_1): Print message when detaching
9482 from inferior and '!is_fork_parent'.
9484 2018-04-24 Tom Tromey <tom@tromey.com>
9486 * cli-out.h: Reindent.
9488 2018-04-24 Tom Tromey <tom@tromey.com>
9490 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9491 (cli_ui_out::do_field_string): Use fputs_filtered.
9492 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9494 2018-04-23 Tom Tromey <tom@tromey.com>
9496 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9497 gdb::unique_xmalloc_ptr.
9499 2018-04-23 Tom Tromey <tom@tromey.com>
9501 * configure: Rebuild.
9503 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9506 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9507 prepare_for_testing. Set normal_bp to r_debug_state if target
9510 2018-04-21 Pedro Alves <palves@redhat.com>
9511 Rajendra SY <rajendra.sy@gmail.com>
9513 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9514 * remote.c (extended_remote_attach): In all-stop mode, mark the
9515 thread as executing.
9517 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9519 * thread.c (thread_apply_all_command): Fix comment.
9520 (thread_command): Fix comment.
9522 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9524 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9526 * features/aarch64-core.c (create_feature_aarch64_core):
9528 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9530 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9532 * features/i386/32bit-avx512.c
9533 (create_feature_i386_32bit_avx512): Likewise.
9534 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9536 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9538 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9540 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9542 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9544 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9546 * features/i386/64bit-avx512.c
9547 (create_feature_i386_64bit_avx512): Likewise.
9548 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9550 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9552 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9554 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9556 * features/i386/64bit-segments.c
9557 (create_feature_i386_64bit_segments): Likewise.
9558 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9560 * features/i386/x32-core.c
9561 (create_feature_i386_x32_core): Likewise.
9562 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9563 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9564 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9565 * target-descriptions.c: In generated code, don't pass xml
9568 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9570 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9571 (print_xml_feature::visit_post): Likewise.
9572 (print_xml_feature::visit): Likewise.
9573 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9574 (print_xml_feature): Add new class.
9575 * regformats/regdat.sh: Null xmltarget on feature targets.
9576 * target-descriptions.c (struct target_desc): Add xmltarget.
9577 (maintenance_check_tdesc_xml_convert): Add unittest function.
9578 (tdesc_get_features_xml): Add function to get xml.
9579 (maintenance_check_xml_descriptions): Test xml generation.
9580 * xml-tdesc.c (string_read_description_xml): Add function.
9581 * xml-tdesc.h (string_read_description_xml): Add declaration.
9583 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9585 * features/Makefile: Add feature marker to targets with new style
9586 target descriptions.
9587 * regformats/aarch64.dat: Regenerate.
9588 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9589 * regformats/i386/amd64-avx-linux.dat: Likewise.
9590 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9591 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9592 * regformats/i386/amd64-linux.dat: Likewise.
9593 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9594 * regformats/i386/amd64.dat: Likewise.
9595 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9596 * regformats/i386/i386-avx-linux.dat: Likewise.
9597 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9598 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9599 * regformats/i386/i386-linux.dat: Likewise.
9600 * regformats/i386/i386-mmx-linux.dat: Likewise.
9601 * regformats/i386/i386-mpx-linux.dat: Likewise.
9602 * regformats/i386/i386.dat: Likewise.
9603 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9604 * regformats/i386/x32-avx-linux.dat: Likewise.
9605 * regformats/i386/x32-linux.dat: Likewise.
9606 * regformats/tic6x-c62x-linux.dat: Likewise.
9607 * regformats/tic6x-c64x-linux.dat: Likewise.
9608 * regformats/tic6x-c64xp-linux.dat: Likewise.
9609 * regformats/regdat.sh: Parse feature marker.
9611 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9613 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9614 (tdesc_osabi_name): Likewise.
9615 * target-descriptions.c (tdesc_architecture_name): Add new
9617 (tdesc_osabi_name): Likewise.
9619 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9621 * common/tdesc.c (tdesc_predefined_type): Move to here.
9622 (tdesc_named_type): Likewise.
9623 (tdesc_create_vector): Likewise.
9624 (tdesc_create_struct): Likewise.
9625 (tdesc_set_struct_size): Likewise.
9626 (tdesc_create_union): Likewise.
9627 (tdesc_create_flags): Likewise.
9628 (tdesc_create_enum): Likewise.
9629 (tdesc_add_field): Likewise.
9630 (tdesc_add_typed_bitfield): Likewise.
9631 (tdesc_add_bitfield): Likewise.
9632 (tdesc_add_flag): Likewise.
9633 (tdesc_add_enum_value): Likewise.
9634 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9635 (struct tdesc_type_vector): Likewise.
9636 (struct tdesc_type_field): Likewise.
9637 (struct tdesc_type_with_fields): Likewise.
9638 (tdesc_create_enum): Add declaration.
9639 (tdesc_add_typed_bitfield): Likewise.
9640 (tdesc_add_enum_value): Likewise.
9641 * target-descriptions.c (tdesc_type_field): Move from here.
9642 (tdesc_type_builtin): Likewise.
9643 (tdesc_type_vector): Likewise.
9644 (tdesc_type_with_fields): Likewise.
9645 (tdesc_predefined_types): Likewise.
9646 (tdesc_named_type): Likewise.
9647 (tdesc_create_vector): Likewise.
9648 (tdesc_create_struct): Likewise.
9649 (tdesc_set_struct_size): Likewise.
9650 (tdesc_create_union): Likewise.
9651 (tdesc_create_flags): Likewise.
9652 (tdesc_create_enum): Likewise.
9653 (tdesc_add_field): Likewise.
9654 (tdesc_add_typed_bitfield): Likewise.
9655 (tdesc_add_bitfield): Likewise.
9656 (tdesc_add_flag): Likewise.
9657 (tdesc_add_enum_value): Likewise.
9658 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9659 (tdesc_add_typed_bitfield): Likewise.
9660 (tdesc_add_enum_value): Likewise.
9662 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9664 * common/tdesc.c (tdesc_feature::accept): Move to here.
9665 (tdesc_feature::operator==): Likewise.
9666 (tdesc_create_reg): Likewise.
9667 * common/tdesc.h (tdesc_type_kind): Likewise.
9668 (struct tdesc_type): Likewise.
9669 (struct tdesc_feature): Likewise.
9670 * regformats/regdat.sh: Create a feature.
9671 * target-descriptions.c (tdesc_type_kind): Move from here.
9672 (tdesc_type): Likewise.
9673 (tdesc_type_up): Likewise.
9674 (tdesc_feature): Likewise.
9675 (tdesc_create_reg): Likewise.
9677 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9679 * Makefile.in: Add arch/tdesc.c
9680 * common/tdesc.c: New file.
9681 * common/tdesc.h (tdesc_element_visitor): Move to here.
9682 (tdesc_element): Likewise.
9683 (tdesc_reg): Likewise.
9684 (tdesc_reg_up): Likewise.
9685 * regformats/regdef.h (reg): Add offset to constructors.
9686 * target-descriptions.c (tdesc_element_visitor): Move from here.
9687 (tdesc_element): Likewise.
9688 (tdesc_reg): Likewise.
9689 (tdesc_reg_up): Likewise.
9691 2018-04-17 Tom Tromey <tom@tromey.com>
9693 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9696 2018-04-17 Tom Tromey <tom@tromey.com>
9698 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9700 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9702 * symtab.c (print_symbol_info): Skip printing filename and line
9703 number when `last' is NULL.
9704 (symtab_symbol_info): Use empty string instead of NULL for first
9705 invocation of print_symbol_info.
9706 (rbreak_command): Pass NULL to `last' parameter of
9709 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9711 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9714 2018-04-16 Pedro Alves <palves@redhat.com>
9716 * MAINTAINERS (sh): Remove.
9717 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9718 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9719 (ALLDEPFILES): Remove sh64-tdep.c.
9720 * NEWS: Mentions that support for SH-5/SH64 is removed.
9721 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9722 (sh*-*-openbsd*): Ditto.
9723 (sh64-*-elf*): Remove.
9725 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9726 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9727 * sh-tdep.c: No longer include "sh64-tdep.h".
9728 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9729 * sh64-tdep.c, sh64-tdep.h: Remove files.
9731 2018-04-16 Pedro Alves <palves@redhat.com>
9733 * MAINTAINERS: Remove m88k.
9734 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9735 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9736 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9737 * NEWS: Mention that support for m88k was removed.
9738 * configure.host (m88*-*-*): Remove support.
9739 * configure.nat (m88k-*-*): Remove support.
9740 * configure.tgt (m88*-*-openbsd*): Remove.
9741 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9743 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9745 * configure.tgt (x86_tobjs): New variable.
9746 (amd64_tobjs, i386_tobjs): Use it.
9748 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9750 * symtab.c (print_symbol_info): Precede the symbol definition by
9751 the line number when available.
9752 * NEWS: Advertise this enhancement.
9754 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9756 * NEWS (New options): announce set/show record btrace cpu.
9757 * btrace.c: Include record-btrace.h.
9758 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9759 the vendor is unknown.
9760 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9761 Maybe overwrite the btrace configuration's cpu.
9762 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9763 (btrace_fetch): Add cpu parameter. Update callers.
9764 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9765 Maybe overwrite the btrace configuration's cpu. Skip enabling
9766 errata workarounds if the vendor is unknown.
9767 * python/py-record-btrace.c: Include record-btrace.h.
9768 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9769 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9770 * record-btrace.c (record_btrace_cpu_state_kind): New.
9771 (record_btrace_cpu): New.
9772 (set_record_btrace_cpu_cmdlist): New.
9773 (record_btrace_get_cpu): New.
9774 (require_btrace_thread, record_btrace_info)
9775 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9776 (cmd_set_record_btrace_cpu_none): New.
9777 (cmd_set_record_btrace_cpu_auto): New.
9778 (cmd_set_record_btrace_cpu): New.
9779 (cmd_show_record_btrace_cpu): New.
9780 (_initialize_record_btrace): Initialize set/show record btrace cpu
9782 * record-btrace.h (record_btrace_get_cpu): New.
9784 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9786 * record.c (set_record_command): Fix typo in message.
9788 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9790 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9792 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9794 * infrun.c (process_event_stop_test): Call
9795 gdbarch_in_indirect_branch_thunk.
9796 * gdbarch.sh (in_indirect_branch_thunk): New.
9797 * gdbarch.c: Regenerated.
9798 * gdbarch.h: Regenerated.
9801 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9802 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9803 (ALLDEPFILES): Add x86-tdep.c.
9804 * arch-utils.h (default_in_indirect_branch_thunk): New.
9805 * arch-utils.c (default_in_indirect_branch_thunk): New.
9806 * i386-tdep: Include x86-tdep.h.
9807 (i386_in_indirect_branch_thunk): New.
9808 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9810 * amd64-tdep: Include x86-tdep.h.
9811 (amd64_in_indirect_branch_thunk): New.
9812 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9814 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9817 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9818 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9819 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9822 2018-04-12 Tom Tromey <tom@tromey.com>
9824 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9825 (rust_evaluate_subexp): Likewise.
9827 2018-04-12 Pedro Alves <palves@redhat.com>
9829 * procfs.c (procfs_detach): Make forward declaration's prototype
9830 match definition's protototype.
9831 (proc_get_LDT_entry): Remove stale do_cleanups call.
9833 2018-04-12 Pedro Alves <palves@redhat.com>
9835 * target.h (target_ops::to_has_exited): Delete.
9836 (target_has_exited): Delete.
9837 * target-delegates.c: Regenerate.
9839 2018-04-11 Pedro Alves <palves@redhat.com>
9841 * target.c (fileio_fh_t::t): Add comment.
9842 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9843 (target_fileio_close): Handle a NULL target.
9844 (invalidate_fileio_fh): New.
9845 (target_close): Call it.
9846 * remote.c (remote_hostio_send_command): No longer check whether
9847 remote_desc is open.
9849 2018-04-11 Pedro Alves <palves@redhat.com>
9851 * target.c (fileio_fh_t): Make it a named struct instead of a
9853 (fileio_fh_t::is_closed): New method.
9854 (DEF_VEC_O (fileio_fh_t)): Remove.
9855 (fileio_fhandles): Now a std::vector.
9856 (is_closed_fileio_fh): Delete.
9857 (acquire_fileio_fd): Adjust. Rename parameters.
9858 (release_fileio_fd): Adjust.
9859 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9860 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9861 (target_fileio_close): Adjust.
9863 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9865 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9868 2018-04-10 Pedro Alves <palves@redhat.com>
9870 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9871 (scoped_finish_thread_state): New class.
9872 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9874 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9875 (fetch_inferior_event, normal_stop): Likewise.
9876 * thread.c (finish_thread_state_cleanup): Delete.
9878 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9879 Pedro Alves <palves@redhat.com>
9881 * value.c: Include "selftest.h" and "common/array-view.h".
9882 (struct range) <operator ==>: New.
9883 (test_ranges_contain): New.
9884 (check_ranges_vector): New.
9885 (test_insert_into_bit_range_vector): New.
9886 (_initialize_values): Register selftests.
9887 * common/array-view.h (operator==, operator!=): New.
9889 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9891 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9893 * inline-frame.c: Include <algorithm>.
9894 (struct inline_state): Add constructor.
9895 (inline_state_s): Remove.
9896 (DEF_VEC_O(inline_state_s)): Remove.
9897 (inline_states): Change type to std::vector.
9898 (find_inline_frame_state): Adjust to std::vector.
9899 (allocate_inline_frame_state): Remove.
9900 (clear_inline_frame_state): Adjust to std::vector.
9901 (skip_inline_frames): Adjust to std::vector.
9903 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9905 * tracepoint.h (struct trace_state_variable): Add constructor.
9906 <name>: Change type to std::string.
9907 * tracepoint.c (tsv_s): Remove.
9908 (DEF_VEC_O(tsv_s)): Remove.
9909 (tvariables): Change to std::vector.
9910 (create_trace_state_variable): Adjust to std::vector.
9911 (find_trace_state_variable): Likewise.
9912 (find_trace_state_variable_by_number): Likewise.
9913 (delete_trace_state_variable): Likewise.
9914 (trace_variable_command): Adjust to std::string.
9915 (delete_trace_variable_command): Likewise.
9916 (tvariables_info_1): Adjust to std::vector.
9917 (save_trace_state_variables): Likewise.
9918 (start_tracing): Likewise.
9919 (merge_uploaded_trace_state_variables): Adjust to std::vector
9921 * target.h (struct target_ops)
9922 <to_download_trace_state_variable>: Pass reference to
9923 trace_state_variable.
9924 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9925 * target-delegates.c: Re-generate.
9926 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9927 (mi_tsv_deleted): Likewise.
9928 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9929 * remote.c (remote_download_trace_state_variable): Change
9930 pointer to reference and adjust.
9931 * make-target-delegates (parse_argtypes): Handle references.
9932 (write_function_header): Likewise.
9933 (munge_type): Likewise.
9935 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9937 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9938 string_view-selftests.c.
9939 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9941 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9942 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9943 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9944 * unittests/basic_string_view/element_access/char/1.cc:
9946 * unittests/basic_string_view/element_access/char/empty.cc:
9948 * unittests/basic_string_view/element_access/char/front_back.cc:
9950 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9951 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9953 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9955 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9957 * unittests/basic_string_view/operations/compare/char/1.cc:
9959 * unittests/basic_string_view/operations/compare/char/13650.cc:
9961 * unittests/basic_string_view/operations/copy/char/1.cc:
9963 * unittests/basic_string_view/operations/data/char/1.cc:
9965 * unittests/basic_string_view/operations/find/char/1.cc:
9967 * unittests/basic_string_view/operations/find/char/2.cc:
9969 * unittests/basic_string_view/operations/find/char/3.cc:
9971 * unittests/basic_string_view/operations/find/char/4.cc:
9973 * unittests/basic_string_view/operations/rfind/char/1.cc:
9975 * unittests/basic_string_view/operations/rfind/char/2.cc:
9977 * unittests/basic_string_view/operations/rfind/char/3.cc:
9979 * unittests/basic_string_view/operations/substr/char/1.cc:
9981 * unittests/basic_string_view/operators/char/2.cc: Likewise.
9982 * unittests/string_view-selftests.c: New file.
9984 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9986 * unittests/basic_string_view/capacity/1.cc: New file.
9987 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
9988 * unittests/basic_string_view/cons/char/1.cc: New file.
9989 * unittests/basic_string_view/cons/char/2.cc: New file.
9990 * unittests/basic_string_view/cons/char/3.cc: New file.
9991 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
9992 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
9993 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
9994 * unittests/basic_string_view/element_access/char/1.cc: New file.
9995 * unittests/basic_string_view/element_access/char/2.cc: New file.
9996 * unittests/basic_string_view/element_access/char/empty.cc: New file.
9997 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
9998 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
9999 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10000 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10001 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10002 * unittests/basic_string_view/include.cc: New file.
10003 * unittests/basic_string_view/inserters/char/1.cc: New file.
10004 * unittests/basic_string_view/inserters/char/2.cc: New file.
10005 * unittests/basic_string_view/inserters/char/3.cc: New file.
10006 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10007 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10008 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10009 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10010 * unittests/basic_string_view/literals/types.cc: New file.
10011 * unittests/basic_string_view/literals/values.cc: New file.
10012 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10013 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10014 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10015 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10016 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10017 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10018 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10019 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10020 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10021 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10022 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10023 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10024 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10025 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10026 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10027 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10028 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10029 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10030 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10031 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10032 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10033 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10034 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10035 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10036 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10037 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10038 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10039 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10040 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10041 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10042 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10043 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10044 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10045 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10046 * unittests/basic_string_view/operators/char/2.cc: New file.
10047 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10048 * unittests/basic_string_view/range_access/char/1.cc: New file.
10049 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10050 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10051 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10052 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10053 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10054 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10055 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10056 * unittests/basic_string_view/typedefs.cc: New file.
10057 * unittests/basic_string_view/types/1.cc: New file.
10059 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10061 * common/gdb_string_view.h: Remove libstdc++ implementation
10062 details, adjust to gdb reality.
10063 * common/gdb_string_view.tcc: Likewise.
10064 * cli/cli-script.c (struct string_view): Remove.
10065 (user_args) <m_args>: Change element type to gdb::string_view.
10066 (user_args::insert_args): Adjust.
10068 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10070 * common/gdb_string_view.h: New file.
10071 * common/gdb_string_view.tcc: New file.
10073 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10075 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10076 * configure: Re-generate.
10078 2018-04-09 Pedro Alves <palves@redhat.com>
10080 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10081 (set_target_gdbarch): Call
10082 gdb::observers::architecture_changed.notify instead of
10083 observer_notify_architecture_changed.
10085 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10087 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10088 (do_restore_current_traceframe_cleanup): Remove.
10089 (restore_current_traceframe_cleanup_dtor): Remove.
10090 (make_cleanup_restore_current_traceframe): Remove.
10091 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10093 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10094 * infrun.c (fetch_inferior_event): Use
10095 scoped_restore_current_traceframe.
10097 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10099 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10101 <n_allocated_type_units>: Remove.
10102 <all_type_units>: Change to std::vector.
10103 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10104 to std::vector change.
10105 (dwarf2_per_objfile::get_cutu): Likewise.
10106 (dwarf2_per_objfile::get_tu): Likewise.
10107 (create_signatured_type_table_from_index): Likewise.
10108 (create_signatured_type_table_from_debug_names): Likewise.
10109 (dw2_symtab_iter_next): Likewise.
10110 (dw2_print_stats): Likewise.
10111 (dw2_expand_all_symtabs): Likewise.
10112 (dw2_expand_marked_cus): Likewise.
10113 (dw2_debug_names_iterator::next): Likewise.
10114 (dwarf2_initialize_objfile): Likewise.
10115 (add_signatured_type_cu_to_table): Likewise.
10116 (create_all_type_units): Likewise.
10117 (add_type_unit): Likewise.
10118 (struct tu_abbrev_offset): Add constructor.
10119 (build_type_psymtabs_1): Adjust to std::vector change.
10120 (print_tu_stats): Likewise.
10121 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10122 (write_debug_names): Likewise.
10124 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10126 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10127 Make an std::vector.
10128 <n_comp_units>: Remove.
10129 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10130 to std::vector change.
10131 (dwarf2_per_objfile::get_cutu): Likewise.
10132 (dwarf2_per_objfile::get_cu): Likewise.
10133 (create_cus_from_index): Likewise.
10134 (create_addrmap_from_index): Likewise.
10135 (create_addrmap_from_aranges): Likewise.
10136 (dwarf2_read_index): Likewise.
10137 (dw2_find_last_source_symtab): Likewise.
10138 (dw2_map_symtabs_matching_filename): Likewise.
10139 (dw2_symtab_iter_next): Likewise.
10140 (dw2_print_stats): Likewise.
10141 (dw2_expand_all_symtabs): Likewise.
10142 (dw2_expand_symtabs_with_fullname): Likewise.
10143 (dw2_expand_marked_cus): Likewise.
10144 (dw2_map_symbol_filenames): Likewise.
10145 (create_cus_from_debug_names): Likewise.
10146 (dwarf2_read_debug_names): Likewise.
10147 (dw2_debug_names_iterator::next): Likewise.
10148 (dwarf2_initialize_objfile): Likewise.
10149 (set_partial_user): Likewise.
10150 (dwarf2_build_psymtabs_hard): Likewise.
10151 (read_comp_units_from_section): Remove arguments, adjust to
10152 std::vector change.
10153 (create_all_comp_units): Adjust to std::vector and
10154 read_comp_units_from_section changes.
10155 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10157 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10158 (psyms_seen_size): Likewise.
10159 (write_gdbindex): Likewise.
10160 (write_debug_names): Likewise.
10162 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10164 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10165 with dwarf2_per_objfile.
10166 (create_cus_from_index): Likewise.
10167 (create_signatured_type_table_from_index): Likewise.
10168 (dwarf2_read_index): Likewise.
10169 (dwarf2_initialize_objfile): Likewise.
10170 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10171 per_cu rather than get_dwarf2_per_objfile.
10173 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10175 * dwarf2read.h (struct signatured_type): Forward declare.
10176 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10178 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10179 (dw2_get_cutu): ...this.
10180 (dwarf2_per_objfile::get_cu): Rename from...
10181 (dw2_get_cu): ...this.
10182 (dwarf2_per_objfile::get_tu): New.
10183 (create_addrmap_from_index): Adjust.
10184 (create_addrmap_from_aranges): Adjust.
10185 (dw2_find_last_source_symtab): Adjust.
10186 (dw2_map_symtabs_matching_filename): Adjust.
10187 (dw2_symtab_iter_next): Adjust.
10188 (dw2_print_stats): Adjust.
10189 (dw2_expand_all_symtabs): Adjust.
10190 (dw2_expand_symtabs_with_fullname): Adjust.
10191 (dw2_expand_marked_cus): Adjust.
10192 (dw_expand_symtabs_matching_file_matcher): Adjust.
10193 (dw2_map_symbol_filenames): Adjust.
10194 (dw2_debug_names_iterator::next): Adjust.
10195 (dwarf2_initialize_objfile): Adjust.
10196 (set_partial_user): Adjust.
10197 (dwarf2_build_psymtabs_hard): Adjust.
10199 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10201 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10202 Remove unused variables.
10203 (dw2_map_symtabs_matching_filename): Likewise.
10204 (dwarf2_record_block_ranges): Likewise.
10205 (dwarf2_read_addr_index): Likewise.
10206 (follow_die_offset): Likewise.
10208 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10210 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10211 to symbol_file_add_main.
10213 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10216 * mi/mi-console.c (do_fputc_async_safe): New.
10217 (mi_console_file::write_async_safe): New.
10218 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10219 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10221 * ui-file.c (ui_file::putstrn): Adjust call to
10222 fputstrn_unfiltered.
10223 * utils.c (printchar): Replace do_fputs and do_fprintf
10224 parameters by do_fputc.
10225 (fputstr_filtered): Adjust call to printchar.
10226 (fputstr_unfiltered): Likewise.
10227 (fputstrn_filtered): Likewise.
10228 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10230 * utils.h (do_fputc_ftype): New typedef.
10231 (fputstrn_unfiltered): Add do_fputc parameter.
10233 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10235 * regformats/i386/i386-avx.dat: Remove.
10237 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10240 * amd64-tdep.c (amd64_none_init_abi): New function.
10241 (amd64_x32_none_init_abi): New function.
10242 (_initialize_amd64_tdep): Register handlers for x86-64 and
10243 x64_32 with GDB_OSABI_NONE.
10244 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10245 GDB_OSABI_NONE osabi.
10247 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10250 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10252 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10253 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10255 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10257 * common/byte-vector.h (char_vector): New type.
10258 * target.h (target_read_alloc): Return
10259 gdb::optional<byte_vector>.
10260 (target_read_stralloc): Return gdb::optional<char_vector>.
10261 (target_get_osdata): Return gdb::optional<char_vector>.
10262 * target.c (target_read_alloc_1): Templatize. Replacement
10263 manual memory management with vector.
10264 (target_read_alloc): Change return type, adjust.
10265 (target_read_stralloc): Change return type, adjust.
10266 (target_get_osdata): Change return type, adjust.
10267 * auxv.c (struct auxv_info) <length>: Remove.
10268 <data>: Change type to gdb::optional<byte_vector>.
10269 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10270 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10271 (target_auxv_search): Adjust.
10272 (fprint_target_auxv): Adjust.
10273 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10274 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10275 (linux_make_corefile_notes): Adjust.
10276 * osdata.c (get_osdata): Adjust.
10277 * remote.c (remote_get_threads_with_qxfer): Adjust.
10278 (remote_memory_map): Adjust.
10279 (remote_traceframe_info): Adjust.
10280 (btrace_read_config): Adjust.
10281 (remote_read_btrace): Adjust.
10282 (remote_pid_to_exec_file): Adjust.
10283 * solib-aix.c (solib_aix_get_library_list): Adjust.
10284 * solib-dsbt.c (decode_loadmap): Don't free buf.
10285 (dsbt_get_initial_loadmaps): Adjust.
10286 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10287 * solib-target.c (solib_target_current_sos): Adjust.
10288 * tracepoint.c (sdata_make_value): Adjust.
10289 * xml-support.c (xinclude_start_include): Adjust.
10290 (xml_fetch_content_from_file): Adjust.
10291 * xml-support.h (xml_fetch_another): Change return type.
10292 (xml_fetch_content_from_file): Change return type.
10293 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10294 * xml-tdesc.c (file_read_description_xml): Adjust.
10295 (fetch_available_features_from_target): Change return type.
10296 (target_fetch_description_xml): Adjust.
10297 (target_read_description_xml): Adjust.
10299 2018-04-06 Tom Tromey <tom@tromey.com>
10301 * value.c (~value): Update.
10302 (struct value) <contents>: Now unique_xmalloc_ptr.
10303 (value_contents_bits_eq, allocate_value_contents)
10304 (value_contents_raw, value_contents_all_raw)
10305 (value_contents_for_printing, value_contents_for_printing_const)
10306 (set_value_enclosing_type): Update.
10308 2018-04-06 Tom Tromey <tom@tromey.com>
10310 * value.c (range_s): Remove typedef, VEC.
10311 (struct range): Add operator<.
10312 (range_lessthan): Remove.
10313 (ranges_contain): Change type.
10315 (struct value) <unavailable, optimized_out>: Now std::vector.
10316 (value_entirely_available)
10317 (value_entirely_covered_by_range_vector)
10318 (value_entirely_unavailable, value_entirely_optimized_out):
10320 (insert_into_bit_range_vector): Change argument type.
10321 (find_first_range_overlap): Likewise.
10322 (struct ranges_and_idx, value_contents_bits_eq)
10323 (require_not_optimized_out, require_available): Update.
10324 (ranges_copy_adjusted): Change argument types.
10325 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10327 2018-04-06 Tom Tromey <tom@tromey.com>
10329 * value.c (~value): Update.
10330 (struct value) <parent>: Now a value_ref_ptr.
10331 (value_parent, set_value_parent, value_address, value_copy):
10334 2018-04-06 Tom Tromey <tom@tromey.com>
10336 * value.c (struct value): Add constructor, destructor, and member
10338 (allocate_value_lazy, value_decref): Update.
10340 2018-04-06 Tom Tromey <tom@tromey.com>
10342 * value.c (struct value) <released, next>: Remove.
10343 (all_values): Now a std::vector.
10344 (allocate_value_lazy): Update.
10345 (value_next): Remove.
10346 (value_mark, value_free_to_mark, release_value)
10347 (value_release_to_mark): Update.
10349 2018-04-06 Tom Tromey <tom@tromey.com>
10351 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10352 (free_value_chain): Remove.
10353 * value.c (free_value_chain): Remove.
10354 (value_release_to_mark): Return a std::vector.
10355 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10357 (check_condition): Update.
10358 * eval.c (fetch_subexp_value): Change "val_chain" to a
10360 * breakpoint.c (update_watchpoint): Update.
10361 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10363 2018-04-06 Tom Tromey <tom@tromey.com>
10365 * value.h (free_all_values): Remove.
10366 * value.c (free_all_values): Remove.
10368 2018-04-06 Tom Tromey <tom@tromey.com>
10370 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10371 (value_history_chain, value_history_count): Remove.
10372 (value_history): New global.
10373 (record_latest_value, access_value_history, show_values)
10374 (preserve_values): Update.
10376 2018-04-06 Tom Tromey <tom@tromey.com>
10378 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10379 * varobj.c (varobj_set_display_format, varobj_set_value)
10380 (install_default_visualizer, construct_visualizer)
10381 (install_new_value, ~varobj, varobj_get_value_type)
10382 (my_value_of_variable, varobj_editable_p): Update.
10383 * c-varobj.c (c_describe_child, c_value_of_variable)
10384 (cplus_number_of_children, cplus_describe_child): Update.
10385 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10386 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10387 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10389 2018-04-06 Tom Tromey <tom@tromey.com>
10391 * printcmd.c (last_examine_address): Change type to
10393 (do_examine, x_command): Update.
10395 2018-04-06 Tom Tromey <tom@tromey.com>
10397 * value.c (release_value): Update.
10398 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10399 (struct bpstats) <val>: Now a value_ref_ptr.
10400 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10401 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10402 (~watchpoint, print_it_watchpoint, watch_command_1)
10403 (invalidate_bp_value_on_memory_change): Update.
10405 2018-04-06 Tom Tromey <tom@tromey.com>
10407 * varobj.c (varobj_clear_saved_item)
10408 (update_dynamic_varobj_children, install_new_value, ~varobj):
10410 * value.h (value_incref): Move declaration earlier.
10411 (value_decref): Rename from value_free.
10412 (struct value_ref_policy): New.
10413 (value_ref_ptr): New typedef.
10414 (struct value_deleter): Remove.
10415 (gdb_value_up): Remove typedef.
10416 (release_value): Change return type.
10417 (release_value_or_incref): Remove.
10418 * value.c (set_value_parent): Update.
10419 (value_incref): Change return type.
10420 (value_decref): Rename from value_free.
10421 (value_free_to_mark, free_all_values, free_value_chain): Update.
10422 (release_value): Return value_ref_ptr.
10423 (release_value_or_incref): Remove.
10424 (record_latest_value, set_internalvar, clear_internalvar):
10426 * stack.c (info_frame_command): Don't call value_free.
10427 * python/py-value.c (valpy_dealloc, valpy_new)
10428 (value_to_value_object): Update.
10429 * printcmd.c (do_examine): Update.
10430 * opencl-lang.c (lval_func_free_closure): Update.
10431 * mi/mi-main.c (register_changed_p): Don't call value_free.
10432 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10433 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10434 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10436 * guile/scm-value.c (vlscm_free_value_smob)
10437 (vlscm_scm_from_value): Update.
10438 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10439 (frame_unwind_register_unsigned, get_frame_register_bytes)
10440 (put_frame_register_bytes): Don't call value_free.
10441 * findvar.c (address_from_register): Don't call value_free.
10442 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10443 * dwarf2loc.c (entry_data_value_free_closure)
10444 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10445 (dwarf2_evaluate_loc_desc_full): Update.
10446 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10447 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10448 (~watchpoint, watch_command_1)
10449 (invalidate_bp_value_on_memory_change): Update.
10450 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10452 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10455 * warning.m4: Add -Wno-error=deprecated-register.
10456 * configure: Re-generate.
10458 2018-04-05 Tom Tromey <tom@tromey.com>
10460 * linespec.h: Remove include of "vec.h".
10462 2018-04-05 Tom Tromey <tom@tromey.com>
10464 * linespec.c (typep): Remove typedef.
10465 (find_methods, find_superclass_methods): Take a std::vector.
10466 (find_method): Use std::vector.
10468 2018-04-05 Tom Tromey <tom@tromey.com>
10470 * utils.c (compare_strings): Remove.
10471 * utils.h (compare_strings): Remove.
10472 * objc-lang.h (find_imps): Update.
10473 * objc-lang.c (find_methods): Take a std::vector.
10474 (uniquify_strings, find_imps): Likewise.
10475 * linespec.c (find_methods): Take a std::vector.
10476 (decode_objc): Use std::vector.
10477 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10479 (find_method, find_function_symbols): Use std::vector.
10481 2018-04-05 Tom Tromey <tom@tromey.com>
10483 * completer.c (completion_tracker::completion_tracker): Remove
10485 (completion_tracker::discard_completions): Likewise.
10486 * breakpoint.c (ambiguous_names_p): Remove cast.
10487 * ada-lang.c (_initialize_ada_language): Remove cast.
10488 * utils.h (streq): Update.
10489 (streq_hash): Add new declaration.
10490 * utils.c (streq): Return bool.
10491 (streq_hash): New function.
10493 2018-04-05 Tom Tromey <tom@tromey.com>
10495 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10496 Remove a string copy.
10498 2018-04-05 Tom Tromey <tom@tromey.com>
10500 * linespec.c (filter_results): Use std::vector.
10501 (decode_line_2, decode_line_full): Update.
10503 2018-04-05 Tom Tromey <tom@tromey.com>
10505 * linespec.c (canonical_to_fullform): Return std::string.
10506 (filter_results): Update.
10507 (struct decode_line_2_item): Add constructor.
10508 <fullform, displayform>: Now std::string.
10509 (decode_line_2_compare_items): Now a std::sort comparator.
10510 (decode_line_2): Update.
10512 2018-04-05 Tom Tromey <tom@tromey.com>
10514 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10515 (unexpected_linespec_error): Update.
10516 (linespec_parse_basic, parse_linespec): Update.
10518 2018-04-05 Tom Tromey <tom@tromey.com>
10520 * linespec.c (linespec_parse_basic): Reindent.
10522 2018-04-05 Tom Tromey <tom@tromey.com>
10524 * minsyms.h (iterate_over_minimal_symbols): Update.
10525 * minsyms.c (iterate_over_minimal_symbols): Take a
10526 gdb::function_view.
10527 * linespec.c (struct collect_minsyms): Remove.
10528 (compare_msyms): Now a std::sort comparator.
10529 (add_minsym): Add parameters.
10530 (search_minsyms_for_name): Update. Use std::vector.
10532 2018-04-03 Tom Tromey <tom@tromey.com>
10534 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10537 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10539 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10541 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10544 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10545 printing static type.
10547 2018-04-01 Tom Tromey <tom@tromey.com>
10549 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10550 (rs6000_xfer_shared_libraries): Update.
10552 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10554 * common/gdb_vecs.h (char_ptr): Remove.
10555 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10557 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10559 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10561 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10563 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10565 * tracepoint.h (struct uploaded_tp): Initialize fields.
10566 <actions, step_actions, cmd_strings>: Change type to
10567 std::vector<char *>.
10568 * tracepoint.c (get_uploaded_tp): Allocate with new.
10569 (free_uploaded_tps): Free with delete.
10570 (parse_tracepoint_definition): Adjust to std::vector change.
10571 * breakpoint.c (read_uploaded_action): Likewise.
10572 (create_tracepoint_from_upload): Likewise.
10573 * ctf.c (ctf_write_uploaded_tp): Likewise.
10574 (SET_ARRAY_FIELD): Likewise.
10575 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10577 2018-03-30 Tom Tromey <tom@tromey.com>
10579 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10581 (svr4_keep_data_in_core): Update.
10582 (svr4_read_so_list): Update.
10584 2018-03-30 Tom Tromey <tom@tromey.com>
10586 * windows-nat.c (handle_output_debug_string, handle_exception):
10588 * target.h (target_read_string): Update.
10589 * target.c (target_read_string): Change "string" to
10590 unique_xmalloc_ptr.
10591 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10593 * solib-frv.c (frv_current_sos): Update.
10594 * solib-dsbt.c (dsbt_current_sos): Update.
10595 * solib-darwin.c (darwin_current_sos): Update.
10596 * linux-thread-db.c (inferior_has_bug): Update.
10597 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10598 Update. Remove alloca.
10599 * ada-lang.c (ada_main_name): Update.
10601 2018-03-30 Tom Tromey <tom@tromey.com>
10603 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10604 (struct dwo_file_deleter): New.
10605 (dwo_file_up): New typedef.
10606 (open_and_init_dwo_file): Use dwo_file_up.
10607 (free_dwo_file_cleanup): Remove.
10609 2018-03-30 Tom Tromey <tom@tromey.com>
10611 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10612 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10614 2018-03-30 Tom Tromey <tom@tromey.com>
10616 * dwarf2read.c (class free_cached_comp_units): New class.
10617 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10618 (free_cached_comp_units): Remove function.
10620 2018-03-30 Tom Tromey <tom@tromey.com>
10622 * utils.h (make_cleanup_unpush_target): Remove.
10623 * inf-ptrace.c (struct target_unpusher): New.
10624 (target_unpush_up) New typedef.
10625 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10627 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10629 2018-03-27 Tom Tromey <tom@tromey.com>
10631 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10633 2018-03-27 Pedro Alves <palves@redhat.com>
10634 Tom Tromey <tom@tromey.com>
10636 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10637 destructor. Now a class.
10638 (gdb_readline_wrapper_cleanup): Remove function.
10639 (gdb_readline_wrapper): Remove cleanups.
10641 2018-03-27 Tom Tromey <tom@tromey.com>
10643 * typeprint.h (struct type_print_options) <local_typedefs,
10644 global_typedefs>: Remove "struct" keyword.
10645 (class typedef_hash_table): New class.
10646 (recursively_update_typedef_hash, add_template_parameters)
10647 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10648 (find_typedef_in_hash): Don't declare.
10649 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10650 (typedef_hash_table::recursively_update): Rename from
10651 recursively_update_typedef_hash. Now a member.
10652 (typedef_hash_table::add_template_parameters): Rename from
10653 add_template_parameters. Now a member.
10654 (typedef_hash_table::typedef_hash_table): Now a constructor;
10655 rename from create_typedef_hash.
10656 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10657 rename from free_typedef_hash.
10658 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10659 (do_free_global_table): Remove.
10660 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10661 from copy_type_recursive.
10662 (create_global_typedef_table): Remove.
10663 (typedef_hash_table::find_global_typedef): Now a member of
10664 typedef_hash_table.
10665 (typedef_hash_table::find_typedef): Rename from
10666 find_typedef_in_hash; now a member.
10667 (whatis_exp): Update.
10668 * extension.h (struct ext_lang_type_printers): Add constructor and
10670 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10672 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10673 Now a constructor; rename from start_ext_lang_type_printers.
10674 (ext_lang_type_printers): Now a destructor; rename from
10675 free_ext_lang_type_printers.
10676 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10678 (c_type_print_base_struct_union): Update. Remove cleanups.
10680 2018-03-27 Tom Tromey <tom@tromey.com>
10682 * dwarf-index-write.c: Include <cmath>.
10684 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10686 * NEWS: Add entry describing new "set|show varsize-limit" command.
10687 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10689 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10692 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10694 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10695 dwarf-index-write.c
10696 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10697 * dwarf-index-common.c: New file.
10698 * dwarf-index-common.h: New file.
10699 * dwarf-index-write.c: New file.
10700 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10701 (struct dwarf2_section_info): Move from here.
10702 (dwarf2_section_info_def): Likewise.
10703 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10704 (offset_type): Likewise.
10705 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10706 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10707 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10708 (byte_swap): Likewise.
10709 (MAYBE_SWAP): Likewise.
10710 (dwarf2_per_cu_ptr): Likewise.
10711 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10712 (struct tu_stats): Likewise.
10713 (struct dwarf2_per_objfile): Likewise.
10714 (struct dwarf2_per_cu_data): Likewise.
10715 (struct signatured_type): Likewise.
10716 (sig_type_ptr): Likewise.
10717 (DEF_VEC_P (sig_type_ptr)): Likewise.
10718 (INDEX4_SUFFIX): Likewise.
10719 (INDEX5_SUFFIX): Likewise.
10720 (DEBUG_STR_SUFFIX): Likewise.
10721 (dwarf2_read_section): Make non-static.
10722 (mapped_index_string_hash): Move from here.
10723 (dwarf5_djb_hash): Likewise.
10724 (file_write): Likewise.
10725 (class data_buf): Likewise.
10726 (struct symtab_index_entry): Likewise.
10727 (struct mapped_symtab): Likewise.
10728 (find_slot): Likewise.
10729 (hash_expand): Likewise.
10730 (add_index_entry): Likewise.
10731 (uniquify_cu_indices): Likewise.
10732 (class c_str_view): Likewise.
10733 (class c_str_view_hasher): Likewise.
10734 (class vector_hasher): Likewise.
10735 (write_hash_table): Likewise.
10736 (psym_index_map): Likewise.
10737 (struct addrmap_index_data): Likewise.
10738 (add_address_entry): Likewise.
10739 (add_address_entry_worker): Likewise.
10740 (write_address_map): Likewise.
10741 (symbol_kind): Likewise.
10742 (write_psymbols): Likewise.
10743 (struct signatured_type_index_data): Likewise.
10744 (write_one_signatured_type): Likewise.
10745 (recursively_count_psymbols): Likewise.
10746 (recursively_write_psymbols): Likewise.
10747 (class debug_names): Likewise.
10748 (check_dwarf64_offsets): Likewise.
10749 (psyms_seen_size): Likewise.
10750 (write_gdbindex): Likewise.
10751 (write_debug_names): Likewise.
10752 (assert_file_size): Likewise.
10753 (write_psymtabs_to_index): Likewise.
10754 (save_gdb_index_command): Likewise.
10755 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10757 * dwarf2read.h: New file.
10759 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10762 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10763 symbol name if the CU's language stores symbol names in linkage
10765 * language.h (struct language_defn)
10766 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10767 all instances of this struct.
10769 2018-03-26 Tom Tromey <tom@tromey.com>
10771 * stack.c (backtrace_command_1): Remove verbose code.
10773 2018-03-26 Tom Tromey <tom@tromey.com>
10775 * python/py-framefilter.c (py_print_type): Don't catch
10776 exceptions. Return void.
10777 (py_print_value): Likewise.
10778 (py_print_single_arg): Likewise.
10779 (enumerate_args): Don't catch exceptions.
10780 (py_print_args): Likewise.
10781 (py_print_frame): Likewise.
10782 (gdbpy_apply_frame_filter): Catch exceptions here.
10784 2018-03-26 Tom Tromey <tom@tromey.com>
10786 * stack.c (_initialize_stack): Remove trailing newlines from help
10787 text. Add "Usage" line to "backtrace" help.
10789 2018-03-26 Tom Tromey <tom@tromey.com>
10792 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10794 2018-03-26 Tom Tromey <tom@tromey.com>
10796 * python/py-framefilter.c (py_print_single_arg): Return
10797 EXT_LANG_BT_ERROR from catch.
10799 2018-03-26 Tom Tromey <tom@tromey.com>
10801 PR backtrace/15584:
10802 * stack.c (backtrace_command_1): Move some code into no-filters
10805 2018-03-26 Tom Tromey <tom@tromey.com>
10807 * python/py-framefilter.c (throw_quit_or_print_exception): New
10809 (gdbpy_apply_frame_filter): Use it.
10811 2018-03-26 Tom Tromey <tom@tromey.com>
10814 * python/py-framefilter.c (py_print_type, py_print_value)
10815 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10818 2018-03-26 Tom Tromey <tom@tromey.com>
10820 * python/py-framefilter.c (enumerate_args): Use
10821 gdb::unique_xmalloc_ptr.
10823 2018-03-26 Tom Tromey <tom@tromey.com>
10825 * python/py-framefilter.c (py_print_frame): Return
10827 (gdbpy_apply_frame_filter): Update comment.
10828 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10830 <EXT_LANG_BT_NO_FILTERS>: Change value.
10832 2018-03-26 Tom Tromey <tom@tromey.com>
10834 PR backtrace/15582:
10835 * stack.c (backtrace_command): Parse "hide" argument.
10836 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10837 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10840 2018-03-26 Tom Tromey <tom@tromey.com>
10842 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10844 (backtrace_command): Remove "fulltrace", add "flags".
10846 2018-03-26 Tom Tromey <tom@tromey.com>
10848 * stack.c (backtrace_command): Rewrite command line parsing.
10850 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10852 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10854 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10856 * filename-seen-cache.h: Add include guard.
10858 2018-03-26 Keith Seitz <keiths@redhat.com>
10860 * symfile.c (place_section): Remove "struct" from section_addr_info
10862 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10863 "struct" keyword from section_addr_info.
10865 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10867 * regformats/regdef.h (reg): Add constructors.
10869 2018-03-25 Pedro Alves <palves@redhat.com>
10871 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10872 if then/else bodies in var_func_name extraction.
10874 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10876 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10877 lookup_minimal_symbol() to find symbol entry.
10878 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10880 2018-03-23 Keith Seitz <keiths@redhat.com>
10883 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10884 nested type definitions for C++, too.
10886 2018-03-23 Tom Tromey <tom@tromey.com>
10888 * machoread.c (struct oso_el): Add a constructor. Don't define as
10890 (macho_register_oso): Remove.
10891 (macho_symtab_read): Take a std::vector.
10892 (oso_el_compare_name): Now a std::sort comparator.
10893 (macho_symfile_read_all_oso): Take a std::vector.
10894 (macho_symfile_read): Use std::vector. Remove cleanups.
10896 2018-03-22 Tom Tromey <tom@tromey.com>
10898 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10899 (record_full_goto_bookmark): Use std::string.
10901 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10904 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10907 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10909 * rs6000-tdep.c (store_insn_p): New function.
10910 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10911 and cr_reg to their unshifted values. Use store_insn_p to
10912 match LR saves using either R1 or fdata->alloca_reg. Use
10913 store_insn_p to match CR saves. Set alloca_reg_offset
10914 when alloca_reg and framep are set. Remove lr_reg shift
10915 when assigning to fdata->lr_register.
10917 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10919 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10920 command line args instead of emitting a warning.
10922 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10924 * tracepoint.h (struct static_tracepoint_marker): Initialize
10925 fields, define default constructor, move constructor and move
10926 assignment, disable the rest.
10927 <str_id, extra>: Make std::string.
10928 (release_static_tracepoint_marker): Remove.
10929 (free_current_marker): Remove.
10930 * tracepoint.c (free_current_marker): Remove.
10931 (parse_static_tracepoint_marker_definition): Adjust to
10932 std::string, use new hex2str overload.
10933 (release_static_tracepoint_marker): Remove.
10934 (print_one_static_tracepoint_marker): Get marker by reference
10935 and adjust to std::string.
10936 (info_static_tracepoint_markers_command): Adjust to std::vector
10938 * target.h (static_tracepoint_marker_p): Remove typedef.
10939 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10940 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10942 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10944 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10945 (target_debug_print_std_vector_static_tracepoint_marker): New.
10946 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10948 (target_debug_print_static_tracepoint_marker_p): ... this.
10949 * target-delegates.c: Re-generate.
10950 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10952 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10953 (decode_static_tracepoint_spec): Adjust to std::vector.
10954 (tracepoint_print_one_detail): Adjust to std::string.
10955 (strace_marker_decode_location): Adjust to std::string.
10956 (update_static_tracepoint): Adjust to std::string, remove call
10957 to release_static_tracepoint_marker.
10958 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10959 Adjust to std::vector.
10960 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10961 (remote_static_tracepoint_markers_by_strid): Adjust to
10963 * common/rsp-low.h (hex2str): New overload with explicit count
10965 * common/rsp-low.c (hex2str): New overload with explicit count
10967 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10968 (_initialize_rsp_low_selftests): Add test_hex2str test.
10969 * unittests/tracepoint-selftests.c
10970 (test_parse_static_tracepoint_marker_definition): Adjust to
10973 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10975 * tracepoint.c (parse_static_tracepoint_marker_definition):
10976 Consider case where the definition is followed by more
10978 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10979 tracepoint-selftests.c.
10980 * unittests/tracepoint-selftests.c: New.
10982 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10984 * MAINTAINERS (Write After Approval): Add Pedro Franco de
10987 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10989 * symtab.c (find_pc_sect_line): fixed indentation.
10991 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
10993 * symtab.c (find_pc_sect_line): now uses binary search.
10995 2018-03-19 Tom Tromey <tom@tromey.com>
10997 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
10998 "IDENT" production.
11000 2018-03-19 Pedro Alves <palves@redhat.com>
11001 Tom Tromey <tom@tromey.com>
11003 * unittests/observable-selftests.c: New file.
11004 * common/observable.h: New file.
11005 * observable.h: New file.
11006 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11007 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11008 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11009 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11010 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11011 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11012 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11013 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11014 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11015 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11016 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11017 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11018 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11019 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11020 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11021 tui/tui-interp.c, valops.c: Update all users.
11022 * tui/tui-hooks.c (tui_bp_created_observer)
11023 (tui_bp_deleted_observer, tui_bp_modified_observer)
11024 (tui_inferior_exit_observer, tui_before_prompt_observer)
11025 (tui_normal_stop_observer, tui_register_changed_observer):
11027 (tui_observers_token): New global.
11028 (attach_or_detach, tui_attach_detach_observers): New functions.
11029 (tui_install_hooks, tui_remove_hooks): Use
11030 tui_attach_detach_observers.
11031 * record-btrace.c (record_btrace_thread_observer): Remove.
11032 (record_btrace_thread_observer_token): New global.
11033 * observer.sh: Remove.
11034 * observer.c: Rename to observable.c.
11035 * observable.c (namespace gdb_observers): Define new objects.
11036 (observer_debug): Move into gdb_observers namespace.
11037 (struct observer, struct observer_list, xalloc_observer_list_node)
11038 (xfree_observer_list_node, generic_observer_attach)
11039 (generic_observer_detach, generic_observer_notify): Remove.
11040 (_initialize_observer): Update.
11041 Don't include observer.inc.
11042 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11043 (clean mostlyclean): Likewise.
11044 (observer.h, observer.inc): Remove targets.
11045 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11046 (COMMON_SFILES): Use observable.c, not observer.c.
11047 * .gitignore: Remove observer.h.
11049 2018-03-18 Tom Tromey <tom@tromey.com>
11051 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11053 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11055 2018-03-17 Tom Tromey <tom@tromey.com>
11057 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11059 2018-03-17 Tom Tromey <tom@tromey.com>
11061 * target.c (class scoped_target_fd): New.
11062 (target_fileio_close_cleanup): Remove.
11063 (target_fileio_read_alloc_1): Use scoped_target_fd.
11065 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11067 * silent-rules.mk: New.
11068 * Makefile.in: Include silent-rules.mk
11069 (srcdir, VPATH, top_srcdir): Move up.
11070 (COMPILE): Add ECHO_CXX.
11071 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11072 (init.c): Add ECHO_INIT_C.
11073 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11074 (version.c): Add ECHO_GEN.
11075 (printcmd.o): Add ECHO_CXX.
11076 (target-float.o): Add ECHO_CXX.
11077 (ada-exp.o): Add ECHO_CXX.
11078 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11079 (insight$(EXEEXT)): Add ECHO_CXXLD.
11080 * gnulib/configure.ac: Add AM_SILENT_RULES.
11081 * gnulib/aclocal.m4: Re-generate.
11082 * gnulib/configure: Re-generate.
11083 * gnulib/import/Makefile.in: Re-generate.
11085 2018-03-16 Tom Tromey <tom@tromey.com>
11087 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11088 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11089 * utils.c (do_free_section_addr_info)
11090 (make_cleanup_free_section_addr_info): Remove.
11091 * symfile.h (struct other_sections): Add constructor.
11092 (struct section_addr_info): Remove.
11093 (section_addr_info): New typedef.
11094 (struct sym_fns) <sym_offsets>: Change type of parameter.
11095 (build_section_addr_info_from_objfile)
11096 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11097 (default_symfile_offsets, symbol_file_add)
11098 (symbol_file_add_from_bfd)
11099 (build_section_addr_info_from_section_table): Update.
11100 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11101 * symfile.c (alloc_section_addr_info): Remove.
11102 (build_section_addr_info_from_section_table): Change return type.
11104 (build_section_addr_info_from_bfd)
11105 (build_section_addr_info_from_objfile): Likewise.
11106 (free_section_addr_info): Remove.
11107 (relative_addr_info_to_section_offsets): Change type of "addrs".
11108 (addrs_section_compar): Now a std::sort comparator.
11109 (addrs_section_sort): Change return type.
11110 (addr_info_make_relative): Change type of "addrs". Update.
11111 (default_symfile_offsets, syms_from_objfile_1)
11112 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11113 (symbol_file_add_separate): Update.
11114 (symbol_file_add): Change type of "addrs". Update.
11115 (add_symbol_file_command): Update. Remove cleanups.
11116 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11118 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11119 * solib.c (solib_read_symbols): Update.
11120 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11121 * machoread.c (macho_symfile_offsets): Update.
11122 * jit.c (jit_bfd_try_read_symtab): Update.
11124 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11126 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11127 unittests/utils-selftests.c.
11128 * unittests/utils-selftests.c: New file.
11130 2018-03-14 Tom Tromey <tom@tromey.com>
11133 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11136 2018-03-14 Tom Tromey <tom@tromey.com>
11139 * printcmd.c (printf_pointer): Allow "-" in format.
11141 2018-03-14 Tom Tromey <tom@tromey.com>
11143 * printcmd.c (_initialize_printcmd): Add usage to printf.
11145 2018-03-14 Yao Qi <qiyao@sourceware.org>
11147 * MAINTAINERS: Update my email address.
11149 2018-03-13 Tom Tromey <tom@tromey.com>
11151 * machoread.c (macho_check_dsym): Change filenamep to a
11153 (macho_symfile_read): Update.
11154 * symfile.c (load_command): Use std::string.
11156 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11158 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11159 to error message string.
11160 (riscv_register_name): Use xsnprintf instead of sprintf.
11161 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11163 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11165 (riscv_push_dummy_call): Likewise.
11167 2018-03-12 Tom Tromey <tom@tromey.com>
11169 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11170 Use gdb::byte_vector.
11171 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11173 2018-03-12 Yao Qi <yao.qi@linaro.org>
11175 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11176 parameter type to readable_regcache.
11177 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11180 2018-03-11 Tom Tromey <tom@tromey.com>
11182 * dwarf2read.c (struct nextfield): Add initializers.
11183 (struct nextfnfield): Remove.
11184 (struct fnfieldlist): Add initializers. Remove "length" and
11185 "head", use std::vector.
11186 (struct decl_field_list): Remove.
11187 (struct field_info): Add initializers.
11188 <fields, baseclasses>: Now std::vector.
11189 <nbaseclasses, nfnfields, typedef_field_list_count,
11190 nested_types_list_count>: Remove.
11191 (dwarf2_add_field, dwarf2_add_type_defn)
11192 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11193 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11194 (process_structure_scope): Update.
11196 2018-03-11 Tom Tromey <tom@tromey.com>
11198 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11199 for use by std::sort.
11200 (build_type_psymtabs_1): Use std::vector.
11202 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11204 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11205 and LIBMPFR in the printed configuration.
11207 2018-03-08 Tom Tromey <tom@tromey.com>
11209 * source.c (get_filename_and_charpos): Use scoped_fd.
11210 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11211 (procfs_pidlist): Likewise.
11212 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11213 (iterate_over_mappings): Likewise.
11215 2018-03-08 Tom Tromey <tom@tromey.com>
11217 * infcall.c (struct call_return_meta_info)
11218 <stack_temporaries_enabled>: Remove.
11219 (get_call_return_value, call_function_by_hand_dummy): Update.
11220 * thread.c (disable_thread_stack_temporaries): Remove.
11221 (enable_thread_stack_temporaries): Remove.
11222 (thread_stack_temporaries_enabled_p): Return bool.
11223 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11224 (get_last_thread_stack_temporary): Update.
11225 * eval.c (evaluate_subexp): Update.
11226 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11227 class, not a function.
11228 (value_ptr, value_vec): Remove typedefs.
11229 (class thread_info) <stack_temporaries_enabled>: Now bool.
11230 <stack_temporaries>: Now a std::vector.
11231 (thread_stack_temporaries_enabled_p)
11232 (value_in_thread_stack_temporaries): Return bool.
11234 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11236 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11237 (getpkt_or_notif_sane_1): Likewise.
11239 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11241 * build-id.c (build_id_to_debug_bfd): Use std::string.
11243 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11245 * build-id.c (find_separate_debug_file_by_buildid): Return
11247 * build-id.h (find_separate_debug_file_by_buildid): Return
11249 * coffread.c (coff_symfile_read): Adjust to std::string.
11250 * elfread.c (elf_symfile_read): Adjust to std::string.
11251 * symfile.c (separate_debug_file_exists): Change parameter to
11253 (find_separate_debug_file): Return std::string.
11254 (find_separate_debug_file_by_debuglink): Return std::string.
11255 * symfile.h (find_separate_debug_file_by_debuglink): Return
11258 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11260 * common/xml-utils.c (xml_escape_text): Move code to...
11261 (xml_escape_text_append): ... this new function.
11262 * common/xml-utils.h (xml_escape_text_append): New declaration.
11263 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11265 (_initialize_xml_utils): register test_xml_escape_text_append as
11268 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11270 * defs.h: Remove MAX_REGISTER_SIZE.
11271 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11273 * python/py-unwind.c (pyuw_sniffer): Likewise.
11275 2018-03-07 Tom Tromey <tom@tromey.com>
11277 * linux-tdep.c (linux_info_proc): Update.
11278 * target.h (struct target_ops) <to_fileio_readlink>: Return
11280 (target_fileio_readlink): Return optional<string>.
11281 * remote.c (remote_hostio_readlink): Return optional<string>.
11282 * inf-child.c (inf_child_fileio_readlink): Return
11284 * target.c (target_fileio_readlink): Return optional<string>.
11286 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11288 * regcache.c (cooked_read_test): Add riscv to the list of
11289 architectures that have a save_reggroup.
11291 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11293 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11294 value is not a dynamic class object.
11296 2018-03-06 Tom Tromey <tom@tromey.com>
11298 * rust-exp.y: Formatting fixes.
11300 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11302 * riscv-tdep.c (riscv_register_name): Remove target description
11304 (riscv_gdbarch_init): Remove target description check.
11306 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11308 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11310 * riscv-tdep.h: Likewise.
11312 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11314 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11315 (riscv_pseudo_register_write): Delete.
11316 (riscv_gdbarch_init): Remove all use of pseudo registers.
11318 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11320 * record-btrace.c (btrace_print_lines): Replace cleanup
11321 parameter with RAII equivalents.
11322 (btrace_insn_history): Replace cleanup with RAII equivalents.
11323 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11324 make_cleanup_ui_out_tuple_begin_end): Remove.
11325 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11326 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11327 make_cleanup_ui_out_list_begin_end): Remove.
11329 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11331 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11332 parameter types to std::vector. Use bool.
11333 (record_btrace_wait): Replace VEC(tp_t) with
11334 std::vector<thread_info *>.
11335 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11337 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11339 * record-btrace.c (record_btrace_disable_callback): Remove.
11340 (struct scoped_btrace_disable): New.
11341 (record_btrace_open): Use scoped_btrace_disable.
11343 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11345 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11346 reading values from registers.
11348 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11350 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11353 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11355 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11356 change parameter type. Use GDB's print functions, and use
11357 core_addr_to_string where appropriate.
11358 (riscv_push_dummy_call): Use core_addr_to_string where
11359 appropriate, update call to riscv_print_arg_location, and reindent
11361 (riscv_return_value): Update call to riscv_print_arg_location.
11363 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11364 Tim Newsome <tim@sifive.com>
11365 Albert Ou <a0u@eecs.berkeley.edu>
11366 Darius Rad <darius@bluespec.com>
11368 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11369 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11370 (ALLDEPFILES): Add riscv-tdep.c
11371 * configure.tgt: Add riscv support.
11372 * riscv-tdep.c: New file.
11373 * riscv-tdep.h: New file.
11374 * NEWS: Mention new target.
11375 * MAINTAINERS: Add entry for riscv.
11377 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11379 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11380 fields within aggregates.
11382 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11384 * record-btrace.c (btrace_print_lines): Change type of flags to
11385 gdb_disassembly_flags.
11387 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11389 * fbsd-nat.c: Include "inf-ptrace.h".
11390 (USE_SIGTRAP_SIGINFO): Conditionally define.
11391 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11392 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11393 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11395 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11397 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11399 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11400 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11401 "supports_stopped_by_hw_breakpoint" target methods.
11403 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11405 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11406 * fbsd-nat.c (debug_fbsd_nat): New variable.
11407 (show_fbsd_nat_debug): New function.
11408 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11409 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11411 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11413 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11414 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11416 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11417 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11420 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11422 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11423 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11425 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11427 * charset.c (struct charset_vector): New.
11428 (charsets): Change type to charset_vector.
11429 (find_charset_names): Adjust.
11431 (_initialize_charset): Adjust.
11433 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11435 * progspace.h (struct program_space) <deleted_solibs>: Change
11436 type to std::vector<std::string>.
11437 * progspace.c (clear_program_space_solib_cache): Adjust.
11438 * breakpoint.c (print_solib_event): Adjust.
11439 (check_status_catch_solib): Adjust.
11440 * solib.c (update_solib_list): Adjust.
11441 * ui-out.h (class ui_out) <field_string>: New overload.
11442 * ui-out.c (ui_out::field_string): New overload.
11444 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11446 * progspace.h (struct program_space): Add constructor and
11447 destructor, initialize fields.
11448 (add_program_space): Remove.
11449 * progspace.c (add_program_space): Rename to...
11450 (program_space::program_space): ... this.
11451 (release_program_space): Rename to...
11452 (program_space::~program_space): ... this.
11453 (delete_program_space): Use delete to delete program_space.
11454 (initialize_progspace): Use new to allocate program_space.
11455 * inferior.c (add_inferior_with_spaces): Likewise.
11456 (clone_inferior_command): Likewise.
11457 * infrun.c (follow_fork_inferior): Likewise.
11458 (handle_vfork_child_exec_or_exit): Likewise.
11460 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11462 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11463 (delim_string_to_char_ptr_vec): Return std::vector of
11464 gdb::unique_xmalloc_ptr.
11465 (dirnames_to_char_ptr_vec_append): Take std::vector of
11466 gdb::unique_xmalloc_ptr.
11467 (dirnames_to_char_ptr_vec): Return std::vector of
11468 gdb::unique_xmalloc_ptr.
11469 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11470 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11471 (delim_string_to_char_ptr_vec): Return an std::vector of
11472 gdb::unique_xmalloc_ptr, adjust the code.
11473 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11474 gdb::unique_xmalloc_ptr, adjust the code.
11475 (dirnames_to_char_ptr_vec): Return an std::vector of
11476 gdb::unique_xmalloc_ptr, adjust the code.
11477 * auto-load.c (auto_load_safe_path_vec): Change type to
11478 std::vector of gdb::unique_xmalloc_ptr.
11479 (auto_load_expand_dir_vars): Return an std::vector of
11480 gdb::unique_xmalloc_ptr, adjust the code.
11481 (auto_load_safe_path_vec_update): Adjust.
11482 (filename_is_in_auto_load_safe_path_vec): Adjust.
11483 (auto_load_objfile_script_1): Adjust.
11484 * build-id.c (build_id_to_debug_bfd): Adjust.
11485 * linux-thread-db.c (thread_db_load_search): Adjust.
11486 * source.c (add_path): Adjust.
11488 * symfile.c (find_separate_debug_file): Adjust.
11489 * utils.c (do_free_char_ptr_vec): Remove.
11490 (make_cleanup_free_char_ptr_vec): Remove.
11492 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11495 * common/pathstuff.c: Conditionally include "<windows.h>".
11497 2018-03-01 Georg Sauthoff <mail@georg.so>
11500 * gcore.in: Quote variables and switch interpreter to bash.
11502 2018-03-01 Tom Tromey <tom@tromey.com>
11504 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11505 assertion. Add assertion for discriminant_index.
11506 (quirk_rust_enum): Use correct base type name in univariant case.
11508 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11510 * record.c (get_call_history_modifiers): Return a
11511 record_print_flags.
11512 (cmd_record_call_history): Adjust.
11513 * record-btrace.c (record_btrace_call_history): Adjust.
11514 (record_btrace_call_history_range): Adjust.
11515 (record_btrace_call_history_from): Adjust.
11516 * target-debug.h (target_debug_print_record_print_flags): New.
11517 * target-delegates.c: Re-generate.
11518 * target.c (target_call_history): Change flags type.
11519 (target_call_history_from): Likewise.
11520 (target_call_history_range): Likewise.
11521 * target.h (struct target_ops) <target_call_history>: Likewise.
11522 (target_call_history_from): Likewise.
11523 (target_call_history_range): Likewise.
11525 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11526 Simon Marchi <simon.marchi@polymtl.ca>
11528 * common/common-utils.c: Include "sys/stat.h".
11529 (is_regular_file): Move here from "source.c"; change return
11531 * common/common-utils.h (is_regular_file): New prototype.
11532 * common/pathstuff.c (contains_dir_separator): New function.
11533 * common/pathstuff.h (contains_dir_separator): New prototype.
11534 * source.c: Don't include "sys/stat.h".
11535 (is_regular_file): Move to "common/common-utils.c".
11537 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11539 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11540 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11541 * auto-load.c: Include "common/pathstuff.h".
11542 * common/common-def.h (current_directory): Move here.
11543 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11545 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11547 * common/pathstuff.c: New file.
11548 * common/pathstuff.h: New file.
11549 * compile/compile.c: Include "common/pathstuff.h".
11550 * defs.h (current_directory): Move to "common/common-defs.h".
11551 * dwarf2read.c: Include "common/pathstuff.h".
11552 * exec.c: Likewise.
11553 * guile/scm-safe-call.c: Likewise.
11554 * linux-thread-db.c: Likewise.
11555 * main.c: Likewise.
11556 * nto-tdep.c: Likewise.
11557 * objfiles.c: Likewise.
11558 * source.c: Likewise.
11559 * symtab.c: Likewise.
11560 * utils.c: Include "common/pathstuff.h".
11561 (gdb_realpath): Move to "common/pathstuff.c".
11562 (gdb_realpath_keepfile): Likewise.
11563 (gdb_abspath): Likewise.
11564 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11565 (gdb_realpath_keepfile): Likewise.
11566 (gdb_abspath): Likewise.
11568 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11570 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11571 wildcard process pid for super_resume for kernels with a
11574 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11576 * compile/compile.c (get_args): Add additional comments
11577 explaining function.
11579 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11580 Tom Tromey <tom@tromey.com>
11582 * target.h (memory_write_request_s): Remove typedef. Don't define
11584 (target_write_memory_blocks): Change argument to std::vector.
11585 (struct memory_write_request): Add constructor.
11586 * target-memory.c (compare_block_starting_address): Return bool.
11587 Change argument types.
11588 (claim_memory): Change arguments to use std::vector.
11589 (split_regular_and_flash_blocks, blocks_to_erase)
11590 (compute_garbled_blocks): Likewise.
11591 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11592 (target_write_memory_blocks): Change argument to std::vector.
11593 * symfile.c (struct load_section_data): Add constructor and
11594 destructor. Use std::vector for "requests".
11595 (struct load_progress_data): Add initializers.
11596 (load_section_callback): Update. Use "new".
11597 (clear_memory_write_data): Remove.
11598 (generic_load): Update.
11600 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11602 * arch/aarch64.h: Use common/tdesc.h.
11604 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11606 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11607 architecture with a 64-bit ABI.
11609 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11611 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11612 ahead of target description loading.
11614 2018-02-26 Tom Tromey <tom@tromey.com>
11616 * stack.c (backtrace_command_1): Update.
11617 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11619 * python/py-framefilter.c (py_print_frame)
11620 (gdbpy_apply_frame_filter): Change type of "flags".
11621 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11623 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11624 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11625 * extension.h (enum frame_filter_flag): Rename from
11626 frame_filter_flags.
11627 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11628 (apply_ext_lang_frame_filter): Change type of "flags".
11629 * extension.c (apply_ext_lang_frame_filter): Change type of
11631 * extension-priv.h (struct extension_language_ops)
11632 <apply_frame_filter>: Change type of "flags".
11634 2018-02-26 Tom Tromey <tom@tromey.com>
11637 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11638 off-by-one in py_end computation.
11639 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11641 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11644 2018-02-26 Tom Tromey <tom@tromey.com>
11646 * dwarf2read.c (struct variant_field): New.
11647 (struct nextfield) <variant>: New field.
11648 (dwarf2_add_field): Handle DW_TAG_variant_part.
11649 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11650 discriminated union.
11651 (read_structure_type): Handle DW_TAG_variant_part.
11652 (handle_struct_member_die): New function, extracted from
11653 process_structure_scope. Handle DW_TAG_variant.
11654 (process_structure_scope): Handle discriminated unions. Call
11655 handle_struct_member_die.
11657 2018-02-26 Tom Tromey <tom@tromey.com>
11659 * rust-lang.h (rust_last_path_segment): Declare.
11660 * rust-lang.c (rust_last_path_segment): Now public. Change
11662 (struct disr_info): Remove.
11663 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11664 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11665 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11666 (rust_enum_p, rust_enum_variant): New function.
11667 (rust_underscore_fields): Remove "offset" parameter.
11668 (rust_print_enum): New function.
11669 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11670 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11671 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11673 (rust_internal_print_type): New function, from rust_print_type.
11675 (rust_print_type): Call rust_internal_print_type.
11676 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11677 Update enum handling.
11678 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11679 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11680 (rust_union_quirks): New functions.
11681 (process_full_comp_unit, process_full_type_unit): Call
11683 (process_structure_scope): Update rust_unions if necessary.
11685 2018-02-26 Tom Tromey <tom@tromey.com>
11687 * value.h (value_union_variant): Declare.
11688 * valops.c (value_union_variant): New function.
11689 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11690 (struct discriminant_info): New.
11691 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11693 (struct main_type) <flag_discriminated_union>: New field.
11695 2018-02-26 Tom Tromey <tom@tromey.com>
11697 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11698 unittests/unpack-selftests.c.
11699 * unittests/unpack-selftests.c: New file.
11700 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11702 2018-02-26 Yao Qi <yao.qi@linaro.org>
11704 * dwarf2read.c (struct partial_die_info) <read>: New method.
11705 (read_partial_die): Remove the declaration.
11706 (load_partial_dies): Update.
11707 (partial_die_info::partial_die_info):
11708 (read_partial_die): Change it to partial_die_info::read.
11710 2018-02-26 Yao Qi <yao.qi@linaro.org>
11712 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11713 (fixup_partial_die): Remove declaration.
11714 (scan_partial_symbols): Update.
11715 (partial_die_parent_scope): Likewise.
11716 (partial_die_full_name): Likewise.
11717 (fixup_partial_die): Change it to partial_die_info::fixup.
11719 2018-02-26 Yao Qi <yao.qi@linaro.org>
11721 * dwarf2read.c (read_partial_die): Update the declaration.
11722 (load_partial_dies): Caller update.
11723 (read_partial_die): Remove one argument abbrev_len.
11725 2018-02-26 Yao Qi <yao.qi@linaro.org>
11727 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11728 assignment operator.
11729 (load_partial_dies): Use ctor and copy ctor.
11730 (read_partial_die): Update.
11731 (dwarf2_cu::find_partial_die): Use ctor.
11733 2018-02-26 Yao Qi <yao.qi@linaro.org>
11735 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11736 (find_partial_die_in_comp_unit): Change it to
11737 dwarf2_cu::find_partial_die.
11738 (find_partial_die): Update.
11740 2018-02-26 Yao Qi <yao.qi@linaro.org>
11742 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11745 2018-02-26 Yao Qi <yao.qi@linaro.org>
11747 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11749 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11751 * arch/amd64.h: Use common/tdesc.h.
11752 * arch/i386.c: Likewise.
11753 * arch/i386.h: Likewise.
11754 * arch/tic6x.c: Likewise.
11755 * arch/tdesc.h: Move file from here...
11756 * common/tdesc.h: ...to here.
11757 * features/aarch64-core.c: Regenerate.
11758 * features/aarch64-fpu.c: Regenerate.
11759 * features/i386/32bit-avx.c: Regenerate.
11760 * features/i386/32bit-avx512.c: Regenerate.
11761 * features/i386/32bit-core.c: Regenerate.
11762 * features/i386/32bit-linux.c: Regenerate.
11763 * features/i386/32bit-mpx.c: Regenerate.
11764 * features/i386/32bit-pkeys.c: Regenerate.
11765 * features/i386/32bit-sse.c: Regenerate.
11766 * features/i386/64bit-avx.c: Regenerate.
11767 * features/i386/64bit-avx512.c: Regenerate.
11768 * features/i386/64bit-core.c: Regenerate.
11769 * features/i386/64bit-linux.c: Regenerate.
11770 * features/i386/64bit-mpx.c: Regenerate.
11771 * features/i386/64bit-pkeys.c: Regenerate.
11772 * features/i386/64bit-segments.c: Regenerate.
11773 * features/i386/64bit-sse.c: Regenerate.
11774 * features/i386/x32-core.c: Regenerate.
11775 * features/tic6x-c6xp.c: Regenerate.
11776 * features/tic6x-core.c: Regenerate.
11777 * features/tic6x-gp.c: Regenerate.
11778 * target-descriptions.c: Use common/tdesc.h.
11779 * target-descriptions.h: Likewise.
11781 2018-02-24 Tom Tromey <tom@tromey.com>
11783 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11784 (try_thread_db_load_from_dir, thread_db_load_search): Use
11786 (info_auto_load_libthread_db_compare): Return bool. Change
11788 (info_auto_load_libthread_db): Use std::vector, std::string.
11791 2018-02-24 Tom Tromey <tom@tromey.com>
11793 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11795 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11797 * gdbarch.c: Rebuild.
11798 * gdbarch.h: Rebuild.
11799 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11800 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11801 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11804 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11806 * gdbtypes.h (sect_offset): Change type to uint64_t.
11807 (sect_offset_str): New function.
11808 * dwarf2read.c (create_addrmap_from_aranges): Use
11810 (error_check_comp_unit_head): Likewise.
11811 (create_debug_type_hash_table): Likewise.
11812 (read_cutu_die_from_dwo): Likewise.
11813 (init_cutu_and_read_dies): Likewise.
11814 (init_cutu_and_read_dies_no_follow): Likewise.
11815 (process_psymtab_comp_unit_reader): Likewise.
11816 (partial_die_parent_scope): Likewise.
11817 (peek_die_abbrev): Likewise.
11818 (process_queue): Likewise.
11819 (dwarf2_physname): Likewise.
11820 (read_namespace_alias): Likewise.
11821 (read_import_statement): Likewise.
11822 (create_dwo_cu_reader): Likewise.
11823 (create_cus_hash_table): Likewise.
11824 (lookup_dwo_cutu): Likewise.
11825 (inherit_abstract_dies): Likewise.
11826 (read_func_scope): Likewise.
11827 (read_call_site_scope): Likewise.
11828 (dwarf2_add_member_fn): Likewise.
11829 (read_common_block): Likewise.
11830 (read_module_type): Likewise.
11831 (read_typedef): Likewise.
11832 (read_subrange_type): Likewise.
11833 (load_partial_dies): Likewise.
11834 (read_partial_die): Likewise.
11835 (find_partial_die): Likewise.
11836 (read_str_index): Likewise.
11837 (dwarf2_string_attr): Likewise.
11838 (build_error_marker_type): Likewise.
11839 (lookup_die_type): Likewise.
11840 (dump_die_shallow): Likewise.
11841 (follow_die_ref): Likewise.
11842 (dwarf2_fetch_die_loc_sect_off): Likewise.
11843 (dwarf2_fetch_constant_bytes): Likewise.
11844 (follow_die_sig): Likewise.
11845 (get_signatured_type): Likewise.
11846 (get_DW_AT_signature_type): Likewise.
11847 (dwarf2_find_containing_comp_unit): Likewise.
11848 (set_die_type): Likewise.
11850 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11852 * arch/aarch64.c: Include "common-defs.h".
11853 * arch/amd64.c: Likewise.
11854 * arch/i386.c: Likewise.
11856 2018-02-21 Tom Tromey <tom@tromey.com>
11858 * value.h: (extract_field_op): Update.
11859 * eval.c (extract_field_op): Return a const char *.
11860 * expression.h (parse_expression_for_completion): Update.
11861 * completer.c (complete_expression): Update.
11862 (add_struct_fields): Make fieldname const.
11863 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11864 (mark_completion_tag, parse_exp_in_context_1): Update.
11865 (parse_expression_for_completion): Change "name" to
11866 unique_xmalloc_ptr*.
11868 2018-02-21 Tom Tromey <tom@tromey.com>
11870 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11872 2018-02-21 Yao Qi <yao.qi@linaro.org>
11874 * avr-tdep.c (avr_read_pc): Change parameter type to
11876 * gdbarch.sh (read_pc): Likewise.
11877 * gdbarch.c: Re-generated.
11878 * gdbarch.h: Re-generated.
11879 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11881 * ia64-tdep.c (ia64_read_pc): Likewise.
11882 * mips-tdep.c (mips_read_pc): Likewise.
11883 * spu-tdep.c (spu_read_pc): Likewise.
11885 2018-02-21 Yao Qi <yao.qi@linaro.org>
11887 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11888 * regcache-dump.c: New file.
11889 * regcache.c: Move register_dump to regcache-dump.c.
11890 (maintenance_print_registers): Likewise.
11891 (maintenance_print_raw_registers): Likewise.
11892 (maintenance_print_cooked_registers): Likewise.
11893 (maintenance_print_register_groups): Likewise.
11894 (maintenance_print_remote_registers): Likewise.
11895 (_initialize_regcache): Likewise.
11896 * regcache.h (register_dump): Moved from regcache.c.
11898 2018-02-21 Yao Qi <yao.qi@linaro.org>
11900 * regcache.c (regcache::regcache): Update.
11901 (regcache::invalidate): Move it to detached_regcache::invalidate.
11902 (get_thread_arch_aspace_regcache): Update.
11903 (regcache::raw_update): Update.
11904 (regcache::cooked_read): Remove some code.
11905 (regcache::cooked_read_value): Likewise.
11906 (regcache::raw_write): Remove assert on m_readonly_p.
11907 (regcache::raw_supply_integer): Move it to
11908 detached_regcache::raw_supply_integer.
11909 (regcache::raw_supply_zeroed): Likewise.
11910 * regcache.h (detached_regcache) <raw_supply_integer>: New
11912 <raw_supply_zeroed, invalidate>: Likewise.
11913 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11914 <invalidate>: Likewise.
11915 <m_readonly_p>: Removed.
11917 2018-02-21 Yao Qi <yao.qi@linaro.org>
11919 * infcmd.c (get_return_value): Let stop_regs point to
11920 get_current_regcache.
11921 * regcache.c (regcache::regcache): Remove.
11922 (register_dump_reg_buffer): New class.
11923 (regcache_print): Adjust.
11924 * regcache.h (regcache): Remove constructors.
11926 2018-02-21 Yao Qi <yao.qi@linaro.org>
11928 * regcache.c (class register_dump): New class.
11929 (register_dump_regcache, register_dump_none): New class.
11930 (register_dump_remote, register_dump_groups): New class.
11931 (regcache_print): Update.
11932 * regcache.h (regcache_dump_what): Move it to regcache.c.
11933 (regcache) <dump>: Remove.
11935 2018-02-21 Yao Qi <yao.qi@linaro.org>
11937 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11939 (jit_unwind_reg_set_impl): Call raw_supply.
11940 (jit_frame_sniffer): Use reg_buffer_rw.
11941 * record-full.c (record_full_core_regbuf): Change its type.
11942 (record_full_core_open_1): Use reg_buffer_rw.
11943 (record_full_close): Likewise.
11944 (record_full_core_fetch_registers): Use regcache->raw_supply.
11945 (record_full_core_store_registers): Likewise.
11946 * regcache.c (regcache::get_register_status): Move it to
11948 (regcache_raw_set_cached_value): Remove.
11949 (regcache::raw_set_cached_value): Remove.
11950 (regcache::raw_write): Call raw_supply.
11951 (regcache::raw_supply): Move it to reg_buffer_rw.
11952 * regcache.h (regcache_raw_set_cached_value): Remove.
11953 (reg_buffer_rw): New class.
11955 2018-02-21 Yao Qi <yao.qi@linaro.org>
11957 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11958 readonly_detached_regcache.
11959 (dummy_frame_prev_register): Use regcache->cooked_read.
11960 * frame.c (frame_save_as_regcache): Change return type.
11961 (frame_pop): Update.
11962 * frame.h (frame_save_as_regcache): Update declaration.
11963 * inferior.h (get_infcall_suspend_state_regcache): Update
11965 * infrun.c (infcall_suspend_state) <registers>: use
11966 readonly_detached_regcache.
11967 (save_infcall_suspend_state): Don't use regcache_dup.
11968 (get_infcall_suspend_state_regcache): Change return type.
11969 * linux-fork.c (struct fork_info) <savedregs>: Change to
11970 readonly_detached_regcache.
11972 (fork_save_infrun_state): Don't use regcache_dup.
11973 (info_checkpoints_command): Adjust.
11974 * mi/mi-main.c (register_changed_p): Update declaration.
11975 (mi_cmd_data_list_changed_registers): Use
11976 readonly_detached_regcache.
11977 (register_changed_p): Change parameter type to
11978 readonly_detached_regcache.
11979 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
11980 readonly_detached_regcache.
11981 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
11982 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
11984 (regcache::save): Move it to reg_buffer.
11985 (regcache::restore): Change parameter type.
11986 (regcache_dup): Remove.
11987 * regcache.h (reg_buffer) <save>: New method.
11988 (readonly_detached_regcache): New class.
11989 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
11990 readonly_detached_regcache.
11991 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
11993 2018-02-21 Yao Qi <yao.qi@linaro.org>
11995 * frame.c (frame_save_as_regcache): Use regcache method save.
11996 (frame_pop): Use regcache method restore.
11997 * infrun.c (restore_infcall_suspend_state): Likewise.
11998 * linux-fork.c (fork_load_infrun_state): Likewise.
11999 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12001 * regcache.c (regcache_save): Remove.
12002 (regcache::restore): More asserts.
12003 (regcache_cpy): Remove.
12004 * regcache.h (regcache_save): Remove the declaration.
12005 (regcache::restore): Move from private to public.
12006 Remove the friend declaration of regcache_cpy.
12007 (regcache_cpy): Remove declaration.
12009 2018-02-21 Yao Qi <yao.qi@linaro.org>
12011 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12012 parameter type to 'readable_regcache *'.
12013 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12014 * arm-tdep.c (arm_neon_quad_read): Likewise.
12015 (arm_pseudo_read): Likewise.
12016 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12017 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12018 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12019 * gdbarch.c: Re-generated.
12020 * gdbarch.h: Re-generated.
12021 * gdbarch.sh (pseudo_register_read): Change parameter type to
12022 'readable_regcache *'.
12023 (pseudo_register_read_value): Likewise.
12024 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12025 (h8300_pseudo_register_read): Likewise.
12026 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12027 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12028 (i386_pseudo_register_read_into_value): Likewise.
12029 (i386_pseudo_register_read_value): Likewise.
12030 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12032 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12033 * m32c-tdep.c (m32c_raw_read): Likewise.
12034 (m32c_read_flg): Likewise.
12035 (m32c_banked_register): Likewise.
12036 (m32c_banked_read): Likewise.
12037 (m32c_sb_read): Likewise.
12038 (m32c_part_read): Likewise.
12039 (m32c_cat_read): Likewise.
12040 (m32c_r3r2r1r0_read): Likewise.
12041 (m32c_pseudo_register_read): Likewise.
12042 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12043 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12044 (mep_pseudo_cr64_read): Likewise.
12045 (mep_pseudo_register_read): Likewise.
12046 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12047 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12048 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12049 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12050 (regcache::cooked_read): Likewise.
12051 (regcache::cooked_read_value): Likewise.
12052 (regcache_cooked_read_signed):
12053 (regcache::cooked_read): Likewise.
12054 * regcache.h (readable_regcache): New class.
12055 (regcache): Inherit readable_regcache. Move some methods to
12057 * rl78-tdep.c (rl78_pseudo_register_read): Change
12058 parameter type to 'readable_regcache *'.
12059 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12060 (e500_pseudo_register_read): Change parameter type to
12061 'readable_regcache *'.
12062 (dfp_pseudo_register_read): Likewise.
12063 (vsx_pseudo_register_read): Likewise.
12064 (efpr_pseudo_register_read): Likewise.
12065 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12066 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12067 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12068 (sh64_pseudo_register_read): Likewise.
12069 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12070 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12071 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12072 (spu_pseudo_register_read): Likewise.
12073 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12074 (xtensa_pseudo_register_read): Likewise.
12076 2018-02-21 Yao Qi <yao.qi@linaro.org>
12078 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12079 (regcache::arch): Move it to reg_buffer::arch.
12080 (regcache::register_buffer): Likewise.
12081 (regcache::assert_regnum): Likewise.
12082 (regcache::num_raw_registers): Likewise.
12083 * regcache.h (reg_buffer): New class.
12084 (regcache): Inherit reg_buffer.
12086 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12088 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12089 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12091 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12093 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12095 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12097 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12098 (SFILES): Remove common/*.c files.
12099 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12100 * common/common.host: Add common reference.
12101 * configure.ac: Likewise.
12102 * configure: Regenerate.
12104 2018-02-16 Yao Qi <yao.qi@linaro.org>
12106 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12107 (block_initialize_namespace): Use new.
12108 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12109 (dwarf2_free_objfile): Use delete.
12110 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12111 (copy_type_recursive): Use new.
12112 * gdb_obstack.h (allocate_on_obstack): New.
12114 2018-02-15 Yao Qi <yao.qi@linaro.org>
12117 * inferior.c (exit_inferior_1): Reset inf->control.
12119 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12121 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12124 2018-02-14 Pedro Alves <palves@redhat.com>
12126 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12127 frame_cleanup_after_sniffer on exception.
12129 2018-02-14 Tom Tromey <tom@tromey.com>
12131 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12133 (solib_bfd_open): Make pathname const.
12134 * solib.c (solib_bfd_open): Make pathname const.
12135 * solib-spu.c (spu_bfd_fopen): Make name const.
12136 (spu_bfd_open): Make pathname const.
12137 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12138 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12140 2018-02-14 Tom Tromey <tom@tromey.com>
12142 * symfile.c (symfile_bfd_open): Update.
12143 * source.h (openp, source_full_path_of, find_and_open_source):
12144 Change argument type to unique_xmalloc_ptr.
12145 * source.c (openp): Take a unique_xmalloc_ptr.
12146 (source_full_path_of, find_and_open_source): Likewise.
12147 (open_source_file, symtab_to_fullname): Update.
12148 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12149 unique_xmalloc_ptr.
12150 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12151 (exec_file_find): Update.
12152 * psymtab.c (psymtab_to_fullname): Update.
12153 * nto-tdep.h (nto_find_and_open_solib): Update.
12154 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12155 unique_xmalloc_ptr.
12156 * exec.c (exec_file_attach): Update.
12157 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12158 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12160 2018-02-14 Tom Tromey <tom@tromey.com>
12162 * solib.c: Include source.h.
12163 * nto-tdep.c: Include source.h.
12164 * mi/mi-cmd-env.c: Include source.h.
12165 * infcmd.c: Include source.h.
12166 * exec.c: Include source.h.
12167 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12168 (add_path, directory_switch, source_path, init_source_path): Move
12170 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12171 (add_path, directory_switch, source_path, init_source_path):
12174 2018-02-14 Tom Tromey <tom@tromey.com>
12176 * solist.h (exec_file_find, solib_find): Return
12177 unique_xmalloc_ptr.
12178 (solib_bfd_fopen): Take a const char *.
12179 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12180 (exec_file_find, solib_find): Likewise.
12181 (solib_bfd_fopen): Do not take ownership of "pathname".
12182 (solib_bfd_open): Use unique_xmalloc_ptr.
12183 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12184 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12185 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12186 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12188 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12190 * ada-lang.c (name_match_type_from_name): Remove reference to
12191 ada_name_for_lookup in function's documentation.
12192 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12194 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12196 * defs.h (enum openp_flags): New enum.
12197 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12198 Move to enum openp_flags.
12199 (openp_flags): New enum flags.
12200 (openp): Change parameter type to openp_flags.
12201 * source.c (openp): Change parameter type to openp_flags.
12202 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12203 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12205 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12207 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12210 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12212 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12214 (class dwarf2_queue_guard): ...the destructor of this new class.
12215 (dw2_do_instantiate_symtab): Create instance of the new class
12216 dwarf2_queue_guard, remove cleanup.
12218 2018-02-09 Tom Tromey <tom@tromey.com>
12220 * source.c (find_source_lines): Don't reference past the end of
12223 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12225 * remote.c (remote_btrace_maybe_reopen): Change error message.
12226 * btrace.c (btrace_enable): Likewise.
12227 (parse_xml_btrace): Likewise.
12228 (parse_xml_btrace_conf): Likewise.
12230 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12232 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12233 (linux_enable_pt, linux_enable_bts): Call
12234 diagnose_perf_event_open_fail.
12236 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12238 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12239 Remove parameter and change return type. Update callers. Move it.
12240 (linux_enable_bts, linux_enable_pt): Improve error message.
12241 (linux_enable_pt): Remove zero buffer size check.
12242 (linux_enable_btrace): Improve error messages. Remove NULL return
12245 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12247 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12248 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12249 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12250 (linux_supports_pt, linux_supports_btrace): Remove.
12251 (linux_enable_bts): Call cpu_supports_bts.
12252 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12253 * remote.c (remote_supports_btrace): Remove.
12254 (init_remote_ops): Remove remote_supports_btrace.
12255 * target-delegates.c: Regenerated.
12256 * target.c (target_supports_btrace): Remove.
12257 * target.h (target_ops) <to_supports_btrace>: Remove
12258 (target_supports_btrace): Remove.
12259 * x86-linux-nat.c (x86_linux_create_target): Remove
12260 linux_supports_btrace.
12262 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12264 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12266 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12267 exception and use message in own exception.
12269 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12271 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12272 (perf_event_pt_event_type): Use gdb_file_up.
12273 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12274 scoped_fd, and scoped_mmap.
12276 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12278 * common/scoped_mmap.h: New.
12279 * unittests/scoped_mmap-selftest.c: New.
12280 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12281 unittests/scoped_mmap-selftest.c.
12283 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12285 * common/scoped_fd.h: New.
12286 * unittests/scoped_fd-selftest.c: New.
12287 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12288 unittests/scoped_fd-selftest.c.
12290 2018-02-09 Tom Tromey <tom@tromey.com>
12292 * auto-load.c (auto_load_section_scripts): Use
12293 gdb::unique_xmalloc_ptr.
12295 2018-02-09 Tom Tromey <tom@tromey.com>
12297 * auto-load.c (execute_script_contents): Use std::string.
12299 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12301 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12302 Python function, rather than a new command.
12304 2018-02-08 Tom Tromey <tom@tromey.com>
12306 * solib.c (solib_find_1): Use std::string.
12307 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12309 2018-02-08 Tom Tromey <tom@tromey.com>
12311 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12313 2018-02-08 Tom Tromey <tom@tromey.com>
12315 * source.c (find_source_lines): Use gdb::def_vector.
12317 2018-02-08 Tom Tromey <tom@tromey.com>
12319 * macrocmd.c (struct temporary_macro_definition): New.
12320 (macro_define_command): Use temporary_macro_definition. Remove
12322 (free_macro_definition_ptr): Remove.
12324 2018-02-08 Tom Tromey <tom@tromey.com>
12326 * macroexp.c (maybe_expand): Use std::string.
12328 2018-02-08 Tom Tromey <tom@tromey.com>
12330 * macroexp.c (struct macro_buffer): Add initializers for some
12332 (init_buffer, init_shared_buffer, free_buffer)
12333 (free_buffer_return_text): Remove.
12334 (macro_buffer): New constructors.
12335 (~macro_buffer): New destructor.
12336 (macro_buffer::set_shared): New method.
12337 (macro_buffer::resize_buffer, macro_buffer::appendc)
12338 (macro_buffer::appendmem): Now methods, not free functions.
12339 (set_token, append_tokens_without_splicing, stringify)
12340 (macro_stringify): Update.
12341 (gather_arguments): Change return type. Remove argc_p argument,
12342 add args_ptr argument. Use std::vector.
12343 (substitute_args): Remove argc argument. Accept std::vector.
12344 (expand): Update. Use std::vector.
12345 (scan, macro_expand, macro_expand_next): Update.
12347 2018-02-08 Tom Tromey <tom@tromey.com>
12349 * symtab.c (default_collect_symbol_completion_matches_break_on):
12350 Use unique_xmalloc_ptr.
12351 * macroscope.h: (sal_macro_scope, user_macro_scope)
12352 (default_macro_scope): Return unique_xmalloc_ptr.
12353 * macroscope.c (sal_macro_scope, user_macro_scope)
12354 (default_macro_scope): Return unique_xmalloc_ptr.
12355 * macroexp.h (macro_expand, macro_expand_once): Return
12356 unique_xmalloc_ptr.
12357 * macroexp.c (macro_expand, macro_expand_once): Return
12358 unique_xmalloc_ptr.
12359 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12360 (info_macro_command, info_macros_command): Use
12361 unique_xmalloc_ptr.
12362 * compile/compile-c-support.c (write_macro_definitions): Use
12363 unique_xmalloc_ptr.
12364 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12366 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12368 * value.c (value_static_field): Assign field type instead of
12369 containing type when returning an optimized out value.
12371 2018-02-06 Yao Qi <yao.qi@linaro.org>
12373 * ft32-tdep.c (ft32_read_pc): Remove.
12374 (ft32_write_pc): Remove.
12375 (ft32_gdbarch_init): Update.
12376 * m32r-tdep.c (m32r_read_pc): Remove.
12377 (m32r_gdbarch_init): Update.
12378 * mep-tdep.c (mep_read_pc): Remove.
12379 (mep_gdbarch_init): Update.
12380 * microblaze-tdep.c (microblaze_write_pc): Remove.
12381 (microblaze_gdbarch_init): Update.
12382 * mn10300-tdep.c (mn10300_read_pc): Remove.
12383 (mn10300_write_pc): Remove.
12384 (mn10300_gdbarch_init): Update.
12385 * moxie-tdep.c (moxie_read_pc): Remove.
12386 (moxie_write_pc): Remove.
12387 (moxie_gdbarch_init): Update.
12389 2018-02-06 Yao Qi <yao.qi@linaro.org>
12391 * expprint.c (print_subexp_standard): Handle
12392 OP_F77_UNDETERMINED_ARGLIST.
12393 (dump_subexp_body_standard): Likewise.
12395 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12397 * target-descriptions.c (tdesc_element_visitor) Add empty
12399 (tdesc_type): Move make_gdb_type from here.
12400 (tdesc_type_builtin): Likewise.
12401 (tdesc_type_vector): Likewise.
12402 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12403 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12404 (make_gdb_type_union): Likewise.
12405 (make_gdb_type_flags): Likewise.
12406 (make_gdb_type_enum): Likewise.
12407 (make_gdb_type): New function.
12408 (tdesc_register_type): Use static make_gdb_type.
12410 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12412 * infcmd.c (default_print_one_register_info): Align natural-format
12413 column values consistently one under another.
12414 (pad_to_column): New function.
12416 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12418 * dwarf2read.c (dwarf2_physname): Move commment.
12420 2018-02-01 Leszek Swirski <leszeks@google.com>
12422 * varobj.c (varobj_formatted_print_options): Allow recursive
12423 pretty printing if pretty printing is enabled.
12425 2018-02-01 Leszek Swirski <leszeks@google.com>
12427 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12428 names after a structop as a filename.
12430 2018-02-01 Yao Qi <yao.qi@linaro.org>
12432 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12433 (arm_record_coproc_data_proc): Likewise.
12435 2018-02-01 Yao Qi <yao.qi@linaro.org>
12437 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12439 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12441 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12442 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12444 2018-01-31 Pedro Alves <palves@redhat.com>
12446 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12447 * inflow.c (child_terminal_save_inferior): Wrap reference to
12448 tcgetpgrp in HAVE_TERMIOS_H.
12449 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12451 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12452 always iterate over all inferiors.
12453 (gdbsim_cntrl_c): Adjust.
12454 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12456 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12458 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12459 index type is objfile-owned if the element type is as well.
12461 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12465 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12467 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12468 "features/s390x-linux64.c".
12469 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12470 s390_linux32 and s390x_linux64.
12471 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12473 * s390-tdep.c: Include "features/s390-linux32.c" and
12474 "features/s390x-linux64.c".
12475 (s390_tdesc_valid): Add check for tdesc_has_registers.
12476 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12477 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12478 tdesc_s390x_linux64.
12479 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12480 tdesc_s390x_linux64 to...
12481 * s390-tdep.h: ...here.
12483 2018-01-30 Pedro Alves <palves@redhat.com>
12486 * config.in, configure: Regenerate.
12487 * configure.ac: Check for getpgid.
12488 * go32-nat.c (go32_pass_ctrlc): New.
12489 (go32_target): Install it.
12490 * inf-child.c (inf_child_target): Install
12491 child_terminal_save_inferior, child_pass_ctrlc and
12493 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12494 (inf_ptrace_target): No longer install it.
12495 * infcmd.c (interrupt_target_1): Adjust.
12496 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12497 (child_interrupt): Declare.
12498 (inferior::terminal_state): New.
12499 * inflow.c (struct terminal_info): Update comments.
12500 (inferior_process_group): Delete.
12501 (terminal_is_ours): Delete.
12502 (gdb_tty_state): New.
12503 (child_terminal_init): Adjust.
12504 (is_gdb_terminal, sharing_input_terminal_1)
12505 (sharing_input_terminal): New functions.
12506 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12507 Set the process's actual process group in the foreground if
12508 possible. Handle is_ours_for_output/is_ours distinction. Don't
12509 mark terminal as the inferior's if not sharing GDB's terminal.
12510 Don't check attach_flag.
12511 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12512 pass down a target_terminal_state.
12513 (child_terminal_save_inferior): New, factored out from ...
12514 (child_terminal_ours_1): ... this. Handle
12515 target_terminal_state::is_ours_for_output.
12516 (child_interrupt, child_pass_ctrlc): New.
12517 (inflow_inferior_exit): Clear the inferior's terminal_state.
12518 (copy_terminal_info): Copy the inferior's terminal state.
12519 (_initialize_inflow): Remove reference to terminal_is_ours.
12520 * inflow.h (inferior_process_group): Delete.
12521 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12522 * procfs.c (procfs_target): Don't install procfs_interrupt.
12523 (procfs_interrupt): Delete.
12524 * remote.c (remote_serial_quit_handler): Adjust.
12525 (remote_interrupt): Remove ptid parameter. Adjust.
12526 * target-delegates.c: Regenerate.
12527 * target.c: Include "terminal.h".
12528 (target_terminal::terminal_state): Rename to ...
12529 (target_terminal::m_terminal_state): ... this.
12530 (target_terminal::init): Adjust.
12531 (target_terminal::inferior): Adjust to per-inferior
12533 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12534 (target_terminal::ours, target_terminal::ours_for_output): Use
12535 target_terminal_is_ours_kind.
12536 (target_interrupt): Remove ptid parameter. Adjust.
12537 (default_target_pass_ctrlc): Adjust.
12538 * target.h (target_ops::to_terminal_save_inferior): New field.
12539 (target_ops::to_interrupt): Remove ptid_t parameter.
12540 (target_interrupt): Remove ptid_t parameter. Update comment.
12541 (target_pass_ctrlc): Update comment.
12542 * target/target.h (target_terminal_state): New scoped enum,
12543 factored out of ...
12544 (target_terminal::terminal_state): ... here.
12545 (target_terminal::inferior): Update comments.
12546 (target_terminal::restore_inferior): New.
12547 (target_terminal::is_inferior, target_terminal::is_ours)
12548 (target_terminal::is_ours_for_output): Adjust.
12549 (target_terminal::scoped_restore_terminal_state): Adjust to
12550 rename, and call restore_inferior() instead of inferior().
12551 (target_terminal::scoped_restore_terminal_state::m_state): Change
12553 (target_terminal::terminal_state): Rename to ...
12554 (target_terminal::m_terminal_state): ... this and change type.
12556 2018-01-30 Pedro Alves <palves@redhat.com>
12558 * linux-nat.c (wait_for_signal): New function.
12559 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12561 (async_terminal_is_ours)
12562 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12563 (linux_nat_add_target): Don't override
12564 to_terminal_inferior/to_terminal_ours.
12566 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12568 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12570 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12572 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12573 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12574 dwarf2_per_objfile_free here.
12575 (dwarf2_per_objfile_free): Remove.
12576 (_initialize_dwarf2_read): Don't register
12577 dwarf2_per_objfile_free as a registry cleanup.
12579 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12581 Avoid compilation errors in MinGW native builds
12583 The error is triggered by including python-internal.h, and the
12586 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12587 from build-gnulib/import/math.h:27,
12588 from d:/usr/Python26/include/pyport.h:235,
12589 from d:/usr/Python26/include/Python.h:58,
12590 from python/python-internal.h:94,
12591 from python/py-arch.c:24:
12592 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12596 This happens because Python headers define 'hypot' to expand t
12597 '_hypot' in the Windows builds.
12598 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12599 'hypoth'. This avoids a compilation error.
12601 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12603 * MAINTAINERS (Write After Approval): Fix ordering.
12605 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12607 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12609 2018-01-26 Alan Modra <amodra@gmail.com>
12611 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12612 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12613 Remove nop. Make const. Comment.
12614 (powerpc32_plt_stub_so_2): New.
12615 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12616 Correct count. Update uses.
12617 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12618 Move common code reading PLT entry word. Correct
12619 powerpc32_plt_stub PLT address calculation.
12620 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12621 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12622 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12623 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12624 (ppc64_standard_linkage8): Likewise.
12625 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12626 Correct insns description.
12627 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12629 2018-01-24 Pedro Alves <palves@redhat.com>
12631 GCC PR libstdc++/83906
12632 * gdbtypes.c (operator==(const dynamic_prop &,
12633 const dynamic_prop &)): New.
12634 (operator==(const range_bounds &, const range_bounds &)): New.
12635 (check_types_equal): Use them instead of memcmp.
12636 * gdbtypes.h (operator==(const dynamic_prop &,
12637 const dynamic_prop &)): Declare.
12638 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12639 (operator==(const range_bounds &, const range_bounds &)): Declare.
12640 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12642 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12644 * s390-linux-tdep.c (s390_record_address_mask)
12645 (s390_record_calc_disp_common, s390_record_calc_disp)
12646 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12647 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12648 (s390_process_record): Move to s390-tdep.c.
12649 (s390_linux_init_abi_any): Adjust.
12650 * s390-tdep.c (s390_record_address_mask)
12651 (s390_record_calc_disp_common, s390_record_calc_disp)
12652 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12653 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12654 (s390_process_record): Moved from s390-linux-tdep.c
12655 (s390_gdbarch_init): Adjust.
12657 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12659 * s390-linux-nat.c (s390-tdep.h): New include.
12660 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12661 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12662 (ALLDEPFILES): Add s390-tdep.c.
12663 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12664 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12665 * s390-tdep.h: ...this. New file.
12666 * s390-linux-tdep.c (s390-tdep.h): New include.
12667 (_initialize_s390_tdep): Rename to...
12668 (_initialize_s390_linux_tdep): ...this and adjust.
12669 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12670 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12672 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12673 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12674 (s390_is_partial_instruction, s390_software_single_step)
12675 (is_non_branch_ril, s390_displaced_step_copy_insn)
12676 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12677 (s390_prologue_data, s390_addr, s390_store, s390_load)
12678 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12679 (s390_register_call_saved, s390_guess_tracepoint_registers)
12680 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12681 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12682 (s390_pseudo_register_name, s390_pseudo_register_type)
12683 (s390_pseudo_register_read, s390_pseudo_register_write)
12684 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12685 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12686 (s390_addr_bits_remove, s390_address_class_type_flags)
12687 (s390_address_class_type_flags_to_name)
12688 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12689 (s390_function_arg_float, s390_function_arg_vector)
12690 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12691 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12692 (s390_frame_align, s390_register_return_value, s390_return_value)
12693 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12694 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12695 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12696 (s390_trad_frame_prev_register, s390_unwind_cache)
12697 (s390_prologue_frame_unwind_cache)
12698 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12699 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12700 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12701 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12702 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12703 (s390_frame_base_address, s390_local_base_address)
12704 (s390_frame_base, s390_gcc_target_options)
12705 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12706 (s390_validate_reg_range, s390_tdesc_valid)
12707 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12708 * s390-tdep.c: ...this. New file.
12710 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12712 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12713 (s390_process_record, s390_gdbarch_tdep_alloc)
12714 (s390_linux_init_abi_any): Use/set new hook.
12716 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12718 * s390-linux-tdep.c (osabi.h): New include.
12719 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12720 (s390_linux_init_abi_any): New functions.
12721 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12723 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12725 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12726 tdesc_has_registers check
12728 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12730 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12731 (s390_validate_reg_range): New macro.
12732 (s390_gdbarch_init): Adjust.
12734 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12736 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12737 (s390_gdbarch_tdep_alloc): Adjust.
12738 (s390_gdbarch_init): Adjust.
12740 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12742 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12743 <have_tdb>: Change type to bool.
12744 (s390_gdbarch_tdep_alloc): Adjust.
12745 (s390_gdbarch_init): Adjust.
12747 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12749 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12750 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12751 (s390_gdbarch_tdep_alloc): New function.
12752 (s390_gdbarch_init): Allocate tdep at start and use its fields
12753 instead of separate variables.
12755 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12757 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12758 when looking for cached gdbarch and add comment for remaining.
12760 2018-01-22 Pedro Alves <palves@redhat.com>
12761 Sergio Durigan Junior <sergiodj@redhat.com>
12763 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12766 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12768 * MAINTAINERS: Update my company e-mail address.
12770 2018-01-22 Yao Qi <yao.qi@linaro.org>
12772 * regcache.c (cooked_write_test): New function.
12773 (_initialize_regcache): Register the test.
12775 2018-01-22 Yao Qi <yao.qi@linaro.org>
12777 * ia64-tdep.c (ia64_pseudo_register_read): Call
12778 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12779 * m32c-tdep.c (m32c_cat_read): Likewise.
12780 (m32c_r3r2r1r0_read): Likewise.
12781 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12782 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12784 2018-01-22 Yao Qi <yao.qi@linaro.org>
12786 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12787 method raw_read instead of regcache_raw_read.
12788 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12789 * arm-tdep.c (arm_neon_quad_read): Likewise.
12790 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12791 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12792 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12793 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12794 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12795 (i386_pseudo_register_read_into_value): Likewise.
12796 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12797 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12798 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12799 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12800 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12801 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12802 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12803 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12804 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12806 2018-01-22 Yao Qi <yao.qi@linaro.org>
12808 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12809 * configure.tgt: Remove target mt.
12810 * mt-tdep.c: Remove.
12811 * regcache.c (cooked_read_test): Remove the check for mt.
12813 2018-01-22 Yao Qi <yao.qi@linaro.org>
12815 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12816 instead of gdbarch_pseudo_register_read_value.
12818 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12820 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12823 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12825 * linespec.c (create_sals_line_offset): Remove code that preserved
12826 the symtab_and_line's line number.
12828 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12830 * varobj.c (varobj_create): Don't set valid_block when creating a
12833 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12835 * varobj.c (varobj_create): Remove out of date comment.
12837 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12840 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12841 updating innermost block.
12842 * parse.c (innermost_block_tracker::update): Take extra type
12843 parameter, and check types match before updating innermost block.
12844 (write_dollar_variable): Update innermost block for registers.
12845 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12846 (innermost_block_tracker::innermost_block_tracker): Initialise
12848 (innermost_block_tracker::reset): Take type parameter.
12849 (innermost_block_tracker::update): Take type parameter, and pass
12850 type through as needed.
12851 (innermost_block_tracker::m_types): New member.
12852 * varobj.c (varobj_create): Pass type when reseting innermost
12855 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12857 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12858 * ada-lang.c (resolve_subexp): Likewise.
12859 * breakpoint.c (set_breakpoint_condition) Likewise.
12860 (watch_command_1) Likewise.
12861 * c-exp.y (variable): Likewise.
12862 * d-exp.y (PrimaryExpression): Likewise.
12863 * f-exp.y (variable): Likewise.
12864 * go-exp.y (variable): Likewise.
12865 * m2-exp.y (variable): Likewise.
12866 * objfiles.c (objfile::~objfile): Likewise.
12867 * p-exp.y (variable): Likewise.
12868 * parse.c (innermost_block): Change type.
12869 * parser-defs.h (class innermost_block_tracker): New.
12870 (innermost_block): Change to innermost_block_tracker.
12871 * printcmd.c (display_command): Switch to innermost_block API.
12872 (do_one_display): Likewise.
12873 * rust-exp.y (do_one_display): Likewise.
12874 * symfile.c (clear_symtab_users): Likewise.
12875 * varobj.c (varobj_create): Switch to innermost_block API, replace
12876 use of innermost_block with block stored on varobj object.
12878 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12880 * expression.h (innermost_block): Remove declaration.
12881 * varobj.c: Add 'parser-defs.h' include.
12883 2018-01-19 Tom Tromey <tom@tromey.com>
12885 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12886 symbols in the static and global blocks.
12888 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12890 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12891 gdb_ptrace.h, and move including gdb_wait.h ...
12892 * nat/linux-ptrace.h: ... to here.
12894 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12896 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12897 inf_ptrace_detach_success.
12898 (inf_ptrace_detach_success): Add inferior parameter, use it
12899 instead of inferior_ptid, pass it to detach_inferior.
12900 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12902 * inferior.c (detach_inferior): Add overload that takes an
12904 * inferior.h (detach_inferior): Likewise.
12905 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12906 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12907 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12909 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12911 * target.h (struct target_ops) <to_detach>: Add inferior
12913 (target_detach): Likewise.
12914 * target.c (dispose_inferior): Pass inferior down.
12915 (target_detach): Pass inferior down. Assert that it is equal to
12916 the current inferior.
12917 * aix-thread.c (aix_thread_detach): Pass inferior down.
12918 * corefile.c (core_file_command): Pass current_inferior() down.
12919 * corelow.c (core_detach): Add inferior parameter.
12920 * darwin-nat.c (darwin_detach): Likewise.
12921 * gnu-nat.c (gnu_detach): Likewise.
12922 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12923 * infcmd.c (detach_command): Pass current_inferior() down to
12925 * infrun.c (follow_fork_inferior): Pass parent_inf to
12927 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12929 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12930 * linux-thread-db.c (thread_db_detach): Likewise.
12931 * nto-procfs.c (procfs_detach): Likewise.
12932 * procfs.c (procfs_detach): Likewise.
12933 * record.c (record_detach): Likewise.
12934 * record.h (struct inferior): Forward-declare.
12935 (record_detach): Add inferior parameter.
12936 * remote-sim.c (gdbsim_detach): Likewise.
12937 * remote.c (remote_detach_1): Likewise.
12938 (remote_detach): Likewise.
12939 (extended_remote_detach): Likewise.
12940 * sol-thread.c (sol_thread_detach): Likewise.
12941 * target-debug.h (target_debug_print_inferior_p): New macro.
12942 * target-delegates.c: Re-generate.
12943 * top.c (kill_or_detach): Pass inferior down to target_detach.
12944 * windows-nat.c (windows_detach): Add inferior parameter.
12946 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12948 * target.h (struct target_ops) <to_detach>: Remove args
12950 (target_detach): Likewise.
12951 * target.c (dispose_inferior): Adjust.
12952 (target_detach): Remove args parameter, adjust.
12953 * aix-thread.c (aix_thread_detach): Adjust.
12954 * corefile.c (core_file_command): Adjust.
12955 * corelow.c (core_detach): Adjust.
12956 * darwin-nat.c (darwin_detach): Adjust.
12957 * gnu-nat.c (gnu_detach): Adjust.
12958 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12959 * infcmd.c (detach_command): Adjust
12960 * infrun.c (follow_fork_inferior): Adjust.
12961 (handle_vfork_child_exec_or_exit): Adjust.
12962 * linux-fork.c (linux_fork_detach): Remove args parameter.
12963 * linux-fork.h (linux_fork_detach): Likewise.
12964 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12965 * linux-thread-db.c (thread_db_detach): Likewise.
12966 * nto-procfs.c (procfs_detach): Likewise.
12967 * procfs.c (procfs_detach): Likewise.
12968 (do_detach): Remove signo parameter.
12969 * record.c (record_detach): Remove args parameter.
12970 * record.h (record_detach): Likewise.
12971 * remote-sim.c (gdbsim_detach): Likewise.
12972 * remote.c (remote_detach_1): Likewise.
12973 (remote_detach): Likewise.
12974 (extended_remote_detach): Likewise.
12975 * sol-thread.c (sol_thread_detach): Likewise.
12976 * target-delegates.c: Re-generate.
12977 * top.c (struct qt_args) <args>: Remove field.
12978 (kill_or_detach): Don't pass args.
12979 (quit_force): Don't set args.
12980 * windows-nat.c (windows_detach): Remove args parameter.
12982 2018-01-19 Yao Qi <yao.qi@linaro.org>
12984 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
12985 (arm_linux_init_abi): Install it.
12987 2018-01-19 Yao Qi <yao.qi@linaro.org>
12989 * osabi.c (gdb_osabi_names): Extend the regexp for
12990 arm-linux-gnueabihf.
12992 2018-01-18 Yao Qi <yao.qi@linaro.org>
12994 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
12996 (abbrev_table::add_abbrev): Update.
12997 (abbrev_table::lookup_abbrev): Update.
12999 2018-01-18 Yao Qi <yao.qi@linaro.org>
13001 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13003 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13005 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13008 2018-01-17 Tom Tromey <tom@tromey.com>
13010 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13012 2018-01-17 Tom Tromey <tom@tromey.com>
13014 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13015 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13016 (create_array_type_with_stride): Update.
13017 * dwarf2read.c (set_die_type): Update.
13019 2018-01-17 Tom Tromey <tom@tromey.com>
13021 * dwarf2read.c (delayed_method_info): Remove typedef.
13022 (dwarf2_cu::method_info): Now a std::vector.
13023 (add_to_method_list): Update.
13024 (free_delayed_list): Remove.
13025 (compute_delayed_physnames): Update.
13026 (process_full_comp_unit, process_full_type_unit): Clear the method
13027 list. Remove cleanups.
13028 (psymtab_include_file_name): Add name_holder parameter. Use
13029 unique_xmalloc_ptr.
13030 (dwarf_decode_lines): Update.
13032 2018-01-17 Tom Tromey <tom@tromey.com>
13033 Simon Marchi <simon.marchi@ericsson.com>
13035 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13036 (dwarf2_per_objfile::free_cached_comp_units)
13037 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13038 (init_cutu_and_read_dies_no_follow): Update.
13039 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13040 (dwarf2_cu::~dwarf2_cu): New.
13041 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13042 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13044 2018-01-17 Tom Tromey <tom@tromey.com>
13045 Simon Marchi <simon.marchi@ericsson.com>
13047 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13048 (struct die_reader_specs) <abbrev_table>: New member.
13049 (struct abbrev_table): Add constructor.
13050 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13051 <abbrev_obstack>: Now an auto_obstack.
13052 (abbrev_table_up): New typedef.
13053 (init_cu_die_reader): Add abbrev_table parameter.
13054 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13055 Add result_dwo_abbrev_table.
13056 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13057 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13059 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13061 (skip_children): Update.
13062 (abbrev_table::alloc_abbrev): Rename from
13063 abbrev_table_alloc_abbrev.
13064 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13065 (abbrev_table::lookup_abbrev): Rename from
13066 abbrev_table_lookup_abbrev.
13067 (abbrev_table_read_table): Return abbrev_table_up.
13068 (abbrev_table_free, abbrev_table_free_cleanup)
13069 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13070 (load_partial_dies): Update.
13072 2018-01-17 Tom Tromey <tom@tromey.com>
13074 * dwarf2read.c (dwarf2_compute_name): Update comment.
13075 (read_func_scope, read_variable): Update.
13076 (new_symbol): Remove.
13077 (new_symbol_full): Rename to new_symbol.
13079 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13082 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13083 a warning instead of throwing an error, set section size to 0 and return
13085 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13087 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13089 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13091 (linux_ptrace_attach_fail_reason_string): Likewise.
13092 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13094 (linux_ptrace_attach_fail_reason_string): Likewise.
13095 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13097 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13099 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13101 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13104 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13105 checking for fs_base/gs_base fields in struct user_regs_struct.
13106 * configure: Regenerate.
13108 2018-01-17 Yao Qi <yao.qi@linaro.org>
13110 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13112 (aarch64_linux_init_abi): Install it to gdbarch hook
13113 gcc_target_options.
13115 2018-01-15 Pedro Alves <palves@redhat.com>
13117 * common/signals-state-save-restore.c
13118 (save_original_signals_state): Fix typos.
13120 2017-01-12 Tom Tromey <tom@tromey.com>
13121 Sergio Durigan Junior <sergiodj@redhat.com>
13123 * Makefile.in (install-only): Install gdb-add-index.
13125 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13127 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13129 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13131 * infrun.c (keep_going_pass_signal): Clear step-over info when
13132 insert_breakpoints fails.
13134 2018-01-11 Pedro Alves <palves@redhat.com>
13137 * infrun.c (resume): Rename to ...
13138 (resume_1): ... this.
13139 (resume): Reimplement as wrapper around resume_1.
13141 2018-01-11 Pedro Alves <palves@redhat.com>
13144 * remote.c (remote_parse_stop_reply): Default to the last-set
13145 general thread instead of to 'magic_null_ptid'.
13147 2018-01-10 Pedro Alves <palves@redhat.com>
13149 * language.h (language_get_symbol_name_matcher): Rename ...
13150 (get_symbol_name_matcher): ... this.
13151 * language.c (language_get_symbol_name_matcher): Ditto.
13152 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13155 2018-01-10 Pedro Alves <palves@redhat.com>
13159 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13160 Adjust to use language_get_symbol_name_matcher instead of
13161 language_defn::la_get_symbol_name_matcher.
13162 * language.c (language_get_symbol_name_matcher): If in Ada mode
13163 and the lookup name is a verbatim match, return Ada's matcher.
13164 * language.h (language_get_symbol_name_matcher): Adjust comment.
13165 (ada_lookup_name_info::verbatim_p):: New method.
13167 2018-01-10 Pedro Alves <palves@redhat.com>
13170 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13171 minsym's language is language_auto or language_cplus, pass down
13172 language_ada instead.
13173 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13175 2018-01-10 Pedro Alves <palves@redhat.com>
13178 * minsyms.c (linkage_name_str): New function.
13179 (iterate_over_minimal_symbols): Use it.
13181 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13183 * NEWS: Document that 'info proc' now works on FreeBSD.
13185 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13187 * configure.ac: Check for kinfo_getfile in libutil.
13188 * configure: Regenerate.
13189 * config.in: Regenerate.
13190 * fbsd-nat.c: Include "fbsd-tdep.h".
13191 (fbsd_fetch_cmdline): New.
13192 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13193 rather than calling error.
13194 (fbsd_info_proc): New.
13195 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13196 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13197 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13199 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13201 * fbsd-nat.c (struct free_deleter): Remove.
13202 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13204 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13206 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13207 NULL for an empty pathname.
13209 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13211 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13212 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13213 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13214 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13215 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13216 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13217 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13218 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13219 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13220 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13221 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13222 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13223 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13224 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13225 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13227 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13229 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13230 (gnu_xfer_auxv): New function.
13231 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13232 TARGET_OBJECT_AUXV.
13234 2018-01-08 Yao Qi <yao.qi@linaro.org>
13235 Simon Marchi <simon.marchi@ericsson.com>
13237 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13239 (COMMON_OBS): Remove selftest.o.
13240 * configure.ac: Append selftest-arch.c and common/selftest.c to
13241 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13242 * configure: Re-generated.
13243 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13245 (maintenance_info_selftests): Likewise.
13247 2018-01-08 Xavier Roirand <roirand@adacore.com>
13249 * ada-valprint.c (val_print_packed_array_elements): Use
13250 proper number of elements when printing an array indexed
13251 by an enumeration type.
13253 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13255 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13256 (dw2_get_file_names_reader): Adjust.
13257 (lookup_dwo_signatured_type): Adjust.
13258 (lookup_dwp_signatured_type): Adjust.
13259 (lookup_signatured_type): Adjust.
13260 (create_type_unit_group): Adjust.
13261 (get_type_unit_group): Adjust.
13262 (process_psymtab_comp_unit_reader): Adjust.
13263 (build_type_psymtabs_reader): Adjust.
13264 (scan_partial_symbols): Adjust.
13265 (add_partial_symbol): Adjust.
13266 (add_partial_subprogram): Adjust.
13267 (peek_die_abbrev): Adjust.
13268 (fixup_go_packaging): Adjust.
13269 (process_imported_unit_die): Adjust.
13270 (dwarf2_compute_name): Adjust.
13271 (dwarf2_physname): Adjust.
13272 (read_import_statement): Adjust.
13273 (handle_DW_AT_stmt_list): Adjust.
13274 (read_file_scope): Adjust.
13275 (read_func_scope): Adjust.
13276 (read_lexical_block_scope): Adjust.
13277 (read_call_site_scope): Adjust.
13278 (read_variable): Adjust.
13279 (dwarf2_rnglists_process): Adjust.
13280 (dwarf2_ranges_process): Adjust.
13281 (dwarf2_ranges_read): Adjust.
13282 (dwarf2_get_pc_bounds): Adjust.
13283 (dwarf2_record_block_ranges): Adjust.
13284 (dwarf2_add_field): Adjust.
13285 (dwarf2_add_member_fn): Adjust.
13286 (read_structure_type): Adjust.
13287 (process_structure_scope): Adjust.
13288 (read_enumeration_type): Adjust.
13289 (read_array_type): Adjust.
13290 (mark_common_block_symbol_computed): Adjust.
13291 (read_common_block): Adjust.
13292 (read_namespace_type): Adjust.
13293 (read_namespace): Adjust.
13294 (read_module_type): Adjust.
13295 (read_tag_pointer_type): Adjust.
13296 (read_tag_ptr_to_member_type): Adjust.
13297 (read_tag_string_type): Adjust.
13298 (read_subroutine_type): Adjust.
13299 (read_typedef): Adjust.
13300 (read_base_type): Adjust.
13301 (attr_to_dynamic_prop): Adjust.
13302 (read_subrange_type): Adjust.
13303 (read_unspecified_type): Adjust.
13304 (dwarf2_read_abbrevs): Adjust.
13305 (load_partial_dies): Adjust.
13306 (read_partial_die): Adjust.
13307 (find_partial_die): Adjust.
13308 (guess_partial_die_structure_name): Adjust.
13309 (fixup_partial_die): Adjust.
13310 (read_attribute_value): Adjust.
13311 (read_addr_index): Adjust.
13312 (read_addr_index_from_leb128): Adjust.
13313 (read_str_index): Adjust.
13314 (dwarf2_string_attr): Adjust.
13315 (get_debug_line_section): Adjust.
13316 (dwarf_decode_line_header): Adjust.
13317 (lnp_state_machine::check_line_address): Adjust.
13318 (dwarf_decode_lines_1): Adjust.
13319 (dwarf_decode_lines): Adjust.
13320 (dwarf2_start_symtab): Adjust.
13321 (var_decode_location): Adjust.
13322 (new_symbol_full): Adjust.
13323 (dwarf2_const_value_data): Adjust.
13324 (dwarf2_const_value_attr): Adjust.
13325 (dwarf2_const_value): Adjust.
13326 (die_type): Adjust.
13327 (die_containing_type): Adjust.
13328 (build_error_marker_type): Adjust.
13329 (lookup_die_type): Adjust.
13330 (guess_full_die_structure_name): Adjust.
13331 (anonymous_struct_prefix): Adjust.
13332 (determine_prefix): Adjust.
13333 (dwarf2_name): Adjust.
13334 (follow_die_ref_or_sig): Adjust.
13335 (follow_die_offset): Adjust.
13336 (follow_die_ref): Adjust.
13337 (follow_die_sig_1): Adjust.
13338 (follow_die_sig): Adjust.
13339 (get_signatured_type): Adjust.
13340 (get_DW_AT_signature_type): Adjust.
13341 (decode_locdesc): Adjust.
13342 (dwarf_decode_macros): Adjust.
13343 (cu_debug_loc_section): Adjust.
13344 (fill_in_loclist_baton): Adjust.
13345 (dwarf2_symbol_mark_computed): Adjust.
13346 (init_one_comp_unit): Don't assign
13347 dwarf2_cu::dwarf2_per_objfile.
13348 (set_die_type): Adjust.
13350 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13352 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13353 <dwarf2_per_objfile>: New field.
13354 (dwarf2_per_objfile): Remove global.
13355 (get_dwarf2_per_objfile): New function.
13356 (set_dwarf2_per_objfile): New function.
13357 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13358 dwarf2_per_objfile.
13359 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13360 (read_abbrev_offset): Likewise.
13361 (read_indirect_string): Likewise.
13362 (read_indirect_line_string): Likewise.
13363 (read_indirect_string_at_offset): Likewise.
13364 (read_indirect_string_from_dwz): Likewise.
13365 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13366 dwarf2_per_objfile.
13367 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13368 (create_all_comp_units): Change objfile parameter to
13369 dwarf2_per_objfile.
13370 (create_all_type_units): Likewise.
13371 (process_queue): Add dwarf2_per_objfile parameter.
13372 (read_and_check_comp_unit_head): Likewise.
13373 (lookup_dwo_unit_in_dwp): Likewise.
13374 (get_dwp_file): Likewise.
13375 (process_cu_includes): Likewise.
13376 (struct free_dwo_file_cleanup_data): New struct.
13377 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13378 set_dwarf2_per_objfile.
13379 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13380 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13381 context, adjust calls.
13382 (dw2_instantiate_symtab): Likewise.
13383 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13384 (dw2_get_cu): Likewise.
13385 (create_cu_from_index_list): Change objfile parameter to
13386 dwarf2_per_objfile.
13387 (create_cus_from_index_list): Get dwarf2_per_objfile from
13388 context, adjust calls.
13389 (create_cus_from_index): Likewise.
13390 (create_signatured_type_table_from_index): Change objfile
13391 parameter to dwarf2_per_objfile.
13392 (create_signatured_type_table_from_debug_names): Change objfile
13393 parameter to dwarf2_per_objfile.
13394 (create_addrmap_from_index): Likewise.
13395 (create_addrmap_from_aranges): Likewise.
13396 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13397 (dw2_setup): Remove.
13398 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13400 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13401 get_dwarf2_per_objfile.
13402 (dw2_forget_cached_source_info): Likewise.
13403 (dw2_map_symtabs_matching_filename): Likewise.
13404 (struct dw2_symtab_iterator) <index>: Remove.
13405 <dwarf2_per_objfile>: New field.
13406 (dw2_symtab_iter_init): Replace index parameter with
13407 dwarf2_per_objfile.
13408 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13409 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13410 (dw2_print_stats): Likewise.
13411 (dw2_dump): Likewise.
13412 (dw2_expand_symtabs_for_function): Likewise.
13413 (dw2_expand_all_symtabs): Likewise.
13414 (dw2_expand_symtabs_with_fullname): Likewise.
13415 (dw2_expand_marked_cus): Replace index and objfile parameters
13416 with dwarf2_per_objfile.
13417 (dw_expand_symtabs_matching_file_matcher): Add
13418 dwarf2_per_objfile parameter and adjust calls.
13419 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13421 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13422 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13424 (create_cus_from_debug_names_list): Replace objfile parameter
13425 with dwarf2_per_objfile and adjust calls.
13426 (create_cus_from_debug_names): Likewise.
13427 (dwarf2_read_debug_names): Likewise.
13428 (mapped_debug_names::namei_to_name): Adjust call.
13429 (dw2_debug_names_iterator::next): Likewise.
13430 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13431 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13432 (dw2_debug_names_dump): Likewise.
13433 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13434 (dw2_debug_names_expand_symtabs_matching): Likewise.
13435 (dwarf2_initialize_objfile): Likewise.
13436 (dwarf2_build_psymtabs): Likewise.
13437 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13439 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13440 (read_and_check_comp_unit_head): Likewise.
13441 (read_abbrev_offset): Likewise.
13442 (create_debug_type_hash_table): Likewise.
13443 (create_debug_types_hash_table): Likewise.
13444 (create_all_type_units): Replace objfile parameter with
13445 dwarf2_per_objfile.
13446 (add_type_unit): Add dwarf2_per_objfile parameter.
13447 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13448 with dwarf2_per_objfile.
13449 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13450 (lookup_dwp_signatured_type): Likewise.
13451 (lookup_signatured_type): Likewise.
13452 (read_cutu_die_from_dwo): Likewise.
13453 (init_tu_and_read_dwo_dies): Likewise.
13454 (init_cutu_and_read_dies): Likewise.
13455 (init_cutu_and_read_dies_no_follow): Likewise.
13456 (allocate_type_unit_groups_table): Add objfile parameter.
13457 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13458 (get_type_unit_group): Likewise.
13459 (process_psymtab_comp_unit): Update call.
13460 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13461 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13462 (print_tu_stats): Likewise.
13463 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13464 in void* parameter.
13465 (build_type_psymtabs): Change objfile parameter to
13466 dwarf2_per_objfile.
13467 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13468 passed in void* parameter.
13469 (process_skeletonless_type_units): Change objfile parameter to
13470 dwarf2_per_objfile.
13471 (set_partial_user): Likewise.
13472 (dwarf2_build_psymtabs_hard): Likewise.
13473 (read_comp_units_from_section): Likewise.
13474 (create_all_comp_units): Likewise.
13475 (scan_partial_symbols): Update calls.
13476 (add_partial_symbol): Likewise.
13477 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13478 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13479 (process_queue): Add dwarf2_per_objfile parameter.
13480 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13481 (compute_compunit_symtab_includes): Likewise.
13482 (process_cu_includes): Add dwarf2_per_objfile parameter.
13483 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13484 (process_full_type_unit): Likewise.
13485 (process_imported_unit_die): Update call.
13486 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13487 (read_file_scope): Likewise.
13488 (allocate_dwo_file_hash_table): Add objfile parameter.
13489 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13490 (create_cus_hash_table): Likewise.
13491 (create_dwp_hash_table): Likewise.
13492 (create_dwo_unit_in_dwp_v1): Likewise.
13493 (create_dwp_v2_section): Likewise.
13494 (create_dwo_unit_in_dwp_v2): Likewise.
13495 (lookup_dwo_unit_in_dwp): Likewise.
13496 (try_open_dwop_file): Likewise.
13497 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13498 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13499 cleanup to include a reference to dwarf2_per_objfile.
13500 (open_dwp_file): Add dwarf2_per_objfile parameter.
13501 (open_and_init_dwp_file): Likewise.
13502 (get_dwp_file): Likewise.
13503 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13504 (queue_and_load_all_dwo_tus): Update call.
13505 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13507 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13508 (dwarf2_ranges_process): Likewise.
13509 (dwarf2_get_pc_bounds): Likewise.
13510 (mark_common_block_symbol_computed): Likewise.
13511 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13512 (dwarf2_read_abbrevs): Update call.
13513 (read_partial_die): Use dwarf2_per_objfile from cu.
13514 (find_partial_die): Likewise.
13515 (fixup_partial_die): Likewise.
13516 (read_attribute_value): Likewise.
13517 (read_indirect_string_at_offset_from): Add objfile parameter.
13518 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13520 (read_indirect_string_from_dwz): Add objfile parameter.
13521 (read_indirect_string): Add objfile parameter.
13522 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13523 (read_addr_index): Use dwarf2_per_objfile from cu.
13524 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13526 (read_str_index): Use dwarf2_per_objfile from cu.
13527 (get_debug_line_section): Likewise.
13528 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13529 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13530 (new_symbol_full): Use dwarf2_per_objfile from cu.
13531 (build_error_marker_type): Likewise.
13532 (lookup_die_type): Likewise.
13533 (determine_prefix): Likewise.
13534 (follow_die_offset): Likewise.
13535 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13536 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13537 (dwarf2_fetch_die_type_sect_off): Likewise.
13538 (dwarf2_get_die_type): Likewise.
13539 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13540 (get_signatured_type): Likewise.
13541 (get_DW_AT_signature_type): Likewise.
13542 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13543 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13544 (cu_debug_loc_section): Likewise.
13545 (fill_in_loclist_baton): Likewise.
13546 (dwarf2_symbol_mark_computed): Likewise.
13547 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13548 dwarf2_per_objfile.
13549 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13551 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13552 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13553 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13554 (set_die_type): Use dwarf2_free_objfile from cu.
13555 (get_die_type_at_offset): Likewise.
13556 (dwarf2_per_objfile_free): Don't assign global variable.
13557 (debug_names) <constructor>: Add dwarf2_per_objfile
13558 parameter, update m_debugstrlookup construction.
13559 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13561 <m_dwarf2_per_objfile>: New field.
13562 <lookup>: Use m_dwarf2_per_objfile.
13563 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13564 (psyms_seen_size): Likewise.
13565 (write_gdbindex): Replace objfile parameter with
13566 dwarf2_per_objfile.
13567 (write_debug_names): Likewise.
13568 (write_psymtabs_to_index): Likewise.
13569 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13572 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13574 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13575 <dwarf2_per_objfile>: New field.
13576 (struct dwarf2_per_cu_data) <objfile>: Remove.
13577 <dwarf2_per_objfile>: New field.
13578 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13580 (create_signatured_type_table_from_index): Likewise.
13581 (create_debug_type_hash_table): Likewise.
13582 (fill_in_sig_entry_from_dwo_entry): Likewise.
13583 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13584 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13586 (create_partial_symtab): Access objfile through
13587 dwarf2_per_objfile.
13588 (process_psymtab_comp_unit_reader): Likewise.
13589 (read_comp_units_from_section): Likewise.
13590 (scan_partial_symbols): Likewise.
13591 (add_partial_symbol): Likewise.
13592 (add_partial_subprogram): Likewise.
13593 (peek_die_abbrev): Likewise.
13594 (fixup_go_packaging): Likewise.
13595 (process_full_comp_unit): Likewise.
13596 (process_full_type_unit): Likewise.
13597 (process_imported_unit_die): Likewise.
13598 (dwarf2_compute_name): Likewise.
13599 (dwarf2_physname): Likewise.
13600 (read_import_statement): Likewise.
13601 (create_cus_hash_table): Assign dwarf2_physname instead of
13603 (read_func_scope): Access objfile through dwarf2_per_objfile.
13604 (read_lexical_block_scope): Likewise.
13605 (read_call_site_scope): Likewise.
13606 (read_variable): Likewise.
13607 (dwarf2_rnglists_process): Likewise.
13608 (dwarf2_ranges_process): Likewise.
13609 (dwarf2_ranges_read): Likewise.
13610 (dwarf2_record_block_ranges): Likewise.
13611 (dwarf2_add_field): Likewise.
13612 (dwarf2_add_member_fn): Likewise.
13613 (read_structure_type): Likewise.
13614 (process_structure_scope): Likewise.
13615 (read_enumeration_type): Likewise.
13616 (read_array_type): Likewise.
13617 (read_common_block): Likewise.
13618 (read_namespace_type): Likewise.
13619 (read_namespace): Likewise.
13620 (read_module_type): Likewise.
13621 (read_tag_pointer_type): Likewise.
13622 (read_tag_ptr_to_member_type): Likewise.
13623 (read_tag_string_type): Likewise.
13624 (read_subroutine_type): Likewise.
13625 (read_typedef): Likewise.
13626 (read_base_type): Likewise.
13627 (attr_to_dynamic_prop): Likewise.
13628 (read_subrange_type): Likewise.
13629 (read_unspecified_type): Likewise.
13630 (load_partial_dies): Likewise.
13631 (read_partial_die): Likewise.
13632 (find_partial_die): Likewise.
13633 (guess_partial_die_structure_name): Likewise.
13634 (fixup_partial_die): Likewise.
13635 (read_attribute_value): Likewise.
13636 (read_addr_index_from_leb128): Likewise.
13637 (dwarf2_read_addr_index): Likewise.
13638 (dwarf2_string_attr): Likewise.
13639 (lnp_state_machine::check_line_address): Likewise.
13640 (dwarf_decode_lines_1): Likewise.
13641 (dwarf_decode_lines): Likewise.
13642 (dwarf2_start_symtab): Likewise.
13643 (var_decode_location): Likewise.
13644 (new_symbol_full): Likewise.
13645 (dwarf2_const_value_data): Likewise.
13646 (dwarf2_const_value_attr): Likewise.
13647 (dwarf2_const_value): Likewise.
13648 (die_type): Likewise.
13649 (die_containing_type): Likewise.
13650 (lookup_die_type): Likewise.
13651 (guess_full_die_structure_name): Likewise.
13652 (anonymous_struct_prefix): Likewise.
13653 (dwarf2_name): Likewise.
13654 (follow_die_ref_or_sig): Likewise.
13655 (follow_die_offset): Likewise.
13656 (follow_die_ref): Likewise.
13657 (dwarf2_fetch_die_loc_sect_off): Likewise.
13658 (dwarf2_fetch_constant_bytes): Likewise.
13659 (dwarf2_fetch_die_type_sect_off): Likewise.
13660 (dwarf2_get_die_type): Likewise.
13661 (follow_die_sig): Likewise.
13662 (decode_locdesc): Likewise.
13663 (dwarf2_per_cu_objfile): Likewise.
13664 (dwarf2_per_cu_text_offset): Likewise.
13665 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13667 (set_die_type): Access objfile through
13668 dwarf2_per_objfile.
13670 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13672 * valprint.c (converted_character_d): Remove typedef.
13673 (DEF_VEC_O (converted_character_d)): Remove.
13674 (count_next_character): Use std::vector.
13675 (print_converted_chars_to_obstack): Likewise.
13676 (generic_printstr): Likewise.
13678 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13680 * xml-support.h (struct gdb_xml_value): Add constructor.
13681 <value>: Change type to unique_xmalloc_ptr.
13682 (gdb_xml_value_s): Remove typedef.
13683 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13684 (gdb_xml_element_start_handler): Change parameter type to
13686 (xml_find_attribute): Likewise.
13687 * xml-support.c (xml_find_attribute): Change parameter type to
13688 std::vector and adjust.
13689 (gdb_xml_values_cleanup): Remove.
13690 (gdb_xml_parser::start_element): Adjust to std::vector.
13691 (xinclude_start_include): Change paraeter type to std::vector
13693 * btrace.c (check_xml_btrace_version): Likewise.
13694 (parse_xml_btrace_block): Likewise.
13695 (parse_xml_btrace_pt_config_cpu): Likewise.
13696 (parse_xml_btrace_pt): Likewise.
13697 (parse_xml_btrace_conf_bts): Likewise.
13698 (parse_xml_btrace_conf_pt): Likewise.
13699 * memory-map.c (memory_map_start_memory): Likewise.
13700 (memory_map_start_property): Likewise.
13701 * osdata.c (osdata_start_osdata): Likewise.
13702 (osdata_start_item): Likewise.
13703 (osdata_start_column): Likewise.
13704 * remote.c (start_thread): Likewise.
13705 * solib-aix.c (library_list_start_library): Likewise.
13706 (library_list_start_list): Likewise.
13707 * solib-svr4.c (library_list_start_library): Likewise.
13708 (svr4_library_list_start_list): Likewise.
13709 * solib-target.c (library_list_start_segment): Likewise.
13710 (library_list_start_section): Likewise.
13711 (library_list_start_library): Likewise.
13712 (library_list_start_list): Likewise.
13713 * tracepoint.c (traceframe_info_start_memory): Likewise.
13714 (traceframe_info_start_tvar): Likewise.
13715 * xml-syscall.c (syscall_start_syscall): Likewise.
13716 * xml-tdesc.c (tdesc_start_target): Likewise.
13717 (tdesc_start_feature): Likewise.
13718 (tdesc_start_reg): Likewise.
13719 (tdesc_start_union): Likewise.
13720 (tdesc_start_struct): Likewise.
13721 (tdesc_start_flags): Likewise.
13722 (tdesc_start_enum): Likewise.
13723 (tdesc_start_field): Likewise.
13724 (tdesc_start_enum_value): Likewise.
13725 (tdesc_start_vector): Likewise.
13727 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13729 * extension.h (struct xmethod_worker) <clone>: Remove.
13730 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13732 (python_xmethod_worker::clone): Remove.
13733 * valops.c (find_overload_match): Use std::move instead of
13736 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13738 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13739 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13740 <free_xmethod_worker_data>: Remove.
13741 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13742 <get_xmethod_arg_types>: Remove.
13743 <get_xmethod_result_type>: Remove.
13744 <invoke_xmethod>: Remove.
13745 * extension.c (new_xmethod_worker): Remove.
13746 (clone_xmethod_worker): Remove.
13747 (get_matching_xmethod_workers): Return void, pass std::vector by
13749 (get_xmethod_arg_types): Rename to...
13750 (xmethod_worker::get_arg_types): ... this, and adjust.
13751 (get_xmethod_result_type): Rename to...
13752 (xmethod_worker::get_result_type): ... this, and adjust.
13753 (invoke_xmethod): Remove.
13754 (free_xmethod_worker): Remove.
13755 (free_xmethod_worker_vec): Remove.
13756 * extension.h (enum ext_lang_rc): Move here from
13758 (struct xmethod_worker): Add constructor and destructor.
13761 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13762 virtual pure methods.
13763 <get_arg_types, get_result_type>: New methods.
13764 (xmethod_worker_ptr): Remove typedef.
13765 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13766 (xmethod_worker_vec): Remove typedef.
13767 (xmethod_worker_up): New typedef.
13768 (invoke_xmethod): Remove.
13769 (clone_xmethod_worker): Remove.
13770 (free_xmethod_worker): Remove.
13771 (free_xmethod_worker_vec): Remove.
13772 (get_xmethod_arg_types): Remove.
13773 (get_xmethod_result_type): Remove.
13774 * valops.c (find_method_list): Use std::vector, don't use
13775 intermediate vector.
13776 (value_find_oload_method_list): Use std::vector.
13777 (find_overload_match): Use std::vector.
13778 (find_oload_champ): Use std::vector.
13779 * value.c (value_free): Use operator delete.
13780 (value_of_xmethod): Rename to...
13781 (value_from_xmethod): ... this. Don't assign
13782 xmethod_worker::value, take rvalue-reference.
13783 (result_type_of_xmethod): Adjust.
13784 (call_xmethod): Adjust.
13785 * value.h: Include extension.h.
13786 (struct xmethod_worker): Don't forward-declare.
13787 (value_of_xmethod): Rename to...
13788 (value_from_xmethod): ... this, take rvalue-reference.
13789 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13790 (struct python_xmethod_worker): ... this, add constructor and
13792 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13793 (gdbpy_free_xmethod_worker_data): Rename to...
13794 (python_xmethod_worker::~python_xmethod_worker): ... this and
13796 (gdbpy_clone_xmethod_worker_data): Rename to...
13797 (python_xmethod_worker::clone): ... this and adjust.
13798 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13800 (gdbpy_get_xmethod_arg_types): Rename to...
13801 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13802 (gdbpy_get_xmethod_result_type): Rename to...
13803 (python_xmethod_worker::do_get_result_type): ... this and
13805 (gdbpy_invoke_xmethod): Rename to...
13806 (python_xmethod_worker::invoke): ... this and adjust.
13807 (new_python_xmethod_worker): Rename to...
13808 (python_xmethod_worker::python_xmethod_worker): ... this and
13810 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13812 (gdbpy_free_xmethod_worker_data): Remove.
13813 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13814 (gdbpy_get_xmethod_arg_types): Remove.
13815 (gdbpy_get_xmethod_result_type): Remove.
13816 (gdbpy_invoke_xmethod): Remove.
13817 * python/python.c (python_extension_ops): Remove obsolete
13820 2018-01-05 Pedro Alves <palves@redhat.com>
13823 * common/signals-state-save-restore.c
13824 (save_original_signals_state): New parameter 'quiet'. Warn if we
13825 find a custom handler preinstalled, instead of internal erroring.
13826 But only warn if !quiet.
13827 * common/signals-state-save-restore.h
13828 (save_original_signals_state): New parameter 'quiet'.
13829 * main.c (captured_main_1): Move save_original_signals_state call
13830 after option handling, and pass QUIET.
13832 2018-01-05 Pedro Alves <palves@redhat.com>
13834 * spu-tdep.c (spu_catch_start): Pass
13835 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13837 2018-01-05 Pedro Alves <palves@redhat.com>
13840 * ada-lang.c (literal_symbol_name_matcher): New function.
13841 (ada_get_symbol_name_matcher): Use it for
13842 symbol_name_match_type::SEARCH_NAME.
13843 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13844 it down instead of assuming symbol_name_match_type::FULL.
13845 * block.h (block_lookup_symbol): New parameter 'match_type'.
13846 * c-valprint.c (print_unpacked_pointer): Use
13847 lookup_symbol_search_name instead of lookup_symbol.
13848 * compile/compile-object-load.c (get_out_value_type): Pass down
13849 symbol_name_match_type::SEARCH_NAME.
13850 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13851 symbol_name_match_type::FULL.
13852 * cp-support.c (cp_get_symbol_name_matcher): Handle
13853 symbol_name_match_type::SEARCH_NAME.
13854 * infrun.c (insert_exception_resume_breakpoint): Use
13855 lookup_symbol_search_name.
13856 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13857 * psymtab.c (maintenance_check_psymtabs): Use
13858 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13859 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13860 SYMBOL_SEARCH_NAME.
13861 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13862 if symbol_name_match_type::SEARCH_NAME.
13863 (lookup_symbol_in_language): Pass down
13864 symbol_name_match_type::FULL.
13865 (lookup_symbol_search_name): New.
13866 (lookup_language_this): Pass down
13867 symbol_name_match_type::SEARCH_NAME.
13868 (lookup_symbol_aux, lookup_local_symbol): New parameter
13869 'match_type'. Pass it down.
13870 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13871 (lookup_symbol_search_name): New declaration.
13872 (lookup_symbol_in_block): New 'match_type' parameter.
13874 2018-01-05 Pedro Alves <palves@redhat.com>
13877 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13879 (ada_lookup_symbol): Reimplement in terms of
13880 ada_lookup_symbol_list, bits factored out from
13881 ada_lookup_encoded_symbol.
13883 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13885 * ada-exp.y (write_object_renaming): When subscripting an array
13886 using a symbol as the index, pass the block in call to
13887 ada_lookup_encoded_symbol when looking that symbol up.
13889 2018-01-05 Jerome Guitton <guitton@adacore.com>
13891 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13894 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13896 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13897 the case where VALUE_LVAL (val0) is not lval_memory.
13899 2018-01-05 Xavier Roirand <roirand@adacore.com>
13901 * ada-valprint.c (print_optional_low_bound): Handle
13902 character-indexed array printing like boolean-indexed array
13905 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13907 * NEWS: Create a new section for the next release branch.
13908 Rename the section of the current branch, now that it has
13911 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13913 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13914 * version.in: Bump version to 8.1.50.DATE-git.
13916 2018-01-03 Xavier Roirand <roirand@adacore.com>
13918 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13920 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13922 (default_exception_support_info) <catch_handlers_sym>: Add field.
13923 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13924 (ada_exception_name_addr_1): Add "catch handlers" handling.
13925 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13926 Update all callers.
13927 (create_excep_cond_exprs) <ex>: Add parameter.
13928 (re_set_exception): Update create_excep_cond_exprs call.
13929 (print_it_exception, print_one_exception, print_mention_exception)
13930 (print_recreate_exception): Add "catch handler" handling.
13931 (allocate_location_catch_handlers, re_set_catch_handlers)
13932 (check_status_catch_handlers, print_it_catch_handlers)
13933 (print_one_catch_handlers, print_mention_catch_handlers)
13934 (print_recreate_catch_handlers): New function.
13935 (catch_handlers_breakpoint_ops): New variable.
13936 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13937 Add parameter. Add "catch handler" handling.
13938 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13939 Add "catch handler" handling.
13940 (ada_exception_catchpoint_cond_string): Add "catch handler"
13942 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13944 (catch_ada_handlers_command): New function.
13945 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13946 operations structure.
13947 (_initialize_ada_language): Add "catch handlers" command entry.
13948 * NEWS: Document "catch handlers" feature.
13950 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13952 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13953 account when creating the array type of the slice.
13954 (ada_value_slice): Likewise.
13956 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13958 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13960 (create_array_type_with_stride): Add byte_stride_prop parameter.
13961 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13962 New parameter. Update all callers in this file.
13963 (array_type_has_dynamic_stride): New function.
13964 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13965 of arrays with dynamic byte strides.
13966 * dwarf2read.c (read_array_type): Add support for dynamic
13967 DW_AT_byte_stride attributes.
13969 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13971 * dwarf2read.c (read_unspecified_type): Treat
13972 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13974 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13976 Update copyright year range in all GDB files.
13978 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13980 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
13981 and gdb/testsuite/gdb.base/step-line.c.
13983 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13985 * copyright.py (main): Dump the contents of
13986 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
13987 even if BY_HAND is empty.
13989 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13991 * top.c (print_gdb_version): Update Copyright year in version
13994 2018-01-01 Joel Brobecker <brobecker@adacore.com>
13996 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
13998 For older changes see ChangeLog-2017.
14004 version-control: never