1 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
3 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
5 2018-09-26 Tom Tromey <tom@tromey.com>
7 * valops.c (auto_abandon): Remove dead code.
9 2018-09-26 Tom Tromey <tom@tromey.com>
11 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
13 2018-09-24 Tom Tromey <tom@tromey.com>
15 * common/pathstuff.c (get_standard_cache_dir): Make
16 "xdg_cache_home" and "home" const.
17 * top.c (init_history): Make "tmpenv" const.
18 * main.c (get_init_files): Make "homedir" const.
20 2018-09-23 Tom Tromey <tom@tromey.com>
23 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
25 2018-09-23 Tom Tromey <tom@tromey.com>
27 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
28 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
29 * python/python-internal.h (gdbpy_handle_exception): Declare.
30 * python/py-utils.c (gdbpy_handle_exception): New function.
32 2018-09-23 Tom Tromey <tom@tromey.com>
35 * python/py-type.c (typy_template_argument): Check for negative
38 2018-09-23 Tom Tromey <tom@tromey.com>
41 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
43 2018-09-23 Tom Tromey <tom@tromey.com>
46 * python/py-value.c (valpy_int): Allow conversion from pointer
49 2018-09-23 Tom Tromey <tom@tromey.com>
52 * python/py-value.c (valpy_int): Respect type sign.
54 2018-09-23 Tom Tromey <tom@tromey.com>
57 * python/py-value.c (valpy_float): Allow conversions from int or
59 (valpy_int, valpy_long): Allow conversions from float.
61 2018-09-23 Tom Tromey <tom@tromey.com>
63 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
64 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
66 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
68 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
70 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
72 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
74 * windows-nat.c (windows_nat_target::wait): Remove a spurious
75 target_terminal::ours().
77 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
79 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
82 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
84 * breakpoint.c (update_inserted_breakpoint_locations): Remove
87 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
89 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
91 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
92 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
93 * sol-thread.c (ps_pdmodel): Don't guard definition.
95 * procfs.c: Fix formatting.
97 * procfs.c (sysset_t_alloc): Remove.
98 (create_procinfo): Use XNEW instead of sysset_t_alloc.
99 (procfs_debug_inferior): Likewise.
100 (procfs_set_exec_trap): Likewise.
101 (proc_set_traced_sysentry): Don't allocate argp dynamically.
102 (proc_set_traced_sysexit): Likewise.
104 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
105 (dead_procinfo): Likewise.
106 (proc_warn): Likewise.
107 (proc_error): Likewise.
108 (proc_get_LDT_entry): Likewise.
109 (do_attach): Likewise.
110 (procfs_target::pid_to_str): Likewise.
111 (iterate_over_mappings): Likewise.
113 * procfs.c (create_procinfo): Fix ARI warning.
114 (proc_get_status): Likewise.
115 (proc_stop_process): Likewise.
116 (proc_run_process): Likewise.
117 (proc_kill): Likewise.
118 (proc_get_LDT_entry): Likewise.
119 (procfs_find_LDT_entry): Likewise.
120 (proc_update_threads): Likewise.
121 (proc_iterate_over_threads): Likewise.
122 (do_attach): Likewise.
123 (procfs_xfer_memory): Likewise.
124 (invalidate_cache): Likewise.
125 (procfs_target::resume): Likewise.
126 (procfs_init_inferior): Likewise.
127 (procfs_set_exec_trap): Likewise.
128 (procfs_target::thread_alive): Likewise.
129 (procfs_target::pid_to_exec_file): Likewise.
130 (iterate_over_mappings): Likewise.
131 (procfs_target::make_corefile_notes): Likewise.
132 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
134 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
135 (procfs_find_LDT_entry): Likewise.
136 * sol-thread.c (ps_lgetLDT): Likewise.
138 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
141 * procfs.c (procfs_target): Declare pid_to_exec_file.
142 (procfs_target::pid_to_exec_file): New.
144 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
146 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
148 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
149 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
151 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
154 (supply_fpregset, fill_fpregset): Move ...
155 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
156 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
157 Remove references to ioctl-based procfs.
159 Remove PR_MODEL_NATIVE guards.
160 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
161 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
163 2018-09-19 Xavier Roirand <roirand@adacore.com>
166 * solib-darwin.c (darwin_get_dyld_bfd): New function.
167 (darwin_solib_get_all_image_info_addr_at_init): Update call.
168 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
170 2018-09-19 John Baldwin <jhb@FreeBSD.org>
172 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
173 (fbsd_print_sockaddr_in6): Likewise.
175 2018-09-19 Richard Bunt <richard.bunt@arm.com>
176 Chris January <chris.january@arm.com>
178 * eval.c (skip_undetermined_arglist): Skip argument list helper.
179 (evaluate_subexp_standard): Return a dummy type when
180 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
181 OP_F77_UNDETERMINED_ARGLIST case.
182 * expression.h (enum noside): Update comment.
184 2018-09-19 George Vasick <george.vasick@oracle.com>
186 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
188 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
189 April Chin <april.chin@oracle.com>
190 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
192 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
194 (create_procinfo): Print pids in /proc without leading zeros.
196 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
198 * nios2-tdep.c (nios2_gcc_target_options): New.
199 (nios2_gdb_arch_init): Install new hook.
201 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
203 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
205 * update-gnulib.sh: Apply patch.
206 * configure: Re-generate.
208 2018-09-18 John Baldwin <jhb@FreeBSD.org>
210 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
211 description. Make "info proc" command descriptions more
214 2018-09-18 John Baldwin <jhb@FreeBSD.org>
216 * NEWS: Mention 'info proc files' command.
218 2018-09-18 John Baldwin <jhb@FreeBSD.org>
220 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
221 descriptors for IP_FILES and IP_ALL.
223 2018-09-18 John Baldwin <jhb@FreeBSD.org>
225 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
226 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
227 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
228 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
229 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
230 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
231 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
232 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
233 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
234 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
235 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
236 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
237 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
238 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
239 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
240 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
241 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
242 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
243 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
244 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
245 (struct fbsd_sockaddr_un): New types.
246 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
247 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
248 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
249 (fbsd_core_info_proc_files): New functions.
250 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
252 * fbsd-tdep.h (fbsd_info_proc_files_header)
253 (fbsd_info_proc_files_entry): New.
255 2018-09-18 John Baldwin <jhb@FreeBSD.org>
257 * defs.h (enum info_proc_what) [IP_FILES]: New value.
258 * infcmd.c (info_proc_cmd_files): New function.
259 (_initialize_infcmd): Register 'info proc files' command.
261 2018-09-18 John Baldwin <jhb@FreeBSD.org>
263 * gnulib/aclocal-m4-deps.mk: Re-generate.
264 * gnulib/aclocal.m4: Re-generate.
265 * gnulib/config.in: Re-generate.
266 * gnulib/configure: Re-generate.
267 * gnulib/import/Makefile.am: Re-generate.
268 * gnulib/import/Makefile.in: Re-generate.
269 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
270 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
271 * gnulib/import/arpa_inet.in.h: New file.
272 * gnulib/import/inet_ntop.c: New file.
273 * gnulib/import/m4/arpa_inet_h.m4: New file.
274 * gnulib/import/m4/inet_ntop.m4: New file.
275 * gnulib/import/m4/netinet_in_h.m4: New file.
276 * gnulib/import/m4/socklen.m4: New file.
277 * gnulib/import/m4/sockpfaf.m4: New file.
278 * gnulib/import/m4/stdalign.m4: New file.
279 * gnulib/import/m4/sys_uio_h.m4: New file.
280 * gnulib/import/netinet_in.in.h: New file.
281 * gnulib/import/stdalign.in.h: New file.
282 * gnulib/import/sys_socket.c: New file.
283 * gnulib/import/sys_socket.in.h: New file.
284 * gnulib/import/sys_uio.in.h: New file.
285 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
288 2018-09-18 John Baldwin <jhb@FreeBSD.org>
290 * gnulib/aclocal-m4-deps.mk: New file.
291 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
294 2018-09-18 John Baldwin <jhb@FreeBSD.org>
296 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
299 2018-09-18 Tom Tromey <tom@tromey.com>
301 * compile/compile-object-load.c (struct
302 link_hash_table_cleanup_data): Add constructor and destructor.
303 Use DISABLE_COPY_AND_ASSIGN.
304 (~link_hash_table_cleanup_data): Rename from
305 link_hash_table_free. Now a destructor.
306 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
308 2018-09-18 Tom Tromey <tom@tromey.com>
310 * compile/compile-object-run.c (do_module_cleanup): Use delete.
311 * compile/compile-object-load.c (struct munmap_list): Move to
313 (munmap_list::add): Rename from munmap_list_add; rewrite.
314 (munmap_list::~munmap_list): Rename from munmap_list_free.
315 (munmap_listp_free_cleanup): Remove.
316 (compile_object_load): Update.
317 * compile/compile-object-load.h (struct munmap_list): Move from
318 compile-object-load.c. Rewrite.
320 2018-09-18 Alan Hayward <alan.hayward@arm.com>
322 * aarch64-tdep.c (pass_in_v): Use register size.
323 (aarch64_extract_return_value): Likewise.
324 (aarch64_store_return_value): Likewise.
326 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
331 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
333 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
336 2018-09-17 Tom Tromey <tom@tromey.com>
339 * configure: Rebuild.
340 * configure.ac: Conditionally use -DNDEBUG for Python.
342 2018-09-17 Tom Tromey <tom@tromey.com>
344 * configure: Rebuild.
345 * configure.ac: Use gmp as a library dependency when checking for
348 2018-09-17 Pedro Alves <palves@redhat.com>
350 * python/py-inferior.c (find_inferior_object): Delete.
352 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
354 * compile/compile-cplus-types.c
355 (compile_cplus_instance::enter_scope): Don't use new_scope after
358 2018-09-17 Tom Tromey <tom@tromey.com>
360 * common/pathstuff.c (get_standard_cache_dir): Use
361 ~/Library/Caches on macOS.
362 * common/pathstuff.h (get_standard_cache_dir): Update comment.
364 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
367 * breakpoint.c (commands_cmd_element): New.
368 (_initialize_breakpoint): Assign commands_cmd_element.
369 * breakpoint.h (commands_cmd_element): New.
370 * cli/cli-script.c (while_cmd_element, if_command,
371 define_cmd_element): New.
372 (command_name_equals): Remove.
373 (process_next_line): Compare commands by pointer, not by name.
374 (_initialize_cli_script): Assign the various cmd_list_element
376 * compile/compile.c (compile_cmd_element): New.
377 (_initialize_compile): Assign compile_cmd_element.
378 * compile/compile.h (compile_cmd_element): New.
379 * guile/guile.c (guile_cmd_element): New.
380 (install_gdb_commands): Assign guile_cmd_element.
381 * guile/guile.h (guile_cmd_element): New.
382 * python/python.c (python_cmd_element): New.
383 (_initialize_python): Assign python_cmd_element.
384 * python/python.h (python_cmd_element): New.
385 * tracepoint.c (while_stepping_cmd_element): New.
386 (_initialize_tracepoint): Assign while_stepping_cmd_element.
387 * tracepoint.h (while_stepping_cmd_element): New.
389 2018-09-17 Tom Tromey <tom@tromey.com>
391 * infrun.c (save_infcall_suspend_state): Return
392 infcall_suspend_state_up.
393 (save_infcall_control_state): Return infcall_control_state_up.
394 * inferior.h (save_infcall_suspend_state)
395 (save_infcall_control_state): Declare later. Return unique
398 2018-09-17 Tom Tromey <tom@tromey.com>
400 * infrun.c (struct stop_context): Declare constructor,
401 destructor, "changed" method.
402 (stop_context::stop_context): Rename from save_stop_context.
403 (stop_context::~stop_context): Rename from
404 release_stop_context_cleanup.
405 (normal_stop): Update.
406 (stop_context::changed): Rename from stop_context_changed. Return
409 2018-09-17 Tom Tromey <tom@tromey.com>
411 * inferior.h (struct infcall_suspend_state_deleter): New.
412 (infcall_suspend_state_up): New typedef.
413 (struct infcall_control_state_deleter): New.
414 (infcall_control_state_up): New typedef.
415 (make_cleanup_restore_infcall_suspend_state)
416 (make_cleanup_restore_infcall_control_state): Don't declare.
417 * infcall.c (call_function_by_hand_dummy): Update.
418 * infrun.c (do_restore_infcall_suspend_state_cleanup)
419 (make_cleanup_restore_infcall_suspend_state): Remove.
420 (do_restore_infcall_control_state_cleanup)
421 (make_cleanup_restore_infcall_control_state): Remove.
423 2018-09-17 Tom Tromey <tom@tromey.com>
425 * gdbthread.h (struct thread_control_state): Add initializer.
426 (class thread_info) <control>: Remove initializer.
427 * inferior.h (struct inferior_control_state): Add initializer.
428 (class inferior) <control>: Remove initializer.
429 (exit_inferior_1): Update.
430 * infrun.c (struct infcall_control_state): Add constructors.
431 (save_infcall_control_state): Use new.
432 (restore_infcall_control_state, discard_infcall_control_state):
435 2018-09-17 Tom Tromey <tom@tromey.com>
437 * infrun.c (struct infcall_suspend_state) <registers>: Now a
439 <siginfo_data>: Now a unique_xmalloc_ptr.
440 (save_infcall_suspend_state, restore_infcall_suspend_state)
441 (discard_infcall_suspend_state)
442 (get_infcall_suspend_state_regcache): Update.
444 2018-09-17 Tom Tromey <tom@tromey.com>
446 * gdbthread.h (struct thread_suspend_state): Add initializers.
447 (class thread_info) <suspend>: Remove initializer.
448 * infrun.c (struct infcall_suspend_state): Add initializers.
449 (save_infcall_suspend_state): Use new.
450 (discard_infcall_suspend_state): Use delete.
452 2018-09-16 Tom Tromey <tom@tromey.com>
454 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
456 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
457 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
458 (py_varobj_iter_new): Likewise.
459 (py_varobj_get_iterator): Use gdbpy_ref.
461 2018-09-16 Tom Tromey <tom@tromey.com>
463 * python/py-threadevent.c (py_get_event_thread): Simplify.
464 * python/py-inferior.c (infpy_thread_from_thread_handle):
465 Return immediately after calling thread_to_thread_object. Use
467 (thread_to_thread_object): Set the exception on a NULL return.
469 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
471 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
473 2018-09-16 Tom Tromey <tom@tromey.com>
475 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
478 2018-09-16 Tom Tromey <tom@tromey.com>
480 * python/python-internal.h (thread_to_thread_object): Change
482 * python/py-inferior.c (thread_to_thread_object): Return a new
484 (infpy_thread_from_thread_handle): Update.
485 * python/py-infthread.c (gdbpy_selected_thread): Update.
486 * python/py-stopevent.c (create_stop_event_object): Update.
487 * python/py-threadevent.c (py_get_event_thread): Return a new
489 (py_get_event_thread): Update.
490 * python/py-event.h (py_get_event_thread): Change return type.
491 * python/py-continueevent.c (create_continue_event_object):
494 2018-09-16 Tom Tromey <tom@tromey.com>
496 * python/py-progspace.c (pspy_get_objfiles): Update.
497 * python/python-internal.h (objfile_to_objfile_object): Change
499 * python/py-newobjfileevent.c (create_new_objfile_event_object):
501 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
503 * python/python.c (gdbpy_get_current_objfile): Update.
504 (gdbpy_objfiles): Update.
505 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
507 (objfile_to_objfile_object): Return a new reference.
508 * python/py-symtab.c (stpy_get_objfile): Update.
509 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
512 2018-09-16 Tom Tromey <tom@tromey.com>
514 * python/py-inferior.c (infpy_get_progspace): Update.
515 * python/python-internal.h (pspace_to_pspace_object): Change
517 * python/py-newobjfileevent.c
518 (create_clear_objfiles_event_object): Update.
519 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
521 * python/python.c (gdbpy_get_current_progspace): Update.
522 (gdbpy_progspaces): Update.
523 * python/py-progspace.c (pspace_to_pspace_object): Return a new
525 * python/py-objfile.c (objfpy_get_progspace): Update.
526 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
529 2018-09-16 Tom Tromey <tom@tromey.com>
531 * python/lib/gdb/__init__.py (current_progspace, objfiles)
532 (solib_name, block_for_pc, find_pc_line): New functions.
533 (execute_unwinders): Update.
534 * python/py-block.c (gdbpy_block_for_pc): Remove.
535 * python/py-inferior.c (infpy_get_progspace): New function.
536 (inferior_object_getset) <progspace>: Add.
537 * python/py-progspace.c (pspy_objfiles): Rewrite.
538 (pspy_solib_name, pspy_block_for_pc)
539 (pspy_find_pc_line, pspy_is_valid): New functions.
540 (progspace_object_methods): Add entries for solib_name,
541 block_for_pc, find_pc_line, is_valid.
542 * python/python-internal.h (gdbpy_block_for_pc)
543 (build_objfiles_list): Don't declare.
544 * python/python.c: Don't include solib.h.
545 (gdbpy_solib_name, gdbpy_find_pc_line)
546 (gdbpy_get_current_progspace, build_objfiles_list)
547 (gdbpy_objfiles): Remove.
548 (GdbMethods) <current_progspace, objfiles, block_for_pc,
549 solib_name, find_pc_line>: Remove entries.
551 2018-09-16 Tom Tromey <tom@tromey.com>
553 * top.c (new_ui_command): Use GNU style for metasyntactic
555 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
557 * maint.c (maintenance_translate_address): Remove "<>" around
559 * interps.c (interpreter_exec_cmd): Use GNU style for
560 metasyntactic variables.
561 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
562 metasyntactic variables.
563 * tracepoint.c (tfind_range_command): Use GNU style for
564 metasyntactic variables.
565 (tfind_outside_command): Likewise.
566 (_initialize_tracepoint): Likewise.
567 * remote.c (extended_remote_target::create_inferior): Use GNU
568 style for metasyntactic variables.
569 * sparc64-tdep.c (adi_examine_command): Use GNU style for
570 metasyntactic variables.
571 (adi_assign_command): Likewise.
573 2018-09-16 Tom Tromey <tom@tromey.com>
575 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
576 metasyntactic variables. Print message if no disassembler options
579 2018-09-15 Tom Tromey <tom@tromey.com>
581 * infcmd.c (get_inferior_args): Return const char *.
582 * inferior.h (get_inferior_args): Return type now const.
583 * linux-tdep.c (linux_fill_prpsinfo): Update.
584 * procfs.c (procfs_target::make_corefile_notes): Update.
586 2018-09-07 Tom Tromey <tom@tromey.com>
588 * python/python.c (execute_gdb_command): Call bpstat_do_actions
591 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
593 * nios2-tdep.c (nios2_type_align): New.
594 (nios2_gdb_arch_init): Install type_align hook.
596 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
598 * eval.c (fake_method::fake_method): Call xzalloc directly for a
599 type that is neither object file owned, nor gdbarch owned.
600 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
602 (alloc_type_instance): Allocate non-objfile owned types on the
604 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
605 using TYPE_ALLOC to ensure memory is allocated on the correct
607 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
608 obstack, or the gdbarch obstack.
609 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
611 2018-09-14 Tom Tromey <tom@tromey.com>
613 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
616 2018-09-14 Tom Tromey <tom@tromey.com>
618 * nat/fork-inferior.c (get_startup_shell): Remove "static".
620 2018-09-13 Tom Tromey <tom@tromey.com>
622 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
625 2018-09-13 Tom Tromey <tom@tromey.com>
627 * exec.c (try_open_exec_file): Use std::string.
629 2018-09-13 Tom Tromey <tom@tromey.com>
631 * utils.h (gdb_bfd_errmsg): Return std::string.
632 * exec.c (exec_file_attach): Update.
633 * compile/compile-object-load.c (compile_object_load): Update.
634 * utils.c (gdb_bfd_errmsg): Return std::string.
636 2018-09-13 Tom Tromey <tom@tromey.com>
638 * procfs.c (struct procinfo_deleter): New.
639 (procinfo_up): New typedef.
640 (do_destroy_procinfo_cleanup): Remove.
641 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
643 2018-09-13 Tom Tromey <tom@tromey.com>
645 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
647 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
648 2018-09-13 Tom Tromey <tom@tromey.com>
650 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
651 (pspy_get_objfiles): New function.
652 (progspace_object_methods): New.
653 (pspace_object_type): Add tp_methods callback.
654 * python/python-internal.h (build_objfiles_list): New
656 * python/python.c (build_objfiles_list): New function.
657 (gdbpy_objfiles): Implement using build_objfiles_list.
658 * NEWS: Mention the Progspace.objfiles method.
660 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
662 * python/py-inferior.c (infpy_get_progspace): New function.
663 (inferior_object_getset): Add progspace property.
664 * NEWS: Mention the new property.
666 2018-09-13 Tom Tromey <tom@tromey.com>
669 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
671 2018-09-13 Tom Tromey <tom@tromey.com>
674 * rust-lang.c (rust_enum_variant): Now static.
675 (rust_empty_enum_p): New function.
676 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
679 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
681 * python/py-inferior.c (infpy_repr): New.
682 (inferior_object_type): Register infpy_repr.
683 * python/py-objfile.c (objfpy_repr): New.
684 (objfile_object_type): Register objfpy_repr.
686 2018-09-12 John Baldwin <jhb@FreeBSD.org>
688 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
690 2018-09-12 John Baldwin <jhb@FreeBSD.org>
692 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
695 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
697 * common/common-utils.c: Don't include '<sys/stat.h>'.
698 (is_regular_file): Move to...
699 * common/filestuff.c (is_regular_file): ... here.
700 * common/common-utils.h (is_regular_file): Move to...
701 * common/filestuff.h (is_regular_file): ... here.
703 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
705 * skip.c (debug_skip): New variable.
706 (skiplist_entry::do_skip_file_p): Add debug output.
707 (skiplist_entry::do_skip_gfile_p): Likewise.
708 (skiplist_entry::skip_function_p): Likewise.
709 (_initialize_step_skip): Create debug command.
710 * NEWS: Mention set/show debug skip.
712 2018-09-11 Xavier Roirand <roirand@adacore.com>
714 * darwin-nat.c (should_disable_startup_with_shell):
716 (darwin_nat_target::create_inferior): Add call.
718 2018-09-11 Xavier Roirand <roirand@adacore.com>
720 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
721 inf_port, msg_state>: Initialize.
722 (struct darwin_thread_info) <signaled, single_step>: Change
724 (struct darwin_thread_info) <event>: Initialize.
726 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
730 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
733 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
736 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
740 * gnulib/aclocal.m4: Regenerate.
741 * gnulib/config.in: Regenerate.
742 * gnulib/configure: Regenerate.
743 * gnulib/import/Makefile.am: Update.
744 * gnulib/import/Makefile.in: Update.
745 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
746 * gnulib/import/_Noreturn.h: ... this.
747 * gnulib/import/alloca.in.h: Update.
748 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
749 * gnulib/import/arg-nonnull.h: ... this.
750 * gnulib/import/assure.h: Update.
751 * gnulib/import/at-func.c: Update.
752 * gnulib/import/basename-lgpl.c: Update.
753 * gnulib/import/extra/snippet/c++defs.h: Rename to...
754 * gnulib/import/c++defs.h: ... this.
755 * gnulib/import/canonicalize-lgpl.c: Update.
756 * gnulib/import/cdefs.h: Update.
757 * gnulib/import/chdir-long.c: Update.
758 * gnulib/import/chdir-long.h: Update.
759 * gnulib/import/cloexec.c: Update.
760 * gnulib/import/cloexec.h: Update.
761 * gnulib/import/close.c: Update.
762 * gnulib/import/closedir.c: Update.
763 * gnulib/import/config.charset: Update.
764 * gnulib/import/dirent-private.h: Update.
765 * gnulib/import/dirent.in.h: Update.
766 * gnulib/import/dirfd.c: Update.
767 * gnulib/import/dirname-lgpl.c: Update.
768 * gnulib/import/dirname.h: Update.
769 * gnulib/import/dosname.h: Update.
770 * gnulib/import/dup-safer-flag.c: Update.
771 * gnulib/import/dup-safer.c: Update.
772 * gnulib/import/dup.c: Update.
773 * gnulib/import/dup2.c: Update.
774 * gnulib/import/errno.in.h: Update.
775 * gnulib/import/error.c: Update.
776 * gnulib/import/error.h: Update.
777 * gnulib/import/exitfail.c: Update.
778 * gnulib/import/exitfail.h: Update.
779 * gnulib/import/extra/update-copyright: Update.
780 * gnulib/import/fchdir.c: Update.
781 * gnulib/import/fcntl.c: Update.
782 * gnulib/import/fcntl.in.h: Update.
783 * gnulib/import/fd-hook.c: Update.
784 * gnulib/import/fd-hook.h: Update.
785 * gnulib/import/fd-safer-flag.c: Update.
786 * gnulib/import/fd-safer.c: Update.
787 * gnulib/import/fdopendir.c: Update.
788 * gnulib/import/filename.h: Update.
789 * gnulib/import/filenamecat-lgpl.c: Update.
790 * gnulib/import/filenamecat.h: Update.
791 * gnulib/import/flexmember.h: Update.
792 * gnulib/import/float+.h: Update.
793 * gnulib/import/float.c: Update.
794 * gnulib/import/float.in.h: Update.
795 * gnulib/import/fnmatch.c: Update.
796 * gnulib/import/fnmatch.in.h: Update.
797 * gnulib/import/fnmatch_loop.c: Update.
798 * gnulib/import/fpucw.h: Update.
799 * gnulib/import/frexp.c: Update.
800 * gnulib/import/frexpl.c: Update.
801 * gnulib/import/fstat.c: Update.
802 * gnulib/import/fstatat.c: Update.
803 * gnulib/import/getcwd-lgpl.c: Update.
804 * gnulib/import/getcwd.c: Update.
805 * gnulib/import/getdtablesize.c: Update.
806 * gnulib/import/getlogin_r.c: Update.
807 * gnulib/import/getprogname.c: Update.
808 * gnulib/import/getprogname.h: Update.
809 * gnulib/import/gettext.h: Update.
810 * gnulib/import/gettimeofday.c: Update.
811 * gnulib/import/glob-libc.h: Update.
812 * gnulib/import/glob.c: Update.
813 * gnulib/import/glob.in.h: Update.
814 * gnulib/import/glob_internal.h: Update.
815 * gnulib/import/glob_pattern_p.c: Update.
816 * gnulib/import/globfree.c: Update.
817 * gnulib/import/hard-locale.c: Update.
818 * gnulib/import/hard-locale.h: Update.
819 * gnulib/import/intprops.h: Update.
820 * gnulib/import/inttypes.in.h: Update.
821 * gnulib/import/isnan.c: Update.
822 * gnulib/import/isnand-nolibm.h: Update.
823 * gnulib/import/isnand.c: Update.
824 * gnulib/import/isnanl-nolibm.h: Update.
825 * gnulib/import/isnanl.c: Update.
826 * gnulib/import/itold.c: Update.
827 * gnulib/import/libc-config.h: Update.
828 * gnulib/import/limits.in.h: Update.
829 * gnulib/import/localcharset.c: Update.
830 * gnulib/import/localcharset.h: Update.
831 * gnulib/import/localtime-buffer.c: Update.
832 * gnulib/import/localtime-buffer.h: Update.
833 * gnulib/import/lstat.c: Update.
834 * gnulib/import/m4/00gnulib.m4: Update.
835 * gnulib/import/m4/__inline.m4: Update.
836 * gnulib/import/m4/absolute-header.m4: Update.
837 * gnulib/import/m4/alloca.m4: Update.
838 * gnulib/import/m4/builtin-expect.m4: Update.
839 * gnulib/import/m4/canonicalize.m4: Update.
840 * gnulib/import/m4/chdir-long.m4: Update.
841 * gnulib/import/m4/close.m4: Update.
842 * gnulib/import/m4/closedir.m4: Update.
843 * gnulib/import/m4/configmake.m4: Update.
844 * gnulib/import/m4/d-ino.m4: Update.
845 * gnulib/import/m4/d-type.m4: Update.
846 * gnulib/import/m4/dirent_h.m4: Update.
847 * gnulib/import/m4/dirfd.m4: Update.
848 * gnulib/import/m4/dirname.m4: Update.
849 * gnulib/import/m4/double-slash-root.m4: Update.
850 * gnulib/import/m4/dup.m4: Update.
851 * gnulib/import/m4/dup2.m4: Update.
852 * gnulib/import/m4/eealloc.m4: Update.
853 * gnulib/import/m4/environ.m4: Update.
854 * gnulib/import/m4/errno_h.m4: Update.
855 * gnulib/import/m4/error.m4: Update.
856 * gnulib/import/m4/exponentd.m4: Update.
857 * gnulib/import/m4/exponentl.m4: Update.
858 * gnulib/import/m4/extensions.m4: Update.
859 * gnulib/import/m4/extern-inline.m4: Update.
860 * gnulib/import/m4/fchdir.m4: Update.
861 * gnulib/import/m4/fcntl-o.m4: Update.
862 * gnulib/import/m4/fcntl.m4: Update.
863 * gnulib/import/m4/fcntl_h.m4: Update.
864 * gnulib/import/m4/fdopendir.m4: Update.
865 * gnulib/import/m4/filenamecat.m4: Update.
866 * gnulib/import/m4/flexmember.m4: Update.
867 * gnulib/import/m4/float_h.m4: Update.
868 * gnulib/import/m4/fnmatch.m4: Update.
869 * gnulib/import/m4/fnmatch_h.m4: Update.
870 * gnulib/import/m4/fpieee.m4: Update.
871 * gnulib/import/m4/frexp.m4: Update.
872 * gnulib/import/m4/frexpl.m4: Update.
873 * gnulib/import/m4/fstat.m4: Update.
874 * gnulib/import/m4/fstatat.m4: Update.
875 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
876 * gnulib/import/m4/getcwd-path-max.m4: Update.
877 * gnulib/import/m4/getcwd.m4: Update.
878 * gnulib/import/m4/getdtablesize.m4: Update.
879 * gnulib/import/m4/getlogin.m4: Update.
880 * gnulib/import/m4/getlogin_r.m4: Update.
881 * gnulib/import/m4/getpagesize.m4: Update.
882 * gnulib/import/m4/getprogname.m4: Update.
883 * gnulib/import/m4/gettimeofday.m4: Update.
884 * gnulib/import/m4/glibc21.m4: Update.
885 * gnulib/import/m4/glob.m4: Update.
886 * gnulib/import/m4/glob_h.m4: Update.
887 * gnulib/import/m4/gnulib-cache.m4: Update.
888 * gnulib/import/m4/gnulib-common.m4: Update.
889 * gnulib/import/m4/gnulib-comp.m4: Update.
890 * gnulib/import/m4/gnulib-tool.m4: Update.
891 * gnulib/import/m4/hard-locale.m4: Update.
892 * gnulib/import/m4/include_next.m4: Update.
893 * gnulib/import/m4/inttypes-pri.m4: Update.
894 * gnulib/import/m4/inttypes.m4: Update.
895 * gnulib/import/m4/isnand.m4: Update.
896 * gnulib/import/m4/isnanl.m4: Update.
897 * gnulib/import/m4/largefile.m4: Update.
898 * gnulib/import/m4/limits-h.m4: Update.
899 * gnulib/import/m4/localcharset.m4: Update.
900 * gnulib/import/m4/locale-fr.m4: Update.
901 * gnulib/import/m4/locale-ja.m4: Update.
902 * gnulib/import/m4/locale-zh.m4: Update.
903 * gnulib/import/m4/localtime-buffer.m4: Update.
904 * gnulib/import/m4/longlong.m4: Update.
905 * gnulib/import/m4/lstat.m4: Update.
906 * gnulib/import/m4/malloc.m4: Update.
907 * gnulib/import/m4/malloca.m4: Update.
908 * gnulib/import/m4/math_h.m4: Update.
909 * gnulib/import/m4/mbrtowc.m4: Update.
910 * gnulib/import/m4/mbsinit.m4: Update.
911 * gnulib/import/m4/mbsrtowcs.m4: Update.
912 * gnulib/import/m4/mbstate_t.m4: Update.
913 * gnulib/import/m4/memchr.m4: Update.
914 * gnulib/import/m4/memmem.m4: Update.
915 * gnulib/import/m4/mempcpy.m4: Update.
916 * gnulib/import/m4/memrchr.m4: Update.
917 * gnulib/import/m4/mkdir.m4: Update.
918 * gnulib/import/m4/mkstemp.m4: Update.
919 * gnulib/import/m4/mmap-anon.m4: Update.
920 * gnulib/import/m4/mode_t.m4: Update.
921 * gnulib/import/m4/msvc-inval.m4: Update.
922 * gnulib/import/m4/msvc-nothrow.m4: Update.
923 * gnulib/import/m4/multiarch.m4: Update.
924 * gnulib/import/m4/nocrash.m4: Update.
925 * gnulib/import/m4/off_t.m4: Update.
926 * gnulib/import/m4/onceonly.m4: Update.
927 * gnulib/import/m4/open-cloexec.m4: Update.
928 * gnulib/import/m4/open.m4: Update.
929 * gnulib/import/m4/openat.m4: Update.
930 * gnulib/import/m4/opendir.m4: Update.
931 * gnulib/import/m4/pathmax.m4: Update.
932 * gnulib/import/m4/rawmemchr.m4: Update.
933 * gnulib/import/m4/readdir.m4: Update.
934 * gnulib/import/m4/readlink.m4: Update.
935 * gnulib/import/m4/realloc.m4: Update.
936 * gnulib/import/m4/rename.m4: Update.
937 * gnulib/import/m4/rewinddir.m4: Update.
938 * gnulib/import/m4/rmdir.m4: Update.
939 * gnulib/import/m4/save-cwd.m4: Update.
940 * gnulib/import/m4/secure_getenv.m4: Update.
941 * gnulib/import/m4/setenv.m4: Update.
942 * gnulib/import/m4/signal_h.m4: Update.
943 * gnulib/import/m4/ssize_t.m4: Update.
944 * gnulib/import/m4/stat-time.m4: Update.
945 * gnulib/import/m4/stat.m4: Update.
946 * gnulib/import/m4/std-gnu11.m4: Update.
947 * gnulib/import/m4/stdbool.m4: Update.
948 * gnulib/import/m4/stddef_h.m4: Update.
949 * gnulib/import/m4/stdint.m4: Update.
950 * gnulib/import/m4/stdio_h.m4: Update.
951 * gnulib/import/m4/stdlib_h.m4: Update.
952 * gnulib/import/m4/strchrnul.m4: Update.
953 * gnulib/import/m4/strdup.m4: Update.
954 * gnulib/import/m4/strerror.m4: Update.
955 * gnulib/import/m4/string_h.m4: Update.
956 * gnulib/import/m4/strstr.m4: Update.
957 * gnulib/import/m4/strtok_r.m4: Update.
958 * gnulib/import/m4/sys_socket_h.m4: Update.
959 * gnulib/import/m4/sys_stat_h.m4: Update.
960 * gnulib/import/m4/sys_time_h.m4: Update.
961 * gnulib/import/m4/sys_types_h.m4: Update.
962 * gnulib/import/m4/tempname.m4: Update.
963 * gnulib/import/m4/time_h.m4: Update.
964 * gnulib/import/m4/unistd-safer.m4: Update.
965 * gnulib/import/m4/unistd_h.m4: Update.
966 * gnulib/import/m4/warn-on-use.m4: Update.
967 * gnulib/import/m4/wchar_h.m4: Update.
968 * gnulib/import/m4/wchar_t.m4: Update.
969 * gnulib/import/m4/wctype_h.m4: Update.
970 * gnulib/import/m4/wint_t.m4: Update.
971 * gnulib/import/malloc.c: Update.
972 * gnulib/import/malloc/scratch_buffer.h: Update.
973 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
974 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
975 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
976 * gnulib/import/malloca.c: Update.
977 * gnulib/import/malloca.h: Update.
978 * gnulib/import/malloca.valgrind: Update.
979 * gnulib/import/math.in.h: Update.
980 * gnulib/import/mbrtowc.c: Update.
981 * gnulib/import/mbsinit.c: Update.
982 * gnulib/import/mbsrtowcs-impl.h: Update.
983 * gnulib/import/mbsrtowcs-state.c: Update.
984 * gnulib/import/mbsrtowcs.c: Update.
985 * gnulib/import/memchr.c: Update.
986 * gnulib/import/memmem.c: Update.
987 * gnulib/import/mempcpy.c: Update.
988 * gnulib/import/memrchr.c: Update.
989 * gnulib/import/mkdir.c: Update.
990 * gnulib/import/mkstemp.c: Update.
991 * gnulib/import/msvc-inval.c: Update.
992 * gnulib/import/msvc-inval.h: Update.
993 * gnulib/import/msvc-nothrow.c: Update.
994 * gnulib/import/msvc-nothrow.h: Update.
995 * gnulib/import/open.c: Update.
996 * gnulib/import/openat-die.c: Update.
997 * gnulib/import/openat-priv.h: Update.
998 * gnulib/import/openat-proc.c: Update.
999 * gnulib/import/openat.c: Update.
1000 * gnulib/import/openat.h: Update.
1001 * gnulib/import/opendir.c: Update.
1002 * gnulib/import/pathmax.h: Update.
1003 * gnulib/import/pipe-safer.c: Update.
1004 * gnulib/import/rawmemchr.c: Update.
1005 * gnulib/import/readdir.c: Update.
1006 * gnulib/import/readlink.c: Update.
1007 * gnulib/import/realloc.c: Update.
1008 * gnulib/import/ref-add.sin: Update.
1009 * gnulib/import/ref-del.sin: Update.
1010 * gnulib/import/rename.c: Update.
1011 * gnulib/import/rewinddir.c: Update.
1012 * gnulib/import/rmdir.c: Update.
1013 * gnulib/import/same-inode.h: Update.
1014 * gnulib/import/save-cwd.c: Update.
1015 * gnulib/import/save-cwd.h: Update.
1016 * gnulib/import/scratch_buffer.h: Update.
1017 * gnulib/import/secure_getenv.c: Update.
1018 * gnulib/import/setenv.c: Update.
1019 * gnulib/import/signal.in.h: Update.
1020 * gnulib/import/stat-time.c: Update.
1021 * gnulib/import/stat-time.h: Update.
1022 * gnulib/import/stat-w32.c: Update.
1023 * gnulib/import/stat-w32.h: Update.
1024 * gnulib/import/stat.c: Update.
1025 * gnulib/import/stdbool.in.h: Update.
1026 * gnulib/import/stddef.in.h: Update.
1027 * gnulib/import/stdint.in.h: Update.
1028 * gnulib/import/stdio.in.h: Update.
1029 * gnulib/import/stdlib.in.h: Update.
1030 * gnulib/import/str-two-way.h: Update.
1031 * gnulib/import/strchrnul.c: Update.
1032 * gnulib/import/strdup.c: Update.
1033 * gnulib/import/streq.h: Update.
1034 * gnulib/import/strerror-override.c: Update.
1035 * gnulib/import/strerror-override.h: Update.
1036 * gnulib/import/strerror.c: Update.
1037 * gnulib/import/string.in.h: Update.
1038 * gnulib/import/stripslash.c: Update.
1039 * gnulib/import/strnlen1.c: Update.
1040 * gnulib/import/strnlen1.h: Update.
1041 * gnulib/import/strstr.c: Update.
1042 * gnulib/import/strtok_r.c: Update.
1043 * gnulib/import/sys_stat.in.h: Update.
1044 * gnulib/import/sys_time.in.h: Update.
1045 * gnulib/import/sys_types.in.h: Update.
1046 * gnulib/import/tempname.c: Update.
1047 * gnulib/import/tempname.h: Update.
1048 * gnulib/import/time.in.h: Update.
1049 * gnulib/import/unistd--.h: Update.
1050 * gnulib/import/unistd-safer.h: Update.
1051 * gnulib/import/unistd.in.h: Update.
1052 * gnulib/import/unsetenv.c: Update.
1053 * gnulib/import/verify.h: Update.
1054 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1055 * gnulib/import/wchar.in.h: Update.
1056 * gnulib/import/wctype.in.h: Update.
1057 * gnulib/import/xalloc-oversized.h: Update.
1058 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1059 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1061 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1063 * record-btrace.c (get_thread_current_frame): Remove
1066 2018-09-10 Jerome Guitton <guitton@adacore.com>
1068 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1069 with check_tag to 1 if and only if the type is tagged and the
1070 component being searched cannot been found in the current
1071 view. Otherwise, always call ada_to_fixed_type with
1074 2018-09-10 Xavier Roirand <roirand@adacore.com>
1076 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1078 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1079 * ada-varobj.c (ada_varobj_get_number_of_children,
1080 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1082 2018-09-10 Xavier Roirand <roirand@adacore.com>
1084 * ada-valprint.c (ada_value_print): Use type instead of
1087 2018-09-10 Xavier Roirand <roirand@adacore.com>
1089 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1090 an array of access to unconstrained array.
1092 2018-09-10 Xavier Roirand <roirand@adacore.com>
1094 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1095 (ada_check_typedef): Use it.
1097 2018-09-10 Xavier Roirand <roirand@adacore.com>
1099 * ada-varobj.c (ada_varobj_describe_struct_child)
1100 (ada_varobj_describe_child): Handle union case like struct one.
1102 2018-09-10 Tom Tromey <tom@tromey.com>
1105 * python/python.c (_initialize_python): Make example in "python"
1106 help work in Python 3.
1108 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1110 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1111 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1112 $(EXEEXT) to the script, as it is not a program.
1114 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1116 * python/py-prettyprint.c (pretty_print_one_value): Return
1118 (print_string_repr): Adjust.
1119 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1120 * python/python-internal.h (apply_varobj_pretty_printer): Return
1122 * varobj.c (varobj_value_get_print_value): Adjust.
1124 2018-09-08 Tom Tromey <tom@tromey.com>
1127 * python/py-prettyprint.c (pretty_print_one_value): Check for
1130 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1132 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1133 replace_operator_with_call.
1135 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1137 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1139 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1141 * ada-typeprint.c (print_range): Print the bounds using TYPE
1142 rather than its TYPE_TARGET_TYPE.
1144 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1146 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1147 call to ada_to_fixed_value_create.
1149 2018-09-08 Jerome Guitton <guitton@adacore.com>
1151 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1153 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1155 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1158 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1160 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1161 Move update of loop variable "fi".
1163 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1165 * ada-lang.c (value_assign_to_component): In the case of
1166 big-endian targets, extract the bits of the given VAL
1167 using an src_offset of zero if container is not a scalar.
1169 2018-09-06 Simon Ser <contact@emersion.fr>
1172 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1173 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1174 * fbsd-tdep.c (fbsd_make_note_desc): New.
1175 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1176 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1177 * target.h (enum target_object) Add FreeBSD-specific
1178 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1180 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1182 * compile/compile-c.h (generate_c_for_variable_locations):
1183 Change reference to pointer.
1184 * compile/compile-c-support.c (compile_program) <compute>:
1186 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1187 (generate_c_for_for_one_variable): Likewise
1188 (generate_c_for_variable_locations): Likewise
1189 * compile/compile-c-types.c (compile_c_instance::convert_type):
1191 * compile/compile-cplus-symbols.c (convert_one_symbol):
1192 std::move the scope passed to enter_scope.
1193 * compile/compile-cplus-types.c
1194 (compile_cplus_instance::enter_scope): Make parameter
1196 (compile_cplus_instance::new_scope): Change reference to
1198 (compile_cplus_instance::convert_type): Likewise
1199 (compile_cplus_convert_typedef): std::move the scope passed to
1201 (compile_cplus_convert_struct_or_union): Likewise.
1202 (compile_cplus_convert_enum): Likewise.
1203 (compile_cplus_convert_namespace): Likewise.
1204 * compile/compile-cplus.h (compile_cplus_instance)
1205 <enter_scope>: Make parameter rvalue-reference.
1206 * compile/compile-internal.h (compile_instance)
1207 <get_cached_type>: Likewise
1208 * compile/compile-loc2c.c (push): Likewise
1212 (print_label): Likewise
1213 (pushf_register_address): Likewise
1214 (pushf_register): Likewise
1215 (do_compile_dwarf_expr_to_c): Likewise
1216 (compile_dwarf_expr_to_c): Likewise
1217 (compile_dwarf_bounds_to_c): Likewise
1218 * compile/compile.c (compile_instance::get_cached_type):
1220 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1221 (compile_dwarf_bounds_to_c): Likewise
1222 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1223 (dwarf2_compile_property_to_c): Likewise
1224 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1225 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1228 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1230 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1231 * tui/tui-data.c (init_content_element): Don't initialize it.
1233 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1235 * tui/tui-data.h (struct tui_win_info)
1236 <detail::opaque>: Remove.
1237 * tui/tui-data.c (init_win_info): Remove assignment.
1239 2018-09-05 Tom Tromey <tom@tromey.com>
1241 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1242 -Wformat-nonliteral.
1243 * target-float.c (host_float_ops<T>::to_string)
1244 (host_float_ops<T>::from_string): Use
1245 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1246 * configure: Rebuild.
1248 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1250 * printcmd.c (printf_c_string): Use
1251 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1252 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1254 2018-09-05 Tom Tromey <tom@tromey.com>
1256 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1258 2018-09-05 Tom de Vries <tdevries@suse.de>
1260 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1261 with resolve_abstract_p == true.
1262 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1263 defaulting to false. Propagate resolve_abstract_p to
1264 dwarf2_fetch_die_loc_sect_off.
1265 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1266 parameter, defaulting to false.
1267 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1268 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1270 * dwarf2read.h (struct die_info): Forward-declare.
1271 (die_info_ptr): New typedef.
1272 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1274 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1278 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1279 Pedro Alves <palves@redhat.com>
1281 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1282 "aclocal-m4-deps.mk". Include file here.
1283 $(srcdir)/aclocal.m4: Add "configure.ac".
1284 * gnulib/aclocal-m4-deps.mk: New file.
1285 * gnulib/update-gnulib.sh: Automatically update
1286 "aclocal-m4-deps.mk".
1288 2018-09-04 Tom Tromey <tom@tromey.com>
1290 * configure: Rebuild.
1291 * configure.ac: Remove multi-ice code.
1293 2018-09-04 Tom Tromey <tom@tromey.com>
1295 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1296 (ada-exp.o): Update.
1298 2018-09-04 Tom Tromey <tom@tromey.com>
1300 * Makefile.in (printcmd.o, target-float.o): Remove.
1301 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1303 2018-09-04 Tom Tromey <tom@tromey.com>
1305 * gnulib/Makefile.in: Remove obsolete comment.
1306 * Makefile.in: Remove obsolete comment.
1308 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1310 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1313 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1315 * riscv-tdep.c: Add 'prologue-value.h' include.
1316 (struct riscv_unwind_cache): New struct.
1317 (riscv_debug_unwinder): New global.
1318 (riscv_scan_prologue): Update arguments, capture register details
1320 (riscv_skip_prologue): Reformat arguments line, move end of
1321 prologue calculation into riscv_scan_prologue.
1322 (riscv_frame_cache): Update return type, create
1323 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1325 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1326 (riscv_frame_prev_register): Use the trad_frame within the
1328 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1331 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1333 * trad-frame.h (trad_frame_set_realreg): Declare.
1334 (trad_frame_set_addr): Declare.
1335 * trad-frame.c (trad_frame_set_realreg): Define new function.
1336 (trad_frame_set_addr): Define new function.
1337 (trad_frame_set_reg_realreg): Use new function.
1338 (trad_frame_set_reg_addr): Use new function.
1340 2018-09-01 Keith Seitz <keiths@redhat.com>
1342 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1343 pulongest instead of "%lld".
1344 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1347 2018-08-31 Tom Tromey <tom@tromey.com>
1349 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1352 2018-08-31 Pedro Alves <palves@redhat.com>
1354 * gdbarch.h: Regenerate.
1356 2018-08-31 Pedro Alves <palves@redhat.com>
1358 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1359 * target.h (Hardware watchpoint interfaces): Describe
1360 continuable/steppable/non-steppable watchpoints.
1361 * gdbarch.h, gdbarch.c: Regenerate.
1363 2018-08-31 Pedro Alves <palves@redhat.com>
1365 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1368 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1369 * target.h (target_ops::have_continuable_watchpoint): Delete.
1370 (target_have_continuable_watchpoint): Delete.
1371 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1372 * target-delegates.c: Regenerate.
1374 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1376 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1377 the files present in "gnulib/import/m4/".
1379 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1381 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1382 c.sw, c.swsp, and c.sdsp.
1384 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1386 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1387 (riscv_read_misa_reg): Don't cache value read into inferior data.
1388 (riscv_new_inferior_data): Delete.
1389 (riscv_inferior_data_cleanup): Delete.
1390 (riscv_inferior_data): Delete.
1391 (riscv_invalidate_inferior_data): Delete.
1392 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1394 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1396 * compile/compile-cplus-types.c
1397 (compile_cplus_instance::leave_scope): Take the address of scope
1399 (compile_cplus_instance::convert_qualified_base): Compare quals
1402 2018-08-30 Keith Seitz <keiths@redhat.com>
1404 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1405 Use "%s" and host_address_to_string instead of "%p" in printf.
1407 2018-08-29 Keith Seitz <keiths@redhat.com>
1409 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1410 and compile-cplus-types.c.
1411 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1412 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1413 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1415 * compile/compile-c-support.c: Include compile-cplus.h.
1416 (load_libcompile): Templatize.
1417 (get_compile_context): "New" function.
1418 (c_get_compile_context): Use get_compile_context.
1419 (cplus_get_compile_context): New function.
1420 (cplus_push_user_expression, cplus_pop_user_expression)
1421 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1422 (cplus_compute_program): Define new structs/functions.
1423 * compile/compile-cplus-symmbols.c: New file.
1424 * compile/compile-cplus-types.c: New file.
1425 * compile/compile-cplus.h: New file.
1426 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1428 * compile/compile-object-load.c (get_out_value_type): Use
1429 strncmp_iw when comparing symbol names.
1430 (compile_object_load): Add mst_bss and mst_data.
1431 * compile/compile.c (_initialize_compile): Remove
1432 -Wno-implicit-function-declaration from `compile_args'.
1433 * compile/gcc-cp-plugin.h: New file.
1434 * NEWS: Mention C++ compile support and new debug options.
1436 2018-08-29 Keith Seitz <keiths@redhat.com>
1438 * linespec.c (collect_info::add_symbol): Make virtual.
1439 (struct symbol_searcher_collect_info): New struct.
1440 (symbol_searcher::find_all_symbols): New method.
1441 * symtab.h (class symbol_searcher): New class.
1443 2018-08-29 Keith Seitz <keiths@redhat.com>
1445 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1446 Change to vector of block_symbol. Update all users.
1447 (struct collect_info) <symbols>: Likewise.
1448 (collect_info::add_symbol): Take block_symbol as argument.
1450 (decode_compound_collector) <m_symbols>: Change type to vector
1451 of block_symbol. Update all users.
1452 (decode_compound_collector::operator ()): Change parameter type
1454 (find_method, find_function_symbols, find_linespec_symbols)
1455 (find_label_symbols_in_block, find_label_symbols): Change symbol
1456 vectors to block_symbol vectors.
1457 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1460 2018-08-29 Keith Seitz <keiths@redhat.com>
1462 * linespec.c (symbolp): Remove typedef and VEC definitions.
1463 (bound_minimal_symbol_d): Likewise.
1465 2018-08-29 Keith Seitz <keiths@redhat.com>
1467 * linespec.c (decode_compound_collector::decode_compound_collector):
1468 Remove initialization for `m_symtabs'.
1469 (decode_compound_collector::release_symbols): Change return type
1470 to std::vector. Update all callers.
1471 (class decode_compound_collector) <m_symbols>: Change type to
1473 (lookup_prefix_sym): Change return type to std::vector. Update all
1475 (compare_symbols): Remove.
1476 (std_compare_symbols): Rename to `compare_symbols'.
1477 (find_method): Change `sym_classes' parameter to std::vector.
1478 Update all callers. Use std::sort to sort sym_classes.
1479 (find_linespec_symbols): Remove cleanup.
1481 2018-08-29 Keith Seitz <keiths@redhat.com>
1483 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1484 std::vector. Update all users.
1485 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1486 (struct collect_info) <minimal_symbols>: Likewise.
1487 (compare_msymbols): Return bool. Change parameters to const
1488 bound_minimal_symbol references.
1489 (find_method, find_function_symbols, find_linespec_symbols): Change
1490 `minsyms' parameter to std::vector. Update all callers.
1492 2018-08-29 Keith Seitz <keiths@redhat.com>
1494 * linespec.c (struct linespec) <label_symbols>: Change type to
1495 std::vector. Update all users.
1496 (find_label_symbols_in_block): Change `result' parameter to
1497 std::vector. Update all callers.
1498 (find_label_symbols): Return std::vector. Update all callers.
1500 2018-08-29 Keith Seitz <keiths@redhat.com>
1502 * linespec.c (struct linespec) <function_symbols>: Change type to
1503 std::vector. Update all users.
1504 (struct collect_info) <function_symbols>: Likewise.
1505 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1506 (std_compare_symbols): New function.
1507 (find_method, find_function_symbols, find_linespec_symbols)
1508 (find_label_symbols_in_block): Change `symbols' parameter to
1509 std::vector. Update all callers.
1510 (find_label_symbols): Likewise for `function_symbols' and
1513 2018-08-29 Keith Seitz <keiths@redhat.com>
1515 * linespec.c (symtab_vector_up): Define.
1516 (struct linespec) <file_symtabs>: Change type to std::vector *.
1518 (struct collect_info) <file_symtabs>: Likewise.
1519 (collect_symtabs_from_filename): Return symtab_vector_up.
1521 (decode_objc): Remove cleanup.
1522 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1523 (symtab_collector::release_symtabs): Return symtab_vector_up.
1525 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1527 (collect_symtabs_from_filename, symtabs_from_filename): Return
1528 symtab_vector_up. Update all callers.
1530 2018-08-29 Tom Tromey <tom@tromey.com>
1532 * csky-tdep.c (csky_analyze_prologue): Use
1533 core_addr_to_string_nz.
1535 2018-08-29 Tom Tromey <tom@tromey.com>
1537 * windows-nat.c (struct xlate_exception) <them>: Change type to
1539 (xlate): Fix formatting. Remove last entry.
1540 (struct xlate_exception, xlate): Comment out.
1541 (windows_nat_target::resume): Use ranged for.
1543 2018-08-29 Jim Wilson <jimw@sifive.com>
1545 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1546 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1548 (riscv_linux_nat_target::store_registers): Likewise.
1550 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1554 * gnulib/aclocal.m4: Regenerate.
1555 * gnulib/config.in: Regenerate.
1556 * gnulib/configure: Regenerate.
1557 * gnulib/import/Makefile.am: Update.
1558 * gnulib/import/Makefile.in: Update.
1559 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1560 * gnulib/import/_Noreturn.h: ... this.
1561 * gnulib/import/alloca.in.h: Update.
1562 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1563 * gnulib/import/arg-nonnull.h: ... this.
1564 * gnulib/import/assure.h: Update.
1565 * gnulib/import/at-func.c: Update.
1566 * gnulib/import/basename-lgpl.c: Update.
1567 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1568 * gnulib/import/c++defs.h: ... this.
1569 * gnulib/import/canonicalize-lgpl.c: Update.
1570 * gnulib/import/cdefs.h: Update.
1571 * gnulib/import/chdir-long.c: Update.
1572 * gnulib/import/chdir-long.h: Update.
1573 * gnulib/import/cloexec.c: Update.
1574 * gnulib/import/cloexec.h: Update.
1575 * gnulib/import/close.c: Update.
1576 * gnulib/import/closedir.c: Update.
1577 * gnulib/import/config.charset: Update.
1578 * gnulib/import/dirent-private.h: Update.
1579 * gnulib/import/dirent.in.h: Update.
1580 * gnulib/import/dirfd.c: Update.
1581 * gnulib/import/dirname-lgpl.c: Update.
1582 * gnulib/import/dirname.h: Update.
1583 * gnulib/import/dosname.h: Update.
1584 * gnulib/import/dup-safer-flag.c: Update.
1585 * gnulib/import/dup-safer.c: Update.
1586 * gnulib/import/dup.c: Update.
1587 * gnulib/import/dup2.c: Update.
1588 * gnulib/import/errno.in.h: Update.
1589 * gnulib/import/error.c: Update.
1590 * gnulib/import/error.h: Update.
1591 * gnulib/import/exitfail.c: Update.
1592 * gnulib/import/exitfail.h: Update.
1593 * gnulib/import/extra/update-copyright: Update.
1594 * gnulib/import/fchdir.c: Update.
1595 * gnulib/import/fcntl.c: Update.
1596 * gnulib/import/fcntl.in.h: Update.
1597 * gnulib/import/fd-hook.c: Update.
1598 * gnulib/import/fd-hook.h: Update.
1599 * gnulib/import/fd-safer-flag.c: Update.
1600 * gnulib/import/fd-safer.c: Update.
1601 * gnulib/import/fdopendir.c: Update.
1602 * gnulib/import/filename.h: Update.
1603 * gnulib/import/filenamecat-lgpl.c: Update.
1604 * gnulib/import/filenamecat.h: Update.
1605 * gnulib/import/flexmember.h: Update.
1606 * gnulib/import/float+.h: Update.
1607 * gnulib/import/float.c: Update.
1608 * gnulib/import/float.in.h: Update.
1609 * gnulib/import/fnmatch.c: Update.
1610 * gnulib/import/fnmatch.in.h: Update.
1611 * gnulib/import/fnmatch_loop.c: Update.
1612 * gnulib/import/fpucw.h: Update.
1613 * gnulib/import/frexp.c: Update.
1614 * gnulib/import/frexpl.c: Update.
1615 * gnulib/import/fstat.c: Update.
1616 * gnulib/import/fstatat.c: Update.
1617 * gnulib/import/getcwd-lgpl.c: Update.
1618 * gnulib/import/getcwd.c: Update.
1619 * gnulib/import/getdtablesize.c: Update.
1620 * gnulib/import/getlogin_r.c: Update.
1621 * gnulib/import/getprogname.c: Update.
1622 * gnulib/import/getprogname.h: Update.
1623 * gnulib/import/gettext.h: Update.
1624 * gnulib/import/gettimeofday.c: Update.
1625 * gnulib/import/glob-libc.h: Update.
1626 * gnulib/import/glob.c: Update.
1627 * gnulib/import/glob.in.h: Update.
1628 * gnulib/import/glob_internal.h: Update.
1629 * gnulib/import/glob_pattern_p.c: Update.
1630 * gnulib/import/globfree.c: Update.
1631 * gnulib/import/hard-locale.c: Update.
1632 * gnulib/import/hard-locale.h: Update.
1633 * gnulib/import/intprops.h: Update.
1634 * gnulib/import/inttypes.in.h: Update.
1635 * gnulib/import/isnan.c: Update.
1636 * gnulib/import/isnand-nolibm.h: Update.
1637 * gnulib/import/isnand.c: Update.
1638 * gnulib/import/isnanl-nolibm.h: Update.
1639 * gnulib/import/isnanl.c: Update.
1640 * gnulib/import/itold.c: Update.
1641 * gnulib/import/libc-config.h: Update.
1642 * gnulib/import/limits.in.h: Update.
1643 * gnulib/import/localcharset.c: Update.
1644 * gnulib/import/localcharset.h: Update.
1645 * gnulib/import/localtime-buffer.c: Update.
1646 * gnulib/import/localtime-buffer.h: Update.
1647 * gnulib/import/lstat.c: Update.
1648 * gnulib/import/m4/00gnulib.m4: Update.
1649 * gnulib/import/m4/__inline.m4: Update.
1650 * gnulib/import/m4/absolute-header.m4: Update.
1651 * gnulib/import/m4/alloca.m4: Update.
1652 * gnulib/import/m4/builtin-expect.m4: Update.
1653 * gnulib/import/m4/canonicalize.m4: Update.
1654 * gnulib/import/m4/chdir-long.m4: Update.
1655 * gnulib/import/m4/close.m4: Update.
1656 * gnulib/import/m4/closedir.m4: Update.
1657 * gnulib/import/m4/configmake.m4: Update.
1658 * gnulib/import/m4/d-ino.m4: Update.
1659 * gnulib/import/m4/d-type.m4: Update.
1660 * gnulib/import/m4/dirent_h.m4: Update.
1661 * gnulib/import/m4/dirfd.m4: Update.
1662 * gnulib/import/m4/dirname.m4: Update.
1663 * gnulib/import/m4/double-slash-root.m4: Update.
1664 * gnulib/import/m4/dup.m4: Update.
1665 * gnulib/import/m4/dup2.m4: Update.
1666 * gnulib/import/m4/eealloc.m4: Update.
1667 * gnulib/import/m4/environ.m4: Update.
1668 * gnulib/import/m4/errno_h.m4: Update.
1669 * gnulib/import/m4/error.m4: Update.
1670 * gnulib/import/m4/exponentd.m4: Update.
1671 * gnulib/import/m4/exponentl.m4: Update.
1672 * gnulib/import/m4/extensions.m4: Update.
1673 * gnulib/import/m4/extern-inline.m4: Update.
1674 * gnulib/import/m4/fchdir.m4: Update.
1675 * gnulib/import/m4/fcntl-o.m4: Update.
1676 * gnulib/import/m4/fcntl.m4: Update.
1677 * gnulib/import/m4/fcntl_h.m4: Update.
1678 * gnulib/import/m4/fdopendir.m4: Update.
1679 * gnulib/import/m4/filenamecat.m4: Update.
1680 * gnulib/import/m4/flexmember.m4: Update.
1681 * gnulib/import/m4/float_h.m4: Update.
1682 * gnulib/import/m4/fnmatch.m4: Update.
1683 * gnulib/import/m4/fnmatch_h.m4: Update.
1684 * gnulib/import/m4/fpieee.m4: Update.
1685 * gnulib/import/m4/frexp.m4: Update.
1686 * gnulib/import/m4/frexpl.m4: Update.
1687 * gnulib/import/m4/fstat.m4: Update.
1688 * gnulib/import/m4/fstatat.m4: Update.
1689 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1690 * gnulib/import/m4/getcwd-path-max.m4: Update.
1691 * gnulib/import/m4/getcwd.m4: Update.
1692 * gnulib/import/m4/getdtablesize.m4: Update.
1693 * gnulib/import/m4/getlogin.m4: Update.
1694 * gnulib/import/m4/getlogin_r.m4: Update.
1695 * gnulib/import/m4/getpagesize.m4: Update.
1696 * gnulib/import/m4/getprogname.m4: Update.
1697 * gnulib/import/m4/gettimeofday.m4: Update.
1698 * gnulib/import/m4/glibc21.m4: Update.
1699 * gnulib/import/m4/glob.m4: Update.
1700 * gnulib/import/m4/glob_h.m4: Update.
1701 * gnulib/import/m4/gnulib-cache.m4: Update.
1702 * gnulib/import/m4/gnulib-common.m4: Update.
1703 * gnulib/import/m4/gnulib-comp.m4: Update.
1704 * gnulib/import/m4/gnulib-tool.m4: Update.
1705 * gnulib/import/m4/hard-locale.m4: Update.
1706 * gnulib/import/m4/include_next.m4: Update.
1707 * gnulib/import/m4/inttypes-pri.m4: Update.
1708 * gnulib/import/m4/inttypes.m4: Update.
1709 * gnulib/import/m4/isnand.m4: Update.
1710 * gnulib/import/m4/isnanl.m4: Update.
1711 * gnulib/import/m4/largefile.m4: Update.
1712 * gnulib/import/m4/limits-h.m4: Update.
1713 * gnulib/import/m4/localcharset.m4: Update.
1714 * gnulib/import/m4/locale-fr.m4: Update.
1715 * gnulib/import/m4/locale-ja.m4: Update.
1716 * gnulib/import/m4/locale-zh.m4: Update.
1717 * gnulib/import/m4/localtime-buffer.m4: Update.
1718 * gnulib/import/m4/longlong.m4: Update.
1719 * gnulib/import/m4/lstat.m4: Update.
1720 * gnulib/import/m4/malloc.m4: Update.
1721 * gnulib/import/m4/malloca.m4: Update.
1722 * gnulib/import/m4/math_h.m4: Update.
1723 * gnulib/import/m4/mbrtowc.m4: Update.
1724 * gnulib/import/m4/mbsinit.m4: Update.
1725 * gnulib/import/m4/mbsrtowcs.m4: Update.
1726 * gnulib/import/m4/mbstate_t.m4: Update.
1727 * gnulib/import/m4/memchr.m4: Update.
1728 * gnulib/import/m4/memmem.m4: Update.
1729 * gnulib/import/m4/mempcpy.m4: Update.
1730 * gnulib/import/m4/memrchr.m4: Update.
1731 * gnulib/import/m4/mkdir.m4: Update.
1732 * gnulib/import/m4/mkstemp.m4: Update.
1733 * gnulib/import/m4/mmap-anon.m4: Update.
1734 * gnulib/import/m4/mode_t.m4: Update.
1735 * gnulib/import/m4/msvc-inval.m4: Update.
1736 * gnulib/import/m4/msvc-nothrow.m4: Update.
1737 * gnulib/import/m4/multiarch.m4: Update.
1738 * gnulib/import/m4/nocrash.m4: Update.
1739 * gnulib/import/m4/off_t.m4: Update.
1740 * gnulib/import/m4/onceonly.m4: Update.
1741 * gnulib/import/m4/open-cloexec.m4: Update.
1742 * gnulib/import/m4/open.m4: Update.
1743 * gnulib/import/m4/openat.m4: Update.
1744 * gnulib/import/m4/opendir.m4: Update.
1745 * gnulib/import/m4/pathmax.m4: Update.
1746 * gnulib/import/m4/rawmemchr.m4: Update.
1747 * gnulib/import/m4/readdir.m4: Update.
1748 * gnulib/import/m4/readlink.m4: Update.
1749 * gnulib/import/m4/realloc.m4: Update.
1750 * gnulib/import/m4/rename.m4: Update.
1751 * gnulib/import/m4/rewinddir.m4: Update.
1752 * gnulib/import/m4/rmdir.m4: Update.
1753 * gnulib/import/m4/save-cwd.m4: Update.
1754 * gnulib/import/m4/secure_getenv.m4: Update.
1755 * gnulib/import/m4/setenv.m4: Update.
1756 * gnulib/import/m4/signal_h.m4: Update.
1757 * gnulib/import/m4/ssize_t.m4: Update.
1758 * gnulib/import/m4/stat-time.m4: Update.
1759 * gnulib/import/m4/stat.m4: Update.
1760 * gnulib/import/m4/std-gnu11.m4: Update.
1761 * gnulib/import/m4/stdbool.m4: Update.
1762 * gnulib/import/m4/stddef_h.m4: Update.
1763 * gnulib/import/m4/stdint.m4: Update.
1764 * gnulib/import/m4/stdio_h.m4: Update.
1765 * gnulib/import/m4/stdlib_h.m4: Update.
1766 * gnulib/import/m4/strchrnul.m4: Update.
1767 * gnulib/import/m4/strdup.m4: Update.
1768 * gnulib/import/m4/strerror.m4: Update.
1769 * gnulib/import/m4/string_h.m4: Update.
1770 * gnulib/import/m4/strstr.m4: Update.
1771 * gnulib/import/m4/strtok_r.m4: Update.
1772 * gnulib/import/m4/sys_socket_h.m4: Update.
1773 * gnulib/import/m4/sys_stat_h.m4: Update.
1774 * gnulib/import/m4/sys_time_h.m4: Update.
1775 * gnulib/import/m4/sys_types_h.m4: Update.
1776 * gnulib/import/m4/tempname.m4: Update.
1777 * gnulib/import/m4/time_h.m4: Update.
1778 * gnulib/import/m4/unistd-safer.m4: Update.
1779 * gnulib/import/m4/unistd_h.m4: Update.
1780 * gnulib/import/m4/warn-on-use.m4: Update.
1781 * gnulib/import/m4/wchar_h.m4: Update.
1782 * gnulib/import/m4/wchar_t.m4: Update.
1783 * gnulib/import/m4/wctype_h.m4: Update.
1784 * gnulib/import/m4/wint_t.m4: Update.
1785 * gnulib/import/malloc.c: Update.
1786 * gnulib/import/malloc/scratch_buffer.h: Update.
1787 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1788 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1789 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1790 * gnulib/import/malloca.c: Update.
1791 * gnulib/import/malloca.h: Update.
1792 * gnulib/import/malloca.valgrind: Update.
1793 * gnulib/import/math.in.h: Update.
1794 * gnulib/import/mbrtowc.c: Update.
1795 * gnulib/import/mbsinit.c: Update.
1796 * gnulib/import/mbsrtowcs-impl.h: Update.
1797 * gnulib/import/mbsrtowcs-state.c: Update.
1798 * gnulib/import/mbsrtowcs.c: Update.
1799 * gnulib/import/memchr.c: Update.
1800 * gnulib/import/memmem.c: Update.
1801 * gnulib/import/mempcpy.c: Update.
1802 * gnulib/import/memrchr.c: Update.
1803 * gnulib/import/mkdir.c: Update.
1804 * gnulib/import/mkstemp.c: Update.
1805 * gnulib/import/msvc-inval.c: Update.
1806 * gnulib/import/msvc-inval.h: Update.
1807 * gnulib/import/msvc-nothrow.c: Update.
1808 * gnulib/import/msvc-nothrow.h: Update.
1809 * gnulib/import/open.c: Update.
1810 * gnulib/import/openat-die.c: Update.
1811 * gnulib/import/openat-priv.h: Update.
1812 * gnulib/import/openat-proc.c: Update.
1813 * gnulib/import/openat.c: Update.
1814 * gnulib/import/openat.h: Update.
1815 * gnulib/import/opendir.c: Update.
1816 * gnulib/import/pathmax.h: Update.
1817 * gnulib/import/pipe-safer.c: Update.
1818 * gnulib/import/rawmemchr.c: Update.
1819 * gnulib/import/readdir.c: Update.
1820 * gnulib/import/readlink.c: Update.
1821 * gnulib/import/realloc.c: Update.
1822 * gnulib/import/ref-add.sin: Update.
1823 * gnulib/import/ref-del.sin: Update.
1824 * gnulib/import/rename.c: Update.
1825 * gnulib/import/rewinddir.c: Update.
1826 * gnulib/import/rmdir.c: Update.
1827 * gnulib/import/same-inode.h: Update.
1828 * gnulib/import/save-cwd.c: Update.
1829 * gnulib/import/save-cwd.h: Update.
1830 * gnulib/import/scratch_buffer.h: Update.
1831 * gnulib/import/secure_getenv.c: Update.
1832 * gnulib/import/setenv.c: Update.
1833 * gnulib/import/signal.in.h: Update.
1834 * gnulib/import/stat-time.c: Update.
1835 * gnulib/import/stat-time.h: Update.
1836 * gnulib/import/stat-w32.c: Update.
1837 * gnulib/import/stat-w32.h: Update.
1838 * gnulib/import/stat.c: Update.
1839 * gnulib/import/stdbool.in.h: Update.
1840 * gnulib/import/stddef.in.h: Update.
1841 * gnulib/import/stdint.in.h: Update.
1842 * gnulib/import/stdio.in.h: Update.
1843 * gnulib/import/stdlib.in.h: Update.
1844 * gnulib/import/str-two-way.h: Update.
1845 * gnulib/import/strchrnul.c: Update.
1846 * gnulib/import/strdup.c: Update.
1847 * gnulib/import/streq.h: Update.
1848 * gnulib/import/strerror-override.c: Update.
1849 * gnulib/import/strerror-override.h: Update.
1850 * gnulib/import/strerror.c: Update.
1851 * gnulib/import/string.in.h: Update.
1852 * gnulib/import/stripslash.c: Update.
1853 * gnulib/import/strnlen1.c: Update.
1854 * gnulib/import/strnlen1.h: Update.
1855 * gnulib/import/strstr.c: Update.
1856 * gnulib/import/strtok_r.c: Update.
1857 * gnulib/import/sys_stat.in.h: Update.
1858 * gnulib/import/sys_time.in.h: Update.
1859 * gnulib/import/sys_types.in.h: Update.
1860 * gnulib/import/tempname.c: Update.
1861 * gnulib/import/tempname.h: Update.
1862 * gnulib/import/time.in.h: Update.
1863 * gnulib/import/unistd--.h: Update.
1864 * gnulib/import/unistd-safer.h: Update.
1865 * gnulib/import/unistd.in.h: Update.
1866 * gnulib/import/unsetenv.c: Update.
1867 * gnulib/import/verify.h: Update.
1868 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1869 * gnulib/import/wchar.in.h: Update.
1870 * gnulib/import/wctype.in.h: Update.
1871 * gnulib/import/xalloc-oversized.h: Update.
1872 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1873 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1875 2018-08-16 Gary Benson <gbenson@redhat.com>
1878 * gdb/main.c (captured_main_1): Exit with nonzero status
1879 in batch mode if the last command to be executed failed.
1880 * NEWS: Mention the above.
1882 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
1884 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
1885 end of warning message.
1887 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1890 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
1891 (aarch64_extract_return_value): Use
1892 aapcs_is_vfp_call_or_return_candidate.
1893 (aarch64_return_in_memory): Likewise.
1894 (aarch64_store_return_value): Likewise.
1896 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1899 (aapcs_is_vfp_call_or_return_candidate): Make static
1900 (pass_in_v_or_stack): Remove function.
1901 (pass_in_v_vfp_candidate): New function.
1902 (aarch64_push_dummy_call): Check for float register candidates.
1904 2018-08-29 Alan Hayward <alan.hayward@arm.com>
1906 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
1907 (aapcs_is_vfp_call_or_return_candidate_1): New function.
1908 (aapcs_is_vfp_call_or_return_candidate): Likewise.
1910 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1913 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
1914 (struct ipa_sym_addresses): Rename to...
1915 (struct ipa_sym_addresses_common): ... this.
1916 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
1918 2018-08-28 Tom Tromey <tom@tromey.com>
1920 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1921 (token_fifo): Now a std::vector.
1922 (yylex, c_parse): Update.
1923 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1924 (token_fifo): Now a std::vector.
1925 (yylex, d_parse): Update.
1926 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
1927 (token_fifo): Now a std::vector.
1928 (yylex, go_parse): Update.
1930 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
1932 * parser-defs.h (struct type_stack) <elements>: Change type to
1933 std::vector<union type_stack_elt>.
1934 <depth, size>: Remove.
1935 * parse.c (parse_exp_in_context_1): Adjust.
1936 (type_stack_reserve): Remove.
1937 (check_type_stack_depth): Remove.
1938 (insert_into_type_stack): Adjust to std::vector.
1939 (insert_type): Likewise.
1940 (push_type): Likewise.
1941 (push_type_int): Likewise.
1942 (insert_type_address_space): Likewise.
1943 (pop_type): Likewise.
1944 (pop_type_int): Likewise.
1945 (pop_typelist): Likewise.
1946 (pop_type_stack): Likewise.
1947 (append_type_stack): Likewise.
1948 (push_type_stack): Likewise.
1949 (get_type_stack): Likewise.
1950 (type_stack_cleanup): Likewise.
1951 (push_typelist): Likewise.
1952 (follow_types): Likewise.
1953 (_initialize_parse): Likewise.
1955 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
1957 * NEWS: Mention csky target.
1959 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
1960 Hafiz Abid Qadeer <abidh@codesourcery.com>
1961 Don Breazeal <donb@codesourcery.com>
1963 * csky-linux-tdep.c: New file.
1964 * csky-tdep.c: Likewise.
1965 * csky-tdep.h: Likewise.
1966 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
1968 (HFILES_NO_SRCDIR): Add csky-tdep.h.
1969 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
1970 * configure.tgt: Add csky support.
1972 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
1974 * python/py-framefilter.c (py_print_frame): Print frame architecture
1975 when printing on an MI output.
1977 2018-08-27 Tom Tromey <tom@tromey.com>
1980 * configure: Rebuild.
1981 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
1983 2018-08-27 Tom Tromey <tom@tromey.com>
1985 * aarch64-linux-tdep.c
1986 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
1989 2018-08-27 Tom Tromey <tom@tromey.com>
1991 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
1993 (ppc64_standard_linkage1, ppc64_standard_linkage2)
1994 (ppc64_standard_linkage3, ppc64_standard_linkage4)
1995 (ppc64_standard_linkage5, ppc64_standard_linkage6)
1996 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
1999 2018-08-27 Tom Tromey <tom@tromey.com>
2001 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2002 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2004 2018-08-27 Tom Tromey <tom@tromey.com>
2006 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2007 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2009 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2011 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2013 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2014 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2015 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2017 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2018 (ppc64_linux_sigaction_tramp_frame)
2019 (ppc32_linux_sighandler_tramp_frame)
2020 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2021 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2022 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2023 * mn10300-linux-tdep.c (am33_linux_sigframe)
2024 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2025 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2026 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2027 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2028 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2029 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2030 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2031 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2032 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2033 * microblaze-linux-tdep.c
2034 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2035 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2036 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2037 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2038 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2039 * common/common-types.h (ULONGEST_MAX): New define.
2040 (CORE_ADDR_MAX): Fix formatting.
2041 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2042 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2043 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2044 (arm_linux_rt_sigreturn_tramp_frame)
2045 (arm_eabi_linux_sigreturn_tramp_frame)
2046 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2047 (thumb2_eabi_linux_sigreturn_tramp_frame)
2048 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2049 (arm_linux_restart_syscall_tramp_frame)
2050 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2051 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2052 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2054 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2056 2018-08-27 Tom Tromey <tom@tromey.com>
2058 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2060 * mips-tdep.c (mips_deal_with_atomic_sequence)
2061 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2062 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2063 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2064 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2066 * aarch64-tdep.c (aarch64_software_single_step): Use
2069 2018-08-27 Tom Tromey <tom@tromey.com>
2071 * linespec.c (complete_linespec_component): Add cast to "char".
2072 * completer.c (completion_tracker::build_completion_result): Add
2075 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2077 * solist.h (struct solist, struct target_so_ops): Fix
2080 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2082 * ada-tasks.c (ada_task_info_s): Remove typedef.
2083 (DEF_VEC_O(ada_task_info_s)): Remove.
2084 (struct ada_tasks_inferior_data): Initialize fields.
2085 <task_list>: Make an std::vector.
2086 (get_ada_tasks_inferior_data): Allocate with new.
2087 (ada_get_task_number): Adjust.
2088 (get_task_number_from_id): Likewise.
2089 (valid_task_id): Likewise.
2090 (ada_get_task_info_from_ptid): Likewise.
2091 (iterate_over_live_ada_tasks): Likewise.
2092 (add_ada_task): Likewise.
2093 (read_known_tasks): Likewise.
2094 (ada_build_task_list): Likewise.
2095 (print_ada_task_info): Likewise.
2096 (info_task): Likewise.
2097 (task_command_1): Likewise.
2099 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2101 * ada-lang.c (add_angle_brackets): Return std::string.
2103 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2105 * python/py-threadevent.c (py_get_event_thread): Initialize
2108 2018-08-24 Pedro Alves <palves@redhat.com>
2110 * python/py-bpevent.c (create_breakpoint_event_object): Use
2111 copy-initialization.
2112 * python/py-continueevent.c (emit_continue_event): Use
2113 copy-initialization.
2114 * python/py-exitedevent.c (create_exited_event_object): Return a
2116 (emit_exited_event): Use copy-initialization.
2117 * python/py-inferior.c (python_new_inferior)
2118 (python_inferior_deleted, add_thread_object): Use
2119 copy-initialization.
2120 * python/py-infevents.c (create_inferior_call_event_object)
2121 (create_register_changed_event_object)
2122 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2123 (emit_inferior_call_event, emit_memory_changed_event)
2124 (emit_register_changed_event): Use copy-initialization.
2125 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2126 Return a gdbpy_ref<>.
2127 (emit_new_objfile_event): Use copy-initialization.
2128 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2129 (emit_clear_objfiles_event): Use copy-initialization.
2130 * python/py-signalevent.c (create_signal_event_object): Use
2131 copy-initialization.
2132 * python/py-threadevent.c (create_thread_event_object): Use
2133 copy-initialization.
2135 2018-08-24 Pedro Alves <palves@redhat.com>
2136 Simon Marchi <simon.marchi@ericsson.com>
2139 * python/py-continueevent.c: Include "gdbthread.h".
2140 (create_continue_event_object): Add intro comment. Add 'ptid'
2141 parameter. Use it to find thread to pass to
2142 create_thread_event_object.
2143 (emit_continue_event): Pass PTID down to
2144 create_continue_event_object.
2145 * python/py-event.h (py_get_event_thread): Declare.
2146 (create_thread_event_object): Remove default from 'thread'
2148 * python/py-stopevent.c (create_stop_event_object): Use
2149 py_get_event_thread.
2150 * python/py-threadevent.c (get_event_thread): Rename to ...
2151 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2152 and use it to find the thread.
2153 (create_thread_event_object): Assert that THREAD isn't null.
2154 Don't find the event thread here.
2156 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2158 * block.h (blockrange, blockranges): New struct declarations.
2159 (struct block): Add new field named `ranges'.
2160 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2161 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2162 macros for accessing ranges in struct block.
2163 (make_blockranges): New declaration.
2164 block.c (make_blockranges): New function.
2165 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2167 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2168 * blockframe.c (cache_pc_function_block): New static global.
2169 (clear_pc_function_cache): Clear cache_pc_function_block.
2170 (find_pc_partial_function): Move comment to symtab.h. Add
2171 support for non-contiguous blocks.
2172 * cli/cli-cmds.c (block.h): Include.
2173 (print_disassembly): Handle printing of non-contiguous blocks.
2174 (disassemble_current_function): Likewise.
2175 (disassemble_command): Likewise.
2177 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2179 * blockframe.c (get_pc_function_start): Likewise.
2180 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2181 (gcc_symbol_address): Likewise.
2182 * compile/compile-object-run.c (compile_object_run): Likewise.
2183 * compile/compile.c (get_expr_block_and_pc): Likewise.
2184 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2185 (func_addr_to_tail_call_list): Likewise.
2186 * findvar.c (default_read_var_value): Likewise.
2187 * inline-frame.c (inline_frame_this_id): Likewise.
2188 (skip-inline_frames): Likewise.
2189 * infcmd.c (until_next_command): Likewise.
2190 * linespec.c (convert_linespec_to_sals): Likewise.
2191 * parse.c (parse_exp_in_context_1): Likewise.
2192 * printcmd.c (build_address_symbolic): likewise.
2193 (info_address_command): Likewise.
2194 symtab.c (find_function_start_sal): Likewise.
2195 (skip_prologue_sal): Likewise.
2196 (find_function_alias_target): Likewise.
2197 (find_gnu_ifunc): Likewise.
2198 * stack.c (find_frame_funname): Likewise.
2199 * symtab.c (fixup_symbol_section): Likewise.
2200 (find_function_start_sal): Likewise.
2201 (skip_prologue_sal): Likewsie.
2202 (find_function_alias_target): Likewise.
2203 (find_gnu_ifunc): Likewise.
2204 * tracepoint.c (info_scope_command): Likewise.
2205 * value.c (value_fn_field): Likewise.
2207 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2208 in place of find_pc_partial_function.
2209 * blockframe.c (find_function_entry_range_from_pc): New function.
2210 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2211 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2212 for each range in a block.
2215 2018-08-23 Xavier Roirand <roirand@adacore.com>
2217 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2220 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2222 * solib-svr4.c (read_program_headers_from_bfd): Return
2223 gdb::optional<gdb::byte_vector>.
2224 (svr4_exec_displacement): Adjust.
2226 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2228 * solib-svr4.c (read_program_header): Return
2229 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2230 (find_program_interpreter): Return
2231 gdb::optional<gdb::byte_vector>.
2232 (scan_dyntag_auxv): Adjust.
2233 (enable_break): Adjust.
2234 (svr4_exec_displacement): Adjust.
2236 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2238 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2239 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2241 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2243 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2245 * guile/scm-utils.c (gdbscm_printf): Likewise.
2246 * serial.c (serial_printf): Likewise.
2247 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2249 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2251 * stack.c (print_frame): Print frame architecture when printing on
2253 * NEWS: Mention new "arch" attribute in frame output.
2255 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2257 * arch/aarch64.h (aarch64_regnum): Update comment.
2259 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2261 * NEWS: Add SVE to 8.2 section.
2263 2018-08-21 Pedro Alves <palves@redhat.com>
2265 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2266 out from gdbscm_parse_function_args.
2267 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2268 gdbscm_parse_function_args_1.
2270 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2273 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2276 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2278 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2280 2018-08-19 Michael Spang <spang@google.com>
2283 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2284 for PT_TLS segments.
2286 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2288 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2289 dwarf_variable_value.
2290 * dwarf2-frame.c (class dwarf_expr_executor):
2291 Add override for dwarf_variable_value.
2292 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2293 (class symbol_needs_eval_context): Likewise.
2294 (indirect_synthetic_pointer): Add forward declaration.
2295 (sect_variable_value): New function.
2296 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2297 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2298 for DW_OP_GNU_variable_value.
2300 2018-08-16 Tom Tromey <tom@tromey.com>
2302 * top.c (read_command_file): Update.
2303 (command_line_input): Remove "repeat" argument.
2304 * ada-lang.c (get_selections): Update.
2305 * linespec.c (decode_line_2): Update.
2306 * defs.h (command_line_input): Remove argument.
2307 * cli/cli-script.c (read_next_line): Update.
2308 * python/py-gdb-readline.c: Update.
2310 2018-08-17 Tom Tromey <tom@tromey.com>
2312 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2315 2018-08-15 Tom Tromey <tom@tromey.com>
2317 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2319 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2321 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2322 If used, use find_pc_partial_function to find address range
2324 * mi/mi-main.c (mi_cmd_list_features): Report
2325 "data-disassemble-a-option" feature.
2326 * NEWS: Mention new -data-disassemble option -a.
2328 2018-08-13 Tom Tromey <tom@tromey.com>
2330 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2332 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2334 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2335 (aarch64_linux_collect_sve_regset): Likewise.
2336 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2337 * regcache.h (regcache_map_entry_size): New function.
2339 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2341 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2342 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2343 (SVE_HEADER_VL_LENGTH): Likewise.
2344 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2345 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2346 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2347 (SVE_HEADER_SIZE_OFFSET): Likewise.
2348 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2349 (SVE_HEADER_VL_OFFSET): Likewise.
2350 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2351 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2352 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2353 (SVE_HEADER_SIZE): Likewise.
2354 (aarch64_linux_core_read_vq): Add function.
2355 (aarch64_linux_core_read_description): Check for SVE section.
2357 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2359 * aarch64-fbsd-tdep.c
2360 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2362 * aarch64-linux-tdep.c
2363 (aarch64_linux_iterate_over_regset_sections): Likewise.
2364 * alpha-linux-tdep.c
2365 (alpha_linux_iterate_over_regset_sections):
2367 (alphanbsd_iterate_over_regset_sections): Likewise.
2369 (amd64fbsd_iterate_over_regset_sections): Likewise.
2370 * amd64-linux-tdep.c
2371 (amd64_linux_iterate_over_regset_sections): Likewise.
2373 (armbsd_iterate_over_regset_sections): Likewise.
2375 (arm_fbsd_iterate_over_regset_sections): Likewise.
2377 (arm_linux_iterate_over_regset_sections): Likewise.
2378 * corelow.c (get_core_registers_cb): Likewise.
2379 (core_target::fetch_registers): Likewise.
2380 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2381 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2382 * gdbarch.h (void): Regenerate.
2383 * gdbarch.sh: Add supply_size and collect_size.
2384 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2385 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2386 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2387 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2388 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2389 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2390 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2391 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2392 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2393 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2394 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2395 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2396 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2397 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2398 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2399 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2400 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2401 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2402 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2403 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2404 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2405 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2406 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2407 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2408 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2409 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2410 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2411 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2412 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2413 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2415 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2417 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2420 2018-08-10 Keith Seitz <keiths@redhat.com>
2422 * compile/compile-c-support.c (add_code_header, add_code_footer):
2423 Move into policy class.
2424 (c_push_user_expression, pop_user_expression_nop)
2425 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2426 (compile_program): New host class.
2427 (c_compile_program): New typedef.
2428 (c_compute_porgram): Use c_compile_program.
2430 2018-08-10 Keith Seitz <keiths@redhat.com>
2432 * compile/compile-internal.h (compile_instance::~compile_instance):
2433 Remove calls to htab_delete.
2434 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2435 * compile.c (compile_instance::compile_instance): Initialize
2436 htab unique pointers.
2437 (compile_instance::get_cached_type, compile_instance::insert_type)
2438 (compile_instance::error_symbol_once): Update for unique_ptr.
2440 2018-08-10 Keith Seitz <keiths@redhat.com>
2442 * compile/compile-c-symbols.c (struct symbol_error)
2443 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2444 (compile_instance::insert_symbol_error)
2445 (compile_instance::error_symbol_once): Move to ...
2446 * compile/compile.c: ... here.
2448 2018-08-10 Keith Seitz <keiths@redhat.com>
2450 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2451 instead of `new_compile_instance'.
2452 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2454 If the symbol error map is not initialized, create it.
2455 (generate_c_for_for_one_symbol): Do not check/initialize
2456 the symbol error map.
2457 * compile/compile-c-types.c (compile_c_instance): Make a class.
2459 (compile_instance::compile_instance): Initialize the type cache.
2460 (get_cached_type): New function.
2461 (insert_type): Update description.
2462 (compile_c_instance::m_default_cflags): Define.
2463 (convert_type): Update description. Use get_cached_type.
2464 (delete_instance): Moved to destructor.
2465 (new_compile_instance): Moved to constructor.
2466 * compile/compile-c.h (compile_c_instance): Make class inheriting
2467 from compile_instance.
2468 <base>: Remove field.
2469 <type_map, symbol_err_map>: Move to base class.
2470 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2471 * compile/compile-internal.h (compile_instance): Make class.
2472 <type_map_t, symbol_err_map_t>: Define.
2473 <fe>: Rename to `m_gcc_fe'.
2474 <scope, block, gcc_target_options>: Add `m_' prefix.
2475 <m_type_map, m_symbol_err_map>: New fields, moved from
2478 (convert_type, new_compile_instance): Remove.
2479 * compile/compile.c (cleanup_compile_instance): Remove.
2480 (compile_to_object): Use unique_ptr to eliminate cleanups.
2481 (compile_instance::set_print_callback, compile_instance::version)
2482 (compile_instance::set_verbose)
2483 (compile_instance::set_driver_filename)
2484 (compile_instance::set_triplet_regexp)
2485 (compile_instance::set_arguments)
2486 (compile_instance::set_source_file)
2487 (compile_instance::compile): Define.
2489 2018-08-10 Keith Seitz <keiths@redhat.com>
2491 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2492 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2493 gcc-c-fe.def to define C plugin.
2494 (delete_instance): Delete `c_plugin'.
2495 (new_compile_instance): Initialize `c_plugin'.
2496 * compile/compile-c.h: Include gcc_c_plugin.h.
2497 (struct compile_c_instance) <c_plugin>: New member.
2498 * gcc-c-plugin.h: New file.
2499 Update all callers with API change.
2501 2018-08-10 Keith Seitz <keiths@redhat.com>
2503 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2504 (HFILES_NO_SRCDIR): ... to here.
2505 Add compile-internal.h and compile-c.h.
2506 * compile/compile-c-support.c: Include compile-c.h.
2507 * compile/compile-c-symbols.c: Include compile-c.h.
2508 (generate_c_for_variable_locations): Update comment.
2509 * compile/compile-c-types.c: Include compile-c.h.
2510 * compile/compile-c.h: New file -- moved C language declarations
2511 from other files here.
2512 * compile/compile-internal.h: Do not include hashtab.h or
2513 common/enum-flags.h.
2514 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2515 (gcc_convert_symbol, gcc_symbol_address)
2516 (generate_c_for_variable_locations, c_get_mode_for_size)
2517 (c_get_range_decl_name): Definitions moved to compile-c.h.
2518 * compile/compile-loc2c.c: Include compile-c.h.
2520 2018-08-10 Keith Seitz <keiths@redhat.com>
2522 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2523 (c_symbol_substitution_name): ... this.
2526 2018-08-10 Keith Seitz <keiths@redhat.com>
2528 * compile/compile-c-support.c (c_compute_program): Use
2529 unique_xmalloc_ptr to eliminate cleanup.
2530 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2531 Return a unique_xmalloc_ptr and eliminate cleanup.
2532 * compile/compile-internal.h (generate_c_for_variable_locations):
2533 Return unique_xmalloc_ptr and update description.
2535 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2537 * corelow.c (core_target::get_core_register_section): Rename
2538 min_size to section_min_size.
2540 2018-08-09 Jim Wilson <jimw@sifive.com>
2542 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2543 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2544 * NEWS: Mention new GNU/Linux RISC-V target.
2545 * configure.host: Add riscv*-*-linux*.
2546 * configure.nat: Add riscv*.
2547 * configure.tgt: Add riscv*-*-linux*.
2548 * riscv-linux-nat.c: New file.
2549 * riscv-linux-tdep.c: New file.
2551 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2553 * infrun.c (resume): Make static, add forward declaration.
2554 (proceed): Update header comment.
2555 * infrun.h (resume): Delete declaration.
2557 2018-08-09 Tom Tromey <tom@tromey.com>
2559 * riscv-tdep.h: Minor formatting fixes.
2561 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2563 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2564 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2565 (test_mkdir_recursive): Likewise.
2566 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2568 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2570 * valarith.c (value_subscripted_rvalue): If an array is not in
2571 memory, and we don't know the upper bound, then we can't know that
2572 the requested element exists or not.
2574 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2576 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2577 (target_options_to_string): Add comment.
2579 2018-08-08 Tom Tromey <tom@tromey.com>
2581 * unittests/scoped_mmap-selftests.c: Check result of "write".
2583 2018-08-08 Jim Wilson <jimw@sifive.com>
2585 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2586 (decode_register_index_short): New.
2587 (decode_j_type_insn, decode_cj_type_insn): New.
2588 (decode_b_type_insn, decode_cb_type_insn): New.
2589 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2590 local xlen. Check xlen when decoding ambiguous compressed insns. In
2591 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2592 is_c_sw_insn instead of is_sw_insn.
2593 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2594 (riscv_software_single_step): New.
2595 * riscv-tdep.h (riscv_software_single_step): Declare.
2597 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2598 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2600 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2603 * target.c (dispose_inferior): Don't dispose of inferiors that are
2606 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2608 * remote.c (remote_target::download_tracepoint): Change char* to
2611 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2613 * target.h (target_options_to_string): Return an std::string.
2614 * target.c (str_comma_list_concat_elem): Return void, use
2616 (do_option): Likewise.
2617 (target_options_to_string): Return an std::string.
2618 * linux-nat.c (linux_nat_target::wait): Adjust.
2619 * target-debug.h (target_debug_print_options): Adjust.
2621 2018-08-07 Tom Tromey <tom@tromey.com>
2623 * Makefile.in (CPPFLAGS): New variable.
2624 (INTERNAL_CPPFLAGS): Use it.
2626 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2628 * NEWS: Mention the index cache.
2630 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2632 * common/pathstuff.h (get_standard_cache_dir): New.
2633 * common/pathstuff.c (get_standard_cache_dir): New.
2634 * build-id.h (build_id_to_string): New.
2635 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2636 DEBUG_STR_SUFFIX): Move to here.
2637 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2638 DEBUG_STR_SUFFIX): Move from there.
2639 (write_psymtabs_to_index): Make non-static, add basename
2640 parameter. Write to temporary files, rename when done.
2641 (save_gdb_index_command): Adjust call to
2642 write_psymtabs_to_index.
2643 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2645 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2646 (get_gdb_index_contents_from_cache): New.
2647 (get_gdb_index_contents_from_cache_dwz): New.
2648 (dwarf2_initialize_objfile): Read index from cache.
2649 (dwarf2_build_psymtabs): Save to index.
2650 * dwarf-index-cache.h: New file.
2651 * dwarf-index-cache.c: New file.
2652 * dwarf-index-write.h: New file.
2654 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2656 * gnulib/aclocal.m4: Re-generate.
2657 * gnulib/config.in: Re-generate.
2658 * gnulib/configure: Re-generate.
2659 * gnulib/import/Makefile.am: Re-generate.
2660 * gnulib/import/Makefile.in: Re-generate.
2661 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2662 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2663 * gnulib/import/m4/mkdir.m4: New file.
2664 * gnulib/import/mkdir.c: New file.
2665 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2668 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2670 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2671 * common/scoped_mmap.c: New file.
2672 * common/scoped_mmap.h (destroy): New method.
2673 (~scoped_mmap, reset): Use destroy.
2674 (scoped_mmap): New move constructor.
2675 (mmap_file): New declaration.
2676 * unittests/scoped_mmap-selftests.c (test_normal,
2677 test_invalid_filename, run_tests): New functions.
2678 (_initialize_scoped_mmap_selftests): Register selftest.
2680 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2682 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2683 (read_gdb_index_from_buffer): ... this. Remove section
2684 parameter, add buffer parameter.
2685 (get_gdb_index_contents_ftype,
2686 get_gdb_index_contents_dwz_ftype): New typedefs.
2687 (dwarf2_read_gdb_index): Add callback parameters to get the
2689 (get_gdb_index_contents_from_section): New.
2690 (dwarf2_initialize_objfile): Update call to
2691 dwarf2_read_gdb_index.
2693 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2695 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2696 (gdb_open_cloexec): Likewise.
2697 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2698 (commandline_from_pid): Likewise.
2699 (linux_xfer_osdata_threads): Likewise.
2700 (linux_xfer_osdata_fds): Likewise.
2701 * ada-lang.c (is_package_name): Likewise.
2702 * auxv.c (procfs_xfer_auxv): Likewise.
2703 * breakpoint.c (print_one_breakpoint_location): Use
2705 (print_one_catch_solib): Use string_printf.
2706 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2707 (add_pe_forwarded_sym): Likewise.
2708 * dwarf2read.c (create_type_unit_group): Likewise.
2709 (build_error_marker_type): Likewise.
2710 * infcall.c (get_function_name): Likewise.
2711 * valprint.c (print_converted_chars_to_obstack): Likewise.
2712 * xtensa-tdep.c (xtensa_register_type): Likewise.
2714 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2716 * remote.c (remote_target::download_tracepoint): Fix format
2719 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2721 * tracefile.c: Include common/byte-vector.h.
2722 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2723 with trace_regblock_size if needed. Update uses of buf.
2725 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2727 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2728 std::vector<unsigned char>.
2729 * tracepoint.c (collection_list::collection_list): Remove
2730 m_regs_mask initializer from initializer list. Resize
2731 m_regs_mask using the largest remote register number.
2732 (collection_list::add_remote_register): Remove size check on
2733 m_regs_mask. Use at to access element.
2734 (collection_list::stringify): Change type of temp_buf to
2735 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2736 stringify the register mask. Use pack_hex_byte for the register
2739 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2741 * tracepoint.h (class collection_list) <add_register>: Remove.
2742 <add_remote_register, add_ax_registers, add_local_register>:
2744 <add_memrange>: Add scope parameter.
2745 * tracepoint.c (encode_actions_1): Likewise.
2746 (collection_list::add_register): Rename to ...
2747 (collection_list::add_remote_register): ... this. Update
2749 (collection_list::add_ax_registers, add_local_register): New
2751 (collection_list::add_memrange): Add scope parameter. Call
2752 add_local_register instead of add_register.
2753 (finalize_tracepoint_aexpr): New function.
2754 (collection_list::collect_symbol): Update calls to add_memrange.
2755 Call add_local_register instead of add_register. Call
2756 add_ax_registers. Call finalize_tracepoint_aexpr.
2757 (encode_actions_1): Get remote regnos for $reg action. Call
2758 add_remote_register, add_ax_registers, and add_local_register.
2759 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2760 (validate_actionline): Call finalize_tracepoint_aexpr.
2762 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2764 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2765 Replace array buf with gdb::char_vector buf, of size
2766 get_remote_packet_size (). Replace references to buf and
2767 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2768 and xsnprintf with snprintf. Raise errors if the buffer is too
2771 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2773 * remote.c (remote_target::download_tracepoint): Fix the has_more
2774 predicate in the QTDP action list iteration.
2776 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2778 * remote.c (remote_target::download_tracepoint): Fix indentation
2781 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2783 * proc-api.c (_initialize_proc_api): Remove c, unused.
2784 * procfs.c (procfs_init_inferior): Remove signals, unused.
2785 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2788 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2789 Andrew Burgess <andrew.burgess@embecosm.com>
2791 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2792 'W_STOPCODE (0)' as this could be ambiguous.
2794 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2796 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2797 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2800 2018-08-02 Tom Tromey <tom@tromey.com>
2803 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2805 (process_structure_scope): Likewise.
2807 2018-08-02 Xavier Roirand <roirand@adacore.com>
2810 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2813 2018-08-02 Tom Tromey <tom@tromey.com>
2815 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2816 (darwin_suspend_inferior, darwin_resume_inferior)
2817 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2818 (darwin_check_new_threads): Check result of get_darwin_inferior.
2820 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2824 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2826 * varobj.c (varobj_get_path_expr_parent): Report an error if
2827 parent is a dynamic varobj.
2829 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2831 * gnulib/aclocal.m4: Re-generate.
2832 * gnulib/config.in: Re-generate.
2833 * gnulib/configure: Re-generate.
2834 * gnulib/import/Makefile.in: Re-generate.
2835 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2836 * gnulib/import/m4/onceonly.m4: Re-generate.
2838 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2840 * target-descriptions.c (struct xml_test_tdesc): New.
2841 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
2842 (record_xml_tdesc): Update.
2843 (maintenance_check_xml_descriptions): Update.
2844 * target-descriptions.h (record_xml_tdesc): Update comment.
2846 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
2848 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
2849 checking array bounds are defined.
2851 2018-07-30 Tom Tromey <tom@tromey.com>
2853 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
2854 irreflexivity violation.
2856 2018-07-30 Tom Tromey <tom@tromey.com>
2858 * cli/cli-decode.c (lookup_cmd): Remove lint code.
2859 * value.c (unpack_long): Remove lint code.
2860 * valops.c (value_ind): Remove lint code.
2861 * valarith.c (value_x_binop, value_x_unop, value_equal)
2862 (value_pos): Remove lint code.
2864 2018-07-28 Tom de Vries <tdevries@suse.de>
2866 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
2867 with undefined upper bound as <optimized out>.
2869 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
2871 * gcore.in: Rename variable "name" to "prefix". Expand
2874 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
2876 * windows-nat.c (windows_nat_target::create_inferior): Update to
2877 call close() in global namespace.
2879 2018-07-26 Tom Tromey <tom@tromey.com>
2881 * dwarf-index-write.c (add_address_entry): Don't add objfile
2883 * dbxread.c (find_stab_function): Rename from
2884 find_stab_function_addr. Return a bound_minimal_symbol.
2885 (read_dbx_symtab): Use raw_text_low, raw_text_high.
2886 Don't add objfile offsets.
2887 (end_psymtab): Use raw_text_low, raw_text_high,
2888 MSYMBOL_VALUE_RAW_ADDRESS.
2889 (read_ofile_symtab): Update.
2890 (process_one_symbol): Update.
2891 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
2893 (dw2_relocate): Remove.
2894 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
2896 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
2898 (process_psymtab_comp_unit_reader, add_partial_symbol)
2899 (add_partial_subprogram, dwarf2_ranges_read): Update.
2900 (load_partial_dies): Update.
2901 (add_address_entry): Don't add objfile offsets.
2902 (dwarf2_build_include_psymtabs): Update.
2903 (create_addrmap_from_aranges): Don't add objfile offsets.
2904 (dw2_find_pc_sect_compunit_symtab): Update.
2905 * mdebugread.c (parse_symbol): Don't add objfile offsets.
2906 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
2908 (parse_partial_symbols): Don't add objfile offsets. Use
2909 raw_text_low, raw_text_high. Update.
2910 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
2911 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
2912 or call 'relocate' quick function. Clear psymbol_map.
2913 * psympriv.h (struct partial_symbol) <address>: Add section
2915 <set_unrelocated_address>: Rename from set_address.
2916 <raw_text_low, raw_text_high>: New methods.
2917 <text_low, text_high>: Add objfile parameter.
2918 (add_psymbol_to_bcache): Add 'section' parameter. Call
2919 set_unrelocated_address.
2920 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2921 (find_pc_psymbol): Update.
2922 (fixup_psymbol_section, relocate_psymtabs): Remove.
2923 (dump_psymtab, psym_functions): Update.
2924 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
2926 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2927 (start_psymtab_common): Update.
2928 * symfile-debug.c (debug_qf_relocate): Remove.
2929 (debug_sym_quick_functions): Update.
2930 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
2931 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
2934 2018-07-26 Tom Tromey <tromey@redhat.com>
2936 * dbxread.c (end_psymtab): Use text_high_valid and
2938 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
2939 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
2940 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2942 <text_low_valid, text_high_valid>: New fields.
2943 <set_text_low, set_text_high>: Update.
2944 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
2946 2018-07-26 Tom Tromey <tom@tromey.com>
2948 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
2950 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
2951 textlow and texthigh fields.
2952 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
2954 * mdebugread.c (parse_lines, parse_partial_symbols)
2955 (psymtab_to_symtab_1): Update.
2956 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
2957 Rename fields. Update comment. Now private.
2958 <text_low, text_high, set_text_low, set_text_high>: New methods.
2959 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2960 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
2961 (start_psymtab_common, maintenance_info_psymtabs)
2962 (maintenance_check_psymtabs): Update.
2963 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
2965 (scan_xcoff_symtab): Update.
2967 2018-07-26 Tom Tromey <tromey@redhat.com>
2969 * psympriv.h (struct partial_symbol) <unrelocated_address,
2970 address, set_address>: New methods.
2971 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
2972 (fixup_psymbol_section, relocate_psymtabs): Update.
2973 (print_partial_symbols): Add 'objfile' parameter. Update.
2974 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
2977 2018-07-26 Tom Tromey <tom@tromey.com>
2979 * dwarf-index-write.c (write_psymbols, debug_names::insert)
2980 (debug_names::write_psymbols): Update.
2981 * psympriv.h (struct partial_symbol): Derive from
2982 general_symbol_info.
2983 <obj_section>: New method.
2984 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
2985 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
2986 (find_pc_sect_psymbol, fixup_psymbol_section)
2987 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
2988 (print_partial_symbols, recursively_search_psymtabs)
2989 (compare_psymbols, psymbol_hash, psymbol_compare)
2990 (add_psymbol_to_bcache, maintenance_check_psymtabs)
2991 (psymbol_name_matches, psym_fill_psymbol_map): Update.
2993 2018-07-26 Tom Tromey <tromey@redhat.com>
2995 * dbxread.c (end_psymtab): Remove dead code.
2997 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
2999 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3000 DWARF unwinders are disabled.
3001 * dwarf2-frame.c: Add dwarf2read.h include.
3002 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3004 (dwarf2_frame_unwinders_enabled_p): Define.
3005 (show_dwarf_unwinders_enabled_p): New function.
3006 (_initialize_dwarf2_frame): Register switch to control DWARF
3008 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3009 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3010 (show_dwarf_cmdlist): Remove static keyword.
3011 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3012 (show_dwarf_cmdlist): Declare.
3013 * NEWS: Document new feature.
3015 2018-07-26 Tom de Vries <tdevries@suse.de>
3017 PR breakpoints/23366
3018 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3020 2018-07-26 Tom de Vries <tdevries@suse.de>
3022 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3023 DW_AT_count can't be translated to a dynamic prop.
3025 2018-07-25 Tom de Vries <tdevries@suse.de>
3027 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3030 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3032 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3034 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3036 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3038 2018-07-24 Keith Seitz <keiths@redhat.comt
3041 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3042 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3043 instead of add_symbol_to_list.
3044 (read_file_scope): Call prepare_one_comp_unit before reading
3047 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3049 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3051 2018-07-24 Tom Tromey <tom@tromey.com>
3053 * utils.c (malloc, realloc, free): Don't declare.
3054 * configure, config.in: Rebuild.
3055 * configure.ac: Don't check for declarations of free, malloc, or
3058 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3060 * aarch64-linux-nat.c
3061 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3063 * arm-linux-nat.c (fetch_regs): Likewise.
3064 (store_regs): Likewise.
3065 (fetch_vfp_regs): Likewise.
3066 (store_vfp_regs): Likewise.
3067 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3068 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3069 (arm_linux_nat_target::insert_watchpoint): Likewise.
3070 (arm_linux_nat_target::remove_watchpoint): Likewise.
3071 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3073 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3075 * ppc-linux-nat.c (fetch_register): Likewise.
3076 (fetch_all_gp_regs): Likewise.
3077 (fetch_ppc_registers): Likewise.
3078 (store_all_gp_regs): Likewise.
3079 (store_ppc_registers): Likewise.
3080 (hwdebug_insert_point): Likewise.
3081 (can_use_watchpoint_cond_accel): Likewise.
3082 * remote-sim.c (gdb_os_write_stdout): Likewise.
3084 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3085 Tom Tromey <tom@tromey.com>
3087 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3089 * configure: Rebuild.
3091 2018-07-22 Tom Tromey <tom@tromey.com>
3093 * regformats/regdat.sh: Define xmltarget_${name} inside
3094 #ifndef IN_PROCESS_AGENT.
3096 2018-07-22 Tom Tromey <tom@tromey.com>
3098 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3100 2018-07-22 Tom Tromey <tom@tromey.com>
3102 * symfile.c (reread_symbols): Notify iter, not objfile.
3104 2018-07-22 Tom Tromey <tom@tromey.com>
3106 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3108 (ravenscar_thread_target::prepare_to_store): Likewise.
3110 2018-07-22 Tom Tromey <tom@tromey.com>
3112 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3113 unused variable. Call value_fetch_lazy when needed.
3114 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3115 Remove unused variable. Call value_fetch_lazy when needed.
3117 2018-07-22 Tom Tromey <tom@tromey.com>
3119 * m32c-tdep.c (mark_dma): Return void.
3120 (make_regs): Remove unused declarations.
3122 2018-07-22 Tom Tromey <tom@tromey.com>
3124 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3125 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3126 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3127 bkscm_get_valid_block_smob_arg_unsafe for effect.
3129 2018-07-22 Tom Tromey <tom@tromey.com>
3131 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3134 2018-07-22 Tom Tromey <tom@tromey.com>
3136 * windows-nat.c (saved_context): Conditionally define.
3137 * remote.c (remote_target::remote_btrace_maybe_reopen):
3138 Conditionally declare "warned".
3139 * inflow.c (sigquit_ours): Conditionally define.
3140 (new_tty): Move "tty" declaration inside #if.
3141 * guile/guile.c (guile_datadir): Conditionally define.
3142 * charset.c (set_be_le_names): Move some declarations inside #if.
3143 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3145 (parse_xml_btrace_conf): Likewise.
3147 2018-07-22 Tom Tromey <tom@tromey.com>
3149 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3151 2018-07-22 Tom Tromey <tom@tromey.com>
3153 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3154 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3155 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3156 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3157 * stack.c (frame_apply_level_command): Remove unused variable.
3158 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3159 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3160 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3162 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3163 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3164 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3166 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3167 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3169 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3170 Remove unused variable.
3171 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3173 * common/tdesc.c (print_xml_feature::visit): Remove unused
3175 * compile/compile-object-load.c (store_regs): Remove unused
3177 * complaints.c (clear_complaints): Remove unused variable.
3178 * corelow.c (core_target_open): Remove unused variable.
3179 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3181 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3183 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3185 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3187 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3189 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3191 * ia64-tdep.c (examine_prologue): Remove unused variable.
3192 * infcall.c (run_inferior_call): Remove unused variable.
3193 * inferior.c (exit_inferior): Remove unused variable.
3194 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3195 * linespec.c (decode_line_2): Remove unused variable.
3196 * linux-nat.c (super_close): Remove.
3197 * linux-tdep.c (linux_info_proc): Remove unused variable.
3198 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3199 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3200 Remove unused variable.
3201 * parse.c (find_minsym_type_and_address): Remove unused variable.
3202 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3204 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3206 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3208 * record-btrace.c (record_btrace_target::store_registers): Remove
3210 (cmd_show_record_btrace_cpu): Remove unused variable.
3211 * riscv-tdep.c (riscv_register_reggroup_p)
3212 (riscv_push_dummy_call, riscv_return_value): Remove unused
3214 * rust-exp.y (literal): Remove unused variable.
3215 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3217 <STRUCTOP_ANONYMOUS>: Likewise.
3218 * s390-linux-tdep.c (s390_linux_init_abi_31)
3219 (s390_linux_init_abi_64): Remove unused variable.
3220 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3221 (file_select_thread, net_windows_open, _initialize_ser_windows):
3222 Remove unused variables.
3223 * symtab.c (find_pc_sect_line): Remove unused variable.
3224 * target-memory.c (compute_garbled_blocks): Remove unused
3226 (target_write_memory_blocks): Remove unused variable.
3227 * target.c (target_stack::unpush): Remove unused variables.
3228 * tracepoint.c (start_tracing, all_tracepoint_actions)
3229 (merge_uploaded_trace_state_variables)
3230 (print_one_static_tracepoint_marker): Remove unused variable.
3231 * unittests/basic_string_view/element_access/char/1.cc (test01):
3232 Remove unused variable.
3233 * windows-nat.c (windows_continue, windows_add_all_dlls)
3234 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3235 Remove unused variables.
3237 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3239 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3240 attr_profile in HAVE_ELF.
3241 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3244 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3246 * frame.c (frame_register_unwind): Change parameter name.
3247 (frame_unwind_register): Likewise.
3248 (frame_unwind_register_value): Likewise.
3249 (frame_unwind_register_signed): Likewise.
3250 (frame_unwind_register_unsigned): Likewise.
3251 * frame.h (frame_register_unwind): Likewise.
3252 (frame_unwind_register): Likewise.
3253 (frame_unwind_register_value): Likewise.
3254 (frame_unwind_register_signed): Likewise.
3255 (frame_unwind_register_unsigned): Likewise.
3256 (frame_unwind_arch): Likewise.
3258 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3260 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3263 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3265 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3266 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3269 2018-07-20 Keith Seitz <keiths@redhat.com>
3271 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3272 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3273 m_compunit_symtab, m_language>: Add "m_" prefix.
3275 * buildsym.c: Update all uses.
3277 2018-07-20 Tom Tromey <tom@tromey.com>
3279 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3280 * buildsym.h (record_line_ftype): Remove typedef.
3282 2018-07-20 Tom Tromey <tom@tromey.com>
3284 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3285 (end_expandable_symtab): Likewise.
3286 (end_symtab_get_static_block): Likewise.
3287 (end_symtab_from_static_block): Likewise.
3288 * buildsym-legacy.c (augment_type_symtab): Remove.
3289 (end_expandable_symtab): Remove.
3290 (end_symtab_get_static_block): Remove.
3291 (end_symtab_from_static_block): Remove.
3293 2018-07-20 Tom Tromey <tom@tromey.com>
3295 * dwarf2read.c: Include buildsym.h.
3296 (struct dwarf2_cu) <builder>: New method.
3297 (fixup_go_packaging): Update.
3298 (process_full_comp_unit, process_full_type_unit): Update. Don't
3299 use scoped_free_pendings.
3300 (using_directives): Add "cu" parameter, remove "language".
3301 (read_import_statement, setup_type_unit_groups, )
3302 (read_func_scope, read_lexical_block_scope)
3303 (dwarf2_record_block_ranges, read_namespace): Update.
3304 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3305 (lnp_state_machine::handle_end_sequence): Update.
3306 (class lnp_state_machine) <m_cu>: New member.
3307 <m_record_line_callback>: Remove.
3308 <m_currently_recording_lines>: New member.
3309 (lnp_state_machine::handle_set_file): Update.
3310 (noop_record_line): Remove.
3311 (dwarf_record_line_p): Add cu parameter.
3312 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3313 (lnp_state_machine::record_line)
3314 (lnp_state_machine::lnp_state_machine)
3315 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3316 (dwarf_decode_lines): Update.
3317 (dwarf2_start_subfile): Add cu parameter.
3318 (dwarf2_start_symtab, new_symbol): Update.
3319 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3320 Remove dwarf2_per_objfile parameter.
3321 (dwarf_decode_macros): Update.
3323 2018-07-20 Tom Tromey <tom@tromey.com>
3325 * stabsread.c (define_symbol): Update.
3326 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3327 * dwarf2read.c (new_symbol): Update.
3328 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3329 * cp-namespace.c: Include buildsym.h.
3330 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3331 * buildsym-legacy.c (get_buildsym_compunit): New function.
3333 2018-07-20 Tom Tromey <tom@tromey.com>
3335 * xcoffread.c: Include buildsym-legacy.h.
3336 * windows-nat.c: Include buildsym-legacy.h.
3337 * stabsread.c: Include buildsym-legacy.h.
3338 * mdebugread.c: Include buildsym-legacy.h.
3339 * buildsym-legacy.h: New file.
3340 * buildsym-legacy.c: New file, from buildsym.c.
3341 * go32-nat.c: Include buildsym-legacy.h.
3342 * dwarf2read.c: Include buildsym-legacy.h.
3343 * dbxread.c: Include buildsym-legacy.h.
3344 * cp-namespace.c: Include buildsym-legacy.h.
3345 * coffread.c: Include buildsym-legacy.h.
3346 * buildsym.h: Move some contents to buildsym-legacy.h.
3347 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3349 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3351 2018-07-20 Tom Tromey <tom@tromey.com>
3353 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3354 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3355 (buildsym_compunit::buildsym_compunit)
3356 (buildsym_compunit::~buildsym_compunit)
3357 (buildsym_compunit::get_macro_table): Define.
3359 2018-07-20 Tom Tromey <tom@tromey.com>
3361 * buildsym.c (reset_symtab_globals): Remove.
3362 (buildsym_compunit::end_symtab_from_static_block): Update.
3363 (buildsym_compunit::augment_type_symtab): Update.
3364 (end_symtab_from_static_block): Call free_buildsym_compunit.
3365 (augment_type_symtab, end_symtab, end_expandable_symtab):
3368 2018-07-20 Tom Tromey <tom@tromey.com>
3370 * arch-utils.c: Do not include buildsym.h.
3371 * mipsread.c: Do not include buildsym.h.
3372 * machoread.c: Do not include buildsym.h.
3373 * elfread.c: Do not include buildsym.h.
3375 2018-07-20 Tom Tromey <tom@tromey.com>
3377 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3379 (buildsym_compunit): Add new constructor.
3380 (struct buildsym_compunit) <get_last_source_file, finish_block,
3381 record_block_range, start_subfile, patch_subfile_names,
3382 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3383 set_last_source_start_addr, get_last_source_start_addr,
3384 get_local_using_directives, set_local_using_directives,
3385 get_global_using_directives, outermost_context_p,
3386 get_current_context_stack, get_context_stack_depth,
3387 get_current_subfile, get_local_symbols, get_file_symbols,
3388 get_global_symbols, record_debugformat, record_producer,
3389 push_context, pop_context, end_symtab_get_static_block,
3390 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3392 <record_pending_block, finish_block_internal, make_blockvector,
3393 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3397 2018-05-22 Tom Tromey <tom@tromey.com>
3399 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3401 (finish_block_internal): Update.
3403 2018-07-20 Tom Tromey <tom@tromey.com>
3405 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3407 (finish_block_internal): Update.
3409 2018-07-20 Tom Tromey <tom@tromey.com>
3411 * buildsym.h (EXTERN): Don't define or undef.
3412 * buildsym.c (EXTERN): Don't define.
3414 2018-07-20 Tom Tromey <tom@tromey.com>
3416 * buildsym.c: Remove TODO comment.
3418 2018-07-20 Tom Tromey <tom@tromey.com>
3420 * coffread.c (coff_symtab_read): Update.
3421 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3422 (xcoff_new_init): Update.
3423 * mipsread.c (mipscoff_new_init): Update.
3424 * mdebugread.c (mdebug_build_psymtabs): Update.
3425 * elfread.c (elf_new_init): Update.
3426 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3428 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3429 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3430 (stabsect_build_psymtabs): Update.
3431 * buildsym.h (buildsym_init): Don't declare.
3432 * buildsym.c: Update comment.
3433 (prepare_for_building): Remove.
3434 (start_symtab, restart_symtab): Update.
3435 (reset_symtab_globals): Update comment.
3436 (buildsym_init): Remove.
3438 2018-07-20 Tom Tromey <tom@tromey.com>
3440 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3441 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3442 (read_enum_type, common_block_start, common_block_end)
3443 (cleanup_undefined_types_1, finish_global_stabs): Update.
3444 * mdebugread.c (psymtab_to_symtab_1): Update.
3445 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3446 (read_lexical_block_scope, new_symbol): Update.
3447 * dbxread.c (process_one_symbol): Update.
3448 * coffread.c (coff_symtab_read, process_coff_symbol)
3449 (coff_read_enum_type): Update.
3450 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3452 (get_local_symbols, get_file_symbols, get_global_symbols): New
3454 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3456 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3457 (~scoped_free_pendings): Update.
3458 (finish_block, prepare_for_building, reset_symtab_globals)
3459 (end_symtab_get_static_block, end_symtab_with_blockvector)
3460 (augment_type_symtab, push_context): Update.
3461 (get_local_symbols, get_file_symbols, get_global_symbols): New
3463 (buildsym_init): Update.
3465 2018-07-20 Tom Tromey <tom@tromey.com>
3467 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3468 (process_full_type_unit): Likewise.
3469 (dwarf2_start_symtab): Set list_in_scope.
3471 2018-07-20 Tom Tromey <tom@tromey.com>
3473 * dwarf2read.c (process_psymtab_comp_unit_reader)
3474 (build_type_psymtabs_reader): Do not set list_in_scope.
3476 2018-07-20 Tom Tromey <tom@tromey.com>
3478 * buildsym.c (free_pendings): Remove.
3479 (add_symbol_to_list, scoped_free_pendings)
3480 (finish_block_internal, buildsym_init): Update.
3482 2018-07-20 Tom Tromey <tom@tromey.com>
3484 * xcoffread.c (read_xcoff_symtab): Update.
3485 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3487 * dbxread.c (process_one_symbol): Update.
3488 * coffread.c (coff_symtab_read): Update.
3489 * buildsym.h (finish_block): Update.
3490 * buildsym.c (finish_block): Remove "listhead" argument.
3491 (end_symtab_get_static_block): Update.
3493 2018-07-20 Tom Tromey <tom@tromey.com>
3495 * buildsym.h (class scoped_free_pendings): Remove constructor.
3496 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3498 <m_pending_block_obstack, m_pending_blocks>: New members.
3499 (pending_block_obstack, pending_blocks): Remove.
3500 (scoped_free_pendings::scoped_free_pendings): Default.
3501 (~scoped_free_pendings): Update.
3502 (free_pending_blocks): Remove.
3503 (finish_block_internal, record_pending_block, make_blockvector)
3504 (end_symtab_get_static_block, augment_type_symtab, push_context)
3505 (buildsym_init): Update.
3507 2018-07-20 Tom Tromey <tom@tromey.com>
3509 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3510 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3512 (pending_addrmap, pending_addrmap_obstack)
3513 (pending_addrmap_interesting): Remove.
3514 (scoped_free_pendings, record_block_range, make_blockvector)
3515 (prepare_for_building, reset_symtab_globals, buildsym_init):
3518 2018-07-20 Tom Tromey <tom@tromey.com>
3520 * xcoffread.c (process_linenos): Update.
3521 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3522 * mdebugread.c (psymtab_to_symtab_1): Update.
3523 * dwarf2read.c (setup_type_unit_groups)
3524 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3525 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3526 * dbxread.c (process_one_symbol): Update.
3527 * coffread.c (coff_symtab_read, enter_linenos)
3528 (process_coff_symbol): Update.
3529 * buildsym.h (current_subfile): Don't declare.
3530 (get_current_subfile): Declare.
3531 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3533 (start_subfile, free_buildsym_compunit, push_subfile)
3534 (prepare_for_building, start_symtab): Update.
3535 (get_current_subfile): New function.
3537 2018-07-20 Tom Tromey <tom@tromey.com>
3539 * coffread.c (coff_symtab_read): Update.
3540 * xcoffread.c (read_xcoff_symtab): Update.
3541 * dwarf2read.c (new_symbol): Update.
3542 (read_func_scope, read_lexical_block_scope): Update.
3543 * dbxread.c (process_one_symbol): Update.
3544 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3545 (outermost_context_p): Remove macro.
3546 (outermost_context_p, get_current_context_stack)
3547 (get_context_stack_depth): Declare.
3548 (pop_context): Return struct context_stack.
3549 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3551 (context_stack_size): Remove.
3552 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3553 (prepare_for_building, end_symtab_get_static_block)
3554 (augment_type_symtab, push_context): Update.
3555 (pop_context): Return struct context_stack.
3556 (outermost_context_p, get_current_context_stack)
3557 (get_context_stack_depth): New functions.
3558 (buildsym_init): Update.
3560 2018-07-20 Tom Tromey <tom@tromey.com>
3562 * rust-exp.y: Now a pure parser. Update all rules.
3563 (%union): Move earlier.
3564 (current_parser, work_obstack): Remove globals.
3565 (rust_parser, ~rust_parser): Update.
3566 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3567 lex_character, lex_number, lex_string, lex_identifier,
3568 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3569 convert_name, convert_params_to_expression,
3570 convert_ast_to_expression, ast_basic_type, ast_operation,
3571 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3572 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3573 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3574 ast_array_type, ast_slice_type, ast_reference_type,
3575 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3576 (rust_parse): Update.
3577 (rustyyerror, rustyylex): Add parser parameter.
3578 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3579 (rust_lex_stringish_test, rust_lex_test_sequence)
3580 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3581 (rust_lex_test_push_back, rust_lex_tests): Update.
3583 2018-07-19 Pedro Alves <palves@redhat.com>
3585 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3586 gdb::unique_xmalloc_ptr.
3587 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3588 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3589 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3590 copy-initialization.
3591 * guile/scm-pretty-print.c (ppscm_print_children): Use
3592 gdb::unique_xmalloc_ptr instead of cleanups.
3593 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3594 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3595 gdb::unique_xmalloc_ptr.
3596 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3597 Adjust to use gdb::unique_xmalloc_ptr.
3598 * guile/scm-utils.c (extract_arg): Adjust.
3599 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3600 gdb::unique_xmalloc_ptr instead of a cleanup.
3602 2018-07-19 Tom Tromey <tom@tromey.com>
3604 * utils.c (do_value_free_to_mark)
3605 (make_cleanup_value_free_to_mark): Remove.
3606 * utils.h (make_cleanup_value_free_to_mark): Remove.
3608 2018-07-19 Pedro Alves <palves@redhat.com>
3610 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3611 forwarding reference.
3613 2018-07-18 Pedro Alves <palves@redhat.com>
3615 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3616 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3619 2018-07-18 Pedro Alves <palves@redhat.com>
3621 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3623 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3625 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3626 directly instead of a cleanup.
3627 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3628 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3629 (vlscm_binop_gdbthrow): New, factored out from ...
3630 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3631 (vlscm_rich_compare): Use gdbscm_wrap.
3632 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3633 instead of a cleanup.
3634 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3636 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3637 Use xfree directly instead of a cleanup.
3638 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3639 Adjust to use gdbscm_wrap and scoped_value_mark.
3640 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3641 (gdbscm_value_address, gdbscm_value_dereference)
3642 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3644 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3645 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3647 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3648 gdbscm_wrap and scoped_value_mark.
3649 (gdbscm_value_to_string): Use xfree directly instead of a
3650 cleanup. Move 'buffer' unique_ptr to TRY scope.
3651 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3652 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3654 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3655 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3657 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3660 2018-07-18 Tom de Vries <tdevries@suse.de>
3662 * findvar.c (default_read_var_value): Also resolve dynamic type for
3663 LOC_OPTIMIZED_OUT vars.
3665 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3667 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3670 2018-07-17 Tom Tromey <tom@tromey.com>
3672 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3673 (compute_enum_list, pascm_set_param_value_x)
3674 (gdbscm_parameter_value): Update.
3675 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3676 (gdbscm_scm_to_host_string): Update.
3677 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3679 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3680 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3681 * guile/scm-string.c (gdbscm_scm_to_string): Return
3683 (gdbscm_scm_to_host_string): Likewise.
3685 2018-07-17 Tom Tromey <tom@tromey.com>
3687 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3688 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3689 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3690 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3693 2018-07-17 Tom Tromey <tom@tromey.com>
3695 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3696 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3698 * guile/scm-cmd.c (cmdscm_function): Update.
3699 * guile/scm-pretty-print.c
3700 (ppscm_print_exception_unless_memory_error): Update.
3701 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3702 Return unique_xmalloc_ptr.
3704 2018-07-17 Tom Tromey <tom@tromey.com>
3706 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3709 2018-07-17 Jim Wilson <jimw@sifive.com>
3711 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3712 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3713 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3714 unecessary braces after EF_RISCV_RVC test. Delete call to
3715 set_gdbarch_decr_pc_after_break.
3717 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3718 RISCV_LAST_FP_REGNUM + 1.
3719 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3721 2018-07-17 Tom Tromey <tom@tromey.com>
3723 * configure.ac: Remove --disable-gdbcli.
3724 * configure: Rebuild.
3725 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3726 (SUBDIR_CLI_CFLAGS): Remove.
3727 (SFILES): Use SUBDIR_CLI_SRCS.
3728 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3730 2018-07-17 Tom Tromey <tom@tromey.com>
3733 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3735 2018-07-16 Jim Wilson <jimw@sifive.com>
3737 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3739 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3741 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3743 (libunwind_frame_sniffer): Likewise.
3744 (libunwind_frame_prev_register): Likewise.
3745 (libunwind_sigtramp_frame_sniffer): Likewise.
3746 * ia64-tdep.c (ia64_access_reg): Likewise.
3747 (ia64_access_rse_reg): Likewise.
3748 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3749 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3751 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3753 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3755 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3757 * remote-sim.c (gdbsim_target::close,
3758 gdbsim_target::mourn_inferior): Remove unused variables.
3760 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3762 * ia64-tdep.c (ktab_buf): New global.
3763 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3764 (get_kernel_table): Adjust.
3766 2018-07-16 Tom Tromey <tom@tromey.com>
3768 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3769 * dwarf2read.c (using_directives, new_symbol): Use
3770 outermost_context_p.
3771 * dbxread.c (process_one_symbol): Use outermost_context_p.
3772 * coffread.c (coff_symtab_read): Use outermost_context_p.
3774 2018-07-16 Tom Tromey <tom@tromey.com>
3776 * dwarf2read.c (using_directives, read_func_scope)
3777 (read_lexical_block_scope): Update.
3778 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3779 * buildsym.h (local_using_directives, global_using_directives):
3781 (get_local_using_directives, set_local_using_directives)
3782 (get_global_using_directives): Declare.
3783 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3784 m_global_using_directives>: New members.
3785 (finish_block_internal, prepare_for_building)
3786 (reset_symtab_globals, end_symtab_get_static_block)
3787 (push_context): Update.
3788 (get_local_using_directives, set_local_using_directives)
3789 (get_global_using_directives): New functions.
3790 (buildsym_init): Update.
3792 2018-07-16 Tom Tromey <tom@tromey.com>
3794 * xcoffread.c (xcoff_initial_scan): Don't call
3795 free_pending_blocks.
3796 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3797 * buildsym.h (class scoped_free_pendings): Add constructor.
3798 (free_pending_blocks): Don't declare.
3799 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3800 (free_pending_blocks): Now static.
3802 2018-07-16 Tom Tromey <tom@tromey.com>
3804 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3805 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3807 (struct subfile_stack): Remove.
3808 (subfile_stack): Remove.
3809 (push_subfile, pop_subfile, buildsym_init): Update.
3811 2018-07-16 Tom Tromey <tom@tromey.com>
3813 * buildsym.c (push_subfile): Use gdb_assert.
3814 (pop_subfile): Use gdb_assert.
3816 2018-07-16 Tom Tromey <tom@tromey.com>
3818 * buildsym.h (merge_symbol_lists): Remove.
3819 * buildsym.c (merge_symbol_lists): Remove.
3821 2018-07-16 Tom Tromey <tom@tromey.com>
3823 * stabsread.c (scan_file_globals): Update comment.
3824 * stabsread.h (scan_file_globals): Move from buildsym.h.
3825 * buildsym.h (scan_file_globals): Move to stabsread.h.
3827 2018-07-16 Tom Tromey <tom@tromey.com>
3829 * xcoffread.c (xcoff_new_init): Update.
3830 * mipsread.c (mipscoff_new_init): Update.
3831 * mdebugread.c (mdebug_build_psymtabs): Update.
3832 * elfread.c (elf_new_init): Update.
3833 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
3834 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
3835 * buildsym.h (buildsym_new_init): Don't declare.
3836 * buildsym.c (buildsym_new_init): Remove.
3838 2018-07-16 Tom Tromey <tom@tromey.com>
3840 * stabsread.h (within_function): Move from buildsym.h.
3841 * stabsread.c (start_stabs): Clear within_function.
3842 * coffread.c (coff_start_symtab): Clear within_function.
3843 * buildsym.h (within_function): Move to stabsread.h.
3844 * buildsym.c (prepare_for_building): Update.
3846 2018-07-16 Tom Tromey <tom@tromey.com>
3848 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
3849 * dwarf2read.c (dwarf2_start_symtab): Don't set
3850 processing_gcc_compilation.
3851 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
3853 2018-07-16 Tom Tromey <tom@tromey.com>
3855 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
3856 (next_symbol_text_func): Move from buildsym.h.
3857 * stabsread.c (hashname): Move from buildsym.c.
3858 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
3859 (next_symbol_text_func, hashname): Move to stabsread.h.
3860 * buildsym.c: Don't include bcache.h
3861 (hashname): Move to stasbread.c.
3863 2018-07-16 Tom Tromey <tom@tromey.com>
3865 * buildsym.h (context_stack_size): Don't declare.
3866 * buildsym.c (context_stack_size): New global.
3868 2018-07-16 Tom Tromey <tom@tromey.com>
3870 * dbxread.c (processing_acc_compilation): New global.
3871 * buildsym.h (processing_acc_compilation): Don't declare.
3873 2018-07-16 Tom Tromey <tom@tromey.com>
3875 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
3876 * dbxread.c (read_ofile_symtab): Update.
3877 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
3878 * buildsym.h (last_source_start_addr): Remove.
3879 (set_last_source_start_addr, get_last_source_start_addr):
3881 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
3883 (struct buildsym_compunit) <m_last_source_start_addr>: New
3885 (prepare_for_building): Remove start_addr parameter.
3886 (start_symtab, restart_symtab, end_symtab_get_static_block)
3887 (end_symtab_with_blockvector): Update.
3888 (set_last_source_start_addr, get_last_source_start_addr): New
3891 2018-07-16 Tom Tromey <tom@tromey.com>
3893 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
3895 (have_line_numbers): Remove.
3896 (record_line, prepare_for_building, end_symtab_get_static_block)
3897 (augment_type_symtab): Update.
3899 2018-07-16 Tom Tromey <tom@tromey.com>
3901 * buildsym.c (~buildsym_compunit): Free the macro table.
3902 (struct buildsym_compunit) <get_macro_table, release_macros>: New
3904 <m_pending_macros>: New member.
3905 (pending_macros): Remove.
3906 (~scoped_free_pendings, get_macro_table, prepare_for_building)
3907 (reset_symtab_globals, end_symtab_get_static_block)
3908 (end_symtab_with_blockvector, augment_type_symtab)
3909 (buildsym_init): Update.
3911 2018-07-16 Tom Tromey <tom@tromey.com>
3913 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
3915 (buildsym_compunit::set_last_source_file): New method.
3916 <m_last_source_file>: New member.
3917 (prepare_for_building): Remove "name" parameter.
3918 (start_symtab, restart_symtab, reset_symtab_globals): Update.
3919 (last_source_file): Remove.
3920 (set_last_source_file, get_last_source_file): Update.
3922 2018-07-16 Tom Tromey <tom@tromey.com>
3924 * buildsym.c (prepare_for_building): Add assert.
3926 2018-07-16 Tom Tromey <tom@tromey.com>
3928 * buildsym.c (~buildsym_compunit): Update.
3929 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
3930 (start_subfile, patch_subfile_names)
3931 (end_symtab_with_blockvector): Update.
3933 2018-07-16 Tom Tromey <tom@tromey.com>
3935 * buildsym.c (struct buildsym_compunit): Add constructor,
3936 destructor, initializers.
3937 (start_buildsym_compunit): Remove.
3938 (free_buildsym_compunit): Use "delete".
3939 (start_symtab, restart_symtab): Use "new".
3941 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
3943 * symfile.c (set_objfile_default_section_offset): Remove struct
3946 2018-07-14 Stafford Horne <shorne@gmail.com>
3948 * (Responsible Maintainers): Add myself as or1k maintainer.
3950 2018-07-13 Tom Tromey <tom@tromey.com>
3952 * symfile.c (set_objfile_default_section_offset): Use extra braces
3955 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
3957 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
3960 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3962 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
3963 unittests/cli-utils-selftests.c
3964 * unittests/cli-utils-selftests.c: New file.
3966 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3968 * NEWS: Mention new commands. Mention change to 'thread apply'.
3970 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3972 * thread.c (thr_try_catch_cmd): New function.
3973 (thread_apply_all_command): Handle qcs flags.
3974 (thread_apply_command): Handle qcs flags.
3975 (taas_command): New function.
3976 (tfaas_command): New function.
3977 (_initialize_thread): Update to setup the new commands 'taas
3978 and 'tfaas'. Change doc string for 'thread apply'.
3980 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3982 * stack.c: (trailing_outermost_frame): New function, mostly
3983 extracted from backtrace_command_1.
3984 (leading_innermost_frame): New function.
3985 (backtrace_command_1): Update to call trailing_outermost_frame.
3986 (frame_apply_command_count): New function.
3987 (frame_apply_level_command): New function.
3988 (frame_apply_all_command): New function.
3989 (frame_apply_command): New function.
3990 (faas_command): New function.
3991 (frame_cmd_list): New variable.
3992 (_initialize_stack): Update to setup the new commands 'frame apply'
3995 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3997 * cli-utils.c (number_or_range_parser::get_number): Only handle
3998 numbers or convenience var as numbers.
3999 (parse_flags): New function.
4000 (parse_flags_qcs): New function.
4001 (number_or_range_parser::finished): Ensure parsing end is detected
4002 before end of string.
4003 * cli-utils.h (parse_flags): New function.
4004 (parse_flags_qcs): New function.
4005 (number_or_range_parser): Remove m_finished bool.
4006 (number_or_range_parser::skip_range): Set m_in_range to false.
4008 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4010 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4013 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4014 Jan Kratochvil <jan.kratochvil@redhat.com>
4015 Paul Fertser <fercerpav@gmail.com>
4016 Tsutomu Seki <sekiriki@gmail.com>
4017 Pedro Alves <palves@redhat.com>
4019 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4020 'unittests/parse-connection-spec-selftests.c'.
4021 (COMMON_SFILES): Add 'common/netstuff.c'.
4022 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4023 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4024 * common/netstuff.c: New file.
4025 * common/netstuff.h: New file.
4026 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4027 (wait_for_connect): Update comment. New parameter
4028 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4029 Use 'sock' directly instead of 'scb->fd'.
4030 (try_connect): New function, with code from 'net_open'.
4031 (net_open): Rewrite main loop to deal with multiple
4032 sockets/addresses. Handle IPv6-style hostnames; implement
4033 support for IPv6 connections.
4034 * unittests/parse-connection-spec-selftests.c: New file.
4036 2018-07-11 Pedro Alves <palves@redhat.com>
4039 * remote.c (remote_target::remote_detach_pid): Call
4040 set_current_process.
4042 2018-07-11 Pedro Alves <palves@redhat.com>
4044 * h8300-tdep.c (h8300_gdbarch_init): Remove
4045 set_gdbarch_ecoff_reg_to_regnum calls.
4047 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4050 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4051 offsets/sizes for static members of a class/struct.
4053 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4055 * target-descriptions.c (tdesc_register_bitsize): Rename.
4056 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4057 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4058 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4060 2018-07-10 Tom Tromey <tom@tromey.com>
4062 * breakpoint.c (moribund_locations): Now static and a
4064 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4065 (build_bpstat_chain, update_global_location_list)
4066 (breakpoint_retire_moribund): Update.
4067 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4070 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4072 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4073 (riscv_register_reggroup_p): Use new function, remove unneeded
4075 (riscv_push_dummy_call): Extend assert to compare against xlen or
4076 flen based on register type.
4078 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4080 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4082 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4084 * remote.c (show_hardware_watchpoint_limit): New function.
4085 (show_hardware_watchpoint_length_limit): New function.
4086 (show_hardware_breakpoint_limit): New function.
4087 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4088 where appropriate, update help text.
4090 2018-07-09 Tom Tromey <tom@tromey.com>
4092 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4093 (CLIBS): Don't mention NAT_CLIBS.
4095 2018-07-09 Tom Tromey <tom@tromey.com>
4097 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4098 (LIBGDB_OBS, clean mostlyclean): Update.
4099 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4101 2018-07-09 Tom Tromey <tom@tromey.com>
4103 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4104 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4105 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4107 2018-07-09 Tom Tromey <tom@tromey.com>
4109 * Makefile.in (ALLDEPFILES): Remove exec.c.
4110 (COMMON_OBS): Remove exec.o.
4111 (COMMON_SFILES): Add exec.c.
4113 2018-07-09 Tom Tromey <tom@tromey.com>
4115 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4117 2018-07-09 Tom Tromey <tom@tromey.com>
4119 * Makefile.in (clean mostlyclean): Remove stamp-version.
4120 (version.c): Depend on stamp-version.
4121 (stamp-version): New rule, from version.c rule.
4123 2018-07-09 Tom Tromey <tom@tromey.com>
4125 * Makefile.in (init.c): Depend on stamp-init.
4126 (stamp-init): New rule, from init.c rule.
4127 (clean mostlyclean): Remove stamp-init.
4129 2018-07-09 Tom Tromey <tom@tromey.com>
4131 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4132 SUBDIR_GCC_COMPILE_SRCS.
4134 2018-07-09 Tom Tromey <tom@tromey.com>
4136 * Makefile.in (init.c): Remove some unused sed rules.
4138 2018-07-09 Tom Tromey <tom@tromey.com>
4140 * Makefile.in (TSOBS): Remove.
4141 (INIT_FILES): Update.
4142 (LIBGDB_OBS): Update.
4143 (COMMON_SFILES): Add inflow.c.
4144 (SFILES): Remove inflow.c.
4146 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4150 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4152 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4153 get_saveloc_name, is_signal_frame_name, step_name,
4154 init_remote_name, create_addr_space_name,
4155 destroy_addr_space_name, search_unwind_table_name,
4156 find_dyn_list_name): Constify.
4158 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4160 * darwin-nat.c (darwin_pthread_kill): New function.
4161 (darwin_resume_thread): Use darwin_pthread_kill.
4163 2018-07-05 Tom de Vries <tdevries@suse.de>
4165 * macroexp.c (macro_buffer) <operator=>: New member function.
4167 2018-07-04 Tom Tromey <tom@tromey.com>
4169 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4171 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4173 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4174 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4175 * maint.c: Likewise.
4178 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4180 * NEWS: Create a new section for the next release branch.
4181 Rename the section of the current branch, now that it has
4184 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4186 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4187 * version.in: Bump version to 8.2.50.DATE-git.
4189 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4190 Pedro Alves <palves@redhat.com>
4192 * linux-nat.c (linux_init_ptrace): Rename to ...
4193 (linux_init_ptrace_procfs): ... this. Call
4194 linux_proc_init_warnings.
4195 (linux_nat_target::post_attach)
4196 (linux_nat_target::post_startup_inferior): Adjust.
4197 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4198 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4200 2018-07-04 Tom de Vries <tdevries@suse.de>
4202 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4204 (read_comp_unit_head): ... here.
4206 2018-07-03 Tom Tromey <tom@tromey.com>
4208 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4209 (stop_tracing, tstatus_command)
4210 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4211 (print_one_static_tracepoint_marker): Update.
4212 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4214 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4216 (all_tracepoints, static_tracepoints_here): Return std::vector.
4218 2018-07-03 Tom Tromey <tom@tromey.com>
4220 * common/ptid.c (ptid_equal): Remove.
4221 * common/ptid.h (ptid_equal): Don't declare.
4222 * ada-tasks.c: Update.
4223 * breakpoint.c: Update.
4224 * common/agent.c: Update.
4225 * corelow.c: Update.
4226 * darwin-nat-info.c: Update.
4227 * darwin-nat.c: Update.
4229 * dtrace-probe.c: Update.
4230 * dummy-frame.c: Update.
4231 * fbsd-nat.c: Update.
4233 * gdbthread.h: Update.
4234 * gnu-nat.c: Update.
4235 * go32-nat.c: Update.
4236 * inf-loop.c: Update.
4237 * inf-ptrace.c: Update.
4238 * infcall.c: Update.
4242 * linux-fork.c: Update.
4243 * linux-nat.c: Update.
4244 * linux-thread-db.c: Update.
4245 * mi/mi-cmd-var.c: Update.
4246 * mi/mi-interp.c: Update.
4247 * mi/mi-main.c: Update.
4248 * nto-procfs.c: Update.
4249 * ppc-linux-tdep.c: Update.
4251 * python/py-inferior.c: Update.
4252 * python/py-record-btrace.c: Update.
4253 * python/py-record.c: Update.
4254 * ravenscar-thread.c: Update.
4255 * regcache.c: Update.
4256 * remote-sim.c: Update.
4258 * sol-thread.c: Update.
4261 * tui/tui-stack.c: Update.
4263 * windows-nat.c: Update.
4264 * windows-tdep.c: Update.
4266 2018-07-03 Tom Tromey <tom@tromey.com>
4268 * common/ptid.c (ptid_match): Remove.
4269 * common/ptid.h (ptid_match): Don't declare.
4270 * fbsd-nat.c: Update.
4273 * linux-nat.c: Update.
4274 * record-btrace.c: Update.
4275 * regcache.c: Update.
4278 2018-07-03 Tom Tromey <tom@tromey.com>
4280 * common/ptid.c (ptid_tid_p): Remove.
4281 * common/ptid.h (ptid_tid_p): Don't declare.
4282 * sol-thread.c: Update.
4284 2018-07-03 Tom Tromey <tom@tromey.com>
4286 * common/ptid.c (ptid_lwp_p): Remove.
4287 * common/ptid.h (ptid_lwp_p): Don't declare.
4288 * fbsd-nat.c: Update.
4289 * linux-nat.c: Update.
4290 * nat/linux-procfs.c: Update.
4291 * nat/x86-linux-dregs.c: Update.
4292 * sol-thread.c: Update.
4294 2018-07-03 Tom Tromey <tom@tromey.com>
4296 * common/ptid.c (ptid_is_pid): Remove.
4297 * common/ptid.h (ptid_is_pid): Don't declare.
4299 * linux-nat.c: Update.
4300 * mi/mi-interp.c: Update.
4304 2018-07-03 Tom Tromey <tom@tromey.com>
4306 * common/ptid.c (ptid_get_tid): Remove.
4307 * common/ptid.h (ptid_get_tid): Don't declare.
4308 * ada-tasks.c: Update.
4309 * aix-thread.c: Update.
4310 * bsd-uthread.c: Update.
4311 * darwin-nat.c: Update.
4312 * fbsd-nat.c: Update.
4313 * i386-darwin-nat.c: Update.
4315 * linux-tdep.c: Update.
4316 * nto-procfs.c: Update.
4317 * ppc-ravenscar-thread.c: Update.
4318 * python/py-infthread.c: Update.
4319 * ravenscar-thread.c: Update.
4320 * sol-thread.c: Update.
4321 * sparc-ravenscar-thread.c: Update.
4322 * windows-nat.c: Update.
4324 2018-07-03 Tom Tromey <tom@tromey.com>
4326 * common/ptid.c (ptid_get_lwp): Remove.
4327 * common/ptid.h (ptid_get_lwp): Don't declare.
4328 * aarch64-linux-nat.c: Update.
4329 * ada-tasks.c: Update.
4330 * aix-thread.c: Update.
4331 * amd64-linux-nat.c: Update.
4332 * arm-linux-nat.c: Update.
4333 * corelow.c: Update.
4334 * fbsd-nat.c: Update.
4335 * fbsd-tdep.c: Update.
4336 * gnu-nat.c: Update.
4337 * i386-cygwin-tdep.c: Update.
4338 * i386-gnu-nat.c: Update.
4339 * i386-linux-nat.c: Update.
4340 * ia64-linux-nat.c: Update.
4341 * inf-ptrace.c: Update.
4343 * linux-fork.c: Update.
4344 * linux-nat.c: Update.
4345 * linux-tdep.c: Update.
4346 * linux-thread-db.c: Update.
4347 * mips-linux-nat.c: Update.
4348 * nat/aarch64-linux-hw-point.c: Update.
4349 * nat/aarch64-linux.c: Update.
4350 * nat/linux-btrace.c: Update.
4351 * nat/linux-osdata.c: Update.
4352 * nat/linux-procfs.c: Update.
4353 * nat/x86-linux-dregs.c: Update.
4354 * obsd-nat.c: Update.
4355 * ppc-fbsd-nat.c: Update.
4356 * ppc-linux-nat.c: Update.
4358 * python/py-infthread.c: Update.
4359 * ravenscar-thread.c: Update.
4361 * s390-linux-nat.c: Update.
4362 * sol-thread.c: Update.
4363 * sol2-tdep.c: Update.
4364 * spu-linux-nat.c: Update.
4365 * x86-linux-nat.c: Update.
4366 * xtensa-linux-nat.c: Update.
4368 2018-07-03 Tom Tromey <tom@tromey.com>
4370 * common/ptid.c (ptid_get_pid): Remove.
4371 * common/ptid.h (ptid_get_pid): Don't declare.
4372 * aarch64-linux-nat.c: Update.
4373 * ada-lang.c: Update.
4374 * aix-thread.c: Update.
4375 * alpha-bsd-nat.c: Update.
4376 * amd64-fbsd-nat.c: Update.
4377 * amd64-linux-nat.c: Update.
4378 * arm-linux-nat.c: Update.
4379 * arm-nbsd-nat.c: Update.
4381 * break-catch-syscall.c: Update.
4382 * breakpoint.c: Update.
4383 * bsd-uthread.c: Update.
4384 * corelow.c: Update.
4386 * darwin-nat.c: Update.
4387 * fbsd-nat.c: Update.
4388 * fbsd-tdep.c: Update.
4390 * gnu-nat.c: Update.
4391 * hppa-nbsd-nat.c: Update.
4392 * hppa-obsd-nat.c: Update.
4393 * i386-fbsd-nat.c: Update.
4394 * ia64-linux-nat.c: Update.
4395 * inf-ptrace.c: Update.
4397 * inferior.c: Update.
4398 * inferior.h: Update.
4401 * linux-fork.c: Update.
4402 * linux-nat.c: Update.
4403 * linux-tdep.c: Update.
4404 * linux-thread-db.c: Update.
4405 * m68k-bsd-nat.c: Update.
4406 * mi/mi-interp.c: Update.
4407 * mi/mi-main.c: Update.
4408 * mips-linux-nat.c: Update.
4409 * mips-nbsd-nat.c: Update.
4410 * mips64-obsd-nat.c: Update.
4411 * nat/aarch64-linux-hw-point.c: Update.
4412 * nat/aarch64-linux.c: Update.
4413 * nat/linux-btrace.c: Update.
4414 * nat/linux-osdata.c: Update.
4415 * nat/linux-procfs.c: Update.
4416 * nat/x86-linux-dregs.c: Update.
4417 * nto-procfs.c: Update.
4418 * obsd-nat.c: Update.
4419 * ppc-linux-nat.c: Update.
4420 * ppc-nbsd-nat.c: Update.
4421 * ppc-obsd-nat.c: Update.
4422 * proc-service.c: Update.
4424 * python/py-inferior.c: Update.
4425 * python/py-infthread.c: Update.
4426 * ravenscar-thread.c: Update.
4428 * remote-sim.c: Update.
4430 * rs6000-nat.c: Update.
4431 * s390-linux-nat.c: Update.
4432 * sh-nbsd-nat.c: Update.
4433 * sol-thread.c: Update.
4434 * sparc-nat.c: Update.
4435 * sparc64-tdep.c: Update.
4436 * spu-linux-nat.c: Update.
4437 * spu-tdep.c: Update.
4438 * target-debug.h: Update.
4441 * tid-parse.c: Update.
4442 * tracefile-tfile.c: Update.
4443 * vax-bsd-nat.c: Update.
4444 * windows-nat.c: Update.
4445 * x86-linux-nat.c: Update.
4446 * x86-nat.c: Update.
4448 2018-07-03 Tom Tromey <tom@tromey.com>
4450 * common/ptid.c (pid_to_ptid): Remove.
4451 * common/ptid.h (pid_to_ptid): Don't declare.
4452 * aix-thread.c: Update.
4453 * arm-linux-nat.c: Update.
4454 * common/ptid.c: Update.
4455 * common/ptid.h: Update.
4456 * corelow.c: Update.
4458 * darwin-nat.c: Update.
4459 * fbsd-nat.c: Update.
4460 * fork-child.c: Update.
4461 * gnu-nat.c: Update.
4462 * go32-nat.c: Update.
4463 * inf-ptrace.c: Update.
4465 * inferior.c: Update.
4467 * linux-fork.c: Update.
4468 * linux-nat.c: Update.
4469 * nat/aarch64-linux-hw-point.c: Update.
4470 * nat/fork-inferior.c: Update.
4471 * nat/x86-linux-dregs.c: Update.
4472 * nto-procfs.c: Update.
4473 * obsd-nat.c: Update.
4475 * progspace.c: Update.
4477 * rs6000-nat.c: Update.
4478 * s390-linux-nat.c: Update.
4479 * sol-thread.c: Update.
4480 * spu-linux-nat.c: Update.
4483 * tracefile-tfile.c: Update.
4484 * windows-nat.c: Update.
4486 2018-07-03 Tom Tromey <tom@tromey.com>
4488 * common/ptid.h (ptid_build): Don't declare.
4489 * common/ptid.c (ptid_build): Remove.
4490 * aix-thread.c: Update.
4491 * bsd-kvm.c: Update.
4492 * bsd-uthread.c: Update.
4493 * common/agent.c: Update.
4494 * common/ptid.c: Update.
4495 * common/ptid.h: Update.
4496 * corelow.c: Update.
4497 * darwin-nat.c: Update.
4498 * fbsd-nat.c: Update.
4499 * gnu-nat.c: Update.
4500 * linux-fork.c: Update.
4501 * linux-nat.c: Update.
4502 * linux-thread-db.c: Update.
4503 * nat/linux-osdata.c: Update.
4504 * nat/linux-procfs.c: Update.
4505 * nto-procfs.c: Update.
4506 * obsd-nat.c: Update.
4507 * proc-service.c: Update.
4509 * ravenscar-thread.c: Update.
4510 * remote-sim.c: Update.
4512 * sol-thread.c: Update.
4514 * windows-nat.c: Update.
4516 2018-07-03 Tom Tromey <tom@tromey.com>
4518 * infrun.c (follow_exec): Use exit_inferior_silent.
4519 * inferior.c (exit_inferior_num_silent): Remove.
4520 * inferior.h (exit_inferior_num_silent): Don't declare.
4522 2018-07-03 Tom Tromey <tom@tromey.com>
4525 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4526 inferior_ptid on error.
4528 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4529 Simon Marchi <simon.marchi@polymtl.ca>
4532 * disasm.h (gdb_disassembler): Add
4533 `m_disassembler_options_holder'. member
4534 * disasm.c (get_all_disassembler_options): New function.
4535 (gdb_disassembler::gdb_disassembler): Use it.
4536 (gdb_buffered_insn_length_init_dis): Likewise.
4537 (gdb_buffered_insn_length): Adjust accordingly.
4538 (set_disassembler_options): Handle options with arguments.
4539 (show_disassembler_options_sfunc): Likewise. Add a leading new
4540 line if showing options with descriptions.
4541 (disassembler_options_completer): Adapt to using the
4542 `disasm_options_and_args_t' structure.
4543 * mips-tdep.c (mips_disassembler_options): New variable.
4544 (mips_disassembler_options_o32): Likewise.
4545 (mips_disassembler_options_n32): Likewise.
4546 (mips_disassembler_options_n64): Likewise.
4547 (gdb_print_insn_mips): Don't set `disassembler_options'.
4548 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4550 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4551 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4552 `gdbarch_disassembler_options_implicit' and
4553 `gdbarch_valid_disassembler_options'.
4554 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4555 `disasm_options_and_args_t' structure.
4556 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4558 (valid_disassembler_options): Switch from `disasm_options_t' to
4559 the `disasm_options_and_args_t' structure.
4560 * NEWS: Document `set disassembler-options' support for the MIPS
4562 * gdbarch.h: Regenerate.
4563 * gdbarch.c: Regenerate.
4565 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4567 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4569 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4571 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4572 parameter in call to amd64_target_description.
4573 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4574 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4575 (amd64fbsd_init_abi): Likewise.
4576 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4577 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4578 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4579 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4581 2018-06-29 Pedro Alves <palves@redhat.com>
4583 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4584 "segments" parameter.
4585 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4586 (_initialize_amd64_tdep): Update call to
4587 amd64_create_target_description.
4588 (amd64_target_description): Add "segments" parameter. Adjust
4589 the implementation to use it.
4590 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4591 call to amd64_create_target_description.
4592 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4593 * gdb/arch/amd64.h (amd64_create_target_description): Add
4594 "segments" register.
4595 * gdb/arch/amd64.c (amd64_create_target_description): Add
4596 "segments" parameter. Call create_feature_i386_64bit_segments
4597 only if SEGMENTS is true.
4598 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4599 call to amd64_create_target_description.
4601 2018-06-29 Pedro Alves <palves@redhat.com>
4603 * thread.c (thread_target_id_str): New, factored out from ...
4604 (print_thread_info_1): ... here. Use it to compute the max
4605 "Target Id" column width.
4607 2018-06-29 Pedro Alves <palves@redhat.com>
4609 * remote.c (remote_target::extra_thread_info): Delete
4610 'display_buf' and 'n' locals. from the cache, regardless of
4611 packet mechanims is in use. Use cache for qThreadExtra and qP
4614 2018-06-29 Pedro Alves <palves@redhat.com>
4616 * blockframe.c (find_pc_sect_containing_function): New function.
4617 * breakpoint.c (print_breakpoint_location): Don't call
4618 find_pc_sect_function.
4619 * linespec.c (create_sals_line_offset): Record the location's
4621 * linespec.c (convert_address_location_to_sals): Fill in sal's
4622 symbol with find_pc_sect_containing_function.
4623 * symtab.c (find_function_start_sal): Rename to ...
4624 (find_function_start_sal_1): ... this.
4625 (find_function_start_sal): Reimplement as wrapper around
4626 find_function_start_sal_1, and use
4627 find_pc_sect_containing_function to fill in the sal's symbol.
4628 (find_function_start_sal(symbol*, bool)): Adjust.
4629 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4631 (find_pc_sect_containing_function): Declare.
4633 2018-06-29 Pedro Alves <palves@redhat.com>
4635 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4636 true if the the location has no symbol.
4638 2018-06-28 Tom Tromey <tom@tromey.com>
4640 * NEWS: Mention --enable-codesign.
4641 * silent-rules.mk (ECHO_SIGN): New variable.
4642 * configure.ac: Add --enable-codesign.
4643 * configure: Rebuild.
4644 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4645 (gdb$(EXEEXT)): Optionally invoke codesign.
4647 2018-06-28 Pedro Alves <palves@redhat.com>
4649 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4651 (switch_to_thread_no_regs): Adjust comment.
4652 * infcmd.c (stop_pc): Delete.
4653 (post_create_inferior, info_program_command): Replace references
4654 to stop_pc with references to thread_info->suspend.stop_pc.
4655 * inferior.h (stop_pc): Delete declaration.
4656 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4657 (handle_inferior_event_1, handle_signal_stop)
4658 (process_event_stop_test, keep_going_stepped_thread)
4659 (handle_step_into_function, handle_step_into_function_backward)
4660 (print_stop_location): Replace references to stop_pc with
4661 references to thread_info->suspend.stop_pc.
4662 (struct infcall_suspend_state) <stop_pc>: Delete field.
4663 (save_infcall_suspend_state, restore_infcall_suspend_state):
4664 Remove references to inf_stat->stop_pc.
4665 * linux-fork.c (fork_load_infrun_state): Likewise.
4666 * record-btrace.c (record_btrace_set_replay): Likewise.
4667 * record-full.c (record_full_goto_entry): Likewise.
4668 * remote.c (print_one_stopped_thread): Likewise.
4669 * target.c (target_resume): Extend comment.
4670 * thread.c (set_executing_thread): New.
4671 (set_executing): Use it.
4672 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4673 Remove references to stop_pc.
4675 2018-06-28 Pedro Alves <palves@redhat.com>
4677 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4678 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4680 2018-06-28 Tom Tromey <tom@tromey.com>
4682 * coffread.c (coff_symfile_finish): Update.
4683 * xcoffread.c (xcoff_symfile_finish): Update.
4684 * elfread.c (elf_symfile_finish): Update.
4685 * symfile.h (dwarf2_free_objfile): Don't declare.
4686 * dwarf2read.c (_initialize_dwarf2_read): Use
4687 register_objfile_data_with_cleanup.
4688 (dwarf2_free_objfile): Now static. Change signature.
4690 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4692 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4693 option "-o" to add-symbol-file-load to add an offset to each
4694 section's load address.
4695 * symfile.c (set_objfile_default_section_offset): New function.
4697 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4699 * symfile.c (add_symbol_file_command): Make sure that sections
4700 with the same name are sorted in the same order.
4702 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4704 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4705 require the second argument. If omitted, load sections at the
4706 addresses specified in the file.
4708 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4710 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4711 (_initialize_symfile): Add option "-o" to symbol-file to add an
4712 offset to each section of the symbol file.
4714 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4716 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4718 2018-06-27 Tom Tromey <tom@tromey.com>
4720 * stack.c (_initialize_stack): Update "func" help text.
4722 2018-06-27 Tom Tromey <tom@tromey.com>
4724 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4726 (unwind_infopy_str, pyuw_create_unwind_info)
4727 (unwind_infopy_add_saved_register, pyuw_sniffer)
4728 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4730 (struct saved_reg): Add constructor.
4731 <value>: Now a gdbpy_ref<>.
4733 2018-06-27 Tom Tromey <tom@tromey.com>
4735 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4737 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4739 * gdb-gdb.py.in: Format using autopep8.
4741 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4743 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4744 (type_lookup_function): Recognize CORE_ADDR values.
4746 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4748 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4751 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4753 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4756 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4758 * gdb-gdb.py: Move to...
4759 * gdb-gdb.py.in: ... here.
4760 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4761 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4763 (distclean): Remove gdb-gdb.py when cleaning.
4764 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4765 * configure: Re-generate.
4767 2018-06-27 Pedro Alves <palves@redhat.com>
4769 * proc-service.c (get_ps_regcache): New.
4770 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4771 (ps_lsetfpregs): Use it.
4773 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4776 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4777 (dwarf_decode_lines_1): Adjust.
4779 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4781 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4783 <info_proc>: Likewise.
4785 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4787 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4788 to windows_fetch_one_register, and only handle the case of
4789 fetching one register. Move the code that reloads the context
4790 and iterates over all registers if R is negative to...
4791 (windows_nat_target::fetch_registers): ... here.
4792 (do_windows_store_inferior_registers): Rename to
4793 windows_store_one_register, and only handle the case of storing
4794 one register. Move the code that handles the case where r is
4796 (windows_nat_target::store_registers) ... here.
4798 2018-06-26 Tom Tromey <tom@tromey.com>
4801 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4802 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4804 (rust_internal_print_type): Add podata parameter.
4805 (rust_print_type): Update.
4807 2018-06-26 Tom Tromey <tom@tromey.com>
4809 * typeprint.h (struct print_offset_data) <update, finish,
4810 maybe_print_hole>: New methods.
4811 <indentation>: New constant.
4812 * typeprint.c (print_offset_data::indentation): Define.
4813 (print_offset_data::maybe_print_hole, print_offset_data::update)
4814 (print_offset_data::finish): Move from c-typeprint.c and rename.
4815 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4816 (print_spaces_filtered_with_print_options): Update.
4817 (c_print_type_union_field_offset, maybe_print_hole)
4818 (c_print_type_struct_field_offset): Move to typeprint.c and
4820 (c_type_print_base_struct_union): Update.
4822 2018-06-25 Pedro Alves <palves@redhat.com>
4824 * gdbthread.h (thread_info_ref, delete_thread)
4825 (delete_thread_silent, first_thread_of_inferior)
4826 (any_thread_of_inferior, switch_to_thread)
4827 (enable_thread_stack_temporaries)
4828 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4829 (get_last_thread_stack_temporary)
4830 (value_in_thread_stack_temporaries, can_access_registers_thread):
4831 Spell out "struct thread_info" instead of just "thread_info".
4832 * inferior.h (notice_new_inferior): Likewise.
4834 2018-06-25 Pedro Alves <palves@redhat.com>
4836 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4837 pass thread_info pointer to delete_thread.
4838 (windows_nat_target::detach): Pass inferior pointer to
4840 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
4842 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
4843 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
4844 and pass a thread_info pointer to delete_thread.
4845 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
4846 pass thread_info pointer to delete_thread.
4847 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
4848 delete_thread_silent call.
4849 * procfs.c (procfs_target::detach): Pass inferior pointer to
4851 (procfs_target::wait): Pass thread_info pointer to delete_thread.
4852 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
4853 delete_thread_silent call.
4854 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
4855 pass thread_info pointer to delete_thread.
4856 (windows_nat_target::detach): Pass inferior pointer to
4859 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4861 * regcache.c (readable_regcache::read_part): Fix asserts.
4862 (reg_buffer::raw_collect_part): New function.
4863 (regcache::write_part): Fix asserts.
4864 (reg_buffer::raw_supply_part): New function.
4865 (regcache::transfer_regset_register): New helper function.
4866 (regcache::transfer_regset): Call new functions.
4867 (regcache_supply_regset): Use gdb_byte*.
4868 (regcache::supply_regset): Likewise.
4869 (regcache_collect_regset): Likewise.
4870 (regcache::collect_regset): Likewise.
4871 * regcache.h (reg_buffer::raw_collect_part): New declaration.
4872 (reg_buffer::raw_supply_part): Likewise.
4873 (regcache::transfer_regset_register): Likewise.
4874 (regcache::transfer_regset): Use gdb_byte*.
4876 2018-06-22 Alan Hayward <alan.hayward@arm.com>
4878 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
4880 2018-06-21 Pedro Alves <palves@redhat.com>
4882 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
4883 instead of a ptid_t. All callers adjusted.
4884 * ada-tasks.c (ada_get_task_number): Likewise. All callers
4886 (print_ada_task_info, display_current_task_id, task_command_1):
4888 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
4890 (breakpoint_kind): Adjust.
4891 (remove_breakpoints_pid): Rename to ...
4892 (remove_breakpoints_inf): ... this. Adjust to take an inferior
4893 pointer. All callers adjusted.
4894 (bpstat_clear_actions): Use inferior_thread.
4895 (get_bpstat_thread): New.
4896 (bpstat_do_actions): Use it.
4897 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
4898 to take a thread_info pointer. All callers adjusted.
4899 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
4900 (breakpoint_re_set_thread): Use inferior_thread.
4901 * breakpoint.h (struct inferior): Forward declare.
4902 (bpstat_stop_status): Update.
4903 (remove_breakpoints_pid): Delete.
4904 (remove_breakpoints_inf): New.
4905 * bsd-uthread.c (bsd_uthread_target::wait)
4906 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
4907 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
4908 (maint_btrace_packet_history_cmd)
4909 (maint_btrace_clear_packet_history_cmd): Adjust.
4910 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
4912 * cli/cli-interp.c: Include "inferior.h".
4913 * common/refcounted-object.h (struct
4914 refcounted_object_ref_policy): New.
4915 * compile/compile-object-load.c: Include gdbthread.h.
4916 (store_regs): Use inferior_thread.
4917 * corelow.c (core_target::close): Use current_inferior.
4918 (core_target_open): Adjust to use first_thread_of_inferior and use
4919 the current inferior.
4920 * ctf.c (ctf_target::close): Adjust to use current_inferior.
4921 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
4922 <thread>: ... this new field. All references adjusted.
4923 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
4924 Take a thread_info pointer instead of a ptid_t.
4925 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
4926 (dummy_frame_discard, register_dummy_frame_dtor): Take a
4927 thread_info pointer instead of a ptid_t.
4928 * elfread.c: Include "inferior.h".
4929 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
4930 Use inferior_thread.
4931 * eval.c (evaluate_subexp): Likewise.
4932 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
4934 * gdb_proc_service.h (struct thread_info): Forward declare.
4935 (struct ps_prochandle) <ptid>: Delete, replaced by ...
4936 <thread>: ... this new field. All references adjusted.
4937 * gdbarch.h, gdbarch.c: Regenerate.
4938 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
4939 'thread' parameter. All implementations and callers adjusted.
4940 * gdbthread.h (thread_info) <set_running>: New method.
4941 (delete_thread, delete_thread_silent): Take a thread_info pointer
4943 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
4944 (first_thread_of_process): Delete, replaced by ...
4945 (first_thread_of_inferior): ... this new function. All callers
4947 (any_live_thread_of_process): Delete, replaced by ...
4948 (any_live_thread_of_inferior): ... this new function. All callers
4950 (switch_to_thread, switch_to_no_thread): Declare.
4951 (is_executing): Delete.
4952 (enable_thread_stack_temporaries): Update comment.
4953 <enable_thread_stack_temporaries>: Take a thread_info pointer
4954 instead of a ptid_t. Incref the thread.
4955 <~enable_thread_stack_temporaries>: Decref the thread.
4958 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4959 (get_last_thread_stack_temporary)
4960 (value_in_thread_stack_temporaries, can_access_registers_thread):
4961 Take a thread_info pointer instead of a ptid_t. All callers
4963 * infcall.c (get_call_return_value): Use inferior_thread.
4964 (run_inferior_call): Work with thread pointers instead of ptid_t.
4965 (call_function_by_hand_dummy): Work with thread pointers instead
4966 of ptid_t. Use thread_info_ref.
4967 * infcmd.c (proceed_thread_callback): Access thread's state
4969 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
4970 access thread's state directly.
4971 (continue_command): Use inferior_thread.
4972 (info_program_command): Use find_thread_ptid and access thread
4974 (proceed_after_attach_callback): Use thread state directly.
4975 (notice_new_inferior): Take a thread_info pointer instead of a
4976 ptid_t. All callers adjusted.
4977 (exit_inferior): Take an inferior pointer instead of a pid. All
4979 (exit_inferior_silent): New.
4980 (detach_inferior): Delete.
4981 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
4982 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
4983 (detach_inferior_command, kill_inferior_command): Use
4984 find_inferior_id instead of valid_gdb_inferior_id and
4985 gdb_inferior_id_to_pid.
4986 (inferior_command): Use inferior and thread pointers.
4987 * inferior.h (struct thread_info): Forward declare.
4988 (notice_new_inferior): Take a thread_info pointer instead of a
4989 ptid_t. All callers adjusted.
4990 (detach_inferior): Delete declaration.
4991 (exit_inferior, exit_inferior_silent): Take an inferior pointer
4992 instead of a pid. All callers adjusted.
4993 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
4994 (valid_gdb_inferior_id): Delete.
4995 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
4996 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
4997 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
4999 <inf>: ... this new field.
5000 <step_ptid>: Delete, replaced by ...
5001 <step_thread>: ... this new field.
5002 (get_displaced_stepping_state): Take an inferior pointer instead
5003 of a pid. All callers adjusted.
5004 (displaced_step_in_progress_any_inferior): Adjust.
5005 (displaced_step_in_progress_thread): Take a thread pointer instead
5006 of a ptid_t. All callers adjusted.
5007 (displaced_step_in_progress, add_displaced_stepping_state): Take
5008 an inferior pointer instead of a pid. All callers adjusted.
5009 (get_displaced_step_closure_by_addr): Adjust.
5010 (remove_displaced_stepping_state): Take an inferior pointer
5011 instead of a pid. All callers adjusted.
5012 (displaced_step_prepare_throw, displaced_step_prepare)
5013 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5014 All callers adjusted.
5015 (start_step_over): Adjust.
5016 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5017 displaced step queue.
5018 (do_target_resume): Adjust.
5019 (fetch_inferior_event): Use inferior_thread.
5020 (context_switch, get_inferior_stop_soon): Take an
5021 execution_control_state pointer instead of a ptid_t. All callers
5023 (switch_to_thread_cleanup): Delete.
5024 (stop_all_threads): Use scoped_restore_current_thread.
5025 * inline-frame.c: Include "gdbthread.h".
5026 (inline_state) <inline_state>: Take a thread pointer instead of a
5027 ptid_t. All callers adjusted.
5028 <ptid>: Delete, replaced by ...
5029 <thread>: ... this new field.
5030 (find_inline_frame_state): Take a thread pointer instead of a
5031 ptid_t. All callers adjusted.
5032 (skip_inline_frames, step_into_inline_frame)
5033 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5034 pointer instead of a ptid_t. All callers adjusted.
5035 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5036 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5037 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5039 * linux-nat.c (get_detach_signal): Likewise.
5040 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5041 (thread_db_notice_clone): Adjust.
5042 (thread_db_find_new_threads_silently)
5043 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5044 a thread pointer instead of a ptid_t. All callers adjusted.
5045 * mi/mi-cmd-var.c: Include "inferior.h".
5046 (mi_cmd_var_update_iter): Update to use thread pointers.
5047 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5049 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5051 (mi_output_running): ... this new function.
5052 (mi_on_resume_1): Adjust to use it.
5053 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5054 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5056 (interrupt_thread_callback): : Adjust to use thread and inferior
5058 * proc-service.c: Include "gdbthread.h".
5059 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5060 * progspace-and-thread.c: Include "inferior.h".
5061 * progspace.c: Include "inferior.h".
5062 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5063 hold a reference to an inferior_object.
5064 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5066 * python/py-inferior.c (struct inferior_object): Give the type a
5067 tag name instead of a typedef.
5068 (python_on_normal_stop): No need to check if the current thread is
5070 (inferior_to_inferior_object): Change return type to
5071 inferior_object. All callers adjusted.
5072 (find_thread_object): Delete, bits factored out to ...
5073 (thread_to_thread_object): ... this new function.
5074 * python/py-infthread.c (create_thread_object): Use
5075 inferior_to_inferior_object.
5076 (thpy_is_stopped): Use thread pointer directly.
5077 (gdbpy_selected_thread): Use inferior_thread.
5078 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5079 field, replaced with ...
5080 <thread>: ... this new field. All users adjusted.
5081 (btpy_insn_or_gap_new): Drop const.
5082 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5084 * python/py-record.c: Include "gdbthread.h".
5085 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5086 a ptid_t. All callers adjusted.
5087 (gdbpy_current_recording): Use inferior_thread.
5088 * python/py-record.h (recpy_record_object) <ptid>: Delete
5089 field, replaced with ...
5090 <thread>: ... this new field. All users adjusted.
5091 (recpy_element_object) <ptid>: Delete
5092 field, replaced with ...
5093 <thread>: ... this new field. All users adjusted.
5094 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5095 a ptid_t. All callers adjusted.
5096 * python/py-threadevent.c: Include "gdbthread.h".
5097 (get_event_thread): Use thread_to_thread_object.
5098 * python/python-internal.h (struct inferior_object): Forward
5100 (find_thread_object, find_inferior_object): Delete declarations.
5101 (thread_to_thread_object, inferior_to_inferior_object): New
5103 * record-btrace.c: Include "inferior.h".
5104 (require_btrace_thread): Use inferior_thread.
5105 (record_btrace_frame_sniffer)
5106 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5107 (get_thread_current_frame): Use scoped_restore_current_thread and
5109 (get_thread_current_frame): Use thread pointer directly.
5110 (record_btrace_replay_at_breakpoint): Use thread's inferior
5112 * record-full.c: Include "inferior.h".
5113 * regcache.c: Include "gdbthread.h".
5114 (get_thread_arch_regcache): Use the inferior's address space
5116 (get_thread_regcache, registers_changed_thread): New.
5117 * regcache.h (get_thread_regcache(thread_info *thread)): New
5119 (registers_changed_thread): New.
5120 (remote_target) <remote_detach_1>: Swap order of parameters.
5121 (remote_add_thread): <remote_add_thread>: Return the new thread.
5122 (get_remote_thread_info(ptid_t)): New overload.
5123 (remote_target::remote_notice_new_inferior): Use thread pointers
5125 (remote_target::process_initial_stop_replies): Use
5126 thread_info::set_running.
5127 (remote_target::remote_detach_1, remote_target::detach)
5128 (extended_remote_target::detach): Adjust.
5129 * stack.c (frame_show_address): Use inferior_thread.
5130 * target-debug.h (target_debug_print_thread_info_pp): New.
5131 * target-delegates.c: Regenerate.
5132 * target.c (default_thread_address_space): Delete.
5133 (memory_xfer_partial_1): Use current_inferior.
5134 (target_detach): Use current_inferior.
5135 (target_thread_address_space): Delete.
5136 (generic_mourn_inferior): Use current_inferior.
5137 * target.h (struct target_ops) <thread_address_space>: Delete.
5138 (target_thread_address_space): Delete.
5139 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5141 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5142 thread pointer instead of a ptid_t. Adjust all callers.
5143 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5144 (first_thread_of_process): Delete, replaced by ...
5145 (first_thread_of_inferior): ... this new function. All callers
5147 (any_thread_of_process): Rename to ...
5148 (any_thread_of_inferior): ... this, and take an inferior pointer.
5149 (any_live_thread_of_process): Rename to ...
5150 (any_live_thread_of_inferior): ... this, and take an inferior
5152 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5153 (value_in_thread_stack_temporaries)
5154 (get_last_thread_stack_temporary): Take a thread pointer instead
5155 of a ptid_t. Adjust all callers.
5156 (thread_info::set_running): New.
5157 (validate_registers_access): Use inferior_thread.
5158 (can_access_registers_ptid): Rename to ...
5159 (can_access_registers_thread): ... this, and take a thread
5161 (print_thread_info_1): Adjust to compare thread pointers instead
5163 (switch_to_no_thread, switch_to_thread): Make extern.
5164 (scoped_restore_current_thread::~scoped_restore_current_thread):
5165 Use m_thread pointer directly.
5166 (scoped_restore_current_thread::scoped_restore_current_thread):
5167 Use inferior_thread.
5168 (thread_command): Use thread pointer directly.
5169 (thread_num_make_value_helper): Use inferior_thread.
5170 * top.c (execute_command): Use inferior_thread.
5171 * tui/tui-interp.c: Include "inferior.h".
5172 * varobj.c (varobj_create): Use inferior_thread.
5173 (value_of_root_1): Use find_thread_global_id instead of
5174 global_thread_id_to_ptid.
5176 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5178 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5180 (regcache::write_part): Likewise.
5181 (readable_regcache::cooked_read_part): Update comment.
5182 (readable_regcache::cooked_write_part): Likewise.
5183 * regcache.h: (readable_regcache::read_part): Likewise.
5184 (regcache::write_part): Likewise.
5186 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5187 Dirk Schubert <dirk.schubert@arm.com>
5189 * aarch64-linux-nat.c (post_attach): New.
5190 (aarch64_linux_nat_target::post_attach): Override post_attach to
5191 record the number of hardware debug registers.
5193 2018-06-20 Tom Tromey <tom@tromey.com>
5195 * python/py-param.c (add_setshow_generic): Make parameters const.
5196 (parmpy_init): Update.
5198 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5200 * regcache.h (regcache_cooked_read_ftype): Rename to...
5201 (register_read_ftype): ...this, change type to function_view.
5202 (class reg_buffer) <save>: Remove src parameter.
5203 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5204 parameter non-const in first overload. Remove src parameter in
5206 * regcache.c (do_cooked_read): Remove.
5207 (readonly_detached_regcache::readonly_detached_regcache): Make
5208 parameter non-const, adjust call to other constructor.
5209 (reg_buffer::save): Remove src parameter.
5210 * frame.c (do_frame_register_read): Remove.
5211 (frame_save_as_regcache): Use lambda function.
5212 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5213 parameter to ppu2spu_data *.
5214 (ppu2spu_sniffer): Use lambda function.
5216 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5218 * record-full.c (record_full_target::insert_breakpoint): Remove
5219 "struct" keyword, add const.
5221 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5223 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5224 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5225 * configure.ac: Remove AC_PREREQ, add missing quoting.
5226 * gnulib/configure.ac: Modernize usage of
5227 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5228 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5229 (AUTOMAKE_VERSION): Bump to 1.15.1.
5230 * configure: Re-generate.
5231 * config.in: Re-generate.
5232 * aclocal.m4: Re-generate.
5233 * gnulib/aclocal.m4: Re-generate.
5234 * gnulib/config.in: Re-generate.
5235 * gnulib/configure: Re-generate.
5236 * gnulib/import/Makefile.in: Re-generate.
5238 2018-06-19 Pedro Alves <palves@redhat.com>
5240 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5241 (lookup_minimal_symbol_by_pc_section): ... here with
5242 gdb_assert_not_reached added.
5244 2018-06-19 Pedro Alves <palves@redhat.com>
5246 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5247 parameter with a block parameter. Compare location's block symbol
5248 with the frame's block instead of addresses.
5249 (skip_inline_frames): Pass the current block instead of the
5250 frame's address. Break out as soon as we determine the frame
5251 should not be skipped.
5253 2018-06-18 Tom Tromey <tom@tromey.com>
5255 * solib-aix.c (solib_aix_get_section_offsets): Return
5257 (solib_aix_solib_create_inferior_hook): Update.
5259 2018-06-18 Tom Tromey <tom@tromey.com>
5261 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5263 2018-06-18 Tom Tromey <tom@tromey.com>
5265 * solib-frv.c (frv_relocate_main_executable): Use
5267 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5270 2018-06-18 Tom Tromey <tom@tromey.com>
5272 * objfiles.h (inhibit_section_map_updates): Update.
5273 (resume_section_map_updates, resume_section_map_updates_cleanup):
5275 * solib-svr4.c (svr4_handle_solib_event): Update.
5276 * objfiles.c (inhibit_section_map_updates): Return
5277 scoped_restore_tmpl<int>.
5278 (resume_section_map_updates, resume_section_map_updates_cleanup):
5281 2018-06-18 Tom Tromey <tom@tromey.com>
5283 * valprint.h (read_string): Update.
5284 * valprint.c (read_string): Change type of "buffer".
5285 (val_print_string): Update.
5286 * python/py-value.c (valpy_string): Update.
5287 * language.h (struct language_defn) <la_get_string>: Change
5289 (default_get_string, c_get_string): Update.
5290 * language.c (default_get_string): Change type of "buffer".
5291 * guile/scm-value.c (gdbscm_value_to_string): Update.
5292 * c-lang.c (c_get_string): Change type of "buffer".
5294 2018-06-18 Tom Tromey <tom@tromey.com>
5296 * ser-mingw.c (struct pipe_state_destroyer): New.
5297 (pipe_state_up): New typedef.
5298 (cleanup_pipe_state): Remove.
5299 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5301 2018-06-18 Tom Tromey <tom@tromey.com>
5303 * rust-lang.h (rust_yyerror): Don't declare.
5304 * rust-lang.c (rust_language_defn): Update.
5305 * rust-exp.y (yyerror): Now static.
5306 * parse.c (parse_exp_in_context_1): Update.
5307 * p-lang.h (p_yyerror): Don't declare.
5308 * p-lang.c (p_language_defn): Update.
5309 * p-exp.y (yyerror): Now static.
5310 * opencl-lang.c (opencl_language_defn): Update.
5311 * objc-lang.c (objc_language_defn): Update.
5312 * m2-lang.h (m2_yyerror): Don't declare.
5313 * m2-lang.c (m2_language_defn): Update.
5314 * m2-exp.y (yyerror): Now static.
5315 * language.h (struct language_defn) <la_error>: Remove.
5316 * language.c (unk_lang_error): Remove.
5317 (unknown_language_defn, auto_language_defn): Remove.
5318 * go-lang.h (go_yyerror): Don't declare.
5319 * go-lang.c (go_language_defn): Update.
5320 * go-exp.y (yyerror): Now static.
5321 * f-lang.h (f_yyerror): Don't declare.
5322 * f-lang.c (f_language_defn): Update.
5323 * f-exp.y (yyerror): Now static.
5324 * d-lang.h (d_yyerror): Don't declare.
5325 * d-lang.c (d_language_defn): Update.
5326 * d-exp.y (yyerror): Now static.
5327 * c-lang.h (c_yyerror): Don't declare.
5328 * c-lang.c (c_language_defn, cplus_language_defn)
5329 (asm_language_defn, minimal_language_defn): Update.
5330 * c-exp.y (yyerror): Now static.
5331 * ada-lang.h (ada_yyerror): Don't declare.
5332 * ada-lang.c (ada_language_defn): Update.
5333 * ada-exp.y (yyerror): Now static.
5335 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5337 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5338 (store_sveregs_to_thread): Likewise.
5339 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5340 (aarch64_linux_store_inferior_registers): Likewise.
5341 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5343 (aarch64_sve_regs_copy_to_regcache): Likewise.
5344 (aarch64_sve_regs_copy_from_regcache): Likewise.
5345 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5347 (aarch64_sve_regs_copy_to_regcache): Likewise.
5348 (aarch64_sve_regs_copy_from_regcache): Likewise.
5349 (sve_context): Structure from Linux headers.
5350 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5351 (SVE_SIG_ZREG_SIZE): Likewise.
5352 (SVE_SIG_PREG_SIZE): Likewise.
5353 (SVE_SIG_FFR_SIZE): Likewise.
5354 (SVE_SIG_REGS_OFFSET): Likewise.
5355 (SVE_SIG_ZREGS_OFFSET): Likewise.
5356 (SVE_SIG_ZREG_OFFSET): Likewise.
5357 (SVE_SIG_ZREGS_SIZE): Likewise.
5358 (SVE_SIG_PREGS_OFFSET): Likewise.
5359 (SVE_SIG_PREG_OFFSET): Likewise.
5360 (SVE_SIG_PREGS_SIZE): Likewise.
5361 (SVE_SIG_FFR_OFFSET): Likewise.
5362 (SVE_SIG_REGS_SIZE): Likewise.
5363 (SVE_SIG_CONTEXT_SIZE): Likewise.
5364 (SVE_PT_REGS_MASK): Likewise.
5365 (SVE_PT_REGS_FPSIMD): Likewise.
5366 (SVE_PT_REGS_SVE): Likewise.
5367 (SVE_PT_VL_INHERIT): Likewise.
5368 (SVE_PT_VL_ONEXEC): Likewise.
5369 (SVE_PT_REGS_OFFSET): Likewise.
5370 (SVE_PT_FPSIMD_OFFSET): Likewise.
5371 (SVE_PT_FPSIMD_SIZE): Likewise.
5372 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5373 (SVE_PT_SVE_PREG_SIZE): Likewise.
5374 (SVE_PT_SVE_FFR_SIZE): Likewise.
5375 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5376 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5377 (__SVE_SIG_TO_PT): Likewise.
5378 (SVE_PT_SVE_OFFSET): Likewise.
5379 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5380 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5381 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5382 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5383 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5384 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5385 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5386 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5387 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5388 (SVE_PT_SVE_SIZE): Likewise.
5389 (SVE_PT_SIZE): Likewise.
5390 (HAS_SVE_STATE): New define.
5392 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5394 * nat/aarch64-sve-linux-sigcontext.h: New file.
5395 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5397 (SVE_VQ_MIN): Likewise.
5398 (SVE_VQ_MAX): Likewise.
5399 (SVE_VL_MIN): Likewise.
5400 (SVE_VL_MAX): Likewise.
5401 (SVE_NUM_ZREGS): Likewise.
5402 (SVE_NUM_PREGS): Likewise.
5403 (sve_vl_valid): Likewise.
5404 (struct user_sve_header): Likewise.
5406 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5407 Richard Bunt <Richard.Bunt@arm.com>
5409 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5410 was requested by GDB.
5412 2018-06-15 Tom de Vries <tdevries@suse.de>
5414 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5416 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5418 * gnulib/update-gnulib.sh: Print expected versions of
5421 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5423 * arch-utils.c (default_type_align): Use type_length_units.
5424 * gdbtypes.c (type_align): Use type_length_units.
5426 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5428 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5429 of 'define' command.
5431 2018-06-14 Tom de Vries <tdevries@suse.de>
5434 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5435 get_no_prettyformat_print_options.
5437 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5439 * sparc-nat.h: Include target.h.
5440 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5441 <fetch_registers>: Remove this argument in function call.
5442 <store_registers>: Remove this argument in function call, remove
5444 <low_forget_process>: Call sparc64_forget_process instead of
5445 sparc_forget_process.
5447 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5449 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5450 (procfs_target::make_corefile_notes): Adjust to new
5451 target_read_alloc return type.
5453 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5454 Stephen Roberts <stephen.roberts@arm.com>
5457 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5458 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5459 Move should_notify_stop local into more inner scope.
5461 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5462 Stephen Roberts <stephen.roberts@arm.com>
5465 * infrun.c (resume_1): Add call to mark_async_event_handler.
5467 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5469 * infrun.c (do_target_wait): Change old version of $pc printed.
5471 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5473 * dwarf2read.c (read_index_from_section): Rename to...
5474 (read_gdb_index_from_section): ... this, update all callers.
5475 (dwarf2_read_index): Rename to...
5476 (dwarf2_read_gdb_index): ... this, update all callers.
5478 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5480 * gdb/hppa-linux-nat.c
5481 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5482 hppa_linux_nat_target::fetch_registers.
5484 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5486 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5487 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5488 (AARCH64_DWARF_SVE_FFR): Likewise.
5489 (AARCH64_DWARF_SVE_P0): Likewise.
5490 (AARCH64_DWARF_SVE_Z0): Likewise.
5492 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5494 * common/common-regcache.h (raw_compare): New function.
5495 * regcache.c (regcache::raw_compare): Likewise.
5496 * regcache.h (regcache::raw_compare): New declaration.
5498 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5500 * common/common-regcache.h (reg_buffer_common): New structure.
5501 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5502 (reg_buffer::raw_supply): Likewise.
5503 (reg_buffer::raw_supply_integer): Likewise.
5504 (reg_buffer::raw_supply_zeroed): Likewise.
5505 (reg_buffer::raw_collect): Likewise.
5506 (reg_buffer::raw_collect_integer): Likewise.
5507 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5508 (reg_buffer::raw_supply): Likewise.
5509 (reg_buffer::raw_supply_integer): Likewise.
5510 (reg_buffer::raw_supply_zeroed): Likewise.
5511 (reg_buffer::raw_collect): Likewise.
5512 (reg_buffer::raw_collect_integer): Likewise.
5514 2018-06-10 Tom Tromey <tom@tromey.com>
5516 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5517 (class remote_state) <stop_reply_queue>: Now std::vector.
5518 (remote_state::~remote_state)
5519 (remote_target::stop_reply_queue_length): Update.
5520 (struct queue_iter_param, remove_child_of_pending_fork)
5521 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5522 (check_pending_event_prevents_wildcard_vcont_callback)
5523 (remove_stop_reply_for_inferior)
5524 (remove_stop_reply_of_remote_state)
5525 (remote_notif_remove_once_on_match)
5526 (stop_reply_match_ptid_and_ws)
5527 (remote_kill_child_of_pending_fork): Remove.
5528 (remote_target::remove_new_fork_children)
5529 (remote_target::check_pending_events_prevent_wildcard_vcont)
5530 (remote_target::discard_pending_stop_replies)
5531 (remote_target::discard_pending_stop_replies_in_queue)
5532 (remote_target::remote_notif_remove_queued_reply)
5533 (remote_target::queued_stop_reply)
5534 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5535 (remote_target::wait, remote_target::kill_new_fork_children)
5536 (remote_target::async): Update.
5538 2018-06-10 Tom Tromey <tom@tromey.com>
5540 * record-full.c (record_full_arch_list_cleanups): Remove.
5541 (record_full_message): Use try/catch.
5542 (record_full_wait_cleanups): Remove.
5543 (record_full_wait_1): Use try/catch.
5544 (record_full_restore): Likewise.
5546 2018-06-10 Tom Tromey <tom@tromey.com>
5548 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5549 declare VEC. Add constructor.
5550 <in_target_beneath>: Now bool.
5551 (record_full_breakpoints): Now a std::vector, static.
5552 (record_full_sync_record_breakpoints)
5553 (record_full_init_record_breakpoints)
5554 (record_full_target::insert_breakpoint)
5555 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5557 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5559 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5560 * serial.c (serial_interface_lookup): Remove struct keyword.
5562 2018-06-10 Tom Tromey <tom@tromey.com>
5564 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5566 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5568 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5570 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5571 "beneath" as a method.
5572 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5573 Use "beneath" as a method.
5575 2018-06-10 Tom Tromey <tom@tromey.com>
5577 * tracefile.c (struct trace_file_writer_deleter): New.
5578 <operator()>: Rename from trace_file_writer_xfree.
5579 (trace_file_writer_up): New typedef.
5580 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5582 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5584 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5585 <m_registers, m_register_status>: Change type to
5587 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5590 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5592 * common/common-regcache.h (enum register_status): Add
5593 underlying type "signed char".
5594 * regcache.h (reg_buffer) <m_register_status>: Change type to
5596 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5597 register_status instead of signed char.
5598 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5599 (reg_buffer::get_register_status): Remove cast.
5600 (readable_regcache::raw_read): Remove cast.
5601 (readable_regcache::cooked_read): Remove cast.
5603 2018-06-09 Tom Tromey <tom@tromey.com>
5605 * source.c (reverse_search_command, forward_search_command): Use
5608 2018-06-09 Tom Tromey <tom@tromey.com>
5610 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5611 (serial_ops_list): Now static, std::vector.
5612 (serial_interface_lookup, serial_add_interface): Update.
5614 2018-06-09 Tom Tromey <tom@tromey.com>
5616 * dwarf2read.c (process_cu_includes): Update.
5617 (process_full_comp_unit): Update.
5618 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5621 2018-06-08 Paul Koning <paul_koning@dell.com>
5625 * python/python.c (do_start_initialization):
5626 Avoid call to internal Python API.
5627 (init__gdb_module): New function.
5629 2018-06-08 Gary Benson <gbenson@redhat.com>
5631 * linux-thread-db.c (valprint.h): New include.
5632 (struct check_thread_db_info): New structure.
5633 (check_thread_db_on_load, tdb_testinfo): New static globals.
5634 (check_thread_db, check_thread_db_callback): New functions.
5635 (try_thread_db_load_1): Run integrity checks if requested.
5636 (maintenance_check_libthread_db): New function.
5637 (_initialize_thread_db): Register "maint check libthread-db"
5638 and "maint set/show check-libthread-db".
5639 * NEWS: Mention the above new commands.
5641 2018-06-08 Tom Tromey <tom@tromey.com>
5643 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5646 2018-06-08 Tom Tromey <tom@tromey.com>
5648 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5650 2018-06-08 Tom Tromey <tom@tromey.com>
5652 * common/btrace-common.h (struct btrace_data): Add constructor,
5653 destructor, move assignment operator.
5654 <empty, clear, fini>: New methods.
5655 <format>: Initialize.
5656 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5657 (btrace_data_empty): Don't declare.
5658 * common/btrace-common.c (btrace_data_init): Remove.
5659 (btrace_data::fini): Rename from btrace_data_fini.
5660 (btrace_data::empty): Rename from btrace_data_empty.
5661 (btrace_data::clear): Rename from btrace_data_clear. Return
5663 * btrace.h (make_cleanup_btrace_data): Don't declare.
5664 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5665 (parse_xml_btrace): Update.
5666 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5667 (maint_btrace_clear_packet_history_cmd): Update.
5669 2018-06-07 Pedro Alves <palves@redhat.com>
5671 * target.h (target_ops) <beneath>: Now a method. All references
5673 (class target_stack): New.
5674 * target.c (g_target_stack): New.
5675 (g_current_top_target): Delete.
5676 (current_top_target): Get the top target out of g_target_stack.
5677 (target_stack::push, target_stack::unpush): New.
5678 (push_target, unpush_target): Reimplement.
5679 (target_is_pushed): Reimplement in terms of g_target_stack.
5680 (target_ops::beneath, target_stack::find_beneath): New.
5682 2018-06-07 Pedro Alves <palves@redhat.com>
5684 * target.h (find_target_beneath): Delete declaration.
5685 * target.c (find_target_beneath): Delete definition.
5686 * aix-thread.c: All callers of find_target_beneath adjusted to
5687 call target_ops::beneath instead.
5688 * bsd-uthread.c: Likewise.
5689 * linux-thread-db.c: Likewise.
5690 * ravenscar-thread.c: Likewise.
5691 * sol-thread.c: Likewise.
5692 * spu-multiarch.c: Likewise.
5694 2018-06-07 Pedro Alves <palves@redhat.com>
5696 * target.h (target_ops) <beneath>: Now a method. All references
5698 (target_ops) <m_beneath>: New.
5699 * target.c (target_ops::beneath): New.
5700 * corelow.c: Adjust all references to target_ops::beneath.
5701 * linux-thread-db.c: Likewise.
5702 * make-target-delegates: Likewise.
5703 * record-btrace.c: Likewise.
5704 * record-full.c: Likewise.
5705 * remote.c: Likewise.
5706 * target.c: Likewise.
5707 * target-delegates.c: Regenerate.
5709 2018-06-07 Pedro Alves <palves@redhat.com>
5711 * target.h (target_stack): Delete.
5712 (current_top_target): Declare function.
5713 * target.c (target_stack): Delete.
5714 (g_current_top_target): New.
5715 (current_top_target): New function.
5716 * auxv.c: Use current_top_target instead of target_stack
5718 * avr-tdep.c: Likewise.
5719 * breakpoint.c: Likewise.
5720 * corefile.c: Likewise.
5721 * elfread.c: Likewise.
5723 * exceptions.c: Likewise.
5724 * frame.c: Likewise.
5725 * gdbarch-selftests.c: Likewise.
5726 * gnu-v3-abi.c: Likewise.
5727 * ia64-tdep.c: Likewise.
5728 * ia64-vms-tdep.c: Likewise.
5729 * infcall.c: Likewise.
5730 * infcmd.c: Likewise.
5731 * infrun.c: Likewise.
5732 * linespec.c: Likewise.
5733 * linux-tdep.c: Likewise.
5734 * minsyms.c: Likewise.
5735 * ppc-linux-nat.c: Likewise.
5736 * ppc-linux-tdep.c: Likewise.
5737 * procfs.c: Likewise.
5738 * regcache.c: Likewise.
5739 * remote.c: Likewise.
5740 * rs6000-tdep.c: Likewise.
5741 * s390-linux-nat.c: Likewise.
5742 * s390-tdep.c: Likewise.
5743 * solib-aix.c: Likewise.
5744 * solib-darwin.c: Likewise.
5745 * solib-dsbt.c: Likewise.
5746 * solib-spu.c: Likewise.
5747 * solib-svr4.c: Likewise.
5748 * solib-target.c: Likewise.
5749 * sparc-tdep.c: Likewise.
5750 * sparc64-tdep.c: Likewise.
5751 * spu-tdep.c: Likewise.
5752 * symfile.c: Likewise.
5753 * symtab.c: Likewise.
5754 * target-descriptions.c: Likewise.
5755 * target-memory.c: Likewise.
5756 * target.c: Likewise.
5757 * target.h: Likewise.
5758 * tracefile-tfile.c: Likewise.
5759 * tracepoint.c: Likewise.
5760 * valops.c: Likewise.
5761 * valprint.c: Likewise.
5762 * value.c: Likewise.
5763 * windows-tdep.c: Likewise.
5764 * mi/mi-main.c: Likewise.
5766 2018-06-07 Tom Tromey <tom@tromey.com>
5768 * valprint.h (build_address_symbolic): Declare.
5769 * printcmd.c (print_address_symbolic): Update.
5770 (build_address_symbolic): Change "name" and "filename" to
5772 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5774 * defs.h (build_address_symbolic): Remove declaration.
5776 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5778 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5779 (aarch64_vnv_type): Add function.
5780 (aarch64_pseudo_register_name): Add V regs for SVE.
5781 (aarch64_pseudo_register_type): Likewise.
5782 (aarch64_pseudo_register_reggroup_p): Likewise.
5783 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5784 (aarch64_pseudo_read_value): Add V regs for SVE.
5785 (aarch64_pseudo_write_2): Use V0 offset for SVE
5786 (aarch64_pseudo_write): Add V regs for SVE.
5787 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5789 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5791 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5792 (sve_vl_from_vq): Likewise.
5794 2018-06-05 Tom Tromey <tom@tromey.com>
5796 * cli/cli-cmds.c (show_version): Update.
5797 * top.c (print_gdb_version): Add "interactive" parameter.
5799 * main.c (captured_main_1): Update.
5800 * top.h (print_gdb_version): Add "interactive" parameter and a
5803 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5805 * common/enum-flags.h: Add trailing semicolon to example in
5808 2018-06-05 Tom Tromey <tom@tromey.com>
5811 * NEWS: Add entry about pager.
5812 * utils.c (pagination_disabled_for_command): New global.
5813 (prompt_for_continue): Allow "c" response to prompt.
5814 (reinitialize_more_filter): Clear
5815 pagination_disabled_for_command.
5816 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5818 2018-06-04 Tom Tromey <tom@tromey.com>
5820 * ada-lang.h (ada_lookup_symbol_list): Update.
5821 * ada-lang.c (resolve_subexp): Update.
5822 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5824 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5825 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5826 results parameter to std::vector.
5827 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5829 * ada-exp.y (block_lookup): Update.
5830 (select_possible_type_sym): Change type of syms. Remove nsyms
5832 (write_var_or_type, write_name_assoc): Update.
5834 2018-06-04 Joel Brobecker <brobecker@adacore.com>
5836 * windows-nat.c (windows_nat_target::xfer_partial): Return
5837 TARGET_XFER_E_IO if we need to delegate to the target beneath
5838 but BENEATH is NULL.
5840 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
5842 * Makefile.in (config.status): Add configure.nat as a
5845 2018-06-04 Tom Tromey <tom@tromey.com>
5847 * cp-name-parser.y (cpname_state): Add method declarations.
5848 (HANDLE_QUAL): Update.
5849 (cpname_state::d_grab, cpname_state::fill_comp)
5850 (cpname_state::make_operator, cpname_state::make_dtor)
5851 (cpname_state::make_builtin_type, cpname_state::make_name)
5852 (cpname_state::d_qualify, cpname_state::d_int_type)
5853 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
5854 (%union): Move earlier.
5856 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5858 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
5860 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5862 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
5863 (aarch64_pseudo_write_1): Likewise.
5864 (aarch64_pseudo_read_value): Use helper.
5865 (aarch64_pseudo_write): Likewise.
5867 2018-06-04 Pedro Alves <palves@redhat.com>
5869 * darwin-nat.c (darwin_ops): Delete.
5870 (darwin_attach_pid): Use get_native_target.
5872 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5874 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
5875 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
5877 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5879 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
5880 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
5881 (aarch64_gdbarch_init): Check for SVE.
5882 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
5884 2018-06-04 Alan Hayward <alan.hayward@arm.com>
5886 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
5887 * aarch64-tdep.h (aarch64_read_description): Likewise.
5888 * arch/aarch64.c (aarch64_create_target_description): Likewise.
5889 * arch/aarch64.h (aarch64_create_target_description): Likewise.
5890 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
5891 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
5892 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
5894 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
5896 * value.c (value_fetch_lazy_bitfield): New.
5897 (value_fetch_lazy_memory): New.
5898 (value_fetch_lazy_register): New.
5899 (value_fetch_lazy): Factor out to smaller functions.
5901 2018-06-01 Tom Tromey <tom@tromey.com>
5903 * cp-name-parser.y (backslashable, represented): Now const.
5905 2018-06-01 Tom Tromey <tom@tromey.com>
5907 * cp-name-parser.y: Include parser-defs.h.
5908 (parser_fprintf): Remove declaration.
5910 2018-06-01 Tom Tromey <tom@tromey.com>
5912 * cp-name-parser.y: Use %pure-parser, %lex-param, and
5914 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
5915 (global_result): Remove globals.
5916 (struct cpname_state): New.
5917 (yyparse): Don't declare.
5918 (yylex, yyerror): Move declarations after %union.
5919 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
5920 (make_name): Add state parameter.
5922 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
5924 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
5926 (yylex): Add lvalp, state parameters.
5927 (yyerror): Add state parameter.
5928 (cp_demangled_name_to_comp): Update.
5930 2018-06-01 Tom Tromey <tom@tromey.com>
5932 * cp-name-parser.y (parser_fprintf): Declare.
5933 (GDB_YY_REMAP_PREFIX): Define.
5934 Include yy-remap.h. Don't redefine yy* identifiers.
5936 2018-06-01 Tom Tromey <tom@tromey.com>
5938 * python/py-type.c (typy_legacy_template_argument): Update.
5939 * cp-support.h (cp_demangled_name_to_comp): Update.
5940 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
5941 parameter to be a "std::string *".
5944 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
5946 * ada-lex.l: Include "diagnostics.h" instead of
5947 "common/diagnostics.h".
5948 * unittests/environ-selftests.c: Likewise.
5949 * common/diagnostics.h: Moved to ../include.
5951 2018-06-01 Joel Brobecker <brobecker@adacore.com>
5953 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
5954 to language_mode_manual while calling breakpoint_re_set_one.
5956 2018-06-01 Tom Tromey <tom@tromey.com>
5958 * valops.c (value_cast_structs, destructor_name_p): Update.
5959 * symtab.c (gdb_mangle_name): Update.
5960 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
5962 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
5963 (pascal_object_print_value_fields, pascal_object_print_value):
5965 * p-typeprint.c (pascal_type_print_derivation_info): Update.
5966 * linespec.c (find_methods): Update.
5967 * gdbtypes.h (type_name_no_tag): Remove.
5968 (type_name_or_error): Rename from type_name_no_tag_or_error.
5969 * gdbtypes.c (type_name_no_tag): Remove.
5970 (type_name_or_error): Rename from type_name_no_tag_or_error.
5971 (lookup_struct_elt_type, check_typedef): Update.
5972 * expprint.c (print_subexp_standard): Update.
5973 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
5974 * d-namespace.c (d_lookup_nested_symbol): Update.
5975 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
5976 (cp_print_class_member): Update.
5977 * cp-namespace.c (cp_lookup_nested_symbol): Update.
5978 * completer.c (add_struct_fields): Update.
5979 * c-typeprint.c (cp_type_print_derivation_info)
5980 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
5982 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
5983 (ada_prefer_type, ada_is_exception_sym): Update.
5985 2018-06-01 Tom Tromey <tom@tromey.com>
5987 * valops.c (enum_constant_from_type, value_namespace_elt)
5988 (value_maybe_namespace_elt): Update.
5989 * valarith.c (find_size_for_pointer_math): Update.
5990 * target-descriptions.c (make_gdb_type): Update.
5991 * symmisc.c (print_symbol): Update.
5992 * stabsread.c (define_symbol, read_type)
5993 (complain_about_struct_wipeout, add_undefined_type)
5994 (cleanup_undefined_types_1): Update.
5995 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
5996 (rust_range_type_p, val_print_struct, rust_print_struct_def)
5997 (rust_internal_print_type, rust_composite_type)
5998 (rust_evaluate_funcall, rust_evaluate_subexp)
5999 (rust_inclusive_range_type_p): Update.
6000 * python/py-type.c (typy_get_tag): Update.
6001 * p-typeprint.c (pascal_type_print_base): Update.
6002 * mdebugread.c (parse_symbol, parse_type): Update.
6003 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6005 * guile/scm-type.c (gdbscm_type_tag): Update.
6006 * go-lang.c (sixg_string_p): Update.
6007 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6009 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6010 (TYPE_TAG_NAME): Remove.
6011 * gdbtypes.c (type_name_no_tag): Simplify.
6012 (check_typedef, check_types_equal, recursive_dump_type)
6013 (copy_type_recursive, arch_composite_type): Update.
6014 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6015 in summary mode when needed.
6016 * eval.c (evaluate_funcall): Update.
6017 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6018 (process_structure_scope, read_enumeration_type)
6019 (read_namespace_type, read_module_type, determine_prefix): Update.
6020 * cp-support.c (inspect_type): Update.
6021 * coffread.c (process_coff_symbol, decode_base_type): Update.
6022 * c-varobj.c (c_is_path_expr_parent): Update.
6023 * c-typeprint.c (c_type_print_base_struct_union): Update.
6024 (c_type_print_base_1): Update. Print struct/class/union/enum in
6025 summary when using C language.
6026 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6027 (gen_maybe_namespace_elt): Update.
6028 * ada-lang.c (ada_type_name): Simplify.
6029 (empty_record, ada_template_to_fixed_record_type_1)
6030 (template_to_static_fixed_type)
6031 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6033 2018-06-01 Tom Tromey <tom@tromey.com>
6035 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6037 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6038 (c_print_type): Update.
6039 (c_print_type): New overload.
6040 (c_type_print_varspec_prefix, c_type_print_args)
6041 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6042 (c_type_print_base_struct_union, c_type_print_base_1)
6043 (cp_type_print_method_args): Add "language" parameter.
6044 (c_type_print_base): Update.
6045 * c-lang.h (c_print_type): Add new overload.
6047 2018-06-01 Tom Tromey <tom@tromey.com>
6049 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6050 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6052 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6054 * aarch64-tdep.c (aarch64_sve_register_names): New const
6056 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6057 (AARCH64_SVE_Z_REGS_NUM): New define.
6058 (AARCH64_SVE_P_REGS_NUM): Likewise.
6059 (AARCH64_SVE_NUM_REGS): Likewise.
6061 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6063 * nat/linux-ptrace.h [__alpha__]
6064 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6067 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6069 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6070 the endianness selected.
6071 * NEWS: Document `set endian auto' mode operation update.
6073 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6075 * Makefile.in: Add new header.
6076 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6077 (sve_vl_from_vg): Likewise.
6078 (sve_vq_from_vl): Likewise.
6079 (sve_vl_from_vq): Likewise.
6080 (sve_vq_from_vg): Likewise.
6081 (sve_vg_from_vq): Likewise.
6082 * configure.nat: Add new c file.
6083 * nat/aarch64-sve-linux-ptrace.c: New file.
6084 * nat/aarch64-sve-linux-ptrace.h: New file.
6086 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6088 * aarch64-linux-nat.c (aarch64_linux_read_description):
6090 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6092 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6093 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6094 (aarch64_gdbarch_init): Add parmeter zero.
6095 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6096 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6097 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6099 * doc/gdb.texinfo: Describe SVE feature
6100 * features/aarch64-sve.c: New file.
6102 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6105 * gdbarch.sh (significant_addr_bit): Default to zero when
6106 not set by target architecture.
6107 * gdbarch.c: Re-generated.
6108 * utils.c (address_significant): Update.
6110 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6112 * stack.c (func_command): Remove trailing newline in call to error.
6114 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6116 * regcache.h (regcache_raw_collect): Remove, update callers to
6117 use regcache::raw_collect.
6118 * regcache.c (regcache_raw_collect): Remove.
6120 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6122 * regcache.h (regcache_raw_supply): Remove, update callers to
6123 use detached_regcache::raw_supply.
6124 * regcache.c (regcache_raw_supply): Remove.
6126 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6128 * regcache.h (regcache_cooked_write_part): Remove, update
6129 callers to use regcache::cooked_write_part.
6130 * regcache.c (regcache_cooked_write_part): Remove.
6132 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6134 * regcache.h (regcache_cooked_read_part): Remove, update callers
6135 to use readable_regcache::cooked_read_part.
6136 * regcache.c (regcache_cooked_read_part): Remove.
6138 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6140 * regcache.h (regcache_cooked_read_value): Remove, update
6141 callers to use readable_regcache::cooked_read_value.
6142 * regcache.c (regcache_cooked_read_value): Remove.
6144 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6146 * regcache.h (regcache_cooked_write): Remove, update callers to
6147 use regcache::cooked_write.
6148 * regcache.c (regcache_cooked_write): Remove.
6150 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6152 * regcache.h (regcache_invalidate): Remove, update callers to
6153 use detached_regcache::invalidate instead.
6154 * regcache.c (regcache_invalidate): Remove.
6156 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6158 * regcache.h (regcache_raw_write_part): Remove, update callers
6159 to use regcache::raw_write_part instead.
6160 * regcache.c (regcache_raw_write_part): Remove.
6162 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6164 * regcache.h (regcache_raw_read_part): Remove, update callers to
6165 use readable_regcache::raw_read_part instead.
6166 * regcache.c (regcache_raw_read_part): Remove.
6168 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6170 * regcache.h (regcache_cooked_read): Remove, update callers to
6171 use readable_regcache::cooked_read instead.
6172 * regcache.c (regcache_cooked_read): Remove.
6174 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6176 * regcache.h (regcache_raw_write): Remove, update callers to use
6177 regcache::raw_write instead.
6178 * regcache.c (regcache_raw_write): Remove.
6180 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6182 * regcache.h (regcache_raw_read): Remove, update callers to use
6183 readable_regcache::raw_read instead.
6184 * regcache.c (regcache_raw_read): Remove.
6186 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6188 * regcache.h (regcache_raw_update): Remove, update callers to
6189 use readable_regcache::raw_update instead.
6190 * regcache.c (regcache_raw_update): Remove.
6192 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6194 * regcache.h (regcache_register_status): Remove, update callers
6195 to use reg_buffer::get_register_status directly instead.
6196 * regcache.c (regcache_register_status): Remove.
6198 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6200 * regcache.h (regcache_get_ptid): Remove, update all callers to
6201 call regcache::ptid instead.
6202 * regcache.c (regcache_get_ptid): Remove.
6204 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6206 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6208 2018-05-30 Pedro Alves <palves@redhat.com>
6210 * common/common-exceptions.h (exception_rethrow): Use
6213 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6215 * breakpoint.c (print_solib_event, check_status_catch_solib):
6216 Remove struct keyword in range-based for loops.
6217 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6218 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6220 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6222 * symfile.c (addr_info_make_relative): Likewise.
6223 * thread.c (value_in_thread_stack_temporaries): Likewise.
6225 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6228 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6229 aggregate type to get its real type before accessing it.
6231 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6233 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6234 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6235 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6236 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6237 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6238 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6239 * printcmd.c (info_address_command): Likewise.
6241 2018-05-29 Tom Tromey <tom@tromey.com>
6243 * windows-nat.c (handle_exception): Update fall-through comment.
6245 2018-05-29 Tom Tromey <tom@tromey.com>
6247 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6248 (struct program_space) <added_solibs>: Now a std::vector.
6249 * breakpoint.c (print_solib_event): Update.
6250 (check_status_catch_solib): Update.
6251 * progspace.c (clear_program_space_solib_cache): Update.
6252 * solib.c (update_solib_list): Update.
6254 2018-05-29 Tom Tromey <tom@tromey.com>
6256 * python/py-type.c (typy_richcompare): Update.
6257 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6258 * gdbtypes.h (types_deeply_equal): Return bool.
6259 (types_equal): Likewise.
6260 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6262 (check_types_equal): Change worklist to std::vector. Return
6264 (struct type_equality_entry): Add constructor.
6265 (compare_maybe_null_strings): Return bool.
6266 (check_types_worklist): Return bool. Change worklist to
6268 (types_deeply_equal): Use std::vector.
6269 (types_equal): Return bool.
6270 (compare_maybe_null_strings): Simplify.
6272 2018-05-29 Tom Tromey <tom@tromey.com>
6274 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6276 2018-05-29 Tom Tromey <tom@tromey.com>
6278 * objc-lang.h: Don't include cp-support.h.
6279 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6282 2018-05-27 Tom Tromey <tom@tromey.com>
6284 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6286 2018-05-25 Tom Tromey <tom@tromey.com>
6288 * value.c (value::location): Initialize.
6290 2018-05-25 Tom Tromey <tom@tromey.com>
6292 * dbxread.c (init_bincl_list): Remove.
6293 (bincl_list): Now a std::vector.
6294 (bincls_allocated, next_bincl): Remove.
6295 (free_bincl_list, do_free_bincl_list_cleanup)
6296 (make_cleanup_free_bincl_list): Remove.
6297 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6299 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6300 (struct header_file_location): Add constructor.
6301 (add_bincl_to_list): Remove.
6303 2018-05-25 Tom Tromey <tom@tromey.com>
6305 * tui/tui.c (tui_enable): Update.
6306 * mi/mi-interp.c (mi_interp::init): Update.
6307 * interps.h (class interp) <name>: New method.
6308 <m_name>: Rename from name.
6309 (~scoped_restore_interp): Update.
6310 * interps.c (interp::interp): Update.
6311 (interp_add, interp_set, interp_lookup_existing)
6312 (current_interp_named_p): Update.
6314 2018-05-25 Tom Tromey <tom@tromey.com>
6316 * interps.c (interp_name): Remove.
6317 * mi/mi-interp.c (mi_interp::init): Update.
6318 * interps.h (interp_name): Remove.
6319 (~scoped_restore_interp): Update.
6320 * tui/tui.c (tui_enable): Update.
6322 2018-05-25 Tom Tromey <tom@tromey.com>
6324 * utils.c (fputs_maybe_filtered): Update.
6325 * linespec.c (decode_line_full): Update.
6326 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6327 (mi_print_breakpoint_for_event, mi_solib_loaded)
6328 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6329 (mi_user_selected_context_changed): Update.
6330 * mi/mi-main.c (mi_execute_command): Update.
6331 * cli/cli-script.c (execute_control_command): Update.
6332 * python/python.c (execute_gdb_command): Update.
6333 * solib.c (info_sharedlibrary_command): Update.
6334 * interps.c (interp_ui_out): Remove.
6335 * interps.h (interp_ui_out): Remove.
6337 2018-05-25 Tom Tromey <tom@tromey.com>
6339 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6340 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6341 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6343 2018-05-25 Tom Tromey <tom@tromey.com>
6345 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6346 * interps.c (interp_exec): Use scoped_restore.
6348 2018-05-25 Tom Tromey <tom@tromey.com>
6350 * remote.c (remote_target::remote_file_get): Use
6352 (remote_target::remote_file_put): Likewise.
6354 2018-05-25 Tom Tromey <tom@tromey.com>
6356 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6358 (get_pe_section_index, add_pe_exported_sym): Update.
6359 (read_pe_exported_syms): Use gdb::def_vector.
6361 2018-05-25 Tom Tromey <tom@tromey.com>
6363 * frame.c (remove_prev_frame): Remove.
6364 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6366 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6368 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6370 * mips-linux-nat.c (supply_fpregset): Always call
6371 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6372 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6373 `mips_fill_fpregset'.
6374 * mips-linux-tdep.c (mips_supply_fpregset)
6375 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6376 (mips_fill_fpregset_wrapper): Remove functions.
6377 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6378 (mips_linux_fpregset): Remove variable.
6379 (mips_linux_iterate_over_regset_sections): Use
6380 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6381 (mips_linux_o32_sigframe_init): Remove comment.
6383 2018-05-25 Pedro Alves <palves@redhat.com>
6385 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6386 (struct readahead_cache, struct packet_reg, struct
6387 remote_arch_state, class remote_state): Move higher up in the
6389 (remote_target::m_remote_state): Now an object instead of a pointer.
6390 (remote_target::get_remote_state): Adjust.
6392 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6394 * stack.c (select_and_print_frame): Delete.
6395 (struct function_bounds): Move struct within function.
6396 (func_command): Most content moved into new function
6397 find_frame_for_function, use new function, print result, add
6399 (find_frame_for_function): New function, now returns a result.
6401 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6403 * stack.c (iterate_over_block_arg_vars): Fix comment.
6404 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6406 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6410 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6412 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6414 * frame.h (class scoped_restore_selected_frame): New class.
6415 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6416 of any exception, use scoped_restore_selected_frame to restore the
6419 2018-05-24 Pedro Alves <palves@redhat.com>
6421 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6424 2018-05-23 Tom Tromey <tom@tromey.com>
6426 * complaints.c (struct complaints): Remove.
6427 (symfile_complaint_book): Remove.
6428 (series): New global.
6429 (complaint_internal): Update.
6430 (clear_complaints): Update.
6432 2018-05-23 Tom Tromey <tom@tromey.com>
6434 * complaints.c (counters): New global.
6435 (struct complain): Remove.
6436 (struct complaints) <root>: Remove.
6437 (complaint_sentinel): Remove.
6438 (symfile_complaint_book): Update.
6439 (find_complaint) Remove.
6440 (complaint_internal, clear_complaints): Update.
6442 2018-05-23 Tom Tromey <tom@tromey.com>
6444 * complaints.c (struct complain) <file, line>: Remove.
6445 (find_complaint): Remove file, line parameters.
6446 (complaint_internal): Update.
6448 2018-05-23 Tom Tromey <tom@tromey.com>
6450 * complaints.c (vcomplaint): Remove.
6451 (complaint_internal) Merge in contents of vcomplaint.
6453 2018-05-23 Tom Tromey <tom@tromey.com>
6455 * complaints.c (struct complaints) <explanation>: Remove.
6456 (symfile_explanations): Remove.
6457 (symfile_complaint_book): Update.
6458 (vcomplaint): Update.
6459 (struct explanation): Remove.
6461 2018-05-23 Tom Tromey <tom@tromey.com>
6463 * complaints.c (symfile_complaints): Remove.
6464 (complaint_internal): Remove "complaints" parameter.
6465 (clear_complaints, vcomplaint): Remove "c" parameter.
6466 (get_complaints): Remove.
6467 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6468 (dwarf2_debug_line_missing_file_complaint)
6469 (dwarf2_debug_line_missing_end_sequence_complaint)
6470 (dwarf2_complex_location_expr_complaint)
6471 (dwarf2_const_value_length_mismatch_complaint)
6472 (dwarf2_section_buffer_overflow_complaint)
6473 (dwarf2_macro_malformed_definition_complaint)
6474 (dwarf2_invalid_attrib_class_complaint)
6475 (create_addrmap_from_index, dw2_symtab_iter_next)
6476 (dw2_expand_marked_cus)
6477 (dw2_debug_names_iterator::find_vec_in_debug_names)
6478 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6479 (create_debug_type_hash_table, init_cutu_and_read_dies)
6480 (partial_die_parent_scope, add_partial_enumeration)
6481 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6482 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6483 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6484 (create_cus_hash_table, create_dwp_hash_table)
6485 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6486 (dwarf2_rnglists_process, dwarf2_ranges_process)
6487 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6488 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6489 (handle_struct_member_die, process_structure_scope)
6490 (read_array_type, read_common_block, read_module_type)
6491 (read_tag_pointer_type, read_typedef, read_base_type)
6492 (read_subrange_type, load_partial_dies, partial_die_info::read)
6493 (partial_die_info::read, partial_die_info::read)
6494 (partial_die_info::read, read_checked_initial_length_and_offset)
6495 (dwarf2_string_attr, read_formatted_entries)
6496 (dwarf_decode_line_header)
6497 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6498 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6499 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6500 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6501 (get_signatured_type, get_DW_AT_signature_type)
6502 (decode_locdesc, file_file_name, consume_improper_spaces)
6503 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6504 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6505 (dwarf2_symbol_mark_computed, set_die_type)
6506 (read_attribute_value): Update.
6507 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6509 * dbxread.c (unknown_symtype_complaint)
6510 (lbrac_mismatch_complaint, repeated_header_complaint)
6511 (set_namestring, function_outside_compilation_unit_complaint)
6512 (read_dbx_symtab, process_one_symbol): Update.
6513 * gdbtypes.c (stub_noname_complaint): Update.
6514 * windows-nat.c (handle_unload_dll): Update.
6515 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6516 (decode_base_type): Update.
6517 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6518 (eb_complaint, record_include_begin, record_include_end)
6519 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6520 (process_xcoff_symbol, read_symbol)
6521 (function_outside_compilation_unit_complaint)
6522 (scan_xcoff_symtab): Update.
6523 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6524 * buildsym.c (finish_block_internal, make_blockvector)
6525 (end_symtab_get_static_block, augment_type_symtab): Update.
6526 * dtrace-probe.c (dtrace_process_dof)
6527 (dtrace_static_probe_ops::get_probes): Update.
6528 * complaints.h (struct complaint): Don't declare.
6529 (symfile_complaints): Remove.
6530 (complaint_internal): Remove "complaints" parameter.
6531 (complaint): Likewise.
6532 (clear_complaints): Likewise.
6533 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6534 (reread_symbols): Update.
6535 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6536 (dwarf2_frame_cache, decode_frame_entry): Update.
6537 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6538 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6539 (info_selectors_command): Update.
6540 * macrotab.c (macro_include, check_for_redefinition)
6541 (macro_undef): Update.
6542 * objfiles.c (filter_overlapping_sections): Update.
6543 * stabsread.c (invalid_cpp_abbrev_complaint)
6544 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6545 (define_symbol, error_type, read_type, rs6000_builtin_type)
6546 (stabs_method_name_from_physname, read_member_functions)
6547 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6548 (attach_fields_to_type, complain_about_struct_wipeout)
6549 (read_range_type, read_args, common_block_start)
6550 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6552 * mdebugread.c (index_complaint, unknown_ext_complaint)
6553 (basic_type_complaint, bad_tag_guess_complaint)
6554 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6555 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6556 (parse_procedure, parse_lines)
6557 (function_outside_compilation_unit_complaint)
6558 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6559 (bad_tag_guess_complaint, reg_value_complaint): Update.
6560 * cp-support.c (demangled_name_complaint): Update.
6561 * macroscope.c (sal_macro_scope): Update.
6562 * dwarf-index-write.c (class debug_names): Update.
6564 2018-05-23 Tom Tromey <tom@tromey.com>
6566 * complaints.c (clear_complaints): Remove "noisy" parameter.
6567 * complaints.h (clear_complaints): Update.
6568 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6569 (reread_symbols): Update.
6571 2018-05-23 Tom Tromey <tom@tromey.com>
6573 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6575 (vcomplaint, clear_complaints): Update.
6576 (symfile_explanations): Remove some messages.
6578 2018-05-23 Tom Tromey <tom@tromey.com>
6580 * complaints.c (internal_complaint): Remove.
6581 * complaints.h (internal_complaint): Remove.
6583 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6585 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6587 2018-05-22 Pedro Alves <palves@redhat.com>
6589 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6590 (remote_fileio_badfd, remote_fileio_return_errno)
6591 (remote_fileio_return_success, remote_fileio_func_open)
6592 (remote_fileio_func_open, remote_fileio_func_close)
6593 (remote_fileio_func_read, remote_fileio_func_write)
6594 (remote_fileio_func_lseek, remote_fileio_func_rename)
6595 (remote_fileio_func_unlink, remote_fileio_func_stat)
6596 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6597 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6598 remote_target parameter.
6599 (remote_fio_func_map) <func>: Add remote_target parameter.
6600 (do_remote_fileio_request, remote_fileio_request):
6601 * remote-fileio.h (remote_fileio_request):
6602 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6603 remote_target parameter.
6604 (remote_notif_process, handle_notification): Adjust to pass down
6606 (remote_notif_state_allocate): Add remote_target parameter. Save
6608 * remote-notif.h (struct remote_target): Forward declare.
6609 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6610 remote_target parameter.
6611 (struct remote_notif_state) <remote>: New field.
6612 (remote_notif_ack, remote_notif_parse): Add remote_target
6614 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6615 remote_target parameter.
6616 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6617 (threads_listing_context, rmt_thread_action, protocol_feature)
6618 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6619 (packet_result, struct threads_listing_context, remote_state):
6620 Move definitions and declarations higher up.
6621 (remote_target) <~remote_target>: Declare.
6622 (remote_download_command_source, remote_file_put, remote_file_get)
6623 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6624 (remote_hostio_pread_vFile, remote_hostio_send_command)
6625 (remote_hostio_set_filesystem, remote_hostio_open)
6626 (remote_hostio_close, remote_hostio_unlink, remote_state)
6627 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6628 (get_memory_write_packet_size, get_memory_read_packet_size)
6629 (append_pending_thread_resumptions, remote_detach_1)
6630 (append_resumption, remote_resume_with_vcont)
6631 (add_current_inferior_and_thread, wait_ns, wait_as)
6632 (process_stop_reply, remote_notice_new_inferior)
6633 (process_initial_stop_replies, remote_add_thread)
6634 (btrace_sync_conf, remote_btrace_maybe_reopen)
6635 (remove_new_fork_children, kill_new_fork_children)
6636 (discard_pending_stop_replies, stop_reply_queue_length)
6637 (check_pending_events_prevent_wildcard_vcont)
6638 (discard_pending_stop_replies_in_queue, stop_reply)
6639 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6640 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6641 (remote_interrupt_as, remote_interrupt_ns)
6642 (remote_get_noisy_reply, remote_query_attached)
6643 (remote_add_inferior, remote_current_thread, get_current_thread)
6644 (set_thread, set_general_thread, set_continue_thread)
6645 (set_general_process, write_ptid)
6646 (remote_unpack_thread_info_response, remote_get_threadinfo)
6647 (parse_threadlist_response, remote_get_threadlist)
6648 (remote_threadlist_iterator, remote_get_threads_with_ql)
6649 (remote_get_threads_with_qxfer)
6650 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6651 (get_offsets, remote_check_symbols, remote_supported_packet)
6652 (remote_query_supported, remote_packet_size)
6653 (remote_serial_quit_handler, remote_detach_pid)
6654 (remote_vcont_probe, remote_resume_with_hc)
6655 (send_interrupt_sequence, interrupt_query)
6656 (remote_notif_get_pending_events, fetch_register_using_p)
6657 (send_g_packet, process_g_packet, fetch_registers_using_g)
6658 (store_register_using_P, store_registers_using_G)
6659 (set_remote_traceframe, check_binary_download)
6660 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6661 (remote_xfer_live_readonly_partial, remote_read_bytes)
6662 (remote_send_printf, remote_flash_write, readchar)
6663 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6664 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6665 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6666 (extended_remote_disable_randomization, extended_remote_run)
6667 (send_environment_packet, extended_remote_environment_support)
6668 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6669 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6670 (packet_command): Now methods of ...
6671 (remote_target): ... this class.
6672 (m_remote_state) <remote_target>: New field.
6673 (struct remote_state) <stop_reply_queue,
6674 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6676 (remote_state::remote_state): Allocate stop_reply_queue.
6677 (remote_state): Delete global.
6678 (get_remote_state_raw): Delete.
6679 (remote_target::get_remote_state): Allocate m_remote_state on
6681 (get_current_remote_target): New.
6682 (remote_ops, extended_remote_ops): Delete.
6683 (wait_forever_enabled_p, remote_async_inferior_event_token):
6684 Delete, moved to struct remote_state.
6685 (remote_target::close): Delete self. Destruction bits split to
6687 (remote_target::~remote_target): ... this.
6688 (show_memory_packet_size): Adjust to use
6689 get_current_remote_target.
6690 (struct protocol_feature) <func>: Add remote_target parameter.
6691 All callers adjusted.
6692 (curr_quit_handler_target): New.
6693 (remote_serial_quit_handler): Reimplement.
6694 (remote_target::open_1): Adjust to use get_current_remote_target.
6695 Heap-allocate remote_target/extended_remote_target instances.
6696 (vcont_builder::vcont_builder): Add remote_target parameter, and
6697 save it in m_remote. All callers adjusted.
6698 (vcont_builder::m_remote): New field.
6699 (vcont_builder::restart, vcont_builder::flush)
6700 (vcont_builder::push_action): Use it.
6701 (remote_target::commit_resume): Use it.
6702 (struct queue_iter_param) <remote>: New field.
6703 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6704 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6705 (check_pending_event_prevents_wildcard_vcont_callback)
6706 (remote_target::check_pending_events_prevent_wildcard_vcont)
6707 (remote_target::discard_pending_stop_replies)
6708 (remote_target::discard_pending_stop_replies_in_queue)
6709 (remote_target::remote_notif_remove_queued_reply): Fill in
6711 (remote_notif_get_pending_events): New.
6712 (remote_target::readchar, remote_target::remote_serial_write):
6713 Save/restore curr_quit_handler_target.
6715 (kill_new_fork_children): Fill in 'remote' field.
6716 (packet_command): Use get_current_remote_target, defer to
6717 remote_target method of same name.
6718 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6719 parameter, and save it in m_remote. All callers adjusted.
6720 (scoped_remote_fd::release): Use m_remote.
6721 (scoped_remote_fd::m_remote): New field.
6722 (remote_file_put, remote_file_get, remote_file_delete): Use
6723 get_current_remote_target, defer to remote_target method of same
6725 (remote_btrace_reset): Add remote_state paremeter. Update all
6727 (remote_async_inferior_event_handler). Pass down 'data'.
6728 (remote_new_objfile): Use get_current_remote_target.
6729 (remote_target::vcont_r_supported): New.
6730 (set_range_stepping): Use get_current_remote_target and
6731 remote_target::vcont_r_supported.
6732 (_initialize_remote): Don't allocate 'remote_state' and
6733 'stop_reply_queue' globals.
6734 * remote.h (struct remote_target): Forward declare.
6735 (getpkt, putpkt, remote_notif_get_pending_events): Add
6736 'remote_target' parameter.
6738 2018-05-22 Pedro Alves <palves@redhat.com>
6740 * remote.c (vcont_builder): Now a class. Make all data members
6742 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6744 (vcont_builder_restart): Rename to ...
6745 (vcont_builder::restart): ... this.
6746 (vcont_builder_flush): Rename to ...
6747 (vcont_builder::flush): ... this.
6748 (vcont_builder_push_action): Rename to ...
6749 (vcont_builder::push_action): ... this.
6750 (remote_target::commit_resume): Adjust.
6752 2018-05-22 Pedro Alves <palves@redhat.com>
6754 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6755 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6756 (get_fixed_memory_packet_size): New.
6757 (get_memory_packet_size): Use it.
6758 (set_memory_packet_size): Don't override the config size with
6759 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6760 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6761 Don't refer to get_memory_packet_size if not connected to a remote
6762 target. Show "(default)" if configured size is 0.
6764 2018-05-22 Pedro Alves <palves@redhat.com>
6766 * remote.c (remote_target::mourn_inferior): Move
6767 discard_pending_stop_replies call here from ...
6768 (_initialize_remote): ... here.
6770 2018-05-22 Pedro Alves <palves@redhat.com>
6772 * remote.c (compare_section_command): Remove set_general_process
6775 2018-05-22 Pedro Alves <palves@redhat.com>
6777 * remote.c (struct packet_reg, struct remote_arch_state):
6778 Move higher up in the file.
6779 (remote_state) <m_arch_states>: Store remote_arch_state values
6780 instead of remote_arch_state pointers.
6781 (remote_state::get_remote_arch_state): Adjust.
6783 2018-05-22 Pedro Alves <palves@redhat.com>
6785 * remote.c: Include <unordered_map>.
6786 (remote_state): Now a class.
6787 (remote_state) <get_remote_arch_state>: Declare method.
6788 <get_remote_arch_state>: New field.
6789 (remote_arch_state) <remote_arch_state>: Declare ctor.
6790 <regs>: Now a unique_ptr.
6791 (remote_gdbarch_data_handle): Delete.
6792 (get_remote_arch_state): Delete.
6793 (remote_state::get_remote_arch_state): New.
6794 (get_remote_state): Adjust to call remote_state's
6795 get_remote_arch_state method.
6796 (init_remote_state): Delete, bits factored out to ...
6797 (remote_arch_state::remote_arch_state): ... this new method.
6798 (get_remote_packet_size, get_memory_packet_size)
6799 (process_g_packet, remote_target::fetch_registers)
6800 (remote_target::prepare_to_store, store_registers_using_G)
6801 (remote_target::store_registers, remote_target::get_trace_status):
6802 Adjust to call remote_state's method.
6803 (_initialize_remote): Remove reference to
6804 remote_gdbarch_data_handle.
6806 2018-05-22 Pedro Alves <palves@redhat.com>
6808 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6809 pread>: New method declarations.
6810 (remote_target::open_1): Adjust.
6811 (readahead_cache_invalidate): Rename to ...
6812 (readahead_cache::invalidate): ... this, and adjust to be a class
6814 (readahead_cache_invalidate_fd): Rename to ...
6815 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6817 (remote_hostio_pwrite): Adjust.
6818 (remote_hostio_pread_from_cache): Rename to ...
6819 (readahead_cache::pread): ... this, and adjust to be a class
6821 (remote_hostio_close): Adjust.
6823 2018-05-22 Pedro Alves <palves@redhat.com>
6825 * remote.c (remote_hostio_close_cleanup): Delete.
6826 (class scoped_remote_fd): New.
6827 (remote_file_put, remote_file_get): Use it.
6829 2018-05-22 Pedro Alves <palves@redhat.com>
6831 (struct vCont_action_support): Use bool and initialize all fields.
6832 (struct readahead_cache): Initialize all fields.
6833 (remote_state): Use bool and initialize all fields.
6834 (remote_state::remote_state, remote_state::~remote_state): New.
6835 (new_remote_state): Delete.
6836 (_initialize_remote): Use new to allocate remote_state.
6838 2018-05-22 Pedro Alves <palves@redhat.com>
6842 * c-exp.y: Include "c-support.h".
6843 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
6844 of tolower. Use c_ident_is_alpha to scan names.
6845 * c-lang.c: Include "c-support.h".
6846 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
6847 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
6848 * c-support.h: New file, with bits factored out from ...
6849 * cp-name-parser.y: ... this file.
6850 Include "c-support.h".
6851 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
6852 c-support.h and renamed.
6853 (symbol_end, yylex): Adjust.
6855 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6857 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
6858 parameter type to CORE_ADDR.
6859 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
6860 parameter type in declaration to CORE_ADDR.
6861 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
6862 target_auxv_search to get AT_HWCAP and use the result to get the
6864 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
6865 to CORE_ADDR. Remove the cast of the return value to unsigned
6866 long. Fix error predicate of target_auxv_search.
6867 (ppc_linux_nat_target::read_description): Change the type of the
6868 hwcap variable to CORE_ADDR.
6870 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6872 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
6873 if the size of fpscr is larger than 32 bits.
6875 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6877 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
6878 (ppc32_linux_vsxregmap): New global.
6879 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
6880 regcache_supply_regset, and regcache_collect_regset.
6881 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
6882 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
6883 (fetch_vsx_register, store_vsx_register): Remove.
6884 (fetch_vsx_registers): Add regno parameter. Get regset using
6885 ppc_linux_vsxregset. Use regset to supply registers.
6886 (store_vsx_registers): Add regno parameter. Get regset using
6887 ppc_linux_vsxregset. Use regset to collect registers.
6888 (fetch_register): Call fetch_vsx_registers instead of
6890 (store_register): Call store_vsx_registers instead of
6892 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
6893 new regno parameter.
6894 (store_ppc_registers): Call store_vsx_registers with -1 for the
6895 new regno parameter.
6896 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
6897 (ppc_collect_vsxregset): Remove.
6899 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6901 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
6903 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
6904 for vector register offset fields.
6905 (ppc64_fbsd_reg_offsets): Likewise.
6906 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6907 to vector register offset fields.
6908 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
6909 to vector register offset fields.
6910 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
6911 vector register offset fields.
6912 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
6913 initializers for vector register offset fields.
6914 (rs6000_aix64_reg_offsets): Likewise.
6915 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
6916 (ppc_supply_vrregset): Remove.
6917 (ppc_collect_vrregset): Remove.
6918 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
6919 (ppc_linux_vrregset) : New function.
6920 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
6921 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
6922 (ppc32_linux_vrregset): Remove.
6923 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
6924 and use result instead of ppc32_linux_vrregset.
6925 (ppc32_linux_reg_offsets): Remove initializers for vector register
6927 (ppc64_linux_reg_offsets): Likewise.
6928 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
6929 * ppc-linux-nat.c: Include regset.h.
6930 (gdb_vrregset_t): Adjust comment to account for little-endian
6932 (supply_vrregset, fill_vrregset): Remove.
6933 (fetch_altivec_register, store_altivec_register): Remove.
6934 (fetch_altivec_registers): Add regno parameter. Get regset using
6935 ppc_linux_vrregset. Use regset to supply registers.
6936 (store_altivec_registers): Add regno parameter. Get regset using
6937 ppc_linux_vrregset. Use regset to collect registers.
6938 (fetch_register): Call fetch_altivec_registers instead of
6939 fetch_altivec_register.
6940 (store_register): Call store_altivec_registers instead of
6941 store_altivec_register.
6942 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
6943 the new regno parameter.
6944 (store_ppc_registers): Call store_altivec_registers with -1 for
6945 the new regno parameter.
6947 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6949 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
6950 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
6951 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6952 (gdb_vrregset_t): Change array type size to
6953 PPC_LINUX_SIZEOF_VRREGSET.
6954 (gdb_vsxregset_t): Change array type size to
6955 PPC_LINUX_SIZEOF_VSXREGSET.
6956 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
6957 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
6958 PPC_LINUX_SIZEOF_VSXREGSET.
6960 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6962 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
6963 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
6965 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
6966 ppc_linux_target_wordsize with tid.
6967 (ppc_linux_nat_target::read_description): Call ppc_linux_target
6969 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
6970 (ppc64_64bit_inferior_p): Add static and inline specifiers.
6971 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
6972 tid parameter. Remove static specifier.
6973 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
6974 (ppc_linux_target_wordsize): New declaration.
6976 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6978 * arch/ppc-linux-common.c: New file.
6979 * arch/ppc-linux-common.h: New file.
6980 * arch/ppc-linux-tdesc.h: New file.
6981 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
6982 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
6983 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
6984 arch/ppc-linux-tdesc.h.
6985 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
6986 arch/ppc-linux-tdesc.h.
6987 (ppc_linux_nat_target::read_description): Remove target
6988 description matching code. Fill a ppc_linux_features struct and
6989 call ppc_linux_match_description with it. Move comment about ISA
6990 2.05 to ppc-linux-common.c.
6991 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
6992 arch/ppc-linux-tdesc.h.
6993 (ppc_linux_core_read_description): Remove target description
6994 matching code. Fill a ppc_linux_features struct and call
6995 ppc_linux_match_description with it.
6996 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6997 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6998 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6999 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7000 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7001 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7002 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7003 (tdesc_powerpc_e500l): Remove.
7005 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7007 * ada-lang.c (catch_assert_command): Pass empty string instead
7008 of NULL for excep_string argument.
7010 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7012 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7013 the width of the requested register exceeds the width of the
7016 2018-05-21 Tom Tromey <tom@tromey.com>
7018 * printcmd.c (output_command): Remove.
7019 (output_command_const): Rename to output_command.
7020 * valprint.h (output_command): Rename from output_command_const.
7021 * tracepoint.c (trace_dump_actions): Call output_command.
7023 2018-05-21 Tom Tromey <tom@tromey.com>
7025 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7026 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7027 * ada-lang.h (create_ada_exception_catchpoint): Update.
7028 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7030 (create_excep_cond_exprs, ~ada_catchpoint)
7031 (should_stop_exception, print_one_exception)
7032 (print_mention_exception, print_recreate_exception): Update.
7033 (ada_get_next_arg): Remove.
7034 (catch_ada_exception_command_split): Use std::string. Change type
7035 of "excep_string", "cond_string".
7036 (catch_ada_exception_command): Update.
7037 (create_ada_exception_catchpoint): Change type of excep_string.
7038 (ada_exception_sal): Remove excep_string parameter.
7039 (~ada_catchpoint): Remove.
7041 2018-05-21 Tom Tromey <tom@tromey.com>
7043 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7046 2018-05-21 Tom Tromey <tom@tromey.com>
7048 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7049 Return unique_xmalloc_ptr.
7050 (print_it_exception): Update.
7052 2018-05-21 Tom Tromey <tom@tromey.com>
7054 * tracepoint.c (trace_dump_actions): Use std::string.
7056 2018-05-21 Tom Tromey <tom@tromey.com>
7058 * symfile.c (reread_symbols): Use std::string for original_name.
7060 2018-05-21 Tom Tromey <tom@tromey.com>
7062 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7063 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7066 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7068 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7070 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7071 * objfiles.c (get_objfile_bfd_data): Allocate
7072 objfile_per_bfd_storage with obstack_new when allocating on
7075 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7077 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7079 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7080 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7081 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7082 (add_pending): Likewise.
7083 (parse_symbol): Likewise.
7084 (parse_partial_symbols): Likewise.
7085 (psymtab_to_symtab_1): Likewise.
7086 (new_psymtab): Likewise.
7087 (elfmdebug_build_psymtabs): Likewise.
7088 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7089 * objfiles.c (get_objfile_bfd_data): Likewise.
7090 (objfile_register_static_link): Likewise.
7091 * psymtab.c (allocate_psymtab): Likewise.
7092 * stabsread.c (read_member_functions): Likewise.
7093 * xcoffread.c (xcoff_end_psymtab): Likewise.
7095 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7097 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7098 compiler supports std::is_trivially_constructible.
7099 * common/poison.h: Include obstack.h.
7100 (IsMallocable): Define to is_trivially_constructible if the
7101 compiler supports it, define to true_type otherwise.
7105 (XOBNEWVEC): Redefine.
7106 * gdb_obstack.h (obstack_zalloc): New.
7107 (OBSTACK_ZALLOC): Redefine.
7108 (obstack_calloc): New.
7109 (OBSTACK_CALLOC): Redefine.
7111 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7112 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7114 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7115 obstack_calloc/obstack_zalloc.
7116 (gdbarch_obstack_zalloc): Remove.
7117 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7119 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7121 * stack.c (backtrace_command_1): Remove useless variable int i.
7123 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7125 * stack.c (print_frame_info): Fix comment.
7127 2018-05-18 Tom Tromey <tom@tromey.com>
7129 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7130 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7131 (~dwarf2_per_objfile): Update
7132 (dwarf2_get_dwz_file): Use new.
7133 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7136 2018-05-18 Tom Tromey <tom@tromey.com>
7138 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7140 * dwarf2read.c (struct dwp_file): Add constructor and
7142 (open_and_init_dwp_file): Return a unique_ptr.
7143 (dwarf2_per_objfile, create_dwp_hash_table)
7144 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7145 (lookup_dwo_unit_in_dwp): Update.
7146 (open_and_init_dwp_file, get_dwp_file): Update.
7148 2018-05-18 Tom Tromey <tom@tromey.com>
7150 * dwarf2read.c (dwarf2_per_objfile): Update.
7151 (struct mapped_index): Add initializers.
7152 (dwarf2_read_index): Use new.
7153 (dw2_symtab_iter_init): Update.
7154 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7157 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7159 * dwarf2read.c (mapped_index) <total_size>: Remove.
7161 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7163 * unittests/format_pieces-selftests.c (test_format_specifier):
7166 2018-05-18 Tom Tromey <tom@tromey.com>
7168 * c-typeprint.c (maybe_print_hole): New function.
7169 (c_print_type_struct_field_offset): Update.
7170 (c_type_print_base_struct_union): Call maybe_print_hole.
7172 2018-05-17 Keith Seitz <keiths@redhat.com>
7174 * breakpoint.c (build_bpstat_chain): New function, moved from
7176 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7177 If no stop chain is passed, call build_bpstat_chain to build it.
7178 * breakpoint.h (build_bpstat_chain): Declare.
7179 (bpstat_stop_status): Move documentation here from breakpoint.c.
7180 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7181 build the stop chain and pass it to skip_inline_frames.
7182 Pass this stop chain to bpstat_stop_status.
7183 * inline-frame.c: Include breakpoint.h.
7184 (stopped_by_user_bp_inline_frame): New function.
7185 (skip_inline_frames): Add parameter `stop_chain'.
7186 Move documention to inline-frame.h.
7187 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7188 whether the frame should be elided.
7189 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7190 Add moved documentation and update for new parameter.
7192 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7195 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7196 unittests/format_pieces-selftests.c.
7197 * common/format.h (format_piece) <operator==>: New.
7198 (format_pieces) <operator[]>: Remove.
7199 * common/format.c (format_pieces::format_pieces): Handle \e.
7200 * unittests/format_pieces-selftests.c: New.
7202 2018-05-17 Tom Tromey <tom@tromey.com>
7205 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7206 (dw2_instantiate_symtab): Add skip_partial parameter.
7207 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7208 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7209 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7210 (dw2_expand_symtabs_matching_one)
7211 (dw2_find_pc_sect_compunit_symtab)
7212 (dw2_debug_names_lookup_symbol)
7213 (dw2_debug_names_expand_symtabs_for_function): Update.
7214 (init_cutu_and_read_dies): Add skip_partial parameter.
7215 (process_psymtab_comp_unit, build_type_psymtabs_1)
7216 (process_skeletonless_type_unit, load_partial_comp_unit)
7217 (psymtab_to_symtab_1): Update.
7218 (load_full_comp_unit): Add skip_partial parameter.
7219 (process_imported_unit_die, dwarf2_read_addr_index)
7220 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7221 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7222 (read_signatured_type): Update.
7224 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7226 * value.c (release_value): Remove unused variable.
7227 (record_latest_value): Likewise.
7228 (access_value_history): Likewise.
7229 (preserve_values): Likewise.
7231 2018-05-17 Tom Tromey <tom@tromey.com>
7233 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7236 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7239 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7240 Also handle registers whose width is not a multiple of
7242 (linux_nat_trad_target::store_register): Likewise.
7244 2018-05-16 Tom Tromey <tom@tromey.com>
7246 * gdbcore.h (core_bfd): Redefine.
7247 * corelow.c (core_target::close): Update.
7248 (core_target_open): Update.
7249 * progspace.h (struct program_space) <cbfd>: Now a
7252 2018-05-16 Tom Tromey <tom@tromey.com>
7255 * symfile-add-flags.h (enum symfile_add_flags)
7256 <SYMFILE_NOT_FILENAME>: New constant.
7257 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7258 objfile name from BFD.
7259 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7260 * minidebug.c (find_separate_debug_file_in_section): Put
7261 ".gnu_debugdata" into BFD's file name.
7263 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7265 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7268 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7271 * aarch64-tdep.c (aarch64_analyze_prologue,
7272 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7273 Indicate not interested in errors.
7275 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7277 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7278 Supply the MIPS_ZERO_REGNUM register.
7280 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7282 * mips-tdep.c (mask_address_var): Make variable static.
7284 2018-05-14 Tom Tromey <tom@tromey.com>
7286 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7288 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7290 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7291 FXSAVE_ADDR for the mxcsr register.
7293 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7295 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7297 2018-05-11 Pedro Alves <palves@redhat.com>
7299 * corelow.c (core_target) <core_target>: No longer inline.
7300 Initialize m_core_gdbarch, m_core_vec and build the section table
7302 <~core_target>: New.
7303 <core_gdbarch, get_core_register_section>: New methods.
7304 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7305 factored out from ...
7306 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7308 (sniff_core_bfd): Add gdbarch parameter.
7309 (core_close): Delete, merged into ...
7310 (core_target::close): ... here. Delete self.
7311 (core_close_cleanup): Delete.
7312 (core_target_open): Allocate a core_target on the heap. Use a
7313 unique_ptr instead of a cleanup. Bits moved into the core_target
7314 ctor. Adjust to use core_target methods instead of globals.
7315 (get_core_register_section): Rename to ...
7316 (core_target::get_core_register_section): ... this and adjust.
7317 (struct get_core_registers_cb_data): New.
7318 (get_core_registers_cb): Use it. Use bool.
7319 (core_target::fetch_registers, core_target::files_info)
7320 (core_target::xfer_partial, core_target::read_description)
7321 (core_target::pid_to, core_target::thread_name): Adjust to
7322 reference class fields instead of globals.
7323 * target.h (struct target_ops_deleter, target_ops_up): New.
7325 2018-05-11 Pedro Alves <palves@redhat.com>
7327 * corefile.c (core_file_command): Move to corelow.c.
7328 * corelow.c (the_core_target): Delete.
7329 (core_file_command): Moved from corefile.c. Check exec_bfd
7330 instead of the_core_target. Use target_detach instead of calling
7331 into the_core_target directly.
7332 (maybe_say_no_core_file_now): New.
7333 (core_target::detach): Use it.
7334 (_initialize_corelow): Remove references to the_core_target.
7335 * gdbcore.h (the_core_target): Delete.
7337 2018-05-11 Tom Tromey <tromey@redhat.com>
7338 Pedro Alves <palves@redhat.com>
7340 * corefile.c (core_bfd): Remove.
7341 * gdbcore.h (core_bfd): Now a macro.
7342 * progspace.h (struct program_space) <cbfd>: New field.
7344 2018-05-11 Tom Tromey <tom@tromey.com>
7346 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7349 2018-05-10 Tom Tromey <tom@tromey.com>
7351 * configure: Rebuild.
7352 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7354 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7357 * regformats/regdat.sh: Adjust script, following the addition
7358 of the new expedite_regs parameter to init_target_desc.
7360 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7363 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7364 set_gdbarch_significant_addr_bit.
7365 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7366 set_gdbarch_significant_addr_bit.
7367 * utils.c (address_significant): Update to sign extend addr.
7369 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7371 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7372 (xtensa_linux_init_abi): Limit tdep->num_regs by
7373 tdep->num_nopriv_regs.
7374 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7375 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7378 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7380 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7382 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7384 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7385 (I387_MXCSR_INIT_VAL): New constant.
7386 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7387 buffer if it was supplied by the inferior.
7388 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7389 (i387_xsave_get_clear_bv): New function.
7390 (i387_supply_xsave): Only read x87 control registers from the
7391 xsave buffer if the feature is enabled, and the state will have
7392 been written, otherwise, provide a suitable default.
7393 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7394 including x87 control registers. Update control registers if they
7395 have changed from the default value, and mark features as enabled
7397 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7399 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7401 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7403 2018-05-07 Tom Tromey <tom@tromey.com>
7405 * configure: Rebuild.
7406 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7408 2018-05-07 Tom Tromey <tom@tromey.com>
7411 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7412 bit. Use correct value for VDIV.
7414 2018-05-04 Tom Tromey <tom@tromey.com>
7416 * configure: Rebuild.
7417 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7419 2018-05-04 Tom Tromey <tom@tromey.com>
7421 * linux-record.c (record_linux_system_call) <case
7422 RECORD_SYS_RECVFROM>: Add "break".
7424 2018-05-04 Tom Tromey <tom@tromey.com>
7426 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7427 Add missing "break".
7428 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7429 Add missing "break".
7431 2018-05-04 Tom Tromey <tom@tromey.com>
7433 * rs6000-tdep.c (ppc_process_record_op4)
7434 (ppc_process_record_op63): Add fall-through comment.
7436 2018-05-04 Tom Tromey <tom@tromey.com>
7438 * i386-tdep.c (i386_process_record): Add fall-through comment.
7440 2018-05-04 Tom Tromey <tom@tromey.com>
7442 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7445 2018-05-04 Tom Tromey <tom@tromey.com>
7447 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7448 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7449 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7451 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7453 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7456 2018-05-04 Tom Tromey <tom@tromey.com>
7458 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7460 2018-05-04 Tom Tromey <tom@tromey.com>
7462 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7463 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7464 * symfile.c (section_is_mapped): Fix fall-through comment.
7465 * stabsread.c (define_symbol, read_member_functions): Fix
7466 fall-through comment.
7467 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7469 * remote.c (remote_wait_as): Fix fall-through comment.
7470 * p-exp.y (yylex): Fix fall-through comment.
7471 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7473 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7474 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7475 * jv-exp.y (yylex): Fix fall-through comment.
7476 * go-exp.y (lex_one_token): Fix fall-through comment.
7477 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7478 fall-through comment.
7479 * f-exp.y (yylex): Fix fall-through comment.
7480 * dwarf2read.c (process_die): Fix fall-through comments.
7481 * dbxread.c (process_one_symbol): Fix fall-through comment.
7482 * d-exp.y (lex_one_token): Fix fall-through comment.
7483 * cp-name-parser.y (yylex): Fix fall-through comment.
7484 * coffread.c (coff_symtab_read): Fix fall-through comment.
7485 * c-exp.y (lex_one_token): Fix fall-through comment.
7486 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7488 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7491 2018-05-04 Tom Tromey <tom@tromey.com>
7494 * NEWS: Mention gdb.execute change.
7495 * gdbcmd.h (execute_control_command): Don't declare.
7496 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7497 execute_control_commands, execute_control_commands_to_string.
7498 * cli/cli-script.h (execute_control_commands)
7499 (execute_control_commands_to_string): Declare.
7500 (execute_control_command): Add from_tty parameter.
7501 * cli/cli-script.c (execute_control_commands)
7502 (execute_control_commands_to_string): New functions.
7503 (execute_user_command): Use execute_control_commands.
7504 (execute_control_command_1): Add "from_tty" parameter. Update.
7505 (execute_control_command): Likewise.
7507 2018-05-04 Tom Tromey <tom@tromey.com>
7510 * NEWS: Mention that breakpoint commands are writable.
7511 * python/py-breakpoint.c (bppy_set_commands): New function.
7512 (breakpoint_object_getset) <"commands">: Use it.
7514 2018-05-04 Tom Tromey <tom@tromey.com>
7516 * tracepoint.c (actions_command): Update.
7517 * mi/mi-cmd-break.c (mi_command_line_array)
7518 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7519 (mi_read_next_line): Remove.
7520 (mi_cmd_break_commands): Update.
7521 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7523 * cli/cli-script.c (get_command_line): Update.
7524 (process_next_line): Use function_view. Constify.
7525 (recurse_read_control_structure, read_command_lines)
7526 (read_command_lines_1): Change argument types to function_view.
7527 (do_define_command, document_command): Update.
7528 * breakpoint.h (check_tracepoint_command): Don't declare.
7529 * breakpoint.c (check_tracepoint_command): Remove.
7530 (commands_command_1, create_tracepoint_from_upload): Update.
7532 2018-05-04 Tom Tromey <tom@tromey.com>
7535 * cli/cli-script.h (enum command_control_type) <define_control>:
7537 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7538 (build_command_line, execute_control_command_1)
7539 (process_next_line): Likewise.
7540 (do_define_command): New function, extracted from define_command.
7541 (define_command): Use it.
7543 2018-05-04 Tom Tromey <tom@tromey.com>
7545 * tracepoint.c (actions_command): Update.
7546 * cli/cli-script.h (read_command_lines): Update.
7547 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7548 (MAX_TMPBUF): Remove define.
7549 (define_command): Use string_printf.
7550 (document_command): Likewise.
7551 * breakpoint.c (commands_command_1): Update.
7553 2018-05-04 Tom Tromey <tom@tromey.com>
7555 * top.c (execute_command): Update.
7556 * cli/cli-script.h (print_command_lines): Now varargs.
7557 * cli/cli-script.c (print_command_lines): Now varargs.
7558 (execute_control_command_1) <case while_control, case if_control>:
7561 2018-05-04 Tom Tromey <tom@tromey.com>
7563 * tracepoint.c (all_tracepoint_actions): Rename from
7564 all_tracepoint_actions_and_cleanup. Change return type.
7565 (actions_command, encode_actions_1, encode_actions)
7566 (trace_dump_actions, tdump_command): Update.
7567 * remote.c (remote_download_command_source): Update.
7568 * python/python.c (gdbpy_eval_from_control_command)
7569 (python_command, python_interactive_command): Update.
7570 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7571 * guile/guile.c (guile_command)
7572 (gdbscm_eval_from_control_command, guile_command): Update.
7573 * compile/compile.c (compile_code_command)
7574 (compile_print_command, compile_to_object): Update.
7575 * cli/cli-script.h (struct command_lines_deleter): New.
7576 (counted_command_line): New typedef.
7577 (struct command_line): Add constructor, destructor.
7578 <body_list>: Remove.
7579 <body_list_0, body_list_1>: New members.
7580 (command_line_up): Remove typedef.
7581 (read_command_lines, read_command_lines_1, get_command_line):
7583 (copy_command_lines): Don't declare.
7584 * cli/cli-script.c (build_command_line): Use "new".
7585 (get_command_line): Return counted_command_line.
7586 (print_command_lines, execute_user_command)
7587 (execute_control_command_1, while_command, if_command): Update.
7588 (realloc_body_list): Remove.
7589 (process_next_line, recurse_read_control_structure): Update.
7590 (read_command_lines, read_command_lines_1): Return counted_command_line.
7591 (free_command_lines): Use "delete".
7592 (copy_command_lines): Remove.
7593 (define_command, document_command, show_user_1): Update.
7594 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7595 a counted_command_line.
7596 * breakpoint.h (counted_command_line): Remove typedef.
7597 (breakpoint_set_commands): Update.
7598 * breakpoint.c (check_no_tracepoint_commands)
7599 (validate_commands_for_breakpoint): Update.
7600 (breakpoint_set_commands): Change commands to be a
7601 counted_command_line.
7602 (commands_command_1, update_dprintf_command_list)
7603 (create_tracepoint_from_upload): Update.
7605 2018-05-04 Tom Tromey <tom@tromey.com>
7607 * cli/cli-decode.h (cmd_list_element): New constructor.
7608 (~cmd_list_element): New destructor.
7609 (struct cmd_list_element): Add initializers.
7610 * cli/cli-decode.c (do_add_cmd): Use "new".
7611 (delete_cmd): Use "delete".
7613 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 Pedro Alves <palves@redhat.com>
7616 PR breakpoints/19806 and support for PR external/20207.
7617 * NEWS: Mention Aarch64 watchpoint improvements.
7618 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7619 watchpoints and PR external/20207 watchpoints.
7620 * nat/aarch64-linux-hw-point.c
7621 (kernel_supports_any_contiguous_range): New.
7622 (aarch64_watchpoint_offset): New.
7623 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7624 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7625 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7626 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7627 next_addr_orig_p. Support PR external/20207 watchpoints.
7628 (aarch64_downgrade_regs): New.
7629 (aarch64_dr_state_insert_one_point): New parameters offset and
7631 (aarch64_dr_state_remove_one_point): Likewise.
7632 (aarch64_handle_breakpoint): Update caller.
7633 (aarch64_handle_aligned_watchpoint): Likewise.
7634 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7636 (aarch64_linux_set_debug_regs): Remove const from state. Call
7637 aarch64_downgrade_regs.
7638 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7639 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7640 (DR_CONTROL_MASK): ... this.
7641 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7642 (unsigned int aarch64_watchpoint_offset): New prototype.
7643 (aarch64_linux_set_debug_regs): Remove const from state.
7644 * utils.c (align_up, align_down): Move to ...
7645 * common/common-utils.c (align_up, align_down): ... here.
7646 * utils.h (align_up, align_down): Move to ...
7647 * common/common-utils.h (align_up, align_down): ... here.
7649 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7651 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7652 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7653 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7654 Re-implement to match the ABI as summarized in GCC's
7655 gcc/config/sparc/sparc.c. All callers updated.
7656 (sparc32_store_arguments): Remove assertion.
7658 2018-05-04 Tom Tromey <tom@tromey.com>
7660 * printcmd.c: Don't include tui.h.
7661 (decode_format): Use skip_spaces.
7663 2018-05-04 Tom Tromey <tom@tromey.com>
7666 * printcmd.c (last_count): New global.
7667 (x_command): Use saved count when repeating.
7669 2018-05-04 Tom Tromey <tom@tromey.com>
7671 * nto-procfs.c (do_closedir_cleanup): Remove.
7672 (procfs_pidlist): Use gdb_dir_up.
7673 * procfs.c (do_closedir_cleanup): Remove.
7674 (proc_update_threads): Use gdb_dir_up.
7675 * common/filestuff.h (struct gdb_dir_deleter): New.
7676 (gdb_dir_up): New typedef.
7678 2018-05-04 Tom Tromey <tom@tromey.com>
7680 * ada-lang.c (print_mention_exception): Use std::string.
7682 2018-05-04 Tom Tromey <tom@tromey.com>
7684 * ada-lang.c (create_excep_cond_exprs): Update.
7685 (ada_exception_catchpoint_cond_string): Use std::string.
7687 2018-05-04 Tom Tromey <tom@tromey.com>
7689 * ada-lang.c (xget_renaming_scope): Return std::string.
7690 (old_renaming_is_invisible): Update.
7692 2018-05-04 Tom Tromey <tom@tromey.com>
7694 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7695 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7697 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7699 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7701 2018-05-04 Tom Tromey <tom@tromey.com>
7703 * remote.c (remote_query_supported_append): Change type.
7704 (remote_check_symbols): Update.
7706 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7709 * configure.ac: Prepend libpython.
7710 * python/python-config.py: Likewise.
7711 * configure: Regenerate.
7713 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7715 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7717 2018-05-03 Pedro Alves <palves@redhat.com>
7720 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7721 override. Write 'true' instead of '1'.
7722 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7725 2018-05-02 Pedro Alves <palves@redhat.com>
7727 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7728 add_inf_child_target.
7729 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7730 add_inf_child_target.
7731 * aix-thread.c (aix_thread_target_info): New.
7732 (aix_thread_target) <shortname, longname, doc>: Delete.
7734 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7735 add_inf_child_target.
7736 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7737 add_inf_child_target.
7738 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7739 add_inf_child_target.
7740 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7741 add_inf_child_target.
7742 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7743 add_inf_child_target.
7744 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7745 add_inf_child_target.
7746 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7747 add_inf_child_target.
7748 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7749 add_inf_child_target.
7750 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7751 add_inf_child_target.
7752 * bfd-target.c (target_bfd_target_info): New.
7753 (target_bfd) <shortname, longname, doc>: Delete.
7755 * bsd-kvm.c (bsd_kvm_target_info): New.
7756 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7758 (bsd_kvm_target::open): Rename to ...
7759 (bsd_kvm_target_open): ... this. Adjust.
7760 * bsd-uthread.c (bsd_uthread_target_info): New.
7761 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7763 * corefile.c (core_file_command): Adjust.
7764 * corelow.c (core_target_info): New.
7765 (core_target) <shortname, longname, doc>: Delete.
7767 (core_target::open): Rename to ...
7768 (core_target_open): ... this. Adjust.
7769 * ctf.c (ctf_target_info): New.
7770 (ctf_target) <shortname, longname, doc>: Delete.
7772 (ctf_target::open): Rename to ...
7773 (ctf_target_open): ... this.
7774 (_initialize_ctf): Adjust.
7775 * exec.c (exec_target_info): New.
7776 (exec_target) <shortname, longname, doc>: Delete.
7778 (exec_target::open): Rename to ...
7779 (exec_target_open): ... this.
7780 * gdbcore.h (core_target_open): Declare.
7781 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7782 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7783 add_inf_child_target.
7784 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7785 add_inf_child_target.
7786 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7787 add_inf_child_target.
7788 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7789 add_inf_child_target.
7790 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7791 add_inf_child_target.
7792 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7793 add_inf_child_target.
7794 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7795 add_inf_child_target.
7796 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7797 add_inf_child_target.
7798 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7799 add_inf_child_target.
7800 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7801 add_inf_child_target.
7802 * inf-child.c (inf_child_target_info): New.
7803 (inf_child_target::info): New.
7804 (inf_child_open_target): Remove 'target' parameter. Use
7805 get_native_target instead.
7806 (inf_child_target::open): Delete.
7807 (add_inf_child_target): New.
7808 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7811 (add_inf_child_target): Declare.
7812 (inf_child_open_target): Declare.
7813 * linux-thread-db.c (thread_db_target_info): New.
7814 (thread_db_target) <shortname, longname, doc>: Delete.
7816 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7817 add_inf_child_target.
7818 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7819 add_inf_child_target.
7820 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7821 add_inf_child_target.
7822 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7823 add_inf_child_target.
7824 * make-target-delegates (print_class): Adjust.
7825 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7826 add_inf_child_target.
7827 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7828 add_inf_child_target.
7829 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7830 add_inf_child_target.
7831 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7832 add_inf_child_target.
7833 * nto-procfs.c (nto_native_target_info): New.
7834 (nto_procfs_target_native) <shortname, longname, doc>:
7837 (nto_procfs_target_info): New.
7838 (nto_procfs_target_procfs) <shortname, longname, doc>:
7841 (init_procfs_targets): Adjust.
7842 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
7843 add_inf_child_target.
7844 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
7845 add_inf_child_target.
7846 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
7847 add_inf_child_target.
7848 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
7849 add_inf_child_target.
7850 * ravenscar-thread.c (ravenscar_target_info): New.
7851 (ravenscar_thread_target) <shortname, longname, doc>:
7854 * record-btrace.c (record_btrace_target_info):
7855 (record_btrace_target) <shortname, longname, doc>: Delete.
7857 (record_btrace_target::open): Rename to ...
7858 (record_btrace_target_open): ... this. Adjust.
7859 * record-full.c (record_longname, record_doc): New.
7860 (record_full_base_target) <shortname, longname, doc>: Delete.
7862 (record_full_target_info): New.
7863 (record_full_target): <shortname>: Delete.
7865 (record_full_core_open_1, record_full_open_1): Update comments.
7866 (record_full_base_target::open): Rename to ...
7867 (record_full_open): ... this.
7868 (cmd_record_full_restore): Update.
7869 (_initialize_record_full): Update.
7870 * remote-sim.c (remote_sim_target_info): New.
7871 (gdbsim_target) <shortname, longname, doc>: Delete.
7873 (gdbsim_target::open): Rename to ...
7874 (gdbsim_target_open): ... this.
7875 (_initialize_remote_sim): Adjust.
7876 * remote.c (remote_doc): New.
7877 (remote_target_info): New.
7878 (remote_target) <shortname, longname, doc>: Delete.
7880 (extended_remote_target_info): New.
7881 (extended_remote_target) <shortname, longname, doc>: Delete.
7883 (remote_target::open_1): Make static. Adjust.
7884 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
7885 * s390-linux-nat.c (_initialize_s390_nat): Use
7886 add_inf_child_target.
7887 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
7888 add_inf_child_target.
7889 * sol-thread.c (thread_db_target_info): New.
7890 (sol_thread_target) <shortname, longname, doc>: Delete.
7892 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
7893 add_inf_child_target.
7894 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
7895 add_inf_child_target.
7896 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
7897 add_inf_child_target.
7898 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
7899 add_inf_child_target.
7900 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
7901 add_inf_child_target.
7902 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
7903 add_inf_child_target.
7904 * spu-linux-nat.c (_initialize_spu_nat): Use
7905 add_inf_child_target.
7906 * spu-multiarch.c (spu_multiarch_target_info): New.
7907 (spu_multiarch_target) <shortname, longname, doc>: Delete.
7909 * target-delegates.c: Regenerate.
7910 * target.c: Include <unordered_map>.
7911 (target_ops_p): Delete.
7912 (DEF_VEC_P(target_ops_p)): Delete.
7913 (target_factories): New.
7914 (test_target_info): New.
7915 (test_target_ops::info): New.
7916 (open_target): Adjust to use target_factories.
7917 (add_target_with_completer): Rename to ...
7918 (add_target): ... this. Change prototype. Register target_info
7919 and open callback in target_factories. Register target_info in
7920 command context instead of target_ops.
7921 (add_target): Delete old implementation.
7922 (add_deprecated_target_alias): Change prototype. Adjust.
7923 (the_native_target): New.
7924 (set_native_target, get_native_target): New.
7925 (find_default_run_target): Use the_native_target.
7926 (find_attach_target, find_run_target): Simplify.
7927 (target_ops::open): Delete.
7928 (dummy_target_info): New.
7929 (dummy_target::shortname, dummy_target::longname)
7930 (dummy_target::doc): Delete.
7931 (dummy_target::info): New.
7932 (debug_target::shortname, debug_target::longname)
7933 (debug_target::doc): Delete.
7934 (debug_target::info): New.
7935 * target.h (struct target_info): New.
7936 (target_ops::~target_ops): Add comment.
7937 (target_ops::info): New.
7938 (target_ops::shortname, target_ops::longname, target_ops::doc): No
7939 longer virtual. Implement in terms of target_info.
7940 (set_native_target, get_native_target): Declare.
7941 (target_open_ftype): New.
7942 (add_target, add_target_with_completer)
7943 (add_deprecated_target_alias): Change prototype.
7944 (test_target) <shortname, longname, doc>: Delete.
7946 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
7947 add_inf_child_target.
7948 * tracefile-tfile.c (tfile_target_info): New.
7949 (tfile_target) <shortname, longname, doc>: Delete.
7951 (tfile_target::open): Rename to ...
7952 (tfile_target_open): ... this.
7953 (_initialize_tracefile_tfile): Adjust.
7954 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
7955 add_inf_child_target.
7956 * windows-nat.c (_initialize_windows_nat): Use
7957 add_inf_child_target.
7958 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
7959 add_inf_child_target.
7961 2018-05-02 Pedro Alves <palves@redhat.com>
7963 * linux-nat.h (linux_nat_target) <low_new_thread,
7964 low_delete_thread, low_new_fork, low_forget_process,
7965 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
7966 New virtual methods.
7967 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7968 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
7969 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
7970 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7971 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
7973 * linux-fork.c (delete_fork): Adjust to call low method.
7974 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
7975 (linux_nat_new_fork, linux_nat_forget_process_hook)
7976 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
7977 (linux_nat_status_is_event):
7978 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
7979 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
7981 (sigtrap_is_event): Rename to ...
7982 (linux_nat_target::low_status_is_event): ... this.
7983 (linux_nat_set_status_is_event): Delete.
7984 (save_stop_reason, linux_nat_wait_1)
7985 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
7987 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
7988 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7989 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
7990 (linux_nat_set_prepare_to_resume): Delete.
7991 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
7992 low virtual methods.
7993 * amd64-linux-nat.c: Likewise.
7994 * arm-linux-nat.c: Likewise.
7995 * i386-linux-nat.c: Likewise.
7996 * ia64-linux-nat.c: Likewise.
7997 * mips-linux-nat.c: Likewise.
7998 * ppc-linux-nat.c: Likewise.
7999 * s390-linux-nat.c: Likewise.
8000 * sparc64-linux-nat.c: Likewise.
8001 * x86-linux-nat.c: Likewise.
8002 * x86-linux-nat.h: Include "nat/x86-linux.h".
8003 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8004 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8007 2018-05-02 Pedro Alves <palves@redhat.com>
8009 * target.h (target_ops)
8010 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8011 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8012 stopped_by_watchpoint, have_continuable_watchpoint,
8013 stopped_data_address, watchpoint_addr_within_range,
8014 can_accel_watchpoint_condition, can_run, thread_alive,
8015 has_all_memory, has_memory, has_stack, has_registers,
8016 has_execution, can_async_p, is_async_p, supports_non_stop,
8017 always_non_stop_p, can_execute_reverse, supports_multi_process,
8018 supports_enable_disable_tracepoint,
8019 supports_disable_randomization, supports_string_tracing,
8020 supports_evaluation_of_breakpoint_conditions,
8021 can_run_breakpoint_commands, filesystem_is_local,
8022 can_download_tracepoint, get_trace_state_variable_value,
8023 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8024 record_is_replaying, record_will_replay,
8025 augmented_libraries_svr4_read>: Adjust to return bool.
8026 * aarch64-linux-nat.c: All implementations adjusted.
8027 * aix-thread.c: All implementations adjusted.
8028 * arm-linux-nat.c: All implementations adjusted.
8029 * breakpoint.c: All implementations adjusted.
8030 * bsd-kvm.c: All implementations adjusted.
8031 * bsd-uthread.c: All implementations adjusted.
8032 * corelow.c: All implementations adjusted.
8033 * ctf.c: All implementations adjusted.
8034 * darwin-nat.c: All implementations adjusted.
8035 * darwin-nat.h: All implementations adjusted.
8036 * exec.c: All implementations adjusted.
8037 * fbsd-nat.c: All implementations adjusted.
8038 * fbsd-nat.h: All implementations adjusted.
8039 * gnu-nat.c: All implementations adjusted.
8040 * gnu-nat.h: All implementations adjusted.
8041 * go32-nat.c: All implementations adjusted.
8042 * ia64-linux-nat.c: All implementations adjusted.
8043 * inf-child.c: All implementations adjusted.
8044 * inf-child.h: All implementations adjusted.
8045 * inf-ptrace.c: All implementations adjusted.
8046 * inf-ptrace.h: All implementations adjusted.
8047 * linux-nat.c: All implementations adjusted.
8048 * linux-nat.h: All implementations adjusted.
8049 * mips-linux-nat.c: All implementations adjusted.
8050 * nto-procfs.c: All implementations adjusted.
8051 * ppc-linux-nat.c: All implementations adjusted.
8052 * procfs.c: All implementations adjusted.
8053 * ravenscar-thread.c: All implementations adjusted.
8054 * record-btrace.c: All implementations adjusted.
8055 * record-full.c: All implementations adjusted.
8056 * remote-sim.c: All implementations adjusted.
8057 * remote.c: All implementations adjusted.
8058 * s390-linux-nat.c: All implementations adjusted.
8059 * sol-thread.c: All implementations adjusted.
8060 * spu-multiarch.c: All implementations adjusted.
8061 * target-delegates.c: All implementations adjusted.
8062 * target.c: All implementations adjusted.
8063 * target.h: All implementations adjusted.
8064 * tracefile-tfile.c: All implementations adjusted.
8065 * tracefile.c: All implementations adjusted.
8066 * tracefile.h: All implementations adjusted.
8067 * windows-nat.c: All implementations adjusted.
8068 * x86-linux-nat.h: All implementations adjusted.
8069 * x86-nat.h: All implementations adjusted.
8071 2018-05-02 Pedro Alves <palves@redhat.com>
8073 * make-target-delegates (scan_target_h): Don't trim lines here.
8074 Replace sequences of tabs and/or whitespace with a single
8076 (top level, parsing methods): Trim each line before processing it
8079 2018-05-02 Pedro Alves <palves@redhat.com>
8080 John Baldwin <jhb@freebsd.org>
8082 * target.h (enum strata) <debug_stratum>: New.
8083 (struct target_ops) <all delegation methods>: Replace by C++
8084 virtual methods, and drop "to_" prefix. All references updated
8086 <to_shortname, to_longname, to_doc, to_data,
8087 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8088 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8089 virtual methods. All references updated throughout.
8090 <can_attach, supports_terminal_ours, can_create_inferior,
8091 get_thread_control_capabilities, attach_no_wait>: New
8093 <insert_breakpoint, remove_breakpoint>: Now
8094 TARGET_DEFAULT_NORETURN methods.
8095 <info_proc>: Now returns bool.
8097 (OPS_MAGIC): Delete.
8098 (current_target): Delete. All references replaced by references
8100 (target_stack): ... this. New.
8101 (target_shortname, target_longname): Adjust.
8102 (target_can_run): Now a function declaration.
8103 (default_child_has_all_memory, default_child_has_memory)
8104 (default_child_has_stack, default_child_has_registers)
8105 (default_child_has_execution): Remove target_ops parameter.
8106 (complete_target_initialization): Delete.
8107 (memory_breakpoint_target): New template class.
8108 (test_target_ops): Refactor as a C++ class with virtual methods.
8109 * make-target-delegates (NAME_PART): Tighten.
8110 (POINTER_PART, CP_SYMBOL): New.
8111 (SIMPLE_RETURN_PART): Reimplement.
8112 (VEC_RETURN_PART): Expect less.
8113 (RETURN_PART, VIRTUAL_PART): New.
8114 (METHOD): Adjust to C++ virtual methods.
8115 (scan_target_h): Remove reference to C99.
8116 (dname): Output "target_ops::" prefix.
8117 (write_function_header): Adjust to output a C++ class method.
8118 (write_declaration): New.
8119 (write_delegator): Adjust to output a C++ class method.
8120 (tdname): Output "dummy_target::" prefix.
8121 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8123 (tdefault_names, debug_names): Delete.
8124 (return_types, tdefaults, styles, argtypes_array): New.
8125 (top level): All methods are delegators.
8127 (top level): Print dummy_target and debug_target classes.
8128 * target-delegates.c: Regenerate.
8129 * target-debug.h (target_debug_print_enum_info_proc_what)
8130 (target_debug_print_thread_control_capabilities)
8131 (target_debug_print_thread_info_p): New.
8132 * target.c (dummy_target): Delete.
8133 (the_dummy_target, the_debug_target): New.
8134 (target_stack): Now extern.
8135 (set_targetdebug): Push/unpush debug target.
8136 (default_child_has_all_memory, default_child_has_memory)
8137 (default_child_has_stack, default_child_has_registers)
8138 (default_child_has_execution): Remove target_ops parameter.
8139 (complete_target_initialization): Delete.
8140 (add_target_with_completer): No longer call
8141 complete_target_initialization.
8142 (target_supports_terminal_ours): Use regular delegation.
8143 (update_current_target): Delete.
8144 (push_target): No longer check magic number. Don't call
8145 update_current_target.
8146 (unpush_target): Don't call update_current_target.
8147 (target_is_pushed): No longer check magic number.
8148 (target_require_runnable): Skip for all stratums over
8150 (target_ops::info_proc): New.
8151 (target_info_proc): Use find_target_at and
8152 find_default_run_target.
8153 (target_supports_disable_randomization): Use regular delegation.
8154 (target_get_osdata): Use find_target_at.
8155 (target_ops::open, target_ops::close, target_ops::can_attach)
8156 (target_ops::attach, target_ops::can_create_inferior)
8157 (target_ops::create_inferior, target_ops::can_run)
8158 (target_can_run): New.
8159 (default_fileio_target): Use regular delegation.
8160 (target_ops::fileio_open, target_ops::fileio_pwrite)
8161 (target_ops::fileio_pread, target_ops::fileio_fstat)
8162 (target_ops::fileio_close, target_ops::fileio_unlink)
8163 (target_ops::fileio_readlink): New.
8164 (target_fileio_open_1, target_fileio_unlink)
8165 (target_fileio_readlink): Always call the target method. Handle
8167 (return_zero, return_zero_has_execution): Delete.
8168 (init_dummy_target): Delete.
8169 (dummy_target::dummy_target, dummy_target::shortname)
8170 (dummy_target::longname, dummy_target::doc)
8171 (debug_target::debug_target, debug_target::shortname)
8172 (debug_target::longname, debug_target::doc): New.
8173 (target_supports_delete_record): Use regular delegation.
8174 (setup_target_debug): Delete.
8175 (maintenance_print_target_stack): Skip debug_stratum.
8176 (initialize_targets): Instantiate the_dummy_target and
8178 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8180 (target_auxv_search, fprint_target_auxv): Adjust.
8181 (info_auxv_command): Adjust to use target_stack.
8182 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8183 * exceptions.c (print_flush): Handle a NULL target_stack.
8184 * regcache.c (target_ops_no_register): Refactor as class with
8187 * exec.c (exec_target): New class.
8188 (exec_ops): Now an exec_target.
8189 (exec_open, exec_close_1, exec_get_section_table)
8190 (exec_xfer_partial, exec_files_info, exec_has_memory)
8191 (exec_make_note_section): Refactor as exec_target methods.
8192 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8194 (exec_target::find_memory_regions): New.
8195 (_initialize_exec): Don't call init_exec_ops.
8196 * gdbcore.h (exec_file_clear): Delete.
8198 * corefile.c (core_target): Delete.
8199 (core_file_command): Adjust.
8200 * corelow.c (core_target): New class.
8201 (the_core_target): New.
8202 (core_close): Remove target_ops parameter.
8203 (core_close_cleanup): Adjust.
8204 (core_target::close): New.
8205 (core_open, core_detach, get_core_registers, core_files_info)
8206 (core_xfer_partial, core_thread_alive, core_read_description)
8207 (core_pid_to_str, core_thread_name, core_has_memory)
8208 (core_has_stack, core_has_registers, core_info_proc): Rework as
8209 core_target methods.
8210 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8211 (_initialize_corelow): Initialize the_core_target.
8212 * gdbcore.h (core_target): Delete.
8213 (the_core_target): New.
8215 * ctf.c: (ctf_target): New class.
8216 (ctf_ops): Now a ctf_target.
8217 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8218 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8219 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8221 (init_ctf_ops): Delete.
8222 (_initialize_ctf): Don't call it.
8223 * tracefile-tfile.c (tfile_target): New class.
8224 (tfile_ops): Now a tfile_target.
8225 (tfile_open, tfile_close, tfile_files_info)
8226 (tfile_get_tracepoint_status, tfile_trace_find)
8227 (tfile_fetch_registers, tfile_xfer_partial)
8228 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8229 Refactor as tfile_target methods.
8230 (tfile_xfer_partial_features): Remove target_ops parameter.
8231 (init_tfile_ops): Delete.
8232 (_initialize_tracefile_tfile): Don't call it.
8233 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8234 (tracefile_has_stack, tracefile_has_registers)
8235 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8236 tracefile_target methods.
8237 (init_tracefile_ops): Delete.
8238 (tracefile_target::tracefile_target): New.
8239 * tracefile.h: Include "target.h".
8240 (tracefile_target): New class.
8241 (init_tracefile_ops): Delete.
8243 * spu-multiarch.c (spu_multiarch_target): New class.
8244 (spu_ops): Now a spu_multiarch_target.
8245 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8246 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8247 (spu_search_memory, spu_mourn_inferior): Refactor as
8248 spu_multiarch_target methods.
8249 (init_spu_ops): Delete.
8250 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8251 complete_target_initialization.
8253 * ravenscar-thread.c (ravenscar_thread_target): New class.
8254 (ravenscar_ops): Now a ravenscar_thread_target.
8255 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8256 (ravenscar_thread_alive, ravenscar_pid_to_str)
8257 (ravenscar_fetch_registers, ravenscar_store_registers)
8258 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8259 (ravenscar_stopped_by_hw_breakpoint)
8260 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8261 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8262 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8264 (init_ravenscar_thread_ops): Delete.
8265 (_initialize_ravenscar): Remove references to
8266 init_ravenscar_thread_ops and complete_target_initialization.
8268 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8269 (bsd_uthread_target): New class.
8270 (bsd_uthread_ops): Now a bsd_uthread_target.
8271 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8272 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8273 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8274 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8275 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8276 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8277 (bsd_uthread_target): Delete function.
8278 (_initialize_bsd_uthread): Remove reference to
8279 complete_target_initialization.
8281 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8282 (target_bfd): ... this new class.
8283 (target_bfd_xfer_partial, target_bfd_get_section_table)
8284 (target_bfd_close): Refactor as target_bfd methods.
8285 (target_bfd::~target_bfd): New.
8286 (target_bfd_reopen): Adjust.
8287 (target_bfd::close): New.
8289 * record-btrace.c (record_btrace_target): New class.
8290 (record_btrace_ops): Now a record_btrace_target.
8291 (record_btrace_open, record_btrace_stop_recording)
8292 (record_btrace_disconnect, record_btrace_close)
8293 (record_btrace_async, record_btrace_info)
8294 (record_btrace_insn_history, record_btrace_insn_history_range)
8295 (record_btrace_insn_history_from, record_btrace_call_history)
8296 (record_btrace_call_history_range)
8297 (record_btrace_call_history_from, record_btrace_record_method)
8298 (record_btrace_is_replaying, record_btrace_will_replay)
8299 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8300 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8301 (record_btrace_store_registers, record_btrace_prepare_to_store)
8302 (record_btrace_to_get_unwinder)
8303 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8304 (record_btrace_commit_resume, record_btrace_wait)
8305 (record_btrace_stop, record_btrace_can_execute_reverse)
8306 (record_btrace_stopped_by_sw_breakpoint)
8307 (record_btrace_supports_stopped_by_sw_breakpoint)
8308 (record_btrace_stopped_by_hw_breakpoint)
8309 (record_btrace_supports_stopped_by_hw_breakpoint)
8310 (record_btrace_update_thread_list, record_btrace_thread_alive)
8311 (record_btrace_goto_begin, record_btrace_goto_end)
8312 (record_btrace_goto, record_btrace_stop_replaying_all)
8313 (record_btrace_execution_direction)
8314 (record_btrace_prepare_to_generate_core)
8315 (record_btrace_done_generating_core): Refactor as
8316 record_btrace_target methods.
8317 (init_record_btrace_ops): Delete.
8318 (_initialize_record_btrace): Remove reference to
8319 init_record_btrace_ops.
8320 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8321 the execution_direction global.
8322 (record_full_base_target, record_full_target)
8323 (record_full_core_target): New classes.
8324 (record_full_ops): Now a record_full_target.
8325 (record_full_core_ops): Now a record_full_core_target.
8326 (record_full_target::detach, record_full_target::disconnect)
8327 (record_full_core_target::disconnect)
8328 (record_full_target::mourn_inferior, record_full_target::kill):
8330 (record_full_open, record_full_close, record_full_async): Refactor
8331 as methods of the record_full_base_target class.
8332 (record_full_resume, record_full_commit_resume): Refactor
8333 as methods of the record_full_target class.
8334 (record_full_wait, record_full_stopped_by_watchpoint)
8335 (record_full_stopped_data_address)
8336 (record_full_stopped_by_sw_breakpoint)
8337 (record_full_supports_stopped_by_sw_breakpoint)
8338 (record_full_stopped_by_hw_breakpoint)
8339 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8340 methods of the record_full_base_target class.
8341 (record_full_store_registers, record_full_xfer_partial)
8342 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8343 Refactor as methods of the record_full_target class.
8344 (record_full_can_execute_reverse, record_full_get_bookmark)
8345 (record_full_goto_bookmark, record_full_execution_direction)
8346 (record_full_record_method, record_full_info, record_full_delete)
8347 (record_full_is_replaying, record_full_will_replay)
8348 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8349 (record_full_stop_replaying): Refactor as methods of the
8350 record_full_base_target class.
8351 (record_full_core_resume, record_full_core_kill)
8352 (record_full_core_fetch_registers)
8353 (record_full_core_prepare_to_store)
8354 (record_full_core_store_registers, record_full_core_xfer_partial)
8355 (record_full_core_insert_breakpoint)
8356 (record_full_core_remove_breakpoint)
8357 (record_full_core_has_execution): Refactor
8358 as methods of the record_full_core_target class.
8359 (record_full_base_target::supports_delete_record): New.
8360 (init_record_full_ops): Delete.
8361 (init_record_full_core_ops): Delete.
8362 (record_full_save): Refactor as method of the
8363 record_full_base_target class.
8364 (_initialize_record_full): Remove references to
8365 init_record_full_ops and init_record_full_core_ops.
8367 * remote.c (remote_target, extended_remote_target): New classes.
8368 (remote_ops): Now a remote_target.
8369 (extended_remote_ops): Now an extended_remote_target.
8370 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8371 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8372 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8373 (remote_pass_signals, remote_set_syscall_catchpoint)
8374 (remote_program_signals, )
8375 (remote_thread_always_alive): Remove target_ops parameter.
8376 (remote_thread_alive, remote_thread_name)
8377 (remote_update_thread_list, remote_threads_extra_info)
8378 (remote_static_tracepoint_marker_at)
8379 (remote_static_tracepoint_markers_by_strid)
8380 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8381 (remote_open): Refactor as methods of remote_target.
8382 (extended_remote_open, extended_remote_detach)
8383 (extended_remote_attach, extended_remote_post_attach):
8384 (extended_remote_supports_disable_randomization)
8385 (extended_remote_create_inferior): : Refactor as method of
8386 extended_remote_target.
8387 (remote_set_permissions, remote_open_1, remote_detach)
8388 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8389 (remote_resume, remote_commit_resume, remote_stop)
8390 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8391 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8392 (remote_prepare_to_store, remote_store_registers)
8393 (remote_flash_erase, remote_flash_done, remote_files_info)
8394 (remote_kill, remote_mourn, remote_insert_breakpoint)
8395 (remote_remove_breakpoint, remote_insert_watchpoint)
8396 (remote_watchpoint_addr_within_range)
8397 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8398 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8399 (remote_supports_stopped_by_sw_breakpoint)
8400 (remote_stopped_by_hw_breakpoint)
8401 (remote_supports_stopped_by_hw_breakpoint)
8402 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8403 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8404 (remote_verify_memory): Refactor as methods of remote_target.
8405 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8407 (remote_xfer_partial, remote_get_memory_xfer_limit)
8408 (remote_search_memory, remote_rcmd, remote_memory_map)
8409 (remote_pid_to_str, remote_get_thread_local_address)
8410 (remote_get_tib_address, remote_read_description): Refactor as
8411 methods of remote_target.
8412 (remote_target::fileio_open, remote_target::fileio_pwrite)
8413 (remote_target::fileio_pread, remote_target::fileio_close): New.
8414 (remote_hostio_readlink, remote_hostio_fstat)
8415 (remote_filesystem_is_local, remote_can_execute_reverse)
8416 (remote_supports_non_stop, remote_supports_disable_randomization)
8417 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8418 (remote_supports_enable_disable_tracepoint)
8419 (remote_supports_string_tracing)
8420 (remote_can_run_breakpoint_commands, remote_trace_init)
8421 (remote_download_tracepoint, remote_can_download_tracepoint)
8422 (remote_download_trace_state_variable, remote_enable_tracepoint)
8423 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8424 (remote_trace_start, remote_get_trace_status)
8425 (remote_get_tracepoint_status, remote_trace_stop)
8426 (remote_trace_find, remote_get_trace_state_variable_value)
8427 (remote_save_trace_data, remote_get_raw_trace_data)
8428 (remote_set_disconnected_tracing, remote_core_of_thread)
8429 (remote_set_circular_trace_buffer, remote_traceframe_info)
8430 (remote_get_min_fast_tracepoint_insn_len)
8431 (remote_set_trace_buffer_size, remote_set_trace_notes)
8432 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8433 (remote_disable_btrace, remote_teardown_btrace)
8434 (remote_read_btrace, remote_btrace_conf)
8435 (remote_augmented_libraries_svr4_read, remote_load)
8436 (remote_pid_to_exec_file, remote_can_do_single_step)
8437 (remote_execution_direction, remote_thread_handle_to_thread_info):
8438 Refactor as methods of remote_target.
8439 (init_remote_ops, init_extended_remote_ops): Delete.
8440 (remote_can_async_p, remote_is_async_p, remote_async)
8441 (remote_thread_events, remote_upload_tracepoints)
8442 (remote_upload_trace_state_variables): Refactor as methods of
8444 (_initialize_remote): Remove references to init_remote_ops and
8445 init_extended_remote_ops.
8447 * remote-sim.c (gdbsim_target): New class.
8448 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8449 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8450 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8451 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8452 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8453 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8454 Refactor as methods of gdbsim_target.
8455 (gdbsim_ops): Now a gdbsim_target.
8456 (init_gdbsim_ops): Delete.
8457 (gdbsim_cntrl_c): Adjust.
8458 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8460 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8461 (the_amd64_linux_nat_target): New.
8462 (amd64_linux_fetch_inferior_registers)
8463 (amd64_linux_store_inferior_registers): Refactor as methods of
8464 amd64_linux_nat_target.
8465 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8466 * i386-linux-nat.c: Don't include "linux-nat.h".
8467 (i386_linux_nat_target): New class.
8468 (the_i386_linux_nat_target): New.
8469 (i386_linux_fetch_inferior_registers)
8470 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8471 as methods of i386_linux_nat_target.
8472 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8473 * inf-child.c (inf_child_ops): Delete.
8474 (inf_child_fetch_inferior_registers)
8475 (inf_child_store_inferior_registers): Delete.
8476 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8477 methods of inf_child_target.
8478 (inf_child_target::supports_terminal_ours)
8479 (inf_child_target::terminal_init)
8480 (inf_child_target::terminal_inferior)
8481 (inf_child_target::terminal_ours_for_output)
8482 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8483 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8485 (inf_child_open, inf_child_disconnect, inf_child_close)
8486 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8487 (inf_child_post_startup_inferior, inf_child_can_run)
8488 (inf_child_pid_to_exec_file): Refactor as methods of
8490 (inf_child_follow_fork): Delete.
8491 (inf_child_target::can_create_inferior)
8492 (inf_child_target::can_attach): New.
8493 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8494 (inf_child_target::has_stack, inf_child_target::has_registers)
8495 (inf_child_target::has_execution): New.
8496 (inf_child_fileio_open, inf_child_fileio_pwrite)
8497 (inf_child_fileio_pread, inf_child_fileio_fstat)
8498 (inf_child_fileio_close, inf_child_fileio_unlink)
8499 (inf_child_fileio_readlink, inf_child_use_agent)
8500 (inf_child_can_use_agent): Refactor as methods of
8502 (return_zero, inf_child_target): Delete.
8503 (inf_child_target::inf_child_target): New.
8504 * inf-child.h: Include "target.h".
8505 (inf_child_target): Delete function prototype.
8506 (inf_child_target): New class.
8507 (inf_child_open_target, inf_child_mourn_inferior)
8508 (inf_child_maybe_unpush_target): Delete.
8509 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8510 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8511 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8512 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8513 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8514 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8515 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8516 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8517 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8518 methods of inf_ptrace_target.
8519 (inf_ptrace_target): Delete function.
8520 * inf-ptrace.h: Include "inf-child.h".
8521 (inf_ptrace_target): Delete function declaration.
8522 (inf_ptrace_target): New class.
8523 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8524 * linux-nat.c (linux_target): New.
8525 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8526 (linux_nat_target::~linux_nat_target): New.
8527 (linux_child_post_attach, linux_child_post_startup_inferior)
8528 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8529 (linux_child_remove_fork_catchpoint)
8530 (linux_child_insert_vfork_catchpoint)
8531 (linux_child_remove_vfork_catchpoint)
8532 (linux_child_insert_exec_catchpoint)
8533 (linux_child_remove_exec_catchpoint)
8534 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8535 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8536 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8537 (linux_nat_stopped_data_address)
8538 (linux_nat_stopped_by_sw_breakpoint)
8539 (linux_nat_supports_stopped_by_sw_breakpoint)
8540 (linux_nat_stopped_by_hw_breakpoint)
8541 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8542 (linux_nat_kill, linux_nat_mourn_inferior)
8543 (linux_nat_xfer_partial, linux_nat_thread_alive)
8544 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8545 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8546 (linux_child_static_tracepoint_markers_by_strid)
8547 (linux_nat_is_async_p, linux_nat_can_async_p)
8548 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8549 (linux_nat_supports_multi_process)
8550 (linux_nat_supports_disable_randomization, linux_nat_async)
8551 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8552 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8553 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8554 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8555 methods of linux_nat_target.
8556 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8557 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8559 (check_stopped_by_watchpoint): Adjust.
8560 (linux_xfer_partial): Delete.
8561 (linux_target_install_ops, linux_target, linux_nat_add_target):
8563 (linux_nat_target::linux_nat_target): New.
8564 * linux-nat.h: Include "inf-ptrace.h".
8565 (linux_nat_target): New.
8566 (linux_target, linux_target_install_ops, linux_nat_add_target):
8567 Delete function declarations.
8568 (linux_target): Declare global.
8569 * linux-thread-db.c (thread_db_target): New.
8570 (thread_db_target::thread_db_target): New.
8571 (thread_db_ops): Delete.
8572 (the_thread_db_target): New.
8573 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8574 (thread_db_update_thread_list, thread_db_pid_to_str)
8575 (thread_db_extra_thread_info)
8576 (thread_db_thread_handle_to_thread_info)
8577 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8578 (thread_db_resume): Refactor as methods of thread_db_target.
8579 (init_thread_db_ops): Delete.
8580 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8581 * x86-linux-nat.c: Don't include "linux-nat.h".
8582 (super_post_startup_inferior): Delete.
8583 (x86_linux_nat_target::~x86_linux_nat_target): New.
8584 (x86_linux_child_post_startup_inferior)
8585 (x86_linux_read_description, x86_linux_enable_btrace)
8586 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8587 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8588 methods of x86_linux_nat_target.
8589 (x86_linux_create_target): Delete. Bits folded ...
8590 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8592 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8593 (x86_linux_nat_target): New class.
8594 (x86_linux_create_target): Delete.
8595 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8596 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8597 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8598 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8599 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8600 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8602 (x86_use_watchpoints): Delete.
8603 * x86-nat.h: Include "breakpoint.h" and "target.h".
8604 (x86_use_watchpoints): Delete.
8605 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8606 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8607 (x86_insert_watchpoint, x86_remove_watchpoint)
8608 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8609 (x86_stopped_by_hw_breakpoint): New declarations.
8610 (x86_nat_target): New template class.
8612 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8613 (the_ppc_linux_nat_target): New.
8614 (ppc_linux_fetch_inferior_registers)
8615 (ppc_linux_can_use_hw_breakpoint)
8616 (ppc_linux_region_ok_for_hw_watchpoint)
8617 (ppc_linux_ranged_break_num_registers)
8618 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8619 (ppc_linux_insert_mask_watchpoint)
8620 (ppc_linux_remove_mask_watchpoint)
8621 (ppc_linux_can_accel_watchpoint_condition)
8622 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8623 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8624 (ppc_linux_watchpoint_addr_within_range)
8625 (ppc_linux_masked_watch_num_registers)
8626 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8627 (ppc_linux_read_description): Refactor as methods of
8628 ppc_linux_nat_target.
8629 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8631 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8632 (procfs_target): New class.
8633 (the_procfs_target): New.
8634 (procfs_target): Delete function.
8635 (procfs_auxv_parse, procfs_attach, procfs_detach)
8636 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8637 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8638 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8639 (procfs_create_inferior, procfs_update_thread_list)
8640 (procfs_thread_alive, procfs_pid_to_str)
8641 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8642 (procfs_stopped_data_address, procfs_insert_watchpoint)
8643 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8644 (proc_find_memory_regions, procfs_info_proc)
8645 (procfs_make_note_section): Refactor as methods of procfs_target.
8646 (_initialize_procfs): Adjust.
8647 * sol-thread.c (sol_thread_target): New class.
8648 (sol_thread_ops): Now a sol_thread_target.
8649 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8650 (sol_thread_fetch_registers, sol_thread_store_registers)
8651 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8652 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8653 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8654 (init_sol_thread_ops): Delete.
8655 (_initialize_sol_thread): Adjust. Remove references to
8656 init_sol_thread_ops and complete_target_initialization.
8658 * windows-nat.c (windows_nat_target): New class.
8659 (windows_fetch_inferior_registers)
8660 (windows_store_inferior_registers, windows_resume, windows_wait)
8661 (windows_attach, windows_detach, windows_pid_to_exec_file)
8662 (windows_files_info, windows_create_inferior)
8663 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8664 (windows_close, windows_pid_to_str, windows_xfer_partial)
8665 (windows_get_tib_address, windows_get_ada_task_ptid)
8666 (windows_thread_name, windows_thread_alive): Refactor as
8667 windows_nat_target methods.
8668 (do_initial_windows_stuff): Adjust.
8669 (windows_target): Delete function.
8670 (_initialize_windows_nat): Adjust.
8672 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8673 (darwin_mourn_inferior, darwin_kill_inferior)
8674 (darwin_create_inferior, darwin_attach, darwin_detach)
8675 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8676 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8677 (darwin_supports_multi_process): Refactor as darwin_nat_target
8679 (darwin_resume_to, darwin_files_info): Delete.
8680 (_initialize_darwin_inferior): Rename to ...
8681 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8682 * darwin-nat.h: Include "inf-child.h".
8683 (darwin_nat_target): New class.
8684 (darwin_complete_target): Delete.
8685 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8686 (darwin_target): New.
8687 (i386_darwin_fetch_inferior_registers)
8688 (i386_darwin_store_inferior_registers): Refactor as methods of
8690 (darwin_complete_target): Delete, with ...
8691 (_initialize_i386_darwin_nat): ... bits factored out here.
8693 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8694 (the_alpha_linux_nat_target): New.
8695 (alpha_linux_register_u_offset): Refactor as
8696 alpha_linux_nat_target method.
8697 (_initialize_alpha_linux_nat): Adjust.
8698 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8699 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8700 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8701 methods of linux_nat_trad_target.
8702 (linux_trad_target): Delete.
8703 * linux-nat-trad.h (linux_trad_target): Delete function.
8704 (linux_nat_trad_target): New class.
8705 * mips-linux-nat.c (mips_linux_nat_target): New class.
8706 (super_fetch_registers, super_store_registers, super_close):
8708 (the_mips_linux_nat_target): New.
8709 (mips64_linux_regsets_fetch_registers)
8710 (mips64_linux_regsets_store_registers)
8711 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8712 (mips_linux_register_u_offset, mips_linux_read_description)
8713 (mips_linux_can_use_hw_breakpoint)
8714 (mips_linux_stopped_by_watchpoint)
8715 (mips_linux_stopped_data_address)
8716 (mips_linux_region_ok_for_hw_watchpoint)
8717 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8718 (mips_linux_close): Refactor as methods of mips_linux_nat.
8719 (_initialize_mips_linux_nat): Adjust to C++ification.
8721 * aix-thread.c (aix_thread_target): New class.
8722 (aix_thread_ops): Now an aix_thread_target.
8723 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8724 (aix_thread_fetch_registers, aix_thread_store_registers)
8725 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8726 (aix_thread_thread_alive, aix_thread_pid_to_str)
8727 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8728 Refactor as methods of aix_thread_target.
8729 (init_aix_thread_ops): Delete.
8730 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8731 and complete_target_initialization.
8732 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8733 (rs6000_nat_target): New class.
8734 (the_rs6000_nat_target): New.
8735 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8736 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8737 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8738 (super_create_inferior): Delete.
8739 (_initialize_rs6000_nat): Adjust to C++ification.
8741 * arm-linux-nat.c (arm_linux_nat_target): New class.
8742 (the_arm_linux_nat_target): New.
8743 (arm_linux_fetch_inferior_registers)
8744 (arm_linux_store_inferior_registers, arm_linux_read_description)
8745 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8746 (arm_linux_remove_hw_breakpoint)
8747 (arm_linux_region_ok_for_hw_watchpoint)
8748 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8749 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8750 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8751 arm_linux_nat_target.
8752 (_initialize_arm_linux_nat): Adjust to C++ification.
8754 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8755 (the_aarch64_linux_nat_target): New.
8756 (aarch64_linux_fetch_inferior_registers)
8757 (aarch64_linux_store_inferior_registers)
8758 (aarch64_linux_child_post_startup_inferior)
8759 (aarch64_linux_read_description)
8760 (aarch64_linux_can_use_hw_breakpoint)
8761 (aarch64_linux_insert_hw_breakpoint)
8762 (aarch64_linux_remove_hw_breakpoint)
8763 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8764 (aarch64_linux_region_ok_for_hw_watchpoint)
8765 (aarch64_linux_stopped_data_address)
8766 (aarch64_linux_stopped_by_watchpoint)
8767 (aarch64_linux_watchpoint_addr_within_range)
8768 (aarch64_linux_can_do_single_step): Refactor as methods of
8769 aarch64_linux_nat_target.
8770 (super_post_startup_inferior): Delete.
8771 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8773 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8774 (the_hppa_linux_nat_target): New.
8775 (hppa_linux_fetch_inferior_registers)
8776 (hppa_linux_store_inferior_registers): Refactor as methods of
8777 hppa_linux_nat_target.
8778 (_initialize_hppa_linux_nat): Adjust to C++ification.
8780 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8781 (the_ia64_linux_nat_target): New.
8782 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8783 (ia64_linux_stopped_data_address)
8784 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8785 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8786 ia64_linux_nat_target methods.
8787 (super_xfer_partial): Delete.
8788 (_initialize_ia64_linux_nat): Adjust to C++ification.
8790 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8791 (the_m32r_linux_nat_target): New.
8792 (m32r_linux_fetch_inferior_registers)
8793 (m32r_linux_store_inferior_registers): Refactor as
8794 m32r_linux_nat_target methods.
8795 (_initialize_m32r_linux_nat): Adjust to C++ification.
8797 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8798 (the_m68k_linux_nat_target): New.
8799 (m68k_linux_fetch_inferior_registers)
8800 (m68k_linux_store_inferior_registers): Refactor as
8801 m68k_linux_nat_target methods.
8802 (_initialize_m68k_linux_nat): Adjust to C++ification.
8804 * s390-linux-nat.c (s390_linux_nat_target): New class.
8805 (the_s390_linux_nat_target): New.
8806 (s390_linux_fetch_inferior_registers)
8807 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8808 (s390_insert_watchpoint, s390_remove_watchpoint)
8809 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8810 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8811 (s390_auxv_parse, s390_read_description): Refactor as methods of
8812 s390_linux_nat_target.
8813 (_initialize_s390_nat): Adjust to C++ification.
8815 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8816 (the_sparc_linux_nat_target): New.
8817 (_initialize_sparc_linux_nat): Adjust to C++ification.
8818 * sparc-nat.c (sparc_fetch_inferior_registers)
8819 (sparc_store_inferior_registers): Remove target_ops parameter.
8820 * sparc-nat.h (sparc_fetch_inferior_registers)
8821 (sparc_store_inferior_registers): Remove target_ops parameter.
8822 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8823 (the_sparc64_linux_nat_target): New.
8824 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8826 * spu-linux-nat.c (spu_linux_nat_target): New class.
8827 (the_spu_linux_nat_target): New.
8828 (spu_child_post_startup_inferior, spu_child_post_attach)
8829 (spu_child_wait, spu_fetch_inferior_registers)
8830 (spu_store_inferior_registers, spu_xfer_partial)
8831 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
8833 (_initialize_spu_nat): Adjust to C++ification.
8835 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
8836 (the_tilegx_linux_nat_target): New.
8837 (fetch_inferior_registers, store_inferior_registers):
8838 Refactor as methods.
8839 (_initialize_tile_linux_nat): Adjust to C++ification.
8841 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
8842 (the_xtensa_linux_nat_target): New.
8843 (xtensa_linux_fetch_inferior_registers)
8844 (xtensa_linux_store_inferior_registers): Refactor as
8845 xtensa_linux_nat_target methods.
8846 (_initialize_xtensa_linux_nat): Adjust to C++ification.
8848 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
8849 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
8850 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
8851 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
8852 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
8853 (fbsd_stopped_by_sw_breakpoint)
8854 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
8855 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
8856 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
8857 (fbsd_post_startup_inferior, fbsd_post_attach)
8858 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
8859 (fbsd_set_syscall_catchpoint)
8860 (super_xfer_partial, super_resume, super_wait)
8861 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
8862 (fbsd_handle_debug_trap): Remove target_ops parameter.
8863 (fbsd_nat_add_target): Delete.
8864 * fbsd-nat.h: Include "inf-ptrace.h".
8865 (fbsd_nat_add_target): Delete.
8866 (USE_SIGTRAP_SIGINFO): Define.
8867 (fbsd_nat_target): New class.
8869 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
8870 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
8871 (amd64bsd_target): Delete.
8872 * amd64-bsd-nat.h: New file.
8873 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
8875 (amd64_fbsd_nat_target): New class.
8876 (the_amd64_fbsd_nat_target): New.
8877 (amd64fbsd_read_description): Refactor as method of
8878 amd64_fbsd_nat_target.
8879 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8880 (_initialize_amd64fbsd_nat): Adjust to C++ification.
8881 * amd64-nat.h (amd64bsd_target): Delete function declaration.
8882 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
8883 (i386bsd_store_inferior_registers): Remove target_ops parameter.
8884 (i386bsd_target): Delete.
8885 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
8886 (i386bsd_fetch_inferior_registers)
8887 (i386bsd_store_inferior_registers): Declare.
8888 (i386_bsd_nat_target): New class.
8889 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
8890 (the_i386_fbsd_nat_target): New.
8891 (i386fbsd_resume, i386fbsd_read_description): Refactor as
8892 i386_fbsd_nat_target methods.
8893 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
8894 (_initialize_i386fbsd_nat): Adjust to C++ification.
8895 * x86-bsd-nat.c (super_mourn_inferior): Delete.
8896 (x86bsd_mourn_inferior, x86bsd_target): Delete.
8897 (_initialize_x86_bsd_nat): Adjust to C++ification.
8898 * x86-bsd-nat.h: Include "x86-nat.h".
8899 (x86bsd_target): Delete declaration.
8900 (x86bsd_nat_target): New class.
8902 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
8903 (the_aarch64_fbsd_nat_target): New.
8904 (aarch64_fbsd_fetch_inferior_registers)
8905 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
8906 aarch64_fbsd_nat_target.
8907 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
8908 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
8909 (the_alpha_bsd_nat_target): New.
8910 (alphabsd_fetch_inferior_registers)
8911 (alphabsd_store_inferior_registers): Refactor as
8912 alpha_bsd_nat_target methods.
8913 (_initialize_alphabsd_nat): Refactor as methods of
8914 alpha_bsd_nat_target.
8915 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
8916 (the_amd64_nbsd_nat_target): New.
8917 (_initialize_amd64nbsd_nat): Adjust to C++ification.
8918 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
8919 (the_amd64_obsd_nat_target): New.
8920 (_initialize_amd64obsd_nat): Adjust to C++ification.
8921 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
8922 (the_arm_fbsd_nat_target): New.
8923 (arm_fbsd_fetch_inferior_registers)
8924 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
8925 (_initialize_arm_fbsd_nat): Refactor as methods of
8926 arm_fbsd_nat_target.
8927 (_initialize_arm_fbsd_nat): Adjust to C++ification.
8928 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
8929 (the_arm_netbsd_nat_target): New.
8930 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
8931 arm_netbsd_nat_target.
8932 (_initialize_arm_netbsd_nat): Adjust to C++ification.
8933 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
8934 (the_hppa_nbsd_nat_target): New.
8935 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
8936 hppa_nbsd_nat_target methods.
8937 (_initialize_hppanbsd_nat): Adjust to C++ification.
8938 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
8939 (the_hppa_obsd_nat_target): New.
8940 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
8941 methods of hppa_obsd_nat_target.
8942 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
8944 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
8945 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
8947 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
8948 (_initialize_i386obsd_nat): Use add_target.
8949 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
8950 (the_m68k_bsd_nat_target): New.
8951 (m68kbsd_fetch_inferior_registers)
8952 (m68kbsd_store_inferior_registers): Refactor as methods of
8953 m68k_bsd_nat_target.
8954 (_initialize_m68kbsd_nat): Adjust to C++ification.
8955 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
8956 (the_mips_fbsd_nat_target): New.
8957 (mips_fbsd_fetch_inferior_registers)
8958 (mips_fbsd_store_inferior_registers): Refactor as methods of
8959 mips_fbsd_nat_target.
8960 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
8962 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
8963 (the_mips_nbsd_nat_target): New.
8964 (mipsnbsd_fetch_inferior_registers)
8965 (mipsnbsd_store_inferior_registers): Refactor as methods of
8966 mips_nbsd_nat_target.
8967 (_initialize_mipsnbsd_nat): Adjust to C++ification.
8968 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
8969 (the_mips64_obsd_nat_target): New.
8970 (mips64obsd_fetch_inferior_registers)
8971 (mips64obsd_store_inferior_registers): Refactor as methods of
8972 mips64_obsd_nat_target.
8973 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
8975 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
8977 * nbsd-nat.h: Include "inf-ptrace.h".
8978 (nbsd_nat_target): New class.
8979 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
8980 (obsd_wait): Refactor as methods of obsd_nat_target.
8981 (obsd_add_target): Delete.
8982 * obsd-nat.h: Include "inf-ptrace.h".
8983 (obsd_nat_target): New class.
8984 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
8985 (the_ppc_fbsd_nat_target): New.
8986 (ppcfbsd_fetch_inferior_registers)
8987 (ppcfbsd_store_inferior_registers): Refactor as methods of
8988 ppc_fbsd_nat_target.
8989 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
8991 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
8992 (the_ppc_nbsd_nat_target): New.
8993 (ppcnbsd_fetch_inferior_registers)
8994 (ppcnbsd_store_inferior_registers): Refactor as methods of
8995 ppc_nbsd_nat_target.
8996 (_initialize_ppcnbsd_nat): Adjust to C++ification.
8997 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
8998 (the_ppc_obsd_nat_target): New.
8999 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9000 methods of ppc_obsd_nat_target.
9001 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9003 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9004 (the_sh_nbsd_nat_target): New.
9005 (shnbsd_fetch_inferior_registers)
9006 (shnbsd_store_inferior_registers): Refactor as methods of
9008 (_initialize_shnbsd_nat): Adjust to C++ification.
9009 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9010 (inf_ptrace_xfer_partial): Delete.
9011 (sparc_xfer_partial, sparc_target): Delete.
9012 * sparc-nat.h (sparc_fetch_inferior_registers)
9013 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9014 (sparc_target): Delete function declaration.
9015 (sparc_target): New template class.
9016 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9017 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9018 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9019 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9021 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9022 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9023 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9024 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9026 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9027 (the_vax_bsd_nat_target): New.
9028 (vaxbsd_fetch_inferior_registers)
9029 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9031 (_initialize_vaxbsd_nat): Adjust to C++ification.
9033 * bsd-kvm.c (bsd_kvm_target): New class.
9034 (bsd_kvm_ops): Now a bsd_kvm_target.
9035 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9036 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9037 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9039 (bsd_kvm_return_one): Delete.
9040 (bsd_kvm_add_target): Adjust to C++ification.
9042 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9043 (nto_procfs_target_procfs): New classes.
9044 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9045 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9046 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9047 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9048 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9049 (procfs_remove_hw_breakpoint, procfs_resume)
9050 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9051 (procfs_kill_inferior, procfs_store_registers)
9052 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9053 as methods of nto_procfs_target.
9054 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9055 (nto_native_ops): Delete.
9056 (procfs_open, procfs_native_open): Delete.
9057 (nto_native_ops): Now an nto_procfs_target_native.
9058 (init_procfs_targets): Adjust to C++ification.
9059 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9060 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9061 Refactor as methods of nto_procfs_target.
9063 * go32-nat.c (go32_nat_target): New class.
9064 (the_go32_nat_target): New.
9065 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9066 (go32_store_registers, go32_xfer_partial, go32_files_info)
9067 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9068 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9069 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9070 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9071 (go32_target): Delete.
9072 (_initialize_go32_nat): Adjust to C++ification.
9074 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9075 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9076 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9077 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9079 (gnu_target): Delete.
9080 * gnu-nat.h (gnu_target): Delete.
9081 (gnu_nat_target): New class.
9082 * i386-gnu-nat.c (gnu_base_target): New.
9083 (i386_gnu_nat_target): New class.
9084 (the_i386_gnu_nat_target): New.
9085 (_initialize_i386gnu_nat): Adjust to C++ification.
9087 2018-05-02 Pedro Alves <palves@redhat.com>
9089 * bfd-target.c (target_bfd_xclose): Rename to ...
9090 (target_bfd_close): ... this.
9091 (target_bfd_reopen): Adjust.
9092 * target.c (target_close): Remove references to to_xclose.
9093 * target.h (target_ops::to_xclose): Delete.
9094 (target_ops::to_close): Update comments.
9096 2018-05-02 Pedro Alves <palves@redhat.com>
9098 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9100 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9101 * inf-ptrace.c (inf_ptrace_register_u_offset)
9102 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9103 (inf_ptrace_store_register, inf_ptrace_store_registers)
9104 (inf_ptrace_trad_target): Move to ...
9105 * linux-nat-trad.c: ... this new file.
9106 * linux-nat-trad.h: New file.
9107 * linux-nat.c (linux_target_install_ops): Make extern.
9108 (linux_trad_target): Delete.
9109 * linux-nat.h (linux_trad_target): Delete declaration.
9110 (linux_target_install_ops): Declare.
9111 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9114 2018-05-02 Pedro Alves <palves@redhat.com>
9116 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9117 procfs_target/add_target here.
9118 * procfs.c (procfs_target): Make static.
9119 (_initialize_procfs): Call add_target here.
9120 * procfs.h (struct target_ops): Remove forward declaration.
9121 (procfs_target): Remove declaration.
9122 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9124 2018-05-02 Pedro Alves <palves@redhat.com>
9126 * procfs.c (procfs_stopped_by_watchpoint)
9127 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9128 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9130 (procfs_use_watchpoints): Delete, move contents...
9131 (procfs_target): ... here.
9132 * procfs.h (procfs_use_watchpoints): Delete declaration.
9133 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9134 procfs_use_watchpoints.
9135 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9136 procfs_use_watchpoints.
9138 2018-05-02 Tom Tromey <tom@tromey.com>
9141 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9142 and var_zuinteger_unlimited.
9143 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9144 and PARAM_ZUINTEGER_UNLIMITED.
9145 (set_parameter_value): Handle var_zuinteger and
9146 var_zuinteger_unlimited.
9147 (add_setshow_generic): Likewise.
9148 (parmpy_init): Likewise.
9150 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9153 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9154 pointer is not null before dereferencing it.
9156 2018-04-30 Tom Tromey <tom@tromey.com>
9158 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9161 2018-04-30 Tom Tromey <tom@tromey.com>
9163 * breakpoint.c (mention): Remove use of is_mi_like_p.
9164 (print_mention_ranged_breakpoint): Likewise.
9165 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9168 2018-04-30 Tom Tromey <tom@tromey.com>
9170 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9172 2018-04-30 Tom Tromey <tom@tromey.com>
9174 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9175 (info_spu_event_command): Remove some uses of is_mi_like_p.
9177 2018-04-30 Tom Tromey <tom@tromey.com>
9179 * python/py-framefilter.c (py_print_single_arg)
9180 (enumerate_locals, py_print_args, py_print_frame): Remove some
9181 uses of is_mi_like_p.
9183 2018-04-30 Tom Tromey <tom@tromey.com>
9186 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9187 * ui-out.h (ui_out::is_mi_like_p): Now const.
9188 (ui_out::do_is_mi_like_p): Now const.
9189 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9191 2018-04-30 Tom Tromey <tom@tromey.com>
9193 * varobj.c (varobj_set_visualizer): Use new_reference.
9194 * python/python.c (gdbpy_decode_line): Use new_reference.
9195 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9198 2018-04-30 Tom Tromey <tom@tromey.com>
9200 * varobj.c (install_new_value): Use new_reference.
9201 * value.h (value_incref): Return void. Swap intro comment with
9203 * value.c (set_value_parent): Use new_reference.
9204 (value_incref): Return void. Update intro comment.
9205 (release_value): Use new_reference.
9206 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9208 2018-04-30 Tom Tromey <tom@tromey.com>
9210 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9211 * gdb_bfd.h (new_bfd_ref): Remove.
9212 (gdb_bfd_open): Update comment.
9213 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9214 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9215 (gdb_bfd_fdopenr): Use new_reference.
9216 * exec.c (exec_file_attach): Use new_reference.
9218 2018-04-30 Tom Tromey <tom@tromey.com>
9220 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9223 2018-04-30 Tom Tromey <tom@tromey.com>
9225 * jit.c (jit_read_code_entry): Use type_align.
9226 * i386-tdep.c (i386_gdbarch_init): Don't call
9227 set_gdbarch_long_long_align_bit.
9228 * gdbarch.sh: Remove long_long_align_bit.
9229 * gdbarch.c, gdbarch.h: Rebuild.
9230 * arc-tdep.c (arc_type_align): New function.
9231 (arc_gdbarch_init): Use arc_type_align. Don't call
9232 set_gdbarch_long_long_align_bit.
9234 2018-04-30 Tom Tromey <tom@tromey.com>
9236 * rust-lang.c (rust_type_alignment): Remove.
9237 (rust_composite_type): Use type_align.
9239 2018-04-30 Tom Tromey <tom@tromey.com>
9241 * NEWS: Mention Type.align.
9242 * python/py-type.c (typy_get_alignof): New function.
9243 (type_object_getset): Add "alignof".
9245 2018-04-30 Tom Tromey <tom@tromey.com>
9249 * std-operator.def (UNOP_ALIGNOF): New operator.
9250 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9252 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9253 * c-lang.c (c_op_print_tab): Add alignof.
9254 * c-exp.y (ALIGNOF): New token.
9255 (exp): Add "ALIGNOF" production.
9256 (ident_tokens): Add _Alignof and alignof.
9258 2018-04-30 Tom Tromey <tom@tromey.com>
9260 * i386-tdep.c (i386_type_align): New function.
9261 (i386_gdbarch_init): Update.
9262 * gdbarch.sh (type_align): New method.
9263 * gdbarch.c, gdbarch.h: Rebuild.
9264 * arch-utils.h (default_type_align): Declare.
9265 * arch-utils.c (default_type_align): New function.
9266 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9267 (struct type) <align_log2>: New field.
9268 <instance_flags>: Now a bitfield.
9269 (TYPE_RAW_ALIGN): New macro.
9270 (type_align, type_raw_align, set_type_align): Declare.
9271 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9273 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9274 (get_alignment, maybe_set_alignment): New functions.
9275 (read_structure_type, read_enumeration_type, read_array_type)
9276 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9277 (read_subrange_type, read_base_type): Set type alignment.
9279 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9281 * dwarf2read.c (read_index_from_section): Use bool.
9283 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9286 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9289 2018-04-29 John Reiser <jreiser@BitWagon.com>
9292 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9293 last step, and do it atomically.
9295 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9297 * compile/compile-c-types.c (convert_int, convert_float):
9300 2018-04-27 Tom Tromey <tom@tromey.com>
9303 * rust-lang.c (rust_inclusive_range_type_p): New function.
9304 (rust_range): Handle inclusive ranges.
9305 (rust_compute_range): Likewise.
9306 * rust-exp.y (struct rust_op) <inclusive>: New field.
9307 (DOTDOTEQ): New constant.
9308 (range_expr): Add "..=" productions.
9309 (operator_tokens): Add "..=" token.
9310 (ast_range): Add "inclusive" parameter.
9311 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9313 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9315 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9316 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9318 * expprint.c (print_subexp_standard): Handle new bounds values.
9319 (dump_subexp_body_standard): Likewise.
9321 2018-04-27 Tom Tromey <tom@tromey.com>
9323 * configure: Rebuild.
9324 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9325 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9327 (class symbol_needs_eval_context): Likewise.
9328 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9329 (mock_mapped_index::symbol_name_at): Use "override". Remove
9331 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9333 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9334 * aarch64-tdep.c (instruction_reader::read): Use "override".
9335 (instruction_reader_test::read): Likewise.
9336 * arm-tdep.c (instruction_reader::read): Use "override".
9337 (instruction_reader_thumb::read): Likewise.
9339 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9342 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9343 instead of remote_send.
9344 (remote_send): Remove.
9346 2018-04-26 Pedro Alves <palves@redhat.com>
9348 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9349 find_function_start_sal instead of find_pc_line.
9351 2018-04-26 Pedro Alves <palves@redhat.com>
9353 * breakpoint.c (set_breakpoint_location_function): Handle
9355 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9356 * elfread.c (elf_symtab_read): Give data symbols with
9357 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9358 (elf_rel_plt_read): Update comment.
9359 * linespec.c (convert_linespec_to_sals): Handle
9361 (minsym_found): Handle mst_data_gnu_ifunc.
9362 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9363 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9364 * parse.c (find_minsym_type_and_address): Handle
9366 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9367 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9368 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9370 <mst_data_gnu_ifunc>: New enumerator.
9372 2018-04-26 Pedro Alves <palves@redhat.com>
9374 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9375 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9376 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9378 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9379 (lookup_minimal_symbol_by_pc): Adjust.
9380 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9381 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9382 * minsyms.h (lookup_msym_prefer): New enum.
9383 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9384 parameter by a lookup_msym_prefer parameter.
9386 2018-04-26 Pedro Alves <palves@redhat.com>
9388 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9389 ends in "@plt" instead of looking at the symbol's section.
9391 2018-04-26 Pedro Alves <palves@redhat.com>
9393 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9395 (find_pc_partial_function_gnu_ifunc): Rename to ...
9396 (find_pc_partial_function): ... this, and remove references to
9398 (find_pc_partial_function): Delete old implementation.
9399 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9401 2018-04-26 Pedro Alves <palves@redhat.com>
9403 * linespec.c (struct bound_minimal_symbol_search_key): New.
9404 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9405 skip first line if we found a GNU ifunc minimal symbol by name.
9406 (compare_msymbols): Change parameters to work with a destructured
9408 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9411 2018-04-26 Pedro Alves <palves@redhat.com>
9413 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9414 ifunc targets here. Instead, if we have an ifunc minsym, use its
9416 (add_location_to_breakpoint): Store the minsym and the objfile in
9417 the breakpoint location.
9418 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9419 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9420 Record the minsym in the sal.
9421 * symtab.h (symtab_and_line) <msymbol>: New field.
9423 2018-04-26 Pedro Alves <palves@redhat.com>
9425 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9426 unless we actually resolved the ifunc.
9428 2018-04-26 Pedro Alves <palves@redhat.com>
9430 * c-exp.y (variable production): Prefer ifunc minsyms over
9431 regular function symbols.
9432 * symtab.c (find_gnu_ifunc): New function.
9433 * minsyms.h (lookup_msym_prefer): New enum.
9434 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9435 parameter by a lookup_msym_prefer parameter.
9436 * symtab.h (find_gnu_ifunc): New declaration.
9438 2018-04-26 Pedro Alves <palves@redhat.com>
9440 * blockframe.c (find_gnu_ifunc_target_type): New function.
9441 (find_function_type): New.
9442 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9443 return a value with a memory address.
9444 (eval_call): For calls to GNU ifunc functions, try to find the
9445 type of the target function from the type that the resolver
9447 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9449 * infcall.c (find_function_return_type): Delete.
9450 (find_function_addr): Add 'function_type' parameter. For calls to
9451 GNU ifunc functions, try to find the type of the target function
9452 from the type that the resolver returns, and return it via
9454 (call_function_by_hand_dummy): Adjust to use the function type
9455 returned by find_function_addr.
9456 (find_function_addr): Add 'function_type' parameter and move
9458 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9461 2018-04-26 Pedro Alves <palves@redhat.com>
9463 * c-exp.y (variable production): Skip finding an alias for ifunc
9466 2018-04-26 Pedro Alves <palves@redhat.com>
9468 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9470 2018-04-25 Pedro Alves <palves@redhat.com>
9472 * infcmd.c (kill_command): Print the pid as string, not the whole
9473 thread's ptid. Add comment. s/has been killed/killed/ in output
9475 * remote.c (remote_detach_1): Print the pid as string, not the
9476 whole thread's ptid.
9478 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9479 Sergio Durigan Junior <sergiodj@redhat.com>
9480 Pedro Alves <palves@redhat.com>
9482 * infcmd.c (kill_command): Print message when inferior has
9484 * inferior.c (print_inferior_events): Remove 'static'. Set as
9486 (add_inferior): Improve message printed when
9487 'print_inferior_events' is on.
9488 (exit_inferior): Remove message printed when
9489 'print_inferior_events' is on.
9490 (detach_inferior): Improve message printed when
9491 'print_inferior_events' is on.
9492 (initialize_inferiors): Use 'add_inferior_silent' to set
9493 'current_inferior_'.
9494 * inferior.h (print_inferior_events): Declare here as
9496 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9497 '[Detaching...]' messages when 'print_inferior_events' is on.
9498 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9499 as prefix/suffix for messages. Remove periods. Fix erroneous
9500 'Detaching after fork from child...', replace it by '... from
9502 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9503 prefix/suffix when printing 'Detaching...' messages. Print
9504 them when 'print_inferior_events' is on.
9505 * remote.c (remote_detach_1): Print message when detaching
9506 from inferior and '!is_fork_parent'.
9508 2018-04-24 Tom Tromey <tom@tromey.com>
9510 * cli-out.h: Reindent.
9512 2018-04-24 Tom Tromey <tom@tromey.com>
9514 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9515 (cli_ui_out::do_field_string): Use fputs_filtered.
9516 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9518 2018-04-23 Tom Tromey <tom@tromey.com>
9520 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9521 gdb::unique_xmalloc_ptr.
9523 2018-04-23 Tom Tromey <tom@tromey.com>
9525 * configure: Rebuild.
9527 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9530 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9531 prepare_for_testing. Set normal_bp to r_debug_state if target
9534 2018-04-21 Pedro Alves <palves@redhat.com>
9535 Rajendra SY <rajendra.sy@gmail.com>
9537 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9538 * remote.c (extended_remote_attach): In all-stop mode, mark the
9539 thread as executing.
9541 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9543 * thread.c (thread_apply_all_command): Fix comment.
9544 (thread_command): Fix comment.
9546 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9548 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9550 * features/aarch64-core.c (create_feature_aarch64_core):
9552 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9554 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9556 * features/i386/32bit-avx512.c
9557 (create_feature_i386_32bit_avx512): Likewise.
9558 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9560 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9562 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9564 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9566 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9568 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9570 * features/i386/64bit-avx512.c
9571 (create_feature_i386_64bit_avx512): Likewise.
9572 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9574 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9576 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9578 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9580 * features/i386/64bit-segments.c
9581 (create_feature_i386_64bit_segments): Likewise.
9582 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9584 * features/i386/x32-core.c
9585 (create_feature_i386_x32_core): Likewise.
9586 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9587 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9588 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9589 * target-descriptions.c: In generated code, don't pass xml
9592 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9594 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9595 (print_xml_feature::visit_post): Likewise.
9596 (print_xml_feature::visit): Likewise.
9597 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9598 (print_xml_feature): Add new class.
9599 * regformats/regdat.sh: Null xmltarget on feature targets.
9600 * target-descriptions.c (struct target_desc): Add xmltarget.
9601 (maintenance_check_tdesc_xml_convert): Add unittest function.
9602 (tdesc_get_features_xml): Add function to get xml.
9603 (maintenance_check_xml_descriptions): Test xml generation.
9604 * xml-tdesc.c (string_read_description_xml): Add function.
9605 * xml-tdesc.h (string_read_description_xml): Add declaration.
9607 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9609 * features/Makefile: Add feature marker to targets with new style
9610 target descriptions.
9611 * regformats/aarch64.dat: Regenerate.
9612 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9613 * regformats/i386/amd64-avx-linux.dat: Likewise.
9614 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9615 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9616 * regformats/i386/amd64-linux.dat: Likewise.
9617 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9618 * regformats/i386/amd64.dat: Likewise.
9619 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9620 * regformats/i386/i386-avx-linux.dat: Likewise.
9621 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9622 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9623 * regformats/i386/i386-linux.dat: Likewise.
9624 * regformats/i386/i386-mmx-linux.dat: Likewise.
9625 * regformats/i386/i386-mpx-linux.dat: Likewise.
9626 * regformats/i386/i386.dat: Likewise.
9627 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9628 * regformats/i386/x32-avx-linux.dat: Likewise.
9629 * regformats/i386/x32-linux.dat: Likewise.
9630 * regformats/tic6x-c62x-linux.dat: Likewise.
9631 * regformats/tic6x-c64x-linux.dat: Likewise.
9632 * regformats/tic6x-c64xp-linux.dat: Likewise.
9633 * regformats/regdat.sh: Parse feature marker.
9635 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9637 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9638 (tdesc_osabi_name): Likewise.
9639 * target-descriptions.c (tdesc_architecture_name): Add new
9641 (tdesc_osabi_name): Likewise.
9643 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9645 * common/tdesc.c (tdesc_predefined_type): Move to here.
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 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9659 (struct tdesc_type_vector): Likewise.
9660 (struct tdesc_type_field): Likewise.
9661 (struct tdesc_type_with_fields): Likewise.
9662 (tdesc_create_enum): Add declaration.
9663 (tdesc_add_typed_bitfield): Likewise.
9664 (tdesc_add_enum_value): Likewise.
9665 * target-descriptions.c (tdesc_type_field): Move from here.
9666 (tdesc_type_builtin): Likewise.
9667 (tdesc_type_vector): Likewise.
9668 (tdesc_type_with_fields): Likewise.
9669 (tdesc_predefined_types): Likewise.
9670 (tdesc_named_type): Likewise.
9671 (tdesc_create_vector): Likewise.
9672 (tdesc_create_struct): Likewise.
9673 (tdesc_set_struct_size): Likewise.
9674 (tdesc_create_union): Likewise.
9675 (tdesc_create_flags): Likewise.
9676 (tdesc_create_enum): Likewise.
9677 (tdesc_add_field): Likewise.
9678 (tdesc_add_typed_bitfield): Likewise.
9679 (tdesc_add_bitfield): Likewise.
9680 (tdesc_add_flag): Likewise.
9681 (tdesc_add_enum_value): Likewise.
9682 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9683 (tdesc_add_typed_bitfield): Likewise.
9684 (tdesc_add_enum_value): Likewise.
9686 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9688 * common/tdesc.c (tdesc_feature::accept): Move to here.
9689 (tdesc_feature::operator==): Likewise.
9690 (tdesc_create_reg): Likewise.
9691 * common/tdesc.h (tdesc_type_kind): Likewise.
9692 (struct tdesc_type): Likewise.
9693 (struct tdesc_feature): Likewise.
9694 * regformats/regdat.sh: Create a feature.
9695 * target-descriptions.c (tdesc_type_kind): Move from here.
9696 (tdesc_type): Likewise.
9697 (tdesc_type_up): Likewise.
9698 (tdesc_feature): Likewise.
9699 (tdesc_create_reg): Likewise.
9701 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9703 * Makefile.in: Add arch/tdesc.c
9704 * common/tdesc.c: New file.
9705 * common/tdesc.h (tdesc_element_visitor): Move to here.
9706 (tdesc_element): Likewise.
9707 (tdesc_reg): Likewise.
9708 (tdesc_reg_up): Likewise.
9709 * regformats/regdef.h (reg): Add offset to constructors.
9710 * target-descriptions.c (tdesc_element_visitor): Move from here.
9711 (tdesc_element): Likewise.
9712 (tdesc_reg): Likewise.
9713 (tdesc_reg_up): Likewise.
9715 2018-04-17 Tom Tromey <tom@tromey.com>
9717 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9720 2018-04-17 Tom Tromey <tom@tromey.com>
9722 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9724 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9726 * symtab.c (print_symbol_info): Skip printing filename and line
9727 number when `last' is NULL.
9728 (symtab_symbol_info): Use empty string instead of NULL for first
9729 invocation of print_symbol_info.
9730 (rbreak_command): Pass NULL to `last' parameter of
9733 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9735 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9738 2018-04-16 Pedro Alves <palves@redhat.com>
9740 * MAINTAINERS (sh): Remove.
9741 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9742 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9743 (ALLDEPFILES): Remove sh64-tdep.c.
9744 * NEWS: Mentions that support for SH-5/SH64 is removed.
9745 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9746 (sh*-*-openbsd*): Ditto.
9747 (sh64-*-elf*): Remove.
9749 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9750 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9751 * sh-tdep.c: No longer include "sh64-tdep.h".
9752 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9753 * sh64-tdep.c, sh64-tdep.h: Remove files.
9755 2018-04-16 Pedro Alves <palves@redhat.com>
9757 * MAINTAINERS: Remove m88k.
9758 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9759 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9760 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9761 * NEWS: Mention that support for m88k was removed.
9762 * configure.host (m88*-*-*): Remove support.
9763 * configure.nat (m88k-*-*): Remove support.
9764 * configure.tgt (m88*-*-openbsd*): Remove.
9765 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9767 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9769 * configure.tgt (x86_tobjs): New variable.
9770 (amd64_tobjs, i386_tobjs): Use it.
9772 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9774 * symtab.c (print_symbol_info): Precede the symbol definition by
9775 the line number when available.
9776 * NEWS: Advertise this enhancement.
9778 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9780 * NEWS (New options): announce set/show record btrace cpu.
9781 * btrace.c: Include record-btrace.h.
9782 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9783 the vendor is unknown.
9784 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9785 Maybe overwrite the btrace configuration's cpu.
9786 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9787 (btrace_fetch): Add cpu parameter. Update callers.
9788 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9789 Maybe overwrite the btrace configuration's cpu. Skip enabling
9790 errata workarounds if the vendor is unknown.
9791 * python/py-record-btrace.c: Include record-btrace.h.
9792 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9793 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9794 * record-btrace.c (record_btrace_cpu_state_kind): New.
9795 (record_btrace_cpu): New.
9796 (set_record_btrace_cpu_cmdlist): New.
9797 (record_btrace_get_cpu): New.
9798 (require_btrace_thread, record_btrace_info)
9799 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9800 (cmd_set_record_btrace_cpu_none): New.
9801 (cmd_set_record_btrace_cpu_auto): New.
9802 (cmd_set_record_btrace_cpu): New.
9803 (cmd_show_record_btrace_cpu): New.
9804 (_initialize_record_btrace): Initialize set/show record btrace cpu
9806 * record-btrace.h (record_btrace_get_cpu): New.
9808 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9810 * record.c (set_record_command): Fix typo in message.
9812 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9814 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9816 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9818 * infrun.c (process_event_stop_test): Call
9819 gdbarch_in_indirect_branch_thunk.
9820 * gdbarch.sh (in_indirect_branch_thunk): New.
9821 * gdbarch.c: Regenerated.
9822 * gdbarch.h: Regenerated.
9825 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9826 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9827 (ALLDEPFILES): Add x86-tdep.c.
9828 * arch-utils.h (default_in_indirect_branch_thunk): New.
9829 * arch-utils.c (default_in_indirect_branch_thunk): New.
9830 * i386-tdep: Include x86-tdep.h.
9831 (i386_in_indirect_branch_thunk): New.
9832 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
9834 * amd64-tdep: Include x86-tdep.h.
9835 (amd64_in_indirect_branch_thunk): New.
9836 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
9838 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9841 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
9842 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
9843 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
9846 2018-04-12 Tom Tromey <tom@tromey.com>
9848 * rust-lang.c (rust_print_struct_def): Remove univariant code.
9849 (rust_evaluate_subexp): Likewise.
9851 2018-04-12 Pedro Alves <palves@redhat.com>
9853 * procfs.c (procfs_detach): Make forward declaration's prototype
9854 match definition's protototype.
9855 (proc_get_LDT_entry): Remove stale do_cleanups call.
9857 2018-04-12 Pedro Alves <palves@redhat.com>
9859 * target.h (target_ops::to_has_exited): Delete.
9860 (target_has_exited): Delete.
9861 * target-delegates.c: Regenerate.
9863 2018-04-11 Pedro Alves <palves@redhat.com>
9865 * target.c (fileio_fh_t::t): Add comment.
9866 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9867 (target_fileio_close): Handle a NULL target.
9868 (invalidate_fileio_fh): New.
9869 (target_close): Call it.
9870 * remote.c (remote_hostio_send_command): No longer check whether
9871 remote_desc is open.
9873 2018-04-11 Pedro Alves <palves@redhat.com>
9875 * target.c (fileio_fh_t): Make it a named struct instead of a
9877 (fileio_fh_t::is_closed): New method.
9878 (DEF_VEC_O (fileio_fh_t)): Remove.
9879 (fileio_fhandles): Now a std::vector.
9880 (is_closed_fileio_fh): Delete.
9881 (acquire_fileio_fd): Adjust. Rename parameters.
9882 (release_fileio_fd): Adjust.
9883 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
9884 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
9885 (target_fileio_close): Adjust.
9887 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
9889 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
9892 2018-04-10 Pedro Alves <palves@redhat.com>
9894 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
9895 (scoped_finish_thread_state): New class.
9896 * infcmd.c (run_command_1): Use it instead of finish_thread_state
9898 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
9899 (fetch_inferior_event, normal_stop): Likewise.
9900 * thread.c (finish_thread_state_cleanup): Delete.
9902 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9903 Pedro Alves <palves@redhat.com>
9905 * value.c: Include "selftest.h" and "common/array-view.h".
9906 (struct range) <operator ==>: New.
9907 (test_ranges_contain): New.
9908 (check_ranges_vector): New.
9909 (test_insert_into_bit_range_vector): New.
9910 (_initialize_values): Register selftests.
9911 * common/array-view.h (operator==, operator!=): New.
9913 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9915 * common/gdb_vecs.h (unordered_remove): Add overload that takes
9917 * inline-frame.c: Include <algorithm>.
9918 (struct inline_state): Add constructor.
9919 (inline_state_s): Remove.
9920 (DEF_VEC_O(inline_state_s)): Remove.
9921 (inline_states): Change type to std::vector.
9922 (find_inline_frame_state): Adjust to std::vector.
9923 (allocate_inline_frame_state): Remove.
9924 (clear_inline_frame_state): Adjust to std::vector.
9925 (skip_inline_frames): Adjust to std::vector.
9927 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9929 * tracepoint.h (struct trace_state_variable): Add constructor.
9930 <name>: Change type to std::string.
9931 * tracepoint.c (tsv_s): Remove.
9932 (DEF_VEC_O(tsv_s)): Remove.
9933 (tvariables): Change to std::vector.
9934 (create_trace_state_variable): Adjust to std::vector.
9935 (find_trace_state_variable): Likewise.
9936 (find_trace_state_variable_by_number): Likewise.
9937 (delete_trace_state_variable): Likewise.
9938 (trace_variable_command): Adjust to std::string.
9939 (delete_trace_variable_command): Likewise.
9940 (tvariables_info_1): Adjust to std::vector.
9941 (save_trace_state_variables): Likewise.
9942 (start_tracing): Likewise.
9943 (merge_uploaded_trace_state_variables): Adjust to std::vector
9945 * target.h (struct target_ops)
9946 <to_download_trace_state_variable>: Pass reference to
9947 trace_state_variable.
9948 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
9949 * target-delegates.c: Re-generate.
9950 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
9951 (mi_tsv_deleted): Likewise.
9952 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
9953 * remote.c (remote_download_trace_state_variable): Change
9954 pointer to reference and adjust.
9955 * make-target-delegates (parse_argtypes): Handle references.
9956 (write_function_header): Likewise.
9957 (munge_type): Likewise.
9959 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9961 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
9962 string_view-selftests.c.
9963 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
9965 * unittests/basic_string_view/cons/char/1.cc: Likewise.
9966 * unittests/basic_string_view/cons/char/2.cc: Likewise.
9967 * unittests/basic_string_view/cons/char/3.cc: Likewise.
9968 * unittests/basic_string_view/element_access/char/1.cc:
9970 * unittests/basic_string_view/element_access/char/empty.cc:
9972 * unittests/basic_string_view/element_access/char/front_back.cc:
9974 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
9975 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
9977 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
9979 * unittests/basic_string_view/modifiers/swap/char/1.cc:
9981 * unittests/basic_string_view/operations/compare/char/1.cc:
9983 * unittests/basic_string_view/operations/compare/char/13650.cc:
9985 * unittests/basic_string_view/operations/copy/char/1.cc:
9987 * unittests/basic_string_view/operations/data/char/1.cc:
9989 * unittests/basic_string_view/operations/find/char/1.cc:
9991 * unittests/basic_string_view/operations/find/char/2.cc:
9993 * unittests/basic_string_view/operations/find/char/3.cc:
9995 * unittests/basic_string_view/operations/find/char/4.cc:
9997 * unittests/basic_string_view/operations/rfind/char/1.cc:
9999 * unittests/basic_string_view/operations/rfind/char/2.cc:
10001 * unittests/basic_string_view/operations/rfind/char/3.cc:
10003 * unittests/basic_string_view/operations/substr/char/1.cc:
10005 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10006 * unittests/string_view-selftests.c: New file.
10008 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10010 * unittests/basic_string_view/capacity/1.cc: New file.
10011 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10012 * unittests/basic_string_view/cons/char/1.cc: New file.
10013 * unittests/basic_string_view/cons/char/2.cc: New file.
10014 * unittests/basic_string_view/cons/char/3.cc: New file.
10015 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10016 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10017 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10018 * unittests/basic_string_view/element_access/char/1.cc: New file.
10019 * unittests/basic_string_view/element_access/char/2.cc: New file.
10020 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10021 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10022 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10023 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10024 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10025 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10026 * unittests/basic_string_view/include.cc: New file.
10027 * unittests/basic_string_view/inserters/char/1.cc: New file.
10028 * unittests/basic_string_view/inserters/char/2.cc: New file.
10029 * unittests/basic_string_view/inserters/char/3.cc: New file.
10030 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10031 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10032 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10033 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10034 * unittests/basic_string_view/literals/types.cc: New file.
10035 * unittests/basic_string_view/literals/values.cc: New file.
10036 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10037 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10038 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10039 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10040 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10041 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10042 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10043 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10044 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10045 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10046 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10047 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10048 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10049 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10050 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10051 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10052 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10053 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10054 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10055 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10056 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10057 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10058 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10059 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10060 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10061 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10062 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10063 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10064 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10065 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10066 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10067 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10068 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10069 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10070 * unittests/basic_string_view/operators/char/2.cc: New file.
10071 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10072 * unittests/basic_string_view/range_access/char/1.cc: New file.
10073 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10074 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10075 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10076 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10077 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10078 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10079 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10080 * unittests/basic_string_view/typedefs.cc: New file.
10081 * unittests/basic_string_view/types/1.cc: New file.
10083 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10085 * common/gdb_string_view.h: Remove libstdc++ implementation
10086 details, adjust to gdb reality.
10087 * common/gdb_string_view.tcc: Likewise.
10088 * cli/cli-script.c (struct string_view): Remove.
10089 (user_args) <m_args>: Change element type to gdb::string_view.
10090 (user_args::insert_args): Adjust.
10092 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10094 * common/gdb_string_view.h: New file.
10095 * common/gdb_string_view.tcc: New file.
10097 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10099 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10100 * configure: Re-generate.
10102 2018-04-09 Pedro Alves <palves@redhat.com>
10104 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10105 (set_target_gdbarch): Call
10106 gdb::observers::architecture_changed.notify instead of
10107 observer_notify_architecture_changed.
10109 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10111 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10112 (do_restore_current_traceframe_cleanup): Remove.
10113 (restore_current_traceframe_cleanup_dtor): Remove.
10114 (make_cleanup_restore_current_traceframe): Remove.
10115 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10117 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10118 * infrun.c (fetch_inferior_event): Use
10119 scoped_restore_current_traceframe.
10121 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10123 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10125 <n_allocated_type_units>: Remove.
10126 <all_type_units>: Change to std::vector.
10127 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10128 to std::vector change.
10129 (dwarf2_per_objfile::get_cutu): Likewise.
10130 (dwarf2_per_objfile::get_tu): Likewise.
10131 (create_signatured_type_table_from_index): Likewise.
10132 (create_signatured_type_table_from_debug_names): Likewise.
10133 (dw2_symtab_iter_next): Likewise.
10134 (dw2_print_stats): Likewise.
10135 (dw2_expand_all_symtabs): Likewise.
10136 (dw2_expand_marked_cus): Likewise.
10137 (dw2_debug_names_iterator::next): Likewise.
10138 (dwarf2_initialize_objfile): Likewise.
10139 (add_signatured_type_cu_to_table): Likewise.
10140 (create_all_type_units): Likewise.
10141 (add_type_unit): Likewise.
10142 (struct tu_abbrev_offset): Add constructor.
10143 (build_type_psymtabs_1): Adjust to std::vector change.
10144 (print_tu_stats): Likewise.
10145 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10146 (write_debug_names): Likewise.
10148 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10150 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10151 Make an std::vector.
10152 <n_comp_units>: Remove.
10153 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10154 to std::vector change.
10155 (dwarf2_per_objfile::get_cutu): Likewise.
10156 (dwarf2_per_objfile::get_cu): Likewise.
10157 (create_cus_from_index): Likewise.
10158 (create_addrmap_from_index): Likewise.
10159 (create_addrmap_from_aranges): Likewise.
10160 (dwarf2_read_index): Likewise.
10161 (dw2_find_last_source_symtab): Likewise.
10162 (dw2_map_symtabs_matching_filename): Likewise.
10163 (dw2_symtab_iter_next): Likewise.
10164 (dw2_print_stats): Likewise.
10165 (dw2_expand_all_symtabs): Likewise.
10166 (dw2_expand_symtabs_with_fullname): Likewise.
10167 (dw2_expand_marked_cus): Likewise.
10168 (dw2_map_symbol_filenames): Likewise.
10169 (create_cus_from_debug_names): Likewise.
10170 (dwarf2_read_debug_names): Likewise.
10171 (dw2_debug_names_iterator::next): Likewise.
10172 (dwarf2_initialize_objfile): Likewise.
10173 (set_partial_user): Likewise.
10174 (dwarf2_build_psymtabs_hard): Likewise.
10175 (read_comp_units_from_section): Remove arguments, adjust to
10176 std::vector change.
10177 (create_all_comp_units): Adjust to std::vector and
10178 read_comp_units_from_section changes.
10179 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10181 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10182 (psyms_seen_size): Likewise.
10183 (write_gdbindex): Likewise.
10184 (write_debug_names): Likewise.
10186 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10188 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10189 with dwarf2_per_objfile.
10190 (create_cus_from_index): Likewise.
10191 (create_signatured_type_table_from_index): Likewise.
10192 (dwarf2_read_index): Likewise.
10193 (dwarf2_initialize_objfile): Likewise.
10194 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10195 per_cu rather than get_dwarf2_per_objfile.
10197 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10199 * dwarf2read.h (struct signatured_type): Forward declare.
10200 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10202 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10203 (dw2_get_cutu): ...this.
10204 (dwarf2_per_objfile::get_cu): Rename from...
10205 (dw2_get_cu): ...this.
10206 (dwarf2_per_objfile::get_tu): New.
10207 (create_addrmap_from_index): Adjust.
10208 (create_addrmap_from_aranges): Adjust.
10209 (dw2_find_last_source_symtab): Adjust.
10210 (dw2_map_symtabs_matching_filename): Adjust.
10211 (dw2_symtab_iter_next): Adjust.
10212 (dw2_print_stats): Adjust.
10213 (dw2_expand_all_symtabs): Adjust.
10214 (dw2_expand_symtabs_with_fullname): Adjust.
10215 (dw2_expand_marked_cus): Adjust.
10216 (dw_expand_symtabs_matching_file_matcher): Adjust.
10217 (dw2_map_symbol_filenames): Adjust.
10218 (dw2_debug_names_iterator::next): Adjust.
10219 (dwarf2_initialize_objfile): Adjust.
10220 (set_partial_user): Adjust.
10221 (dwarf2_build_psymtabs_hard): Adjust.
10223 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10225 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10226 Remove unused variables.
10227 (dw2_map_symtabs_matching_filename): Likewise.
10228 (dwarf2_record_block_ranges): Likewise.
10229 (dwarf2_read_addr_index): Likewise.
10230 (follow_die_offset): Likewise.
10232 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10234 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10235 to symbol_file_add_main.
10237 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10240 * mi/mi-console.c (do_fputc_async_safe): New.
10241 (mi_console_file::write_async_safe): New.
10242 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10243 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10245 * ui-file.c (ui_file::putstrn): Adjust call to
10246 fputstrn_unfiltered.
10247 * utils.c (printchar): Replace do_fputs and do_fprintf
10248 parameters by do_fputc.
10249 (fputstr_filtered): Adjust call to printchar.
10250 (fputstr_unfiltered): Likewise.
10251 (fputstrn_filtered): Likewise.
10252 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10254 * utils.h (do_fputc_ftype): New typedef.
10255 (fputstrn_unfiltered): Add do_fputc parameter.
10257 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10259 * regformats/i386/i386-avx.dat: Remove.
10261 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10264 * amd64-tdep.c (amd64_none_init_abi): New function.
10265 (amd64_x32_none_init_abi): New function.
10266 (_initialize_amd64_tdep): Register handlers for x86-64 and
10267 x64_32 with GDB_OSABI_NONE.
10268 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10269 GDB_OSABI_NONE osabi.
10271 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10274 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10276 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10277 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10279 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10281 * common/byte-vector.h (char_vector): New type.
10282 * target.h (target_read_alloc): Return
10283 gdb::optional<byte_vector>.
10284 (target_read_stralloc): Return gdb::optional<char_vector>.
10285 (target_get_osdata): Return gdb::optional<char_vector>.
10286 * target.c (target_read_alloc_1): Templatize. Replacement
10287 manual memory management with vector.
10288 (target_read_alloc): Change return type, adjust.
10289 (target_read_stralloc): Change return type, adjust.
10290 (target_get_osdata): Change return type, adjust.
10291 * auxv.c (struct auxv_info) <length>: Remove.
10292 <data>: Change type to gdb::optional<byte_vector>.
10293 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10294 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10295 (target_auxv_search): Adjust.
10296 (fprint_target_auxv): Adjust.
10297 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10298 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10299 (linux_make_corefile_notes): Adjust.
10300 * osdata.c (get_osdata): Adjust.
10301 * remote.c (remote_get_threads_with_qxfer): Adjust.
10302 (remote_memory_map): Adjust.
10303 (remote_traceframe_info): Adjust.
10304 (btrace_read_config): Adjust.
10305 (remote_read_btrace): Adjust.
10306 (remote_pid_to_exec_file): Adjust.
10307 * solib-aix.c (solib_aix_get_library_list): Adjust.
10308 * solib-dsbt.c (decode_loadmap): Don't free buf.
10309 (dsbt_get_initial_loadmaps): Adjust.
10310 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10311 * solib-target.c (solib_target_current_sos): Adjust.
10312 * tracepoint.c (sdata_make_value): Adjust.
10313 * xml-support.c (xinclude_start_include): Adjust.
10314 (xml_fetch_content_from_file): Adjust.
10315 * xml-support.h (xml_fetch_another): Change return type.
10316 (xml_fetch_content_from_file): Change return type.
10317 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10318 * xml-tdesc.c (file_read_description_xml): Adjust.
10319 (fetch_available_features_from_target): Change return type.
10320 (target_fetch_description_xml): Adjust.
10321 (target_read_description_xml): Adjust.
10323 2018-04-06 Tom Tromey <tom@tromey.com>
10325 * value.c (~value): Update.
10326 (struct value) <contents>: Now unique_xmalloc_ptr.
10327 (value_contents_bits_eq, allocate_value_contents)
10328 (value_contents_raw, value_contents_all_raw)
10329 (value_contents_for_printing, value_contents_for_printing_const)
10330 (set_value_enclosing_type): Update.
10332 2018-04-06 Tom Tromey <tom@tromey.com>
10334 * value.c (range_s): Remove typedef, VEC.
10335 (struct range): Add operator<.
10336 (range_lessthan): Remove.
10337 (ranges_contain): Change type.
10339 (struct value) <unavailable, optimized_out>: Now std::vector.
10340 (value_entirely_available)
10341 (value_entirely_covered_by_range_vector)
10342 (value_entirely_unavailable, value_entirely_optimized_out):
10344 (insert_into_bit_range_vector): Change argument type.
10345 (find_first_range_overlap): Likewise.
10346 (struct ranges_and_idx, value_contents_bits_eq)
10347 (require_not_optimized_out, require_available): Update.
10348 (ranges_copy_adjusted): Change argument types.
10349 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10351 2018-04-06 Tom Tromey <tom@tromey.com>
10353 * value.c (~value): Update.
10354 (struct value) <parent>: Now a value_ref_ptr.
10355 (value_parent, set_value_parent, value_address, value_copy):
10358 2018-04-06 Tom Tromey <tom@tromey.com>
10360 * value.c (struct value): Add constructor, destructor, and member
10362 (allocate_value_lazy, value_decref): Update.
10364 2018-04-06 Tom Tromey <tom@tromey.com>
10366 * value.c (struct value) <released, next>: Remove.
10367 (all_values): Now a std::vector.
10368 (allocate_value_lazy): Update.
10369 (value_next): Remove.
10370 (value_mark, value_free_to_mark, release_value)
10371 (value_release_to_mark): Update.
10373 2018-04-06 Tom Tromey <tom@tromey.com>
10375 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10376 (free_value_chain): Remove.
10377 * value.c (free_value_chain): Remove.
10378 (value_release_to_mark): Return a std::vector.
10379 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10381 (check_condition): Update.
10382 * eval.c (fetch_subexp_value): Change "val_chain" to a
10384 * breakpoint.c (update_watchpoint): Update.
10385 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10387 2018-04-06 Tom Tromey <tom@tromey.com>
10389 * value.h (free_all_values): Remove.
10390 * value.c (free_all_values): Remove.
10392 2018-04-06 Tom Tromey <tom@tromey.com>
10394 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10395 (value_history_chain, value_history_count): Remove.
10396 (value_history): New global.
10397 (record_latest_value, access_value_history, show_values)
10398 (preserve_values): Update.
10400 2018-04-06 Tom Tromey <tom@tromey.com>
10402 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10403 * varobj.c (varobj_set_display_format, varobj_set_value)
10404 (install_default_visualizer, construct_visualizer)
10405 (install_new_value, ~varobj, varobj_get_value_type)
10406 (my_value_of_variable, varobj_editable_p): Update.
10407 * c-varobj.c (c_describe_child, c_value_of_variable)
10408 (cplus_number_of_children, cplus_describe_child): Update.
10409 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10410 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10411 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10413 2018-04-06 Tom Tromey <tom@tromey.com>
10415 * printcmd.c (last_examine_address): Change type to
10417 (do_examine, x_command): Update.
10419 2018-04-06 Tom Tromey <tom@tromey.com>
10421 * value.c (release_value): Update.
10422 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10423 (struct bpstats) <val>: Now a value_ref_ptr.
10424 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10425 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10426 (~watchpoint, print_it_watchpoint, watch_command_1)
10427 (invalidate_bp_value_on_memory_change): Update.
10429 2018-04-06 Tom Tromey <tom@tromey.com>
10431 * varobj.c (varobj_clear_saved_item)
10432 (update_dynamic_varobj_children, install_new_value, ~varobj):
10434 * value.h (value_incref): Move declaration earlier.
10435 (value_decref): Rename from value_free.
10436 (struct value_ref_policy): New.
10437 (value_ref_ptr): New typedef.
10438 (struct value_deleter): Remove.
10439 (gdb_value_up): Remove typedef.
10440 (release_value): Change return type.
10441 (release_value_or_incref): Remove.
10442 * value.c (set_value_parent): Update.
10443 (value_incref): Change return type.
10444 (value_decref): Rename from value_free.
10445 (value_free_to_mark, free_all_values, free_value_chain): Update.
10446 (release_value): Return value_ref_ptr.
10447 (release_value_or_incref): Remove.
10448 (record_latest_value, set_internalvar, clear_internalvar):
10450 * stack.c (info_frame_command): Don't call value_free.
10451 * python/py-value.c (valpy_dealloc, valpy_new)
10452 (value_to_value_object): Update.
10453 * printcmd.c (do_examine): Update.
10454 * opencl-lang.c (lval_func_free_closure): Update.
10455 * mi/mi-main.c (register_changed_p): Don't call value_free.
10456 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10457 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10458 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10460 * guile/scm-value.c (vlscm_free_value_smob)
10461 (vlscm_scm_from_value): Update.
10462 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10463 (frame_unwind_register_unsigned, get_frame_register_bytes)
10464 (put_frame_register_bytes): Don't call value_free.
10465 * findvar.c (address_from_register): Don't call value_free.
10466 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10467 * dwarf2loc.c (entry_data_value_free_closure)
10468 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10469 (dwarf2_evaluate_loc_desc_full): Update.
10470 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10471 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10472 (~watchpoint, watch_command_1)
10473 (invalidate_bp_value_on_memory_change): Update.
10474 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10476 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10479 * warning.m4: Add -Wno-error=deprecated-register.
10480 * configure: Re-generate.
10482 2018-04-05 Tom Tromey <tom@tromey.com>
10484 * linespec.h: Remove include of "vec.h".
10486 2018-04-05 Tom Tromey <tom@tromey.com>
10488 * linespec.c (typep): Remove typedef.
10489 (find_methods, find_superclass_methods): Take a std::vector.
10490 (find_method): Use std::vector.
10492 2018-04-05 Tom Tromey <tom@tromey.com>
10494 * utils.c (compare_strings): Remove.
10495 * utils.h (compare_strings): Remove.
10496 * objc-lang.h (find_imps): Update.
10497 * objc-lang.c (find_methods): Take a std::vector.
10498 (uniquify_strings, find_imps): Likewise.
10499 * linespec.c (find_methods): Take a std::vector.
10500 (decode_objc): Use std::vector.
10501 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10503 (find_method, find_function_symbols): Use std::vector.
10505 2018-04-05 Tom Tromey <tom@tromey.com>
10507 * completer.c (completion_tracker::completion_tracker): Remove
10509 (completion_tracker::discard_completions): Likewise.
10510 * breakpoint.c (ambiguous_names_p): Remove cast.
10511 * ada-lang.c (_initialize_ada_language): Remove cast.
10512 * utils.h (streq): Update.
10513 (streq_hash): Add new declaration.
10514 * utils.c (streq): Return bool.
10515 (streq_hash): New function.
10517 2018-04-05 Tom Tromey <tom@tromey.com>
10519 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10520 Remove a string copy.
10522 2018-04-05 Tom Tromey <tom@tromey.com>
10524 * linespec.c (filter_results): Use std::vector.
10525 (decode_line_2, decode_line_full): Update.
10527 2018-04-05 Tom Tromey <tom@tromey.com>
10529 * linespec.c (canonical_to_fullform): Return std::string.
10530 (filter_results): Update.
10531 (struct decode_line_2_item): Add constructor.
10532 <fullform, displayform>: Now std::string.
10533 (decode_line_2_compare_items): Now a std::sort comparator.
10534 (decode_line_2): Update.
10536 2018-04-05 Tom Tromey <tom@tromey.com>
10538 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10539 (unexpected_linespec_error): Update.
10540 (linespec_parse_basic, parse_linespec): Update.
10542 2018-04-05 Tom Tromey <tom@tromey.com>
10544 * linespec.c (linespec_parse_basic): Reindent.
10546 2018-04-05 Tom Tromey <tom@tromey.com>
10548 * minsyms.h (iterate_over_minimal_symbols): Update.
10549 * minsyms.c (iterate_over_minimal_symbols): Take a
10550 gdb::function_view.
10551 * linespec.c (struct collect_minsyms): Remove.
10552 (compare_msyms): Now a std::sort comparator.
10553 (add_minsym): Add parameters.
10554 (search_minsyms_for_name): Update. Use std::vector.
10556 2018-04-03 Tom Tromey <tom@tromey.com>
10558 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10561 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10563 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10565 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10568 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10569 printing static type.
10571 2018-04-01 Tom Tromey <tom@tromey.com>
10573 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10574 (rs6000_xfer_shared_libraries): Update.
10576 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10578 * common/gdb_vecs.h (char_ptr): Remove.
10579 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10581 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10583 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10585 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10587 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10589 * tracepoint.h (struct uploaded_tp): Initialize fields.
10590 <actions, step_actions, cmd_strings>: Change type to
10591 std::vector<char *>.
10592 * tracepoint.c (get_uploaded_tp): Allocate with new.
10593 (free_uploaded_tps): Free with delete.
10594 (parse_tracepoint_definition): Adjust to std::vector change.
10595 * breakpoint.c (read_uploaded_action): Likewise.
10596 (create_tracepoint_from_upload): Likewise.
10597 * ctf.c (ctf_write_uploaded_tp): Likewise.
10598 (SET_ARRAY_FIELD): Likewise.
10599 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10601 2018-03-30 Tom Tromey <tom@tromey.com>
10603 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10605 (svr4_keep_data_in_core): Update.
10606 (svr4_read_so_list): Update.
10608 2018-03-30 Tom Tromey <tom@tromey.com>
10610 * windows-nat.c (handle_output_debug_string, handle_exception):
10612 * target.h (target_read_string): Update.
10613 * target.c (target_read_string): Change "string" to
10614 unique_xmalloc_ptr.
10615 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10617 * solib-frv.c (frv_current_sos): Update.
10618 * solib-dsbt.c (dsbt_current_sos): Update.
10619 * solib-darwin.c (darwin_current_sos): Update.
10620 * linux-thread-db.c (inferior_has_bug): Update.
10621 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10622 Update. Remove alloca.
10623 * ada-lang.c (ada_main_name): Update.
10625 2018-03-30 Tom Tromey <tom@tromey.com>
10627 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10628 (struct dwo_file_deleter): New.
10629 (dwo_file_up): New typedef.
10630 (open_and_init_dwo_file): Use dwo_file_up.
10631 (free_dwo_file_cleanup): Remove.
10633 2018-03-30 Tom Tromey <tom@tromey.com>
10635 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10636 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10638 2018-03-30 Tom Tromey <tom@tromey.com>
10640 * dwarf2read.c (class free_cached_comp_units): New class.
10641 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10642 (free_cached_comp_units): Remove function.
10644 2018-03-30 Tom Tromey <tom@tromey.com>
10646 * utils.h (make_cleanup_unpush_target): Remove.
10647 * inf-ptrace.c (struct target_unpusher): New.
10648 (target_unpush_up) New typedef.
10649 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10651 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10653 2018-03-27 Tom Tromey <tom@tromey.com>
10655 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10657 2018-03-27 Pedro Alves <palves@redhat.com>
10658 Tom Tromey <tom@tromey.com>
10660 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10661 destructor. Now a class.
10662 (gdb_readline_wrapper_cleanup): Remove function.
10663 (gdb_readline_wrapper): Remove cleanups.
10665 2018-03-27 Tom Tromey <tom@tromey.com>
10667 * typeprint.h (struct type_print_options) <local_typedefs,
10668 global_typedefs>: Remove "struct" keyword.
10669 (class typedef_hash_table): New class.
10670 (recursively_update_typedef_hash, add_template_parameters)
10671 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10672 (find_typedef_in_hash): Don't declare.
10673 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10674 (typedef_hash_table::recursively_update): Rename from
10675 recursively_update_typedef_hash. Now a member.
10676 (typedef_hash_table::add_template_parameters): Rename from
10677 add_template_parameters. Now a member.
10678 (typedef_hash_table::typedef_hash_table): Now a constructor;
10679 rename from create_typedef_hash.
10680 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10681 rename from free_typedef_hash.
10682 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10683 (do_free_global_table): Remove.
10684 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10685 from copy_type_recursive.
10686 (create_global_typedef_table): Remove.
10687 (typedef_hash_table::find_global_typedef): Now a member of
10688 typedef_hash_table.
10689 (typedef_hash_table::find_typedef): Rename from
10690 find_typedef_in_hash; now a member.
10691 (whatis_exp): Update.
10692 * extension.h (struct ext_lang_type_printers): Add constructor and
10694 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10696 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10697 Now a constructor; rename from start_ext_lang_type_printers.
10698 (ext_lang_type_printers): Now a destructor; rename from
10699 free_ext_lang_type_printers.
10700 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10702 (c_type_print_base_struct_union): Update. Remove cleanups.
10704 2018-03-27 Tom Tromey <tom@tromey.com>
10706 * dwarf-index-write.c: Include <cmath>.
10708 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10710 * NEWS: Add entry describing new "set|show varsize-limit" command.
10711 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10713 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10716 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10718 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10719 dwarf-index-write.c
10720 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10721 * dwarf-index-common.c: New file.
10722 * dwarf-index-common.h: New file.
10723 * dwarf-index-write.c: New file.
10724 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10725 (struct dwarf2_section_info): Move from here.
10726 (dwarf2_section_info_def): Likewise.
10727 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10728 (offset_type): Likewise.
10729 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10730 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10731 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10732 (byte_swap): Likewise.
10733 (MAYBE_SWAP): Likewise.
10734 (dwarf2_per_cu_ptr): Likewise.
10735 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10736 (struct tu_stats): Likewise.
10737 (struct dwarf2_per_objfile): Likewise.
10738 (struct dwarf2_per_cu_data): Likewise.
10739 (struct signatured_type): Likewise.
10740 (sig_type_ptr): Likewise.
10741 (DEF_VEC_P (sig_type_ptr)): Likewise.
10742 (INDEX4_SUFFIX): Likewise.
10743 (INDEX5_SUFFIX): Likewise.
10744 (DEBUG_STR_SUFFIX): Likewise.
10745 (dwarf2_read_section): Make non-static.
10746 (mapped_index_string_hash): Move from here.
10747 (dwarf5_djb_hash): Likewise.
10748 (file_write): Likewise.
10749 (class data_buf): Likewise.
10750 (struct symtab_index_entry): Likewise.
10751 (struct mapped_symtab): Likewise.
10752 (find_slot): Likewise.
10753 (hash_expand): Likewise.
10754 (add_index_entry): Likewise.
10755 (uniquify_cu_indices): Likewise.
10756 (class c_str_view): Likewise.
10757 (class c_str_view_hasher): Likewise.
10758 (class vector_hasher): Likewise.
10759 (write_hash_table): Likewise.
10760 (psym_index_map): Likewise.
10761 (struct addrmap_index_data): Likewise.
10762 (add_address_entry): Likewise.
10763 (add_address_entry_worker): Likewise.
10764 (write_address_map): Likewise.
10765 (symbol_kind): Likewise.
10766 (write_psymbols): Likewise.
10767 (struct signatured_type_index_data): Likewise.
10768 (write_one_signatured_type): Likewise.
10769 (recursively_count_psymbols): Likewise.
10770 (recursively_write_psymbols): Likewise.
10771 (class debug_names): Likewise.
10772 (check_dwarf64_offsets): Likewise.
10773 (psyms_seen_size): Likewise.
10774 (write_gdbindex): Likewise.
10775 (write_debug_names): Likewise.
10776 (assert_file_size): Likewise.
10777 (write_psymtabs_to_index): Likewise.
10778 (save_gdb_index_command): Likewise.
10779 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10781 * dwarf2read.h: New file.
10783 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10786 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10787 symbol name if the CU's language stores symbol names in linkage
10789 * language.h (struct language_defn)
10790 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10791 all instances of this struct.
10793 2018-03-26 Tom Tromey <tom@tromey.com>
10795 * stack.c (backtrace_command_1): Remove verbose code.
10797 2018-03-26 Tom Tromey <tom@tromey.com>
10799 * python/py-framefilter.c (py_print_type): Don't catch
10800 exceptions. Return void.
10801 (py_print_value): Likewise.
10802 (py_print_single_arg): Likewise.
10803 (enumerate_args): Don't catch exceptions.
10804 (py_print_args): Likewise.
10805 (py_print_frame): Likewise.
10806 (gdbpy_apply_frame_filter): Catch exceptions here.
10808 2018-03-26 Tom Tromey <tom@tromey.com>
10810 * stack.c (_initialize_stack): Remove trailing newlines from help
10811 text. Add "Usage" line to "backtrace" help.
10813 2018-03-26 Tom Tromey <tom@tromey.com>
10816 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10818 2018-03-26 Tom Tromey <tom@tromey.com>
10820 * python/py-framefilter.c (py_print_single_arg): Return
10821 EXT_LANG_BT_ERROR from catch.
10823 2018-03-26 Tom Tromey <tom@tromey.com>
10825 PR backtrace/15584:
10826 * stack.c (backtrace_command_1): Move some code into no-filters
10829 2018-03-26 Tom Tromey <tom@tromey.com>
10831 * python/py-framefilter.c (throw_quit_or_print_exception): New
10833 (gdbpy_apply_frame_filter): Use it.
10835 2018-03-26 Tom Tromey <tom@tromey.com>
10838 * python/py-framefilter.c (py_print_type, py_print_value)
10839 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
10842 2018-03-26 Tom Tromey <tom@tromey.com>
10844 * python/py-framefilter.c (enumerate_args): Use
10845 gdb::unique_xmalloc_ptr.
10847 2018-03-26 Tom Tromey <tom@tromey.com>
10849 * python/py-framefilter.c (py_print_frame): Return
10851 (gdbpy_apply_frame_filter): Update comment.
10852 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
10854 <EXT_LANG_BT_NO_FILTERS>: Change value.
10856 2018-03-26 Tom Tromey <tom@tromey.com>
10858 PR backtrace/15582:
10859 * stack.c (backtrace_command): Parse "hide" argument.
10860 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
10861 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
10864 2018-03-26 Tom Tromey <tom@tromey.com>
10866 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
10868 (backtrace_command): Remove "fulltrace", add "flags".
10870 2018-03-26 Tom Tromey <tom@tromey.com>
10872 * stack.c (backtrace_command): Rewrite command line parsing.
10874 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10876 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
10878 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
10880 * filename-seen-cache.h: Add include guard.
10882 2018-03-26 Keith Seitz <keiths@redhat.com>
10884 * symfile.c (place_section): Remove "struct" from section_addr_info
10886 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
10887 "struct" keyword from section_addr_info.
10889 2018-03-26 Alan Hayward <alan.hayward@arm.com>
10891 * regformats/regdef.h (reg): Add constructors.
10893 2018-03-25 Pedro Alves <palves@redhat.com>
10895 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
10896 if then/else bodies in var_func_name extraction.
10898 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
10900 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
10901 lookup_minimal_symbol() to find symbol entry.
10902 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
10904 2018-03-23 Keith Seitz <keiths@redhat.com>
10907 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
10908 nested type definitions for C++, too.
10910 2018-03-23 Tom Tromey <tom@tromey.com>
10912 * machoread.c (struct oso_el): Add a constructor. Don't define as
10914 (macho_register_oso): Remove.
10915 (macho_symtab_read): Take a std::vector.
10916 (oso_el_compare_name): Now a std::sort comparator.
10917 (macho_symfile_read_all_oso): Take a std::vector.
10918 (macho_symfile_read): Use std::vector. Remove cleanups.
10920 2018-03-22 Tom Tromey <tom@tromey.com>
10922 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
10923 (record_full_goto_bookmark): Use std::string.
10925 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10928 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
10931 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
10933 * rs6000-tdep.c (store_insn_p): New function.
10934 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
10935 and cr_reg to their unshifted values. Use store_insn_p to
10936 match LR saves using either R1 or fdata->alloca_reg. Use
10937 store_insn_p to match CR saves. Set alloca_reg_offset
10938 when alloca_reg and framep are set. Remove lr_reg shift
10939 when assigning to fdata->lr_register.
10941 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
10943 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
10944 command line args instead of emitting a warning.
10946 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10948 * tracepoint.h (struct static_tracepoint_marker): Initialize
10949 fields, define default constructor, move constructor and move
10950 assignment, disable the rest.
10951 <str_id, extra>: Make std::string.
10952 (release_static_tracepoint_marker): Remove.
10953 (free_current_marker): Remove.
10954 * tracepoint.c (free_current_marker): Remove.
10955 (parse_static_tracepoint_marker_definition): Adjust to
10956 std::string, use new hex2str overload.
10957 (release_static_tracepoint_marker): Remove.
10958 (print_one_static_tracepoint_marker): Get marker by reference
10959 and adjust to std::string.
10960 (info_static_tracepoint_markers_command): Adjust to std::vector
10962 * target.h (static_tracepoint_marker_p): Remove typedef.
10963 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
10964 (struct target_ops) <to_static_tracepoint_marker_at>: Return
10966 <to_static_tracepoint_markers_by_strid>: Return std::vector.
10968 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
10969 (target_debug_print_std_vector_static_tracepoint_marker): New.
10970 (target_debug_print_struct_static_tracepoint_marker_p): Rename
10972 (target_debug_print_static_tracepoint_marker_p): ... this.
10973 * target-delegates.c: Re-generate.
10974 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
10976 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
10977 (decode_static_tracepoint_spec): Adjust to std::vector.
10978 (tracepoint_print_one_detail): Adjust to std::string.
10979 (strace_marker_decode_location): Adjust to std::string.
10980 (update_static_tracepoint): Adjust to std::string, remove call
10981 to release_static_tracepoint_marker.
10982 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10983 Adjust to std::vector.
10984 * remote.c (remote_static_tracepoint_marker_at): Return bool.
10985 (remote_static_tracepoint_markers_by_strid): Adjust to
10987 * common/rsp-low.h (hex2str): New overload with explicit count
10989 * common/rsp-low.c (hex2str): New overload with explicit count
10991 * unittests/rsp-low-selftests.c (test_hex2str): New function.
10992 (_initialize_rsp_low_selftests): Add test_hex2str test.
10993 * unittests/tracepoint-selftests.c
10994 (test_parse_static_tracepoint_marker_definition): Adjust to
10997 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
10999 * tracepoint.c (parse_static_tracepoint_marker_definition):
11000 Consider case where the definition is followed by more
11002 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11003 tracepoint-selftests.c.
11004 * unittests/tracepoint-selftests.c: New.
11006 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11008 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11011 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11013 * symtab.c (find_pc_sect_line): fixed indentation.
11015 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11017 * symtab.c (find_pc_sect_line): now uses binary search.
11019 2018-03-19 Tom Tromey <tom@tromey.com>
11021 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11022 "IDENT" production.
11024 2018-03-19 Pedro Alves <palves@redhat.com>
11025 Tom Tromey <tom@tromey.com>
11027 * unittests/observable-selftests.c: New file.
11028 * common/observable.h: New file.
11029 * observable.h: New file.
11030 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11031 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11032 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11033 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11034 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11035 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11036 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11037 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11038 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11039 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11040 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11041 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11042 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11043 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11044 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11045 tui/tui-interp.c, valops.c: Update all users.
11046 * tui/tui-hooks.c (tui_bp_created_observer)
11047 (tui_bp_deleted_observer, tui_bp_modified_observer)
11048 (tui_inferior_exit_observer, tui_before_prompt_observer)
11049 (tui_normal_stop_observer, tui_register_changed_observer):
11051 (tui_observers_token): New global.
11052 (attach_or_detach, tui_attach_detach_observers): New functions.
11053 (tui_install_hooks, tui_remove_hooks): Use
11054 tui_attach_detach_observers.
11055 * record-btrace.c (record_btrace_thread_observer): Remove.
11056 (record_btrace_thread_observer_token): New global.
11057 * observer.sh: Remove.
11058 * observer.c: Rename to observable.c.
11059 * observable.c (namespace gdb_observers): Define new objects.
11060 (observer_debug): Move into gdb_observers namespace.
11061 (struct observer, struct observer_list, xalloc_observer_list_node)
11062 (xfree_observer_list_node, generic_observer_attach)
11063 (generic_observer_detach, generic_observer_notify): Remove.
11064 (_initialize_observer): Update.
11065 Don't include observer.inc.
11066 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11067 (clean mostlyclean): Likewise.
11068 (observer.h, observer.inc): Remove targets.
11069 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11070 (COMMON_SFILES): Use observable.c, not observer.c.
11071 * .gitignore: Remove observer.h.
11073 2018-03-18 Tom Tromey <tom@tromey.com>
11075 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11077 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11079 2018-03-17 Tom Tromey <tom@tromey.com>
11081 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11083 2018-03-17 Tom Tromey <tom@tromey.com>
11085 * target.c (class scoped_target_fd): New.
11086 (target_fileio_close_cleanup): Remove.
11087 (target_fileio_read_alloc_1): Use scoped_target_fd.
11089 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11091 * silent-rules.mk: New.
11092 * Makefile.in: Include silent-rules.mk
11093 (srcdir, VPATH, top_srcdir): Move up.
11094 (COMPILE): Add ECHO_CXX.
11095 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11096 (init.c): Add ECHO_INIT_C.
11097 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11098 (version.c): Add ECHO_GEN.
11099 (printcmd.o): Add ECHO_CXX.
11100 (target-float.o): Add ECHO_CXX.
11101 (ada-exp.o): Add ECHO_CXX.
11102 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11103 (insight$(EXEEXT)): Add ECHO_CXXLD.
11104 * gnulib/configure.ac: Add AM_SILENT_RULES.
11105 * gnulib/aclocal.m4: Re-generate.
11106 * gnulib/configure: Re-generate.
11107 * gnulib/import/Makefile.in: Re-generate.
11109 2018-03-16 Tom Tromey <tom@tromey.com>
11111 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11112 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11113 * utils.c (do_free_section_addr_info)
11114 (make_cleanup_free_section_addr_info): Remove.
11115 * symfile.h (struct other_sections): Add constructor.
11116 (struct section_addr_info): Remove.
11117 (section_addr_info): New typedef.
11118 (struct sym_fns) <sym_offsets>: Change type of parameter.
11119 (build_section_addr_info_from_objfile)
11120 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11121 (default_symfile_offsets, symbol_file_add)
11122 (symbol_file_add_from_bfd)
11123 (build_section_addr_info_from_section_table): Update.
11124 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11125 * symfile.c (alloc_section_addr_info): Remove.
11126 (build_section_addr_info_from_section_table): Change return type.
11128 (build_section_addr_info_from_bfd)
11129 (build_section_addr_info_from_objfile): Likewise.
11130 (free_section_addr_info): Remove.
11131 (relative_addr_info_to_section_offsets): Change type of "addrs".
11132 (addrs_section_compar): Now a std::sort comparator.
11133 (addrs_section_sort): Change return type.
11134 (addr_info_make_relative): Change type of "addrs". Update.
11135 (default_symfile_offsets, syms_from_objfile_1)
11136 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11137 (symbol_file_add_separate): Update.
11138 (symbol_file_add): Change type of "addrs". Update.
11139 (add_symbol_file_command): Update. Remove cleanups.
11140 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11142 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11143 * solib.c (solib_read_symbols): Update.
11144 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11145 * machoread.c (macho_symfile_offsets): Update.
11146 * jit.c (jit_bfd_try_read_symtab): Update.
11148 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11150 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11151 unittests/utils-selftests.c.
11152 * unittests/utils-selftests.c: New file.
11154 2018-03-14 Tom Tromey <tom@tromey.com>
11157 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11160 2018-03-14 Tom Tromey <tom@tromey.com>
11163 * printcmd.c (printf_pointer): Allow "-" in format.
11165 2018-03-14 Tom Tromey <tom@tromey.com>
11167 * printcmd.c (_initialize_printcmd): Add usage to printf.
11169 2018-03-14 Yao Qi <qiyao@sourceware.org>
11171 * MAINTAINERS: Update my email address.
11173 2018-03-13 Tom Tromey <tom@tromey.com>
11175 * machoread.c (macho_check_dsym): Change filenamep to a
11177 (macho_symfile_read): Update.
11178 * symfile.c (load_command): Use std::string.
11180 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11182 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11183 to error message string.
11184 (riscv_register_name): Use xsnprintf instead of sprintf.
11185 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11187 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11189 (riscv_push_dummy_call): Likewise.
11191 2018-03-12 Tom Tromey <tom@tromey.com>
11193 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11194 Use gdb::byte_vector.
11195 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11197 2018-03-12 Yao Qi <yao.qi@linaro.org>
11199 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11200 parameter type to readable_regcache.
11201 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11204 2018-03-11 Tom Tromey <tom@tromey.com>
11206 * dwarf2read.c (struct nextfield): Add initializers.
11207 (struct nextfnfield): Remove.
11208 (struct fnfieldlist): Add initializers. Remove "length" and
11209 "head", use std::vector.
11210 (struct decl_field_list): Remove.
11211 (struct field_info): Add initializers.
11212 <fields, baseclasses>: Now std::vector.
11213 <nbaseclasses, nfnfields, typedef_field_list_count,
11214 nested_types_list_count>: Remove.
11215 (dwarf2_add_field, dwarf2_add_type_defn)
11216 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11217 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11218 (process_structure_scope): Update.
11220 2018-03-11 Tom Tromey <tom@tromey.com>
11222 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11223 for use by std::sort.
11224 (build_type_psymtabs_1): Use std::vector.
11226 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11228 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11229 and LIBMPFR in the printed configuration.
11231 2018-03-08 Tom Tromey <tom@tromey.com>
11233 * source.c (get_filename_and_charpos): Use scoped_fd.
11234 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11235 (procfs_pidlist): Likewise.
11236 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11237 (iterate_over_mappings): Likewise.
11239 2018-03-08 Tom Tromey <tom@tromey.com>
11241 * infcall.c (struct call_return_meta_info)
11242 <stack_temporaries_enabled>: Remove.
11243 (get_call_return_value, call_function_by_hand_dummy): Update.
11244 * thread.c (disable_thread_stack_temporaries): Remove.
11245 (enable_thread_stack_temporaries): Remove.
11246 (thread_stack_temporaries_enabled_p): Return bool.
11247 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11248 (get_last_thread_stack_temporary): Update.
11249 * eval.c (evaluate_subexp): Update.
11250 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11251 class, not a function.
11252 (value_ptr, value_vec): Remove typedefs.
11253 (class thread_info) <stack_temporaries_enabled>: Now bool.
11254 <stack_temporaries>: Now a std::vector.
11255 (thread_stack_temporaries_enabled_p)
11256 (value_in_thread_stack_temporaries): Return bool.
11258 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11260 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11261 (getpkt_or_notif_sane_1): Likewise.
11263 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11265 * build-id.c (build_id_to_debug_bfd): Use std::string.
11267 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11269 * build-id.c (find_separate_debug_file_by_buildid): Return
11271 * build-id.h (find_separate_debug_file_by_buildid): Return
11273 * coffread.c (coff_symfile_read): Adjust to std::string.
11274 * elfread.c (elf_symfile_read): Adjust to std::string.
11275 * symfile.c (separate_debug_file_exists): Change parameter to
11277 (find_separate_debug_file): Return std::string.
11278 (find_separate_debug_file_by_debuglink): Return std::string.
11279 * symfile.h (find_separate_debug_file_by_debuglink): Return
11282 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11284 * common/xml-utils.c (xml_escape_text): Move code to...
11285 (xml_escape_text_append): ... this new function.
11286 * common/xml-utils.h (xml_escape_text_append): New declaration.
11287 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11289 (_initialize_xml_utils): register test_xml_escape_text_append as
11292 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11294 * defs.h: Remove MAX_REGISTER_SIZE.
11295 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11297 * python/py-unwind.c (pyuw_sniffer): Likewise.
11299 2018-03-07 Tom Tromey <tom@tromey.com>
11301 * linux-tdep.c (linux_info_proc): Update.
11302 * target.h (struct target_ops) <to_fileio_readlink>: Return
11304 (target_fileio_readlink): Return optional<string>.
11305 * remote.c (remote_hostio_readlink): Return optional<string>.
11306 * inf-child.c (inf_child_fileio_readlink): Return
11308 * target.c (target_fileio_readlink): Return optional<string>.
11310 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11312 * regcache.c (cooked_read_test): Add riscv to the list of
11313 architectures that have a save_reggroup.
11315 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11317 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11318 value is not a dynamic class object.
11320 2018-03-06 Tom Tromey <tom@tromey.com>
11322 * rust-exp.y: Formatting fixes.
11324 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11326 * riscv-tdep.c (riscv_register_name): Remove target description
11328 (riscv_gdbarch_init): Remove target description check.
11330 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11332 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11334 * riscv-tdep.h: Likewise.
11336 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11338 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11339 (riscv_pseudo_register_write): Delete.
11340 (riscv_gdbarch_init): Remove all use of pseudo registers.
11342 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11344 * record-btrace.c (btrace_print_lines): Replace cleanup
11345 parameter with RAII equivalents.
11346 (btrace_insn_history): Replace cleanup with RAII equivalents.
11347 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11348 make_cleanup_ui_out_tuple_begin_end): Remove.
11349 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11350 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11351 make_cleanup_ui_out_list_begin_end): Remove.
11353 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11355 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11356 parameter types to std::vector. Use bool.
11357 (record_btrace_wait): Replace VEC(tp_t) with
11358 std::vector<thread_info *>.
11359 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11361 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11363 * record-btrace.c (record_btrace_disable_callback): Remove.
11364 (struct scoped_btrace_disable): New.
11365 (record_btrace_open): Use scoped_btrace_disable.
11367 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11369 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11370 reading values from registers.
11372 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11374 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11377 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11379 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11380 change parameter type. Use GDB's print functions, and use
11381 core_addr_to_string where appropriate.
11382 (riscv_push_dummy_call): Use core_addr_to_string where
11383 appropriate, update call to riscv_print_arg_location, and reindent
11385 (riscv_return_value): Update call to riscv_print_arg_location.
11387 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11388 Tim Newsome <tim@sifive.com>
11389 Albert Ou <a0u@eecs.berkeley.edu>
11390 Darius Rad <darius@bluespec.com>
11392 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11393 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11394 (ALLDEPFILES): Add riscv-tdep.c
11395 * configure.tgt: Add riscv support.
11396 * riscv-tdep.c: New file.
11397 * riscv-tdep.h: New file.
11398 * NEWS: Mention new target.
11399 * MAINTAINERS: Add entry for riscv.
11401 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11403 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11404 fields within aggregates.
11406 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11408 * record-btrace.c (btrace_print_lines): Change type of flags to
11409 gdb_disassembly_flags.
11411 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11413 * fbsd-nat.c: Include "inf-ptrace.h".
11414 (USE_SIGTRAP_SIGINFO): Conditionally define.
11415 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11416 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11417 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11419 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11421 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11423 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11424 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11425 "supports_stopped_by_hw_breakpoint" target methods.
11427 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11429 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11430 * fbsd-nat.c (debug_fbsd_nat): New variable.
11431 (show_fbsd_nat_debug): New function.
11432 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11433 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11435 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11437 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11438 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11440 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11441 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11444 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11446 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11447 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11449 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11451 * charset.c (struct charset_vector): New.
11452 (charsets): Change type to charset_vector.
11453 (find_charset_names): Adjust.
11455 (_initialize_charset): Adjust.
11457 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11459 * progspace.h (struct program_space) <deleted_solibs>: Change
11460 type to std::vector<std::string>.
11461 * progspace.c (clear_program_space_solib_cache): Adjust.
11462 * breakpoint.c (print_solib_event): Adjust.
11463 (check_status_catch_solib): Adjust.
11464 * solib.c (update_solib_list): Adjust.
11465 * ui-out.h (class ui_out) <field_string>: New overload.
11466 * ui-out.c (ui_out::field_string): New overload.
11468 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11470 * progspace.h (struct program_space): Add constructor and
11471 destructor, initialize fields.
11472 (add_program_space): Remove.
11473 * progspace.c (add_program_space): Rename to...
11474 (program_space::program_space): ... this.
11475 (release_program_space): Rename to...
11476 (program_space::~program_space): ... this.
11477 (delete_program_space): Use delete to delete program_space.
11478 (initialize_progspace): Use new to allocate program_space.
11479 * inferior.c (add_inferior_with_spaces): Likewise.
11480 (clone_inferior_command): Likewise.
11481 * infrun.c (follow_fork_inferior): Likewise.
11482 (handle_vfork_child_exec_or_exit): Likewise.
11484 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11486 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11487 (delim_string_to_char_ptr_vec): Return std::vector of
11488 gdb::unique_xmalloc_ptr.
11489 (dirnames_to_char_ptr_vec_append): Take std::vector of
11490 gdb::unique_xmalloc_ptr.
11491 (dirnames_to_char_ptr_vec): Return std::vector of
11492 gdb::unique_xmalloc_ptr.
11493 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11494 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11495 (delim_string_to_char_ptr_vec): Return an std::vector of
11496 gdb::unique_xmalloc_ptr, adjust the code.
11497 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11498 gdb::unique_xmalloc_ptr, adjust the code.
11499 (dirnames_to_char_ptr_vec): Return an std::vector of
11500 gdb::unique_xmalloc_ptr, adjust the code.
11501 * auto-load.c (auto_load_safe_path_vec): Change type to
11502 std::vector of gdb::unique_xmalloc_ptr.
11503 (auto_load_expand_dir_vars): Return an std::vector of
11504 gdb::unique_xmalloc_ptr, adjust the code.
11505 (auto_load_safe_path_vec_update): Adjust.
11506 (filename_is_in_auto_load_safe_path_vec): Adjust.
11507 (auto_load_objfile_script_1): Adjust.
11508 * build-id.c (build_id_to_debug_bfd): Adjust.
11509 * linux-thread-db.c (thread_db_load_search): Adjust.
11510 * source.c (add_path): Adjust.
11512 * symfile.c (find_separate_debug_file): Adjust.
11513 * utils.c (do_free_char_ptr_vec): Remove.
11514 (make_cleanup_free_char_ptr_vec): Remove.
11516 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11519 * common/pathstuff.c: Conditionally include "<windows.h>".
11521 2018-03-01 Georg Sauthoff <mail@georg.so>
11524 * gcore.in: Quote variables and switch interpreter to bash.
11526 2018-03-01 Tom Tromey <tom@tromey.com>
11528 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11529 assertion. Add assertion for discriminant_index.
11530 (quirk_rust_enum): Use correct base type name in univariant case.
11532 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11534 * record.c (get_call_history_modifiers): Return a
11535 record_print_flags.
11536 (cmd_record_call_history): Adjust.
11537 * record-btrace.c (record_btrace_call_history): Adjust.
11538 (record_btrace_call_history_range): Adjust.
11539 (record_btrace_call_history_from): Adjust.
11540 * target-debug.h (target_debug_print_record_print_flags): New.
11541 * target-delegates.c: Re-generate.
11542 * target.c (target_call_history): Change flags type.
11543 (target_call_history_from): Likewise.
11544 (target_call_history_range): Likewise.
11545 * target.h (struct target_ops) <target_call_history>: Likewise.
11546 (target_call_history_from): Likewise.
11547 (target_call_history_range): Likewise.
11549 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11550 Simon Marchi <simon.marchi@polymtl.ca>
11552 * common/common-utils.c: Include "sys/stat.h".
11553 (is_regular_file): Move here from "source.c"; change return
11555 * common/common-utils.h (is_regular_file): New prototype.
11556 * common/pathstuff.c (contains_dir_separator): New function.
11557 * common/pathstuff.h (contains_dir_separator): New prototype.
11558 * source.c: Don't include "sys/stat.h".
11559 (is_regular_file): Move to "common/common-utils.c".
11561 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11563 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11564 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11565 * auto-load.c: Include "common/pathstuff.h".
11566 * common/common-def.h (current_directory): Move here.
11567 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11569 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11571 * common/pathstuff.c: New file.
11572 * common/pathstuff.h: New file.
11573 * compile/compile.c: Include "common/pathstuff.h".
11574 * defs.h (current_directory): Move to "common/common-defs.h".
11575 * dwarf2read.c: Include "common/pathstuff.h".
11576 * exec.c: Likewise.
11577 * guile/scm-safe-call.c: Likewise.
11578 * linux-thread-db.c: Likewise.
11579 * main.c: Likewise.
11580 * nto-tdep.c: Likewise.
11581 * objfiles.c: Likewise.
11582 * source.c: Likewise.
11583 * symtab.c: Likewise.
11584 * utils.c: Include "common/pathstuff.h".
11585 (gdb_realpath): Move to "common/pathstuff.c".
11586 (gdb_realpath_keepfile): Likewise.
11587 (gdb_abspath): Likewise.
11588 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11589 (gdb_realpath_keepfile): Likewise.
11590 (gdb_abspath): Likewise.
11592 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11594 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11595 wildcard process pid for super_resume for kernels with a
11598 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11600 * compile/compile.c (get_args): Add additional comments
11601 explaining function.
11603 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11604 Tom Tromey <tom@tromey.com>
11606 * target.h (memory_write_request_s): Remove typedef. Don't define
11608 (target_write_memory_blocks): Change argument to std::vector.
11609 (struct memory_write_request): Add constructor.
11610 * target-memory.c (compare_block_starting_address): Return bool.
11611 Change argument types.
11612 (claim_memory): Change arguments to use std::vector.
11613 (split_regular_and_flash_blocks, blocks_to_erase)
11614 (compute_garbled_blocks): Likewise.
11615 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11616 (target_write_memory_blocks): Change argument to std::vector.
11617 * symfile.c (struct load_section_data): Add constructor and
11618 destructor. Use std::vector for "requests".
11619 (struct load_progress_data): Add initializers.
11620 (load_section_callback): Update. Use "new".
11621 (clear_memory_write_data): Remove.
11622 (generic_load): Update.
11624 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11626 * arch/aarch64.h: Use common/tdesc.h.
11628 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11630 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11631 architecture with a 64-bit ABI.
11633 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11635 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11636 ahead of target description loading.
11638 2018-02-26 Tom Tromey <tom@tromey.com>
11640 * stack.c (backtrace_command_1): Update.
11641 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11643 * python/py-framefilter.c (py_print_frame)
11644 (gdbpy_apply_frame_filter): Change type of "flags".
11645 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11647 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11648 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11649 * extension.h (enum frame_filter_flag): Rename from
11650 frame_filter_flags.
11651 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11652 (apply_ext_lang_frame_filter): Change type of "flags".
11653 * extension.c (apply_ext_lang_frame_filter): Change type of
11655 * extension-priv.h (struct extension_language_ops)
11656 <apply_frame_filter>: Change type of "flags".
11658 2018-02-26 Tom Tromey <tom@tromey.com>
11661 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11662 off-by-one in py_end computation.
11663 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11665 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11668 2018-02-26 Tom Tromey <tom@tromey.com>
11670 * dwarf2read.c (struct variant_field): New.
11671 (struct nextfield) <variant>: New field.
11672 (dwarf2_add_field): Handle DW_TAG_variant_part.
11673 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11674 discriminated union.
11675 (read_structure_type): Handle DW_TAG_variant_part.
11676 (handle_struct_member_die): New function, extracted from
11677 process_structure_scope. Handle DW_TAG_variant.
11678 (process_structure_scope): Handle discriminated unions. Call
11679 handle_struct_member_die.
11681 2018-02-26 Tom Tromey <tom@tromey.com>
11683 * rust-lang.h (rust_last_path_segment): Declare.
11684 * rust-lang.c (rust_last_path_segment): Now public. Change
11686 (struct disr_info): Remove.
11687 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11688 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11689 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11690 (rust_enum_p, rust_enum_variant): New function.
11691 (rust_underscore_fields): Remove "offset" parameter.
11692 (rust_print_enum): New function.
11693 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11694 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11695 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11697 (rust_internal_print_type): New function, from rust_print_type.
11699 (rust_print_type): Call rust_internal_print_type.
11700 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11701 Update enum handling.
11702 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11703 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11704 (rust_union_quirks): New functions.
11705 (process_full_comp_unit, process_full_type_unit): Call
11707 (process_structure_scope): Update rust_unions if necessary.
11709 2018-02-26 Tom Tromey <tom@tromey.com>
11711 * value.h (value_union_variant): Declare.
11712 * valops.c (value_union_variant): New function.
11713 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11714 (struct discriminant_info): New.
11715 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11717 (struct main_type) <flag_discriminated_union>: New field.
11719 2018-02-26 Tom Tromey <tom@tromey.com>
11721 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11722 unittests/unpack-selftests.c.
11723 * unittests/unpack-selftests.c: New file.
11724 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11726 2018-02-26 Yao Qi <yao.qi@linaro.org>
11728 * dwarf2read.c (struct partial_die_info) <read>: New method.
11729 (read_partial_die): Remove the declaration.
11730 (load_partial_dies): Update.
11731 (partial_die_info::partial_die_info):
11732 (read_partial_die): Change it to partial_die_info::read.
11734 2018-02-26 Yao Qi <yao.qi@linaro.org>
11736 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11737 (fixup_partial_die): Remove declaration.
11738 (scan_partial_symbols): Update.
11739 (partial_die_parent_scope): Likewise.
11740 (partial_die_full_name): Likewise.
11741 (fixup_partial_die): Change it to partial_die_info::fixup.
11743 2018-02-26 Yao Qi <yao.qi@linaro.org>
11745 * dwarf2read.c (read_partial_die): Update the declaration.
11746 (load_partial_dies): Caller update.
11747 (read_partial_die): Remove one argument abbrev_len.
11749 2018-02-26 Yao Qi <yao.qi@linaro.org>
11751 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11752 assignment operator.
11753 (load_partial_dies): Use ctor and copy ctor.
11754 (read_partial_die): Update.
11755 (dwarf2_cu::find_partial_die): Use ctor.
11757 2018-02-26 Yao Qi <yao.qi@linaro.org>
11759 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11760 (find_partial_die_in_comp_unit): Change it to
11761 dwarf2_cu::find_partial_die.
11762 (find_partial_die): Update.
11764 2018-02-26 Yao Qi <yao.qi@linaro.org>
11766 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11769 2018-02-26 Yao Qi <yao.qi@linaro.org>
11771 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11773 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11775 * arch/amd64.h: Use common/tdesc.h.
11776 * arch/i386.c: Likewise.
11777 * arch/i386.h: Likewise.
11778 * arch/tic6x.c: Likewise.
11779 * arch/tdesc.h: Move file from here...
11780 * common/tdesc.h: ...to here.
11781 * features/aarch64-core.c: Regenerate.
11782 * features/aarch64-fpu.c: Regenerate.
11783 * features/i386/32bit-avx.c: Regenerate.
11784 * features/i386/32bit-avx512.c: Regenerate.
11785 * features/i386/32bit-core.c: Regenerate.
11786 * features/i386/32bit-linux.c: Regenerate.
11787 * features/i386/32bit-mpx.c: Regenerate.
11788 * features/i386/32bit-pkeys.c: Regenerate.
11789 * features/i386/32bit-sse.c: Regenerate.
11790 * features/i386/64bit-avx.c: Regenerate.
11791 * features/i386/64bit-avx512.c: Regenerate.
11792 * features/i386/64bit-core.c: Regenerate.
11793 * features/i386/64bit-linux.c: Regenerate.
11794 * features/i386/64bit-mpx.c: Regenerate.
11795 * features/i386/64bit-pkeys.c: Regenerate.
11796 * features/i386/64bit-segments.c: Regenerate.
11797 * features/i386/64bit-sse.c: Regenerate.
11798 * features/i386/x32-core.c: Regenerate.
11799 * features/tic6x-c6xp.c: Regenerate.
11800 * features/tic6x-core.c: Regenerate.
11801 * features/tic6x-gp.c: Regenerate.
11802 * target-descriptions.c: Use common/tdesc.h.
11803 * target-descriptions.h: Likewise.
11805 2018-02-24 Tom Tromey <tom@tromey.com>
11807 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11808 (try_thread_db_load_from_dir, thread_db_load_search): Use
11810 (info_auto_load_libthread_db_compare): Return bool. Change
11812 (info_auto_load_libthread_db): Use std::vector, std::string.
11815 2018-02-24 Tom Tromey <tom@tromey.com>
11817 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11819 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11821 * gdbarch.c: Rebuild.
11822 * gdbarch.h: Rebuild.
11823 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11824 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11825 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11828 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11830 * gdbtypes.h (sect_offset): Change type to uint64_t.
11831 (sect_offset_str): New function.
11832 * dwarf2read.c (create_addrmap_from_aranges): Use
11834 (error_check_comp_unit_head): Likewise.
11835 (create_debug_type_hash_table): Likewise.
11836 (read_cutu_die_from_dwo): Likewise.
11837 (init_cutu_and_read_dies): Likewise.
11838 (init_cutu_and_read_dies_no_follow): Likewise.
11839 (process_psymtab_comp_unit_reader): Likewise.
11840 (partial_die_parent_scope): Likewise.
11841 (peek_die_abbrev): Likewise.
11842 (process_queue): Likewise.
11843 (dwarf2_physname): Likewise.
11844 (read_namespace_alias): Likewise.
11845 (read_import_statement): Likewise.
11846 (create_dwo_cu_reader): Likewise.
11847 (create_cus_hash_table): Likewise.
11848 (lookup_dwo_cutu): Likewise.
11849 (inherit_abstract_dies): Likewise.
11850 (read_func_scope): Likewise.
11851 (read_call_site_scope): Likewise.
11852 (dwarf2_add_member_fn): Likewise.
11853 (read_common_block): Likewise.
11854 (read_module_type): Likewise.
11855 (read_typedef): Likewise.
11856 (read_subrange_type): Likewise.
11857 (load_partial_dies): Likewise.
11858 (read_partial_die): Likewise.
11859 (find_partial_die): Likewise.
11860 (read_str_index): Likewise.
11861 (dwarf2_string_attr): Likewise.
11862 (build_error_marker_type): Likewise.
11863 (lookup_die_type): Likewise.
11864 (dump_die_shallow): Likewise.
11865 (follow_die_ref): Likewise.
11866 (dwarf2_fetch_die_loc_sect_off): Likewise.
11867 (dwarf2_fetch_constant_bytes): Likewise.
11868 (follow_die_sig): Likewise.
11869 (get_signatured_type): Likewise.
11870 (get_DW_AT_signature_type): Likewise.
11871 (dwarf2_find_containing_comp_unit): Likewise.
11872 (set_die_type): Likewise.
11874 2018-02-21 John Baldwin <jhb@FreeBSD.org>
11876 * arch/aarch64.c: Include "common-defs.h".
11877 * arch/amd64.c: Likewise.
11878 * arch/i386.c: Likewise.
11880 2018-02-21 Tom Tromey <tom@tromey.com>
11882 * value.h: (extract_field_op): Update.
11883 * eval.c (extract_field_op): Return a const char *.
11884 * expression.h (parse_expression_for_completion): Update.
11885 * completer.c (complete_expression): Update.
11886 (add_struct_fields): Make fieldname const.
11887 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
11888 (mark_completion_tag, parse_exp_in_context_1): Update.
11889 (parse_expression_for_completion): Change "name" to
11890 unique_xmalloc_ptr*.
11892 2018-02-21 Tom Tromey <tom@tromey.com>
11894 * infcall.c (call_function_by_hand_dummy): Use std::vector.
11896 2018-02-21 Yao Qi <yao.qi@linaro.org>
11898 * avr-tdep.c (avr_read_pc): Change parameter type to
11900 * gdbarch.sh (read_pc): Likewise.
11901 * gdbarch.c: Re-generated.
11902 * gdbarch.h: Re-generated.
11903 * hppa-tdep.c (hppa_read_pc): Change parameter type to
11905 * ia64-tdep.c (ia64_read_pc): Likewise.
11906 * mips-tdep.c (mips_read_pc): Likewise.
11907 * spu-tdep.c (spu_read_pc): Likewise.
11909 2018-02-21 Yao Qi <yao.qi@linaro.org>
11911 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
11912 * regcache-dump.c: New file.
11913 * regcache.c: Move register_dump to regcache-dump.c.
11914 (maintenance_print_registers): Likewise.
11915 (maintenance_print_raw_registers): Likewise.
11916 (maintenance_print_cooked_registers): Likewise.
11917 (maintenance_print_register_groups): Likewise.
11918 (maintenance_print_remote_registers): Likewise.
11919 (_initialize_regcache): Likewise.
11920 * regcache.h (register_dump): Moved from regcache.c.
11922 2018-02-21 Yao Qi <yao.qi@linaro.org>
11924 * regcache.c (regcache::regcache): Update.
11925 (regcache::invalidate): Move it to detached_regcache::invalidate.
11926 (get_thread_arch_aspace_regcache): Update.
11927 (regcache::raw_update): Update.
11928 (regcache::cooked_read): Remove some code.
11929 (regcache::cooked_read_value): Likewise.
11930 (regcache::raw_write): Remove assert on m_readonly_p.
11931 (regcache::raw_supply_integer): Move it to
11932 detached_regcache::raw_supply_integer.
11933 (regcache::raw_supply_zeroed): Likewise.
11934 * regcache.h (detached_regcache) <raw_supply_integer>: New
11936 <raw_supply_zeroed, invalidate>: Likewise.
11937 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
11938 <invalidate>: Likewise.
11939 <m_readonly_p>: Removed.
11941 2018-02-21 Yao Qi <yao.qi@linaro.org>
11943 * infcmd.c (get_return_value): Let stop_regs point to
11944 get_current_regcache.
11945 * regcache.c (regcache::regcache): Remove.
11946 (register_dump_reg_buffer): New class.
11947 (regcache_print): Adjust.
11948 * regcache.h (regcache): Remove constructors.
11950 2018-02-21 Yao Qi <yao.qi@linaro.org>
11952 * regcache.c (class register_dump): New class.
11953 (register_dump_regcache, register_dump_none): New class.
11954 (register_dump_remote, register_dump_groups): New class.
11955 (regcache_print): Update.
11956 * regcache.h (regcache_dump_what): Move it to regcache.c.
11957 (regcache) <dump>: Remove.
11959 2018-02-21 Yao Qi <yao.qi@linaro.org>
11961 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
11963 (jit_unwind_reg_set_impl): Call raw_supply.
11964 (jit_frame_sniffer): Use reg_buffer_rw.
11965 * record-full.c (record_full_core_regbuf): Change its type.
11966 (record_full_core_open_1): Use reg_buffer_rw.
11967 (record_full_close): Likewise.
11968 (record_full_core_fetch_registers): Use regcache->raw_supply.
11969 (record_full_core_store_registers): Likewise.
11970 * regcache.c (regcache::get_register_status): Move it to
11972 (regcache_raw_set_cached_value): Remove.
11973 (regcache::raw_set_cached_value): Remove.
11974 (regcache::raw_write): Call raw_supply.
11975 (regcache::raw_supply): Move it to reg_buffer_rw.
11976 * regcache.h (regcache_raw_set_cached_value): Remove.
11977 (reg_buffer_rw): New class.
11979 2018-02-21 Yao Qi <yao.qi@linaro.org>
11981 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
11982 readonly_detached_regcache.
11983 (dummy_frame_prev_register): Use regcache->cooked_read.
11984 * frame.c (frame_save_as_regcache): Change return type.
11985 (frame_pop): Update.
11986 * frame.h (frame_save_as_regcache): Update declaration.
11987 * inferior.h (get_infcall_suspend_state_regcache): Update
11989 * infrun.c (infcall_suspend_state) <registers>: use
11990 readonly_detached_regcache.
11991 (save_infcall_suspend_state): Don't use regcache_dup.
11992 (get_infcall_suspend_state_regcache): Change return type.
11993 * linux-fork.c (struct fork_info) <savedregs>: Change to
11994 readonly_detached_regcache.
11996 (fork_save_infrun_state): Don't use regcache_dup.
11997 (info_checkpoints_command): Adjust.
11998 * mi/mi-main.c (register_changed_p): Update declaration.
11999 (mi_cmd_data_list_changed_registers): Use
12000 readonly_detached_regcache.
12001 (register_changed_p): Change parameter type to
12002 readonly_detached_regcache.
12003 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12004 readonly_detached_regcache.
12005 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12006 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12008 (regcache::save): Move it to reg_buffer.
12009 (regcache::restore): Change parameter type.
12010 (regcache_dup): Remove.
12011 * regcache.h (reg_buffer) <save>: New method.
12012 (readonly_detached_regcache): New class.
12013 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12014 readonly_detached_regcache.
12015 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12017 2018-02-21 Yao Qi <yao.qi@linaro.org>
12019 * frame.c (frame_save_as_regcache): Use regcache method save.
12020 (frame_pop): Use regcache method restore.
12021 * infrun.c (restore_infcall_suspend_state): Likewise.
12022 * linux-fork.c (fork_load_infrun_state): Likewise.
12023 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12025 * regcache.c (regcache_save): Remove.
12026 (regcache::restore): More asserts.
12027 (regcache_cpy): Remove.
12028 * regcache.h (regcache_save): Remove the declaration.
12029 (regcache::restore): Move from private to public.
12030 Remove the friend declaration of regcache_cpy.
12031 (regcache_cpy): Remove declaration.
12033 2018-02-21 Yao Qi <yao.qi@linaro.org>
12035 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12036 parameter type to 'readable_regcache *'.
12037 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12038 * arm-tdep.c (arm_neon_quad_read): Likewise.
12039 (arm_pseudo_read): Likewise.
12040 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12041 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12042 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12043 * gdbarch.c: Re-generated.
12044 * gdbarch.h: Re-generated.
12045 * gdbarch.sh (pseudo_register_read): Change parameter type to
12046 'readable_regcache *'.
12047 (pseudo_register_read_value): Likewise.
12048 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12049 (h8300_pseudo_register_read): Likewise.
12050 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12051 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12052 (i386_pseudo_register_read_into_value): Likewise.
12053 (i386_pseudo_register_read_value): Likewise.
12054 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12056 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12057 * m32c-tdep.c (m32c_raw_read): Likewise.
12058 (m32c_read_flg): Likewise.
12059 (m32c_banked_register): Likewise.
12060 (m32c_banked_read): Likewise.
12061 (m32c_sb_read): Likewise.
12062 (m32c_part_read): Likewise.
12063 (m32c_cat_read): Likewise.
12064 (m32c_r3r2r1r0_read): Likewise.
12065 (m32c_pseudo_register_read): Likewise.
12066 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12067 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12068 (mep_pseudo_cr64_read): Likewise.
12069 (mep_pseudo_register_read): Likewise.
12070 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12071 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12072 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12073 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12074 (regcache::cooked_read): Likewise.
12075 (regcache::cooked_read_value): Likewise.
12076 (regcache_cooked_read_signed):
12077 (regcache::cooked_read): Likewise.
12078 * regcache.h (readable_regcache): New class.
12079 (regcache): Inherit readable_regcache. Move some methods to
12081 * rl78-tdep.c (rl78_pseudo_register_read): Change
12082 parameter type to 'readable_regcache *'.
12083 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12084 (e500_pseudo_register_read): Change parameter type to
12085 'readable_regcache *'.
12086 (dfp_pseudo_register_read): Likewise.
12087 (vsx_pseudo_register_read): Likewise.
12088 (efpr_pseudo_register_read): Likewise.
12089 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12090 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12091 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12092 (sh64_pseudo_register_read): Likewise.
12093 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12094 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12095 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12096 (spu_pseudo_register_read): Likewise.
12097 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12098 (xtensa_pseudo_register_read): Likewise.
12100 2018-02-21 Yao Qi <yao.qi@linaro.org>
12102 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12103 (regcache::arch): Move it to reg_buffer::arch.
12104 (regcache::register_buffer): Likewise.
12105 (regcache::assert_regnum): Likewise.
12106 (regcache::num_raw_registers): Likewise.
12107 * regcache.h (reg_buffer): New class.
12108 (regcache): Inherit reg_buffer.
12110 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12112 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12113 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12115 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12117 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12119 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12121 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12122 (SFILES): Remove common/*.c files.
12123 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12124 * common/common.host: Add common reference.
12125 * configure.ac: Likewise.
12126 * configure: Regenerate.
12128 2018-02-16 Yao Qi <yao.qi@linaro.org>
12130 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12131 (block_initialize_namespace): Use new.
12132 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12133 (dwarf2_free_objfile): Use delete.
12134 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12135 (copy_type_recursive): Use new.
12136 * gdb_obstack.h (allocate_on_obstack): New.
12138 2018-02-15 Yao Qi <yao.qi@linaro.org>
12141 * inferior.c (exit_inferior_1): Reset inf->control.
12143 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12145 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12148 2018-02-14 Pedro Alves <palves@redhat.com>
12150 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12151 frame_cleanup_after_sniffer on exception.
12153 2018-02-14 Tom Tromey <tom@tromey.com>
12155 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12157 (solib_bfd_open): Make pathname const.
12158 * solib.c (solib_bfd_open): Make pathname const.
12159 * solib-spu.c (spu_bfd_fopen): Make name const.
12160 (spu_bfd_open): Make pathname const.
12161 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12162 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12164 2018-02-14 Tom Tromey <tom@tromey.com>
12166 * symfile.c (symfile_bfd_open): Update.
12167 * source.h (openp, source_full_path_of, find_and_open_source):
12168 Change argument type to unique_xmalloc_ptr.
12169 * source.c (openp): Take a unique_xmalloc_ptr.
12170 (source_full_path_of, find_and_open_source): Likewise.
12171 (open_source_file, symtab_to_fullname): Update.
12172 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12173 unique_xmalloc_ptr.
12174 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12175 (exec_file_find): Update.
12176 * psymtab.c (psymtab_to_fullname): Update.
12177 * nto-tdep.h (nto_find_and_open_solib): Update.
12178 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12179 unique_xmalloc_ptr.
12180 * exec.c (exec_file_attach): Update.
12181 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12182 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12184 2018-02-14 Tom Tromey <tom@tromey.com>
12186 * solib.c: Include source.h.
12187 * nto-tdep.c: Include source.h.
12188 * mi/mi-cmd-env.c: Include source.h.
12189 * infcmd.c: Include source.h.
12190 * exec.c: Include source.h.
12191 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12192 (add_path, directory_switch, source_path, init_source_path): Move
12194 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12195 (add_path, directory_switch, source_path, init_source_path):
12198 2018-02-14 Tom Tromey <tom@tromey.com>
12200 * solist.h (exec_file_find, solib_find): Return
12201 unique_xmalloc_ptr.
12202 (solib_bfd_fopen): Take a const char *.
12203 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12204 (exec_file_find, solib_find): Likewise.
12205 (solib_bfd_fopen): Do not take ownership of "pathname".
12206 (solib_bfd_open): Use unique_xmalloc_ptr.
12207 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12208 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12209 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12210 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12212 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12214 * ada-lang.c (name_match_type_from_name): Remove reference to
12215 ada_name_for_lookup in function's documentation.
12216 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12218 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12220 * defs.h (enum openp_flags): New enum.
12221 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12222 Move to enum openp_flags.
12223 (openp_flags): New enum flags.
12224 (openp): Change parameter type to openp_flags.
12225 * source.c (openp): Change parameter type to openp_flags.
12226 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12227 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12229 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12231 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12234 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12236 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12238 (class dwarf2_queue_guard): ...the destructor of this new class.
12239 (dw2_do_instantiate_symtab): Create instance of the new class
12240 dwarf2_queue_guard, remove cleanup.
12242 2018-02-09 Tom Tromey <tom@tromey.com>
12244 * source.c (find_source_lines): Don't reference past the end of
12247 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12249 * remote.c (remote_btrace_maybe_reopen): Change error message.
12250 * btrace.c (btrace_enable): Likewise.
12251 (parse_xml_btrace): Likewise.
12252 (parse_xml_btrace_conf): Likewise.
12254 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12256 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12257 (linux_enable_pt, linux_enable_bts): Call
12258 diagnose_perf_event_open_fail.
12260 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12262 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12263 Remove parameter and change return type. Update callers. Move it.
12264 (linux_enable_bts, linux_enable_pt): Improve error message.
12265 (linux_enable_pt): Remove zero buffer size check.
12266 (linux_enable_btrace): Improve error messages. Remove NULL return
12269 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12271 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12272 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12273 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12274 (linux_supports_pt, linux_supports_btrace): Remove.
12275 (linux_enable_bts): Call cpu_supports_bts.
12276 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12277 * remote.c (remote_supports_btrace): Remove.
12278 (init_remote_ops): Remove remote_supports_btrace.
12279 * target-delegates.c: Regenerated.
12280 * target.c (target_supports_btrace): Remove.
12281 * target.h (target_ops) <to_supports_btrace>: Remove
12282 (target_supports_btrace): Remove.
12283 * x86-linux-nat.c (x86_linux_create_target): Remove
12284 linux_supports_btrace.
12286 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12288 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12290 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12291 exception and use message in own exception.
12293 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12295 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12296 (perf_event_pt_event_type): Use gdb_file_up.
12297 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12298 scoped_fd, and scoped_mmap.
12300 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12302 * common/scoped_mmap.h: New.
12303 * unittests/scoped_mmap-selftest.c: New.
12304 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12305 unittests/scoped_mmap-selftest.c.
12307 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12309 * common/scoped_fd.h: New.
12310 * unittests/scoped_fd-selftest.c: New.
12311 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12312 unittests/scoped_fd-selftest.c.
12314 2018-02-09 Tom Tromey <tom@tromey.com>
12316 * auto-load.c (auto_load_section_scripts): Use
12317 gdb::unique_xmalloc_ptr.
12319 2018-02-09 Tom Tromey <tom@tromey.com>
12321 * auto-load.c (execute_script_contents): Use std::string.
12323 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12325 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12326 Python function, rather than a new command.
12328 2018-02-08 Tom Tromey <tom@tromey.com>
12330 * solib.c (solib_find_1): Use std::string.
12331 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12333 2018-02-08 Tom Tromey <tom@tromey.com>
12335 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12337 2018-02-08 Tom Tromey <tom@tromey.com>
12339 * source.c (find_source_lines): Use gdb::def_vector.
12341 2018-02-08 Tom Tromey <tom@tromey.com>
12343 * macrocmd.c (struct temporary_macro_definition): New.
12344 (macro_define_command): Use temporary_macro_definition. Remove
12346 (free_macro_definition_ptr): Remove.
12348 2018-02-08 Tom Tromey <tom@tromey.com>
12350 * macroexp.c (maybe_expand): Use std::string.
12352 2018-02-08 Tom Tromey <tom@tromey.com>
12354 * macroexp.c (struct macro_buffer): Add initializers for some
12356 (init_buffer, init_shared_buffer, free_buffer)
12357 (free_buffer_return_text): Remove.
12358 (macro_buffer): New constructors.
12359 (~macro_buffer): New destructor.
12360 (macro_buffer::set_shared): New method.
12361 (macro_buffer::resize_buffer, macro_buffer::appendc)
12362 (macro_buffer::appendmem): Now methods, not free functions.
12363 (set_token, append_tokens_without_splicing, stringify)
12364 (macro_stringify): Update.
12365 (gather_arguments): Change return type. Remove argc_p argument,
12366 add args_ptr argument. Use std::vector.
12367 (substitute_args): Remove argc argument. Accept std::vector.
12368 (expand): Update. Use std::vector.
12369 (scan, macro_expand, macro_expand_next): Update.
12371 2018-02-08 Tom Tromey <tom@tromey.com>
12373 * symtab.c (default_collect_symbol_completion_matches_break_on):
12374 Use unique_xmalloc_ptr.
12375 * macroscope.h: (sal_macro_scope, user_macro_scope)
12376 (default_macro_scope): Return unique_xmalloc_ptr.
12377 * macroscope.c (sal_macro_scope, user_macro_scope)
12378 (default_macro_scope): Return unique_xmalloc_ptr.
12379 * macroexp.h (macro_expand, macro_expand_once): Return
12380 unique_xmalloc_ptr.
12381 * macroexp.c (macro_expand, macro_expand_once): Return
12382 unique_xmalloc_ptr.
12383 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12384 (info_macro_command, info_macros_command): Use
12385 unique_xmalloc_ptr.
12386 * compile/compile-c-support.c (write_macro_definitions): Use
12387 unique_xmalloc_ptr.
12388 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12390 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12392 * value.c (value_static_field): Assign field type instead of
12393 containing type when returning an optimized out value.
12395 2018-02-06 Yao Qi <yao.qi@linaro.org>
12397 * ft32-tdep.c (ft32_read_pc): Remove.
12398 (ft32_write_pc): Remove.
12399 (ft32_gdbarch_init): Update.
12400 * m32r-tdep.c (m32r_read_pc): Remove.
12401 (m32r_gdbarch_init): Update.
12402 * mep-tdep.c (mep_read_pc): Remove.
12403 (mep_gdbarch_init): Update.
12404 * microblaze-tdep.c (microblaze_write_pc): Remove.
12405 (microblaze_gdbarch_init): Update.
12406 * mn10300-tdep.c (mn10300_read_pc): Remove.
12407 (mn10300_write_pc): Remove.
12408 (mn10300_gdbarch_init): Update.
12409 * moxie-tdep.c (moxie_read_pc): Remove.
12410 (moxie_write_pc): Remove.
12411 (moxie_gdbarch_init): Update.
12413 2018-02-06 Yao Qi <yao.qi@linaro.org>
12415 * expprint.c (print_subexp_standard): Handle
12416 OP_F77_UNDETERMINED_ARGLIST.
12417 (dump_subexp_body_standard): Likewise.
12419 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12421 * target-descriptions.c (tdesc_element_visitor) Add empty
12423 (tdesc_type): Move make_gdb_type from here.
12424 (tdesc_type_builtin): Likewise.
12425 (tdesc_type_vector): Likewise.
12426 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12427 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12428 (make_gdb_type_union): Likewise.
12429 (make_gdb_type_flags): Likewise.
12430 (make_gdb_type_enum): Likewise.
12431 (make_gdb_type): New function.
12432 (tdesc_register_type): Use static make_gdb_type.
12434 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12436 * infcmd.c (default_print_one_register_info): Align natural-format
12437 column values consistently one under another.
12438 (pad_to_column): New function.
12440 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12442 * dwarf2read.c (dwarf2_physname): Move commment.
12444 2018-02-01 Leszek Swirski <leszeks@google.com>
12446 * varobj.c (varobj_formatted_print_options): Allow recursive
12447 pretty printing if pretty printing is enabled.
12449 2018-02-01 Leszek Swirski <leszeks@google.com>
12451 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12452 names after a structop as a filename.
12454 2018-02-01 Yao Qi <yao.qi@linaro.org>
12456 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12457 (arm_record_coproc_data_proc): Likewise.
12459 2018-02-01 Yao Qi <yao.qi@linaro.org>
12461 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12463 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12465 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12466 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12468 2018-01-31 Pedro Alves <palves@redhat.com>
12470 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12471 * inflow.c (child_terminal_save_inferior): Wrap reference to
12472 tcgetpgrp in HAVE_TERMIOS_H.
12473 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12475 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12476 always iterate over all inferiors.
12477 (gdbsim_cntrl_c): Adjust.
12478 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12480 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12482 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12483 index type is objfile-owned if the element type is as well.
12485 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12489 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12491 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12492 "features/s390x-linux64.c".
12493 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12494 s390_linux32 and s390x_linux64.
12495 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12497 * s390-tdep.c: Include "features/s390-linux32.c" and
12498 "features/s390x-linux64.c".
12499 (s390_tdesc_valid): Add check for tdesc_has_registers.
12500 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12501 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12502 tdesc_s390x_linux64.
12503 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12504 tdesc_s390x_linux64 to...
12505 * s390-tdep.h: ...here.
12507 2018-01-30 Pedro Alves <palves@redhat.com>
12510 * config.in, configure: Regenerate.
12511 * configure.ac: Check for getpgid.
12512 * go32-nat.c (go32_pass_ctrlc): New.
12513 (go32_target): Install it.
12514 * inf-child.c (inf_child_target): Install
12515 child_terminal_save_inferior, child_pass_ctrlc and
12517 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12518 (inf_ptrace_target): No longer install it.
12519 * infcmd.c (interrupt_target_1): Adjust.
12520 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12521 (child_interrupt): Declare.
12522 (inferior::terminal_state): New.
12523 * inflow.c (struct terminal_info): Update comments.
12524 (inferior_process_group): Delete.
12525 (terminal_is_ours): Delete.
12526 (gdb_tty_state): New.
12527 (child_terminal_init): Adjust.
12528 (is_gdb_terminal, sharing_input_terminal_1)
12529 (sharing_input_terminal): New functions.
12530 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12531 Set the process's actual process group in the foreground if
12532 possible. Handle is_ours_for_output/is_ours distinction. Don't
12533 mark terminal as the inferior's if not sharing GDB's terminal.
12534 Don't check attach_flag.
12535 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12536 pass down a target_terminal_state.
12537 (child_terminal_save_inferior): New, factored out from ...
12538 (child_terminal_ours_1): ... this. Handle
12539 target_terminal_state::is_ours_for_output.
12540 (child_interrupt, child_pass_ctrlc): New.
12541 (inflow_inferior_exit): Clear the inferior's terminal_state.
12542 (copy_terminal_info): Copy the inferior's terminal state.
12543 (_initialize_inflow): Remove reference to terminal_is_ours.
12544 * inflow.h (inferior_process_group): Delete.
12545 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12546 * procfs.c (procfs_target): Don't install procfs_interrupt.
12547 (procfs_interrupt): Delete.
12548 * remote.c (remote_serial_quit_handler): Adjust.
12549 (remote_interrupt): Remove ptid parameter. Adjust.
12550 * target-delegates.c: Regenerate.
12551 * target.c: Include "terminal.h".
12552 (target_terminal::terminal_state): Rename to ...
12553 (target_terminal::m_terminal_state): ... this.
12554 (target_terminal::init): Adjust.
12555 (target_terminal::inferior): Adjust to per-inferior
12557 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12558 (target_terminal::ours, target_terminal::ours_for_output): Use
12559 target_terminal_is_ours_kind.
12560 (target_interrupt): Remove ptid parameter. Adjust.
12561 (default_target_pass_ctrlc): Adjust.
12562 * target.h (target_ops::to_terminal_save_inferior): New field.
12563 (target_ops::to_interrupt): Remove ptid_t parameter.
12564 (target_interrupt): Remove ptid_t parameter. Update comment.
12565 (target_pass_ctrlc): Update comment.
12566 * target/target.h (target_terminal_state): New scoped enum,
12567 factored out of ...
12568 (target_terminal::terminal_state): ... here.
12569 (target_terminal::inferior): Update comments.
12570 (target_terminal::restore_inferior): New.
12571 (target_terminal::is_inferior, target_terminal::is_ours)
12572 (target_terminal::is_ours_for_output): Adjust.
12573 (target_terminal::scoped_restore_terminal_state): Adjust to
12574 rename, and call restore_inferior() instead of inferior().
12575 (target_terminal::scoped_restore_terminal_state::m_state): Change
12577 (target_terminal::terminal_state): Rename to ...
12578 (target_terminal::m_terminal_state): ... this and change type.
12580 2018-01-30 Pedro Alves <palves@redhat.com>
12582 * linux-nat.c (wait_for_signal): New function.
12583 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12585 (async_terminal_is_ours)
12586 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12587 (linux_nat_add_target): Don't override
12588 to_terminal_inferior/to_terminal_ours.
12590 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12592 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12594 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12596 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12597 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12598 dwarf2_per_objfile_free here.
12599 (dwarf2_per_objfile_free): Remove.
12600 (_initialize_dwarf2_read): Don't register
12601 dwarf2_per_objfile_free as a registry cleanup.
12603 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12605 Avoid compilation errors in MinGW native builds
12607 The error is triggered by including python-internal.h, and the
12610 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12611 from build-gnulib/import/math.h:27,
12612 from d:/usr/Python26/include/pyport.h:235,
12613 from d:/usr/Python26/include/Python.h:58,
12614 from python/python-internal.h:94,
12615 from python/py-arch.c:24:
12616 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12620 This happens because Python headers define 'hypot' to expand t
12621 '_hypot' in the Windows builds.
12622 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12623 'hypoth'. This avoids a compilation error.
12625 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12627 * MAINTAINERS (Write After Approval): Fix ordering.
12629 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12631 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12633 2018-01-26 Alan Modra <amodra@gmail.com>
12635 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12636 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12637 Remove nop. Make const. Comment.
12638 (powerpc32_plt_stub_so_2): New.
12639 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12640 Correct count. Update uses.
12641 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12642 Move common code reading PLT entry word. Correct
12643 powerpc32_plt_stub PLT address calculation.
12644 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12645 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12646 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12647 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12648 (ppc64_standard_linkage8): Likewise.
12649 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12650 Correct insns description.
12651 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12653 2018-01-24 Pedro Alves <palves@redhat.com>
12655 GCC PR libstdc++/83906
12656 * gdbtypes.c (operator==(const dynamic_prop &,
12657 const dynamic_prop &)): New.
12658 (operator==(const range_bounds &, const range_bounds &)): New.
12659 (check_types_equal): Use them instead of memcmp.
12660 * gdbtypes.h (operator==(const dynamic_prop &,
12661 const dynamic_prop &)): Declare.
12662 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12663 (operator==(const range_bounds &, const range_bounds &)): Declare.
12664 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12666 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12668 * s390-linux-tdep.c (s390_record_address_mask)
12669 (s390_record_calc_disp_common, s390_record_calc_disp)
12670 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12671 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12672 (s390_process_record): Move to s390-tdep.c.
12673 (s390_linux_init_abi_any): Adjust.
12674 * s390-tdep.c (s390_record_address_mask)
12675 (s390_record_calc_disp_common, s390_record_calc_disp)
12676 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12677 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12678 (s390_process_record): Moved from s390-linux-tdep.c
12679 (s390_gdbarch_init): Adjust.
12681 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12683 * s390-linux-nat.c (s390-tdep.h): New include.
12684 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12685 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12686 (ALLDEPFILES): Add s390-tdep.c.
12687 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12688 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12689 * s390-tdep.h: ...this. New file.
12690 * s390-linux-tdep.c (s390-tdep.h): New include.
12691 (_initialize_s390_tdep): Rename to...
12692 (_initialize_s390_linux_tdep): ...this and adjust.
12693 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12694 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12696 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12697 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12698 (s390_is_partial_instruction, s390_software_single_step)
12699 (is_non_branch_ril, s390_displaced_step_copy_insn)
12700 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12701 (s390_prologue_data, s390_addr, s390_store, s390_load)
12702 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12703 (s390_register_call_saved, s390_guess_tracepoint_registers)
12704 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12705 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12706 (s390_pseudo_register_name, s390_pseudo_register_type)
12707 (s390_pseudo_register_read, s390_pseudo_register_write)
12708 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12709 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12710 (s390_addr_bits_remove, s390_address_class_type_flags)
12711 (s390_address_class_type_flags_to_name)
12712 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12713 (s390_function_arg_float, s390_function_arg_vector)
12714 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12715 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12716 (s390_frame_align, s390_register_return_value, s390_return_value)
12717 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12718 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12719 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12720 (s390_trad_frame_prev_register, s390_unwind_cache)
12721 (s390_prologue_frame_unwind_cache)
12722 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12723 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12724 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12725 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12726 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12727 (s390_frame_base_address, s390_local_base_address)
12728 (s390_frame_base, s390_gcc_target_options)
12729 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12730 (s390_validate_reg_range, s390_tdesc_valid)
12731 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12732 * s390-tdep.c: ...this. New file.
12734 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12736 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12737 (s390_process_record, s390_gdbarch_tdep_alloc)
12738 (s390_linux_init_abi_any): Use/set new hook.
12740 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12742 * s390-linux-tdep.c (osabi.h): New include.
12743 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12744 (s390_linux_init_abi_any): New functions.
12745 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12747 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12749 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12750 tdesc_has_registers check
12752 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12754 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12755 (s390_validate_reg_range): New macro.
12756 (s390_gdbarch_init): Adjust.
12758 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12760 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12761 (s390_gdbarch_tdep_alloc): Adjust.
12762 (s390_gdbarch_init): Adjust.
12764 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12766 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12767 <have_tdb>: Change type to bool.
12768 (s390_gdbarch_tdep_alloc): Adjust.
12769 (s390_gdbarch_init): Adjust.
12771 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12773 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12774 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12775 (s390_gdbarch_tdep_alloc): New function.
12776 (s390_gdbarch_init): Allocate tdep at start and use its fields
12777 instead of separate variables.
12779 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12781 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12782 when looking for cached gdbarch and add comment for remaining.
12784 2018-01-22 Pedro Alves <palves@redhat.com>
12785 Sergio Durigan Junior <sergiodj@redhat.com>
12787 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12790 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12792 * MAINTAINERS: Update my company e-mail address.
12794 2018-01-22 Yao Qi <yao.qi@linaro.org>
12796 * regcache.c (cooked_write_test): New function.
12797 (_initialize_regcache): Register the test.
12799 2018-01-22 Yao Qi <yao.qi@linaro.org>
12801 * ia64-tdep.c (ia64_pseudo_register_read): Call
12802 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12803 * m32c-tdep.c (m32c_cat_read): Likewise.
12804 (m32c_r3r2r1r0_read): Likewise.
12805 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12806 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12808 2018-01-22 Yao Qi <yao.qi@linaro.org>
12810 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12811 method raw_read instead of regcache_raw_read.
12812 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12813 * arm-tdep.c (arm_neon_quad_read): Likewise.
12814 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12815 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12816 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12817 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12818 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12819 (i386_pseudo_register_read_into_value): Likewise.
12820 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12821 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12822 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12823 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12824 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12825 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12826 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12827 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12828 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12830 2018-01-22 Yao Qi <yao.qi@linaro.org>
12832 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
12833 * configure.tgt: Remove target mt.
12834 * mt-tdep.c: Remove.
12835 * regcache.c (cooked_read_test): Remove the check for mt.
12837 2018-01-22 Yao Qi <yao.qi@linaro.org>
12839 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
12840 instead of gdbarch_pseudo_register_read_value.
12842 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12844 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
12847 2018-01-22 Joel Brobecker <brobecker@adacore.com>
12849 * linespec.c (create_sals_line_offset): Remove code that preserved
12850 the symtab_and_line's line number.
12852 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12854 * varobj.c (varobj_create): Don't set valid_block when creating a
12857 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12859 * varobj.c (varobj_create): Remove out of date comment.
12861 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12864 * ada-exp.y (write_var_from_sym): Pass extra parameter when
12865 updating innermost block.
12866 * parse.c (innermost_block_tracker::update): Take extra type
12867 parameter, and check types match before updating innermost block.
12868 (write_dollar_variable): Update innermost block for registers.
12869 * parser-defs.h (enum innermost_block_tracker_type): New enum.
12870 (innermost_block_tracker::innermost_block_tracker): Initialise
12872 (innermost_block_tracker::reset): Take type parameter.
12873 (innermost_block_tracker::update): Take type parameter, and pass
12874 type through as needed.
12875 (innermost_block_tracker::m_types): New member.
12876 * varobj.c (varobj_create): Pass type when reseting innermost
12879 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12881 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
12882 * ada-lang.c (resolve_subexp): Likewise.
12883 * breakpoint.c (set_breakpoint_condition) Likewise.
12884 (watch_command_1) Likewise.
12885 * c-exp.y (variable): Likewise.
12886 * d-exp.y (PrimaryExpression): Likewise.
12887 * f-exp.y (variable): Likewise.
12888 * go-exp.y (variable): Likewise.
12889 * m2-exp.y (variable): Likewise.
12890 * objfiles.c (objfile::~objfile): Likewise.
12891 * p-exp.y (variable): Likewise.
12892 * parse.c (innermost_block): Change type.
12893 * parser-defs.h (class innermost_block_tracker): New.
12894 (innermost_block): Change to innermost_block_tracker.
12895 * printcmd.c (display_command): Switch to innermost_block API.
12896 (do_one_display): Likewise.
12897 * rust-exp.y (do_one_display): Likewise.
12898 * symfile.c (clear_symtab_users): Likewise.
12899 * varobj.c (varobj_create): Switch to innermost_block API, replace
12900 use of innermost_block with block stored on varobj object.
12902 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
12904 * expression.h (innermost_block): Remove declaration.
12905 * varobj.c: Add 'parser-defs.h' include.
12907 2018-01-19 Tom Tromey <tom@tromey.com>
12909 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
12910 symbols in the static and global blocks.
12912 2018-01-19 James Clarke <jrtc27@jrtc27.com>
12914 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
12915 gdb_ptrace.h, and move including gdb_wait.h ...
12916 * nat/linux-ptrace.h: ... to here.
12918 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12920 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
12921 inf_ptrace_detach_success.
12922 (inf_ptrace_detach_success): Add inferior parameter, use it
12923 instead of inferior_ptid, pass it to detach_inferior.
12924 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
12926 * inferior.c (detach_inferior): Add overload that takes an
12928 * inferior.h (detach_inferior): Likewise.
12929 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
12930 use inferior_ptid, adjust call to inf_ptrace_detach_success.
12931 * linux-thread-db.c (thread_db_detach): Use inf parameter.
12933 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12935 * target.h (struct target_ops) <to_detach>: Add inferior
12937 (target_detach): Likewise.
12938 * target.c (dispose_inferior): Pass inferior down.
12939 (target_detach): Pass inferior down. Assert that it is equal to
12940 the current inferior.
12941 * aix-thread.c (aix_thread_detach): Pass inferior down.
12942 * corefile.c (core_file_command): Pass current_inferior() down.
12943 * corelow.c (core_detach): Add inferior parameter.
12944 * darwin-nat.c (darwin_detach): Likewise.
12945 * gnu-nat.c (gnu_detach): Likewise.
12946 * inf-ptrace.c (inf_ptrace_detach): Likewise.
12947 * infcmd.c (detach_command): Pass current_inferior() down to
12949 * infrun.c (follow_fork_inferior): Pass parent_inf to
12951 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
12953 * linux-nat.c (linux_nat_detach): Add inferior parameter.
12954 * linux-thread-db.c (thread_db_detach): Likewise.
12955 * nto-procfs.c (procfs_detach): Likewise.
12956 * procfs.c (procfs_detach): Likewise.
12957 * record.c (record_detach): Likewise.
12958 * record.h (struct inferior): Forward-declare.
12959 (record_detach): Add inferior parameter.
12960 * remote-sim.c (gdbsim_detach): Likewise.
12961 * remote.c (remote_detach_1): Likewise.
12962 (remote_detach): Likewise.
12963 (extended_remote_detach): Likewise.
12964 * sol-thread.c (sol_thread_detach): Likewise.
12965 * target-debug.h (target_debug_print_inferior_p): New macro.
12966 * target-delegates.c: Re-generate.
12967 * top.c (kill_or_detach): Pass inferior down to target_detach.
12968 * windows-nat.c (windows_detach): Add inferior parameter.
12970 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
12972 * target.h (struct target_ops) <to_detach>: Remove args
12974 (target_detach): Likewise.
12975 * target.c (dispose_inferior): Adjust.
12976 (target_detach): Remove args parameter, adjust.
12977 * aix-thread.c (aix_thread_detach): Adjust.
12978 * corefile.c (core_file_command): Adjust.
12979 * corelow.c (core_detach): Adjust.
12980 * darwin-nat.c (darwin_detach): Adjust.
12981 * gnu-nat.c (gnu_detach): Adjust.
12982 * inf-ptrace.c (inf_ptrace_detach): Adjust.
12983 * infcmd.c (detach_command): Adjust
12984 * infrun.c (follow_fork_inferior): Adjust.
12985 (handle_vfork_child_exec_or_exit): Adjust.
12986 * linux-fork.c (linux_fork_detach): Remove args parameter.
12987 * linux-fork.h (linux_fork_detach): Likewise.
12988 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
12989 * linux-thread-db.c (thread_db_detach): Likewise.
12990 * nto-procfs.c (procfs_detach): Likewise.
12991 * procfs.c (procfs_detach): Likewise.
12992 (do_detach): Remove signo parameter.
12993 * record.c (record_detach): Remove args parameter.
12994 * record.h (record_detach): Likewise.
12995 * remote-sim.c (gdbsim_detach): Likewise.
12996 * remote.c (remote_detach_1): Likewise.
12997 (remote_detach): Likewise.
12998 (extended_remote_detach): Likewise.
12999 * sol-thread.c (sol_thread_detach): Likewise.
13000 * target-delegates.c: Re-generate.
13001 * top.c (struct qt_args) <args>: Remove field.
13002 (kill_or_detach): Don't pass args.
13003 (quit_force): Don't set args.
13004 * windows-nat.c (windows_detach): Remove args parameter.
13006 2018-01-19 Yao Qi <yao.qi@linaro.org>
13008 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13009 (arm_linux_init_abi): Install it.
13011 2018-01-19 Yao Qi <yao.qi@linaro.org>
13013 * osabi.c (gdb_osabi_names): Extend the regexp for
13014 arm-linux-gnueabihf.
13016 2018-01-18 Yao Qi <yao.qi@linaro.org>
13018 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13020 (abbrev_table::add_abbrev): Update.
13021 (abbrev_table::lookup_abbrev): Update.
13023 2018-01-18 Yao Qi <yao.qi@linaro.org>
13025 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13027 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13029 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13032 2018-01-17 Tom Tromey <tom@tromey.com>
13034 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13036 2018-01-17 Tom Tromey <tom@tromey.com>
13038 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13039 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13040 (create_array_type_with_stride): Update.
13041 * dwarf2read.c (set_die_type): Update.
13043 2018-01-17 Tom Tromey <tom@tromey.com>
13045 * dwarf2read.c (delayed_method_info): Remove typedef.
13046 (dwarf2_cu::method_info): Now a std::vector.
13047 (add_to_method_list): Update.
13048 (free_delayed_list): Remove.
13049 (compute_delayed_physnames): Update.
13050 (process_full_comp_unit, process_full_type_unit): Clear the method
13051 list. Remove cleanups.
13052 (psymtab_include_file_name): Add name_holder parameter. Use
13053 unique_xmalloc_ptr.
13054 (dwarf_decode_lines): Update.
13056 2018-01-17 Tom Tromey <tom@tromey.com>
13057 Simon Marchi <simon.marchi@ericsson.com>
13059 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13060 (dwarf2_per_objfile::free_cached_comp_units)
13061 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13062 (init_cutu_and_read_dies_no_follow): Update.
13063 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13064 (dwarf2_cu::~dwarf2_cu): New.
13065 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13066 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13068 2018-01-17 Tom Tromey <tom@tromey.com>
13069 Simon Marchi <simon.marchi@ericsson.com>
13071 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13072 (struct die_reader_specs) <abbrev_table>: New member.
13073 (struct abbrev_table): Add constructor.
13074 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13075 <abbrev_obstack>: Now an auto_obstack.
13076 (abbrev_table_up): New typedef.
13077 (init_cu_die_reader): Add abbrev_table parameter.
13078 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13079 Add result_dwo_abbrev_table.
13080 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13081 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13083 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13085 (skip_children): Update.
13086 (abbrev_table::alloc_abbrev): Rename from
13087 abbrev_table_alloc_abbrev.
13088 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13089 (abbrev_table::lookup_abbrev): Rename from
13090 abbrev_table_lookup_abbrev.
13091 (abbrev_table_read_table): Return abbrev_table_up.
13092 (abbrev_table_free, abbrev_table_free_cleanup)
13093 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13094 (load_partial_dies): Update.
13096 2018-01-17 Tom Tromey <tom@tromey.com>
13098 * dwarf2read.c (dwarf2_compute_name): Update comment.
13099 (read_func_scope, read_variable): Update.
13100 (new_symbol): Remove.
13101 (new_symbol_full): Rename to new_symbol.
13103 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13106 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13107 a warning instead of throwing an error, set section size to 0 and return
13109 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13111 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13113 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13115 (linux_ptrace_attach_fail_reason_string): Likewise.
13116 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13118 (linux_ptrace_attach_fail_reason_string): Likewise.
13119 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13121 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13123 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13125 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13128 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13129 checking for fs_base/gs_base fields in struct user_regs_struct.
13130 * configure: Regenerate.
13132 2018-01-17 Yao Qi <yao.qi@linaro.org>
13134 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13136 (aarch64_linux_init_abi): Install it to gdbarch hook
13137 gcc_target_options.
13139 2018-01-15 Pedro Alves <palves@redhat.com>
13141 * common/signals-state-save-restore.c
13142 (save_original_signals_state): Fix typos.
13144 2017-01-12 Tom Tromey <tom@tromey.com>
13145 Sergio Durigan Junior <sergiodj@redhat.com>
13147 * Makefile.in (install-only): Install gdb-add-index.
13149 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13151 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13153 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13155 * infrun.c (keep_going_pass_signal): Clear step-over info when
13156 insert_breakpoints fails.
13158 2018-01-11 Pedro Alves <palves@redhat.com>
13161 * infrun.c (resume): Rename to ...
13162 (resume_1): ... this.
13163 (resume): Reimplement as wrapper around resume_1.
13165 2018-01-11 Pedro Alves <palves@redhat.com>
13168 * remote.c (remote_parse_stop_reply): Default to the last-set
13169 general thread instead of to 'magic_null_ptid'.
13171 2018-01-10 Pedro Alves <palves@redhat.com>
13173 * language.h (language_get_symbol_name_matcher): Rename ...
13174 (get_symbol_name_matcher): ... this.
13175 * language.c (language_get_symbol_name_matcher): Ditto.
13176 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13179 2018-01-10 Pedro Alves <palves@redhat.com>
13183 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13184 Adjust to use language_get_symbol_name_matcher instead of
13185 language_defn::la_get_symbol_name_matcher.
13186 * language.c (language_get_symbol_name_matcher): If in Ada mode
13187 and the lookup name is a verbatim match, return Ada's matcher.
13188 * language.h (language_get_symbol_name_matcher): Adjust comment.
13189 (ada_lookup_name_info::verbatim_p):: New method.
13191 2018-01-10 Pedro Alves <palves@redhat.com>
13194 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13195 minsym's language is language_auto or language_cplus, pass down
13196 language_ada instead.
13197 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13199 2018-01-10 Pedro Alves <palves@redhat.com>
13202 * minsyms.c (linkage_name_str): New function.
13203 (iterate_over_minimal_symbols): Use it.
13205 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13207 * NEWS: Document that 'info proc' now works on FreeBSD.
13209 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13211 * configure.ac: Check for kinfo_getfile in libutil.
13212 * configure: Regenerate.
13213 * config.in: Regenerate.
13214 * fbsd-nat.c: Include "fbsd-tdep.h".
13215 (fbsd_fetch_cmdline): New.
13216 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13217 rather than calling error.
13218 (fbsd_info_proc): New.
13219 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13220 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13221 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13223 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13225 * fbsd-nat.c (struct free_deleter): Remove.
13226 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13228 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13230 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13231 NULL for an empty pathname.
13233 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13235 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13236 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13237 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13238 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13239 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13240 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13241 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13242 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13243 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13244 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13245 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13246 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13247 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13248 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13249 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13251 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13253 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13254 (gnu_xfer_auxv): New function.
13255 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13256 TARGET_OBJECT_AUXV.
13258 2018-01-08 Yao Qi <yao.qi@linaro.org>
13259 Simon Marchi <simon.marchi@ericsson.com>
13261 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13263 (COMMON_OBS): Remove selftest.o.
13264 * configure.ac: Append selftest-arch.c and common/selftest.c to
13265 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13266 * configure: Re-generated.
13267 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13269 (maintenance_info_selftests): Likewise.
13271 2018-01-08 Xavier Roirand <roirand@adacore.com>
13273 * ada-valprint.c (val_print_packed_array_elements): Use
13274 proper number of elements when printing an array indexed
13275 by an enumeration type.
13277 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13279 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13280 (dw2_get_file_names_reader): Adjust.
13281 (lookup_dwo_signatured_type): Adjust.
13282 (lookup_dwp_signatured_type): Adjust.
13283 (lookup_signatured_type): Adjust.
13284 (create_type_unit_group): Adjust.
13285 (get_type_unit_group): Adjust.
13286 (process_psymtab_comp_unit_reader): Adjust.
13287 (build_type_psymtabs_reader): Adjust.
13288 (scan_partial_symbols): Adjust.
13289 (add_partial_symbol): Adjust.
13290 (add_partial_subprogram): Adjust.
13291 (peek_die_abbrev): Adjust.
13292 (fixup_go_packaging): Adjust.
13293 (process_imported_unit_die): Adjust.
13294 (dwarf2_compute_name): Adjust.
13295 (dwarf2_physname): Adjust.
13296 (read_import_statement): Adjust.
13297 (handle_DW_AT_stmt_list): Adjust.
13298 (read_file_scope): Adjust.
13299 (read_func_scope): Adjust.
13300 (read_lexical_block_scope): Adjust.
13301 (read_call_site_scope): Adjust.
13302 (read_variable): Adjust.
13303 (dwarf2_rnglists_process): Adjust.
13304 (dwarf2_ranges_process): Adjust.
13305 (dwarf2_ranges_read): Adjust.
13306 (dwarf2_get_pc_bounds): Adjust.
13307 (dwarf2_record_block_ranges): Adjust.
13308 (dwarf2_add_field): Adjust.
13309 (dwarf2_add_member_fn): Adjust.
13310 (read_structure_type): Adjust.
13311 (process_structure_scope): Adjust.
13312 (read_enumeration_type): Adjust.
13313 (read_array_type): Adjust.
13314 (mark_common_block_symbol_computed): Adjust.
13315 (read_common_block): Adjust.
13316 (read_namespace_type): Adjust.
13317 (read_namespace): Adjust.
13318 (read_module_type): Adjust.
13319 (read_tag_pointer_type): Adjust.
13320 (read_tag_ptr_to_member_type): Adjust.
13321 (read_tag_string_type): Adjust.
13322 (read_subroutine_type): Adjust.
13323 (read_typedef): Adjust.
13324 (read_base_type): Adjust.
13325 (attr_to_dynamic_prop): Adjust.
13326 (read_subrange_type): Adjust.
13327 (read_unspecified_type): Adjust.
13328 (dwarf2_read_abbrevs): Adjust.
13329 (load_partial_dies): Adjust.
13330 (read_partial_die): Adjust.
13331 (find_partial_die): Adjust.
13332 (guess_partial_die_structure_name): Adjust.
13333 (fixup_partial_die): Adjust.
13334 (read_attribute_value): Adjust.
13335 (read_addr_index): Adjust.
13336 (read_addr_index_from_leb128): Adjust.
13337 (read_str_index): Adjust.
13338 (dwarf2_string_attr): Adjust.
13339 (get_debug_line_section): Adjust.
13340 (dwarf_decode_line_header): Adjust.
13341 (lnp_state_machine::check_line_address): Adjust.
13342 (dwarf_decode_lines_1): Adjust.
13343 (dwarf_decode_lines): Adjust.
13344 (dwarf2_start_symtab): Adjust.
13345 (var_decode_location): Adjust.
13346 (new_symbol_full): Adjust.
13347 (dwarf2_const_value_data): Adjust.
13348 (dwarf2_const_value_attr): Adjust.
13349 (dwarf2_const_value): Adjust.
13350 (die_type): Adjust.
13351 (die_containing_type): Adjust.
13352 (build_error_marker_type): Adjust.
13353 (lookup_die_type): Adjust.
13354 (guess_full_die_structure_name): Adjust.
13355 (anonymous_struct_prefix): Adjust.
13356 (determine_prefix): Adjust.
13357 (dwarf2_name): Adjust.
13358 (follow_die_ref_or_sig): Adjust.
13359 (follow_die_offset): Adjust.
13360 (follow_die_ref): Adjust.
13361 (follow_die_sig_1): Adjust.
13362 (follow_die_sig): Adjust.
13363 (get_signatured_type): Adjust.
13364 (get_DW_AT_signature_type): Adjust.
13365 (decode_locdesc): Adjust.
13366 (dwarf_decode_macros): Adjust.
13367 (cu_debug_loc_section): Adjust.
13368 (fill_in_loclist_baton): Adjust.
13369 (dwarf2_symbol_mark_computed): Adjust.
13370 (init_one_comp_unit): Don't assign
13371 dwarf2_cu::dwarf2_per_objfile.
13372 (set_die_type): Adjust.
13374 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13376 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13377 <dwarf2_per_objfile>: New field.
13378 (dwarf2_per_objfile): Remove global.
13379 (get_dwarf2_per_objfile): New function.
13380 (set_dwarf2_per_objfile): New function.
13381 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13382 dwarf2_per_objfile.
13383 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13384 (read_abbrev_offset): Likewise.
13385 (read_indirect_string): Likewise.
13386 (read_indirect_line_string): Likewise.
13387 (read_indirect_string_at_offset): Likewise.
13388 (read_indirect_string_from_dwz): Likewise.
13389 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13390 dwarf2_per_objfile.
13391 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13392 (create_all_comp_units): Change objfile parameter to
13393 dwarf2_per_objfile.
13394 (create_all_type_units): Likewise.
13395 (process_queue): Add dwarf2_per_objfile parameter.
13396 (read_and_check_comp_unit_head): Likewise.
13397 (lookup_dwo_unit_in_dwp): Likewise.
13398 (get_dwp_file): Likewise.
13399 (process_cu_includes): Likewise.
13400 (struct free_dwo_file_cleanup_data): New struct.
13401 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13402 set_dwarf2_per_objfile.
13403 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13404 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13405 context, adjust calls.
13406 (dw2_instantiate_symtab): Likewise.
13407 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13408 (dw2_get_cu): Likewise.
13409 (create_cu_from_index_list): Change objfile parameter to
13410 dwarf2_per_objfile.
13411 (create_cus_from_index_list): Get dwarf2_per_objfile from
13412 context, adjust calls.
13413 (create_cus_from_index): Likewise.
13414 (create_signatured_type_table_from_index): Change objfile
13415 parameter to dwarf2_per_objfile.
13416 (create_signatured_type_table_from_debug_names): Change objfile
13417 parameter to dwarf2_per_objfile.
13418 (create_addrmap_from_index): Likewise.
13419 (create_addrmap_from_aranges): Likewise.
13420 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13421 (dw2_setup): Remove.
13422 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13424 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13425 get_dwarf2_per_objfile.
13426 (dw2_forget_cached_source_info): Likewise.
13427 (dw2_map_symtabs_matching_filename): Likewise.
13428 (struct dw2_symtab_iterator) <index>: Remove.
13429 <dwarf2_per_objfile>: New field.
13430 (dw2_symtab_iter_init): Replace index parameter with
13431 dwarf2_per_objfile.
13432 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13433 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13434 (dw2_print_stats): Likewise.
13435 (dw2_dump): Likewise.
13436 (dw2_expand_symtabs_for_function): Likewise.
13437 (dw2_expand_all_symtabs): Likewise.
13438 (dw2_expand_symtabs_with_fullname): Likewise.
13439 (dw2_expand_marked_cus): Replace index and objfile parameters
13440 with dwarf2_per_objfile.
13441 (dw_expand_symtabs_matching_file_matcher): Add
13442 dwarf2_per_objfile parameter and adjust calls.
13443 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13445 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13446 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13448 (create_cus_from_debug_names_list): Replace objfile parameter
13449 with dwarf2_per_objfile and adjust calls.
13450 (create_cus_from_debug_names): Likewise.
13451 (dwarf2_read_debug_names): Likewise.
13452 (mapped_debug_names::namei_to_name): Adjust call.
13453 (dw2_debug_names_iterator::next): Likewise.
13454 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13455 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13456 (dw2_debug_names_dump): Likewise.
13457 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13458 (dw2_debug_names_expand_symtabs_matching): Likewise.
13459 (dwarf2_initialize_objfile): Likewise.
13460 (dwarf2_build_psymtabs): Likewise.
13461 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13463 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13464 (read_and_check_comp_unit_head): Likewise.
13465 (read_abbrev_offset): Likewise.
13466 (create_debug_type_hash_table): Likewise.
13467 (create_debug_types_hash_table): Likewise.
13468 (create_all_type_units): Replace objfile parameter with
13469 dwarf2_per_objfile.
13470 (add_type_unit): Add dwarf2_per_objfile parameter.
13471 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13472 with dwarf2_per_objfile.
13473 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13474 (lookup_dwp_signatured_type): Likewise.
13475 (lookup_signatured_type): Likewise.
13476 (read_cutu_die_from_dwo): Likewise.
13477 (init_tu_and_read_dwo_dies): Likewise.
13478 (init_cutu_and_read_dies): Likewise.
13479 (init_cutu_and_read_dies_no_follow): Likewise.
13480 (allocate_type_unit_groups_table): Add objfile parameter.
13481 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13482 (get_type_unit_group): Likewise.
13483 (process_psymtab_comp_unit): Update call.
13484 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13485 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13486 (print_tu_stats): Likewise.
13487 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13488 in void* parameter.
13489 (build_type_psymtabs): Change objfile parameter to
13490 dwarf2_per_objfile.
13491 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13492 passed in void* parameter.
13493 (process_skeletonless_type_units): Change objfile parameter to
13494 dwarf2_per_objfile.
13495 (set_partial_user): Likewise.
13496 (dwarf2_build_psymtabs_hard): Likewise.
13497 (read_comp_units_from_section): Likewise.
13498 (create_all_comp_units): Likewise.
13499 (scan_partial_symbols): Update calls.
13500 (add_partial_symbol): Likewise.
13501 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13502 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13503 (process_queue): Add dwarf2_per_objfile parameter.
13504 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13505 (compute_compunit_symtab_includes): Likewise.
13506 (process_cu_includes): Add dwarf2_per_objfile parameter.
13507 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13508 (process_full_type_unit): Likewise.
13509 (process_imported_unit_die): Update call.
13510 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13511 (read_file_scope): Likewise.
13512 (allocate_dwo_file_hash_table): Add objfile parameter.
13513 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13514 (create_cus_hash_table): Likewise.
13515 (create_dwp_hash_table): Likewise.
13516 (create_dwo_unit_in_dwp_v1): Likewise.
13517 (create_dwp_v2_section): Likewise.
13518 (create_dwo_unit_in_dwp_v2): Likewise.
13519 (lookup_dwo_unit_in_dwp): Likewise.
13520 (try_open_dwop_file): Likewise.
13521 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13522 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13523 cleanup to include a reference to dwarf2_per_objfile.
13524 (open_dwp_file): Add dwarf2_per_objfile parameter.
13525 (open_and_init_dwp_file): Likewise.
13526 (get_dwp_file): Likewise.
13527 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13528 (queue_and_load_all_dwo_tus): Update call.
13529 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13531 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13532 (dwarf2_ranges_process): Likewise.
13533 (dwarf2_get_pc_bounds): Likewise.
13534 (mark_common_block_symbol_computed): Likewise.
13535 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13536 (dwarf2_read_abbrevs): Update call.
13537 (read_partial_die): Use dwarf2_per_objfile from cu.
13538 (find_partial_die): Likewise.
13539 (fixup_partial_die): Likewise.
13540 (read_attribute_value): Likewise.
13541 (read_indirect_string_at_offset_from): Add objfile parameter.
13542 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13544 (read_indirect_string_from_dwz): Add objfile parameter.
13545 (read_indirect_string): Add objfile parameter.
13546 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13547 (read_addr_index): Use dwarf2_per_objfile from cu.
13548 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13550 (read_str_index): Use dwarf2_per_objfile from cu.
13551 (get_debug_line_section): Likewise.
13552 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13553 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13554 (new_symbol_full): Use dwarf2_per_objfile from cu.
13555 (build_error_marker_type): Likewise.
13556 (lookup_die_type): Likewise.
13557 (determine_prefix): Likewise.
13558 (follow_die_offset): Likewise.
13559 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13560 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13561 (dwarf2_fetch_die_type_sect_off): Likewise.
13562 (dwarf2_get_die_type): Likewise.
13563 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13564 (get_signatured_type): Likewise.
13565 (get_DW_AT_signature_type): Likewise.
13566 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13567 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13568 (cu_debug_loc_section): Likewise.
13569 (fill_in_loclist_baton): Likewise.
13570 (dwarf2_symbol_mark_computed): Likewise.
13571 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13572 dwarf2_per_objfile.
13573 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13575 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13576 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13577 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13578 (set_die_type): Use dwarf2_free_objfile from cu.
13579 (get_die_type_at_offset): Likewise.
13580 (dwarf2_per_objfile_free): Don't assign global variable.
13581 (debug_names) <constructor>: Add dwarf2_per_objfile
13582 parameter, update m_debugstrlookup construction.
13583 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13585 <m_dwarf2_per_objfile>: New field.
13586 <lookup>: Use m_dwarf2_per_objfile.
13587 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13588 (psyms_seen_size): Likewise.
13589 (write_gdbindex): Replace objfile parameter with
13590 dwarf2_per_objfile.
13591 (write_debug_names): Likewise.
13592 (write_psymtabs_to_index): Likewise.
13593 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13596 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13598 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13599 <dwarf2_per_objfile>: New field.
13600 (struct dwarf2_per_cu_data) <objfile>: Remove.
13601 <dwarf2_per_objfile>: New field.
13602 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13604 (create_signatured_type_table_from_index): Likewise.
13605 (create_debug_type_hash_table): Likewise.
13606 (fill_in_sig_entry_from_dwo_entry): Likewise.
13607 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13608 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13610 (create_partial_symtab): Access objfile through
13611 dwarf2_per_objfile.
13612 (process_psymtab_comp_unit_reader): Likewise.
13613 (read_comp_units_from_section): Likewise.
13614 (scan_partial_symbols): Likewise.
13615 (add_partial_symbol): Likewise.
13616 (add_partial_subprogram): Likewise.
13617 (peek_die_abbrev): Likewise.
13618 (fixup_go_packaging): Likewise.
13619 (process_full_comp_unit): Likewise.
13620 (process_full_type_unit): Likewise.
13621 (process_imported_unit_die): Likewise.
13622 (dwarf2_compute_name): Likewise.
13623 (dwarf2_physname): Likewise.
13624 (read_import_statement): Likewise.
13625 (create_cus_hash_table): Assign dwarf2_physname instead of
13627 (read_func_scope): Access objfile through dwarf2_per_objfile.
13628 (read_lexical_block_scope): Likewise.
13629 (read_call_site_scope): Likewise.
13630 (read_variable): Likewise.
13631 (dwarf2_rnglists_process): Likewise.
13632 (dwarf2_ranges_process): Likewise.
13633 (dwarf2_ranges_read): Likewise.
13634 (dwarf2_record_block_ranges): Likewise.
13635 (dwarf2_add_field): Likewise.
13636 (dwarf2_add_member_fn): Likewise.
13637 (read_structure_type): Likewise.
13638 (process_structure_scope): Likewise.
13639 (read_enumeration_type): Likewise.
13640 (read_array_type): Likewise.
13641 (read_common_block): Likewise.
13642 (read_namespace_type): Likewise.
13643 (read_namespace): Likewise.
13644 (read_module_type): Likewise.
13645 (read_tag_pointer_type): Likewise.
13646 (read_tag_ptr_to_member_type): Likewise.
13647 (read_tag_string_type): Likewise.
13648 (read_subroutine_type): Likewise.
13649 (read_typedef): Likewise.
13650 (read_base_type): Likewise.
13651 (attr_to_dynamic_prop): Likewise.
13652 (read_subrange_type): Likewise.
13653 (read_unspecified_type): Likewise.
13654 (load_partial_dies): Likewise.
13655 (read_partial_die): Likewise.
13656 (find_partial_die): Likewise.
13657 (guess_partial_die_structure_name): Likewise.
13658 (fixup_partial_die): Likewise.
13659 (read_attribute_value): Likewise.
13660 (read_addr_index_from_leb128): Likewise.
13661 (dwarf2_read_addr_index): Likewise.
13662 (dwarf2_string_attr): Likewise.
13663 (lnp_state_machine::check_line_address): Likewise.
13664 (dwarf_decode_lines_1): Likewise.
13665 (dwarf_decode_lines): Likewise.
13666 (dwarf2_start_symtab): Likewise.
13667 (var_decode_location): Likewise.
13668 (new_symbol_full): Likewise.
13669 (dwarf2_const_value_data): Likewise.
13670 (dwarf2_const_value_attr): Likewise.
13671 (dwarf2_const_value): Likewise.
13672 (die_type): Likewise.
13673 (die_containing_type): Likewise.
13674 (lookup_die_type): Likewise.
13675 (guess_full_die_structure_name): Likewise.
13676 (anonymous_struct_prefix): Likewise.
13677 (dwarf2_name): Likewise.
13678 (follow_die_ref_or_sig): Likewise.
13679 (follow_die_offset): Likewise.
13680 (follow_die_ref): Likewise.
13681 (dwarf2_fetch_die_loc_sect_off): Likewise.
13682 (dwarf2_fetch_constant_bytes): Likewise.
13683 (dwarf2_fetch_die_type_sect_off): Likewise.
13684 (dwarf2_get_die_type): Likewise.
13685 (follow_die_sig): Likewise.
13686 (decode_locdesc): Likewise.
13687 (dwarf2_per_cu_objfile): Likewise.
13688 (dwarf2_per_cu_text_offset): Likewise.
13689 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13691 (set_die_type): Access objfile through
13692 dwarf2_per_objfile.
13694 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13696 * valprint.c (converted_character_d): Remove typedef.
13697 (DEF_VEC_O (converted_character_d)): Remove.
13698 (count_next_character): Use std::vector.
13699 (print_converted_chars_to_obstack): Likewise.
13700 (generic_printstr): Likewise.
13702 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13704 * xml-support.h (struct gdb_xml_value): Add constructor.
13705 <value>: Change type to unique_xmalloc_ptr.
13706 (gdb_xml_value_s): Remove typedef.
13707 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13708 (gdb_xml_element_start_handler): Change parameter type to
13710 (xml_find_attribute): Likewise.
13711 * xml-support.c (xml_find_attribute): Change parameter type to
13712 std::vector and adjust.
13713 (gdb_xml_values_cleanup): Remove.
13714 (gdb_xml_parser::start_element): Adjust to std::vector.
13715 (xinclude_start_include): Change paraeter type to std::vector
13717 * btrace.c (check_xml_btrace_version): Likewise.
13718 (parse_xml_btrace_block): Likewise.
13719 (parse_xml_btrace_pt_config_cpu): Likewise.
13720 (parse_xml_btrace_pt): Likewise.
13721 (parse_xml_btrace_conf_bts): Likewise.
13722 (parse_xml_btrace_conf_pt): Likewise.
13723 * memory-map.c (memory_map_start_memory): Likewise.
13724 (memory_map_start_property): Likewise.
13725 * osdata.c (osdata_start_osdata): Likewise.
13726 (osdata_start_item): Likewise.
13727 (osdata_start_column): Likewise.
13728 * remote.c (start_thread): Likewise.
13729 * solib-aix.c (library_list_start_library): Likewise.
13730 (library_list_start_list): Likewise.
13731 * solib-svr4.c (library_list_start_library): Likewise.
13732 (svr4_library_list_start_list): Likewise.
13733 * solib-target.c (library_list_start_segment): Likewise.
13734 (library_list_start_section): Likewise.
13735 (library_list_start_library): Likewise.
13736 (library_list_start_list): Likewise.
13737 * tracepoint.c (traceframe_info_start_memory): Likewise.
13738 (traceframe_info_start_tvar): Likewise.
13739 * xml-syscall.c (syscall_start_syscall): Likewise.
13740 * xml-tdesc.c (tdesc_start_target): Likewise.
13741 (tdesc_start_feature): Likewise.
13742 (tdesc_start_reg): Likewise.
13743 (tdesc_start_union): Likewise.
13744 (tdesc_start_struct): Likewise.
13745 (tdesc_start_flags): Likewise.
13746 (tdesc_start_enum): Likewise.
13747 (tdesc_start_field): Likewise.
13748 (tdesc_start_enum_value): Likewise.
13749 (tdesc_start_vector): Likewise.
13751 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13753 * extension.h (struct xmethod_worker) <clone>: Remove.
13754 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13756 (python_xmethod_worker::clone): Remove.
13757 * valops.c (find_overload_match): Use std::move instead of
13760 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13762 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13763 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13764 <free_xmethod_worker_data>: Remove.
13765 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13766 <get_xmethod_arg_types>: Remove.
13767 <get_xmethod_result_type>: Remove.
13768 <invoke_xmethod>: Remove.
13769 * extension.c (new_xmethod_worker): Remove.
13770 (clone_xmethod_worker): Remove.
13771 (get_matching_xmethod_workers): Return void, pass std::vector by
13773 (get_xmethod_arg_types): Rename to...
13774 (xmethod_worker::get_arg_types): ... this, and adjust.
13775 (get_xmethod_result_type): Rename to...
13776 (xmethod_worker::get_result_type): ... this, and adjust.
13777 (invoke_xmethod): Remove.
13778 (free_xmethod_worker): Remove.
13779 (free_xmethod_worker_vec): Remove.
13780 * extension.h (enum ext_lang_rc): Move here from
13782 (struct xmethod_worker): Add constructor and destructor.
13785 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13786 virtual pure methods.
13787 <get_arg_types, get_result_type>: New methods.
13788 (xmethod_worker_ptr): Remove typedef.
13789 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13790 (xmethod_worker_vec): Remove typedef.
13791 (xmethod_worker_up): New typedef.
13792 (invoke_xmethod): Remove.
13793 (clone_xmethod_worker): Remove.
13794 (free_xmethod_worker): Remove.
13795 (free_xmethod_worker_vec): Remove.
13796 (get_xmethod_arg_types): Remove.
13797 (get_xmethod_result_type): Remove.
13798 * valops.c (find_method_list): Use std::vector, don't use
13799 intermediate vector.
13800 (value_find_oload_method_list): Use std::vector.
13801 (find_overload_match): Use std::vector.
13802 (find_oload_champ): Use std::vector.
13803 * value.c (value_free): Use operator delete.
13804 (value_of_xmethod): Rename to...
13805 (value_from_xmethod): ... this. Don't assign
13806 xmethod_worker::value, take rvalue-reference.
13807 (result_type_of_xmethod): Adjust.
13808 (call_xmethod): Adjust.
13809 * value.h: Include extension.h.
13810 (struct xmethod_worker): Don't forward-declare.
13811 (value_of_xmethod): Rename to...
13812 (value_from_xmethod): ... this, take rvalue-reference.
13813 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13814 (struct python_xmethod_worker): ... this, add constructor and
13816 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13817 (gdbpy_free_xmethod_worker_data): Rename to...
13818 (python_xmethod_worker::~python_xmethod_worker): ... this and
13820 (gdbpy_clone_xmethod_worker_data): Rename to...
13821 (python_xmethod_worker::clone): ... this and adjust.
13822 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13824 (gdbpy_get_xmethod_arg_types): Rename to...
13825 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13826 (gdbpy_get_xmethod_result_type): Rename to...
13827 (python_xmethod_worker::do_get_result_type): ... this and
13829 (gdbpy_invoke_xmethod): Rename to...
13830 (python_xmethod_worker::invoke): ... this and adjust.
13831 (new_python_xmethod_worker): Rename to...
13832 (python_xmethod_worker::python_xmethod_worker): ... this and
13834 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
13836 (gdbpy_free_xmethod_worker_data): Remove.
13837 (gdbpy_get_matching_xmethod_workers): Use std::vector.
13838 (gdbpy_get_xmethod_arg_types): Remove.
13839 (gdbpy_get_xmethod_result_type): Remove.
13840 (gdbpy_invoke_xmethod): Remove.
13841 * python/python.c (python_extension_ops): Remove obsolete
13844 2018-01-05 Pedro Alves <palves@redhat.com>
13847 * common/signals-state-save-restore.c
13848 (save_original_signals_state): New parameter 'quiet'. Warn if we
13849 find a custom handler preinstalled, instead of internal erroring.
13850 But only warn if !quiet.
13851 * common/signals-state-save-restore.h
13852 (save_original_signals_state): New parameter 'quiet'.
13853 * main.c (captured_main_1): Move save_original_signals_state call
13854 after option handling, and pass QUIET.
13856 2018-01-05 Pedro Alves <palves@redhat.com>
13858 * spu-tdep.c (spu_catch_start): Pass
13859 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
13861 2018-01-05 Pedro Alves <palves@redhat.com>
13864 * ada-lang.c (literal_symbol_name_matcher): New function.
13865 (ada_get_symbol_name_matcher): Use it for
13866 symbol_name_match_type::SEARCH_NAME.
13867 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
13868 it down instead of assuming symbol_name_match_type::FULL.
13869 * block.h (block_lookup_symbol): New parameter 'match_type'.
13870 * c-valprint.c (print_unpacked_pointer): Use
13871 lookup_symbol_search_name instead of lookup_symbol.
13872 * compile/compile-object-load.c (get_out_value_type): Pass down
13873 symbol_name_match_type::SEARCH_NAME.
13874 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
13875 symbol_name_match_type::FULL.
13876 * cp-support.c (cp_get_symbol_name_matcher): Handle
13877 symbol_name_match_type::SEARCH_NAME.
13878 * infrun.c (insert_exception_resume_breakpoint): Use
13879 lookup_symbol_search_name.
13880 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
13881 * psymtab.c (maintenance_check_psymtabs): Use
13882 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
13883 * stack.c (print_frame_args): Use lookup_symbol_search_name and
13884 SYMBOL_SEARCH_NAME.
13885 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
13886 if symbol_name_match_type::SEARCH_NAME.
13887 (lookup_symbol_in_language): Pass down
13888 symbol_name_match_type::FULL.
13889 (lookup_symbol_search_name): New.
13890 (lookup_language_this): Pass down
13891 symbol_name_match_type::SEARCH_NAME.
13892 (lookup_symbol_aux, lookup_local_symbol): New parameter
13893 'match_type'. Pass it down.
13894 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
13895 (lookup_symbol_search_name): New declaration.
13896 (lookup_symbol_in_block): New 'match_type' parameter.
13898 2018-01-05 Pedro Alves <palves@redhat.com>
13901 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
13903 (ada_lookup_symbol): Reimplement in terms of
13904 ada_lookup_symbol_list, bits factored out from
13905 ada_lookup_encoded_symbol.
13907 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13909 * ada-exp.y (write_object_renaming): When subscripting an array
13910 using a symbol as the index, pass the block in call to
13911 ada_lookup_encoded_symbol when looking that symbol up.
13913 2018-01-05 Jerome Guitton <guitton@adacore.com>
13915 * ada-lang.c (ada_array_length): Use ada_index_type instead of
13918 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13920 * ada-lang.c (ada_to_fixed_value_create): Add handling of
13921 the case where VALUE_LVAL (val0) is not lval_memory.
13923 2018-01-05 Xavier Roirand <roirand@adacore.com>
13925 * ada-valprint.c (print_optional_low_bound): Handle
13926 character-indexed array printing like boolean-indexed array
13929 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13931 * NEWS: Create a new section for the next release branch.
13932 Rename the section of the current branch, now that it has
13935 2018-01-05 Joel Brobecker <brobecker@adacore.com>
13937 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
13938 * version.in: Bump version to 8.1.50.DATE-git.
13940 2018-01-03 Xavier Roirand <roirand@adacore.com>
13942 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
13944 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
13946 (default_exception_support_info) <catch_handlers_sym>: Add field.
13947 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
13948 (ada_exception_name_addr_1): Add "catch handlers" handling.
13949 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
13950 Update all callers.
13951 (create_excep_cond_exprs) <ex>: Add parameter.
13952 (re_set_exception): Update create_excep_cond_exprs call.
13953 (print_it_exception, print_one_exception, print_mention_exception)
13954 (print_recreate_exception): Add "catch handler" handling.
13955 (allocate_location_catch_handlers, re_set_catch_handlers)
13956 (check_status_catch_handlers, print_it_catch_handlers)
13957 (print_one_catch_handlers, print_mention_catch_handlers)
13958 (print_recreate_catch_handlers): New function.
13959 (catch_handlers_breakpoint_ops): New variable.
13960 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
13961 Add parameter. Add "catch handler" handling.
13962 (ada_exception_sym_name, ada_exception_breakpoint_ops):
13963 Add "catch handler" handling.
13964 (ada_exception_catchpoint_cond_string): Add "catch handler"
13966 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
13968 (catch_ada_handlers_command): New function.
13969 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
13970 operations structure.
13971 (_initialize_ada_language): Add "catch handlers" command entry.
13972 * NEWS: Document "catch handlers" feature.
13974 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13976 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
13977 account when creating the array type of the slice.
13978 (ada_value_slice): Likewise.
13980 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13982 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
13984 (create_array_type_with_stride): Add byte_stride_prop parameter.
13985 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
13986 New parameter. Update all callers in this file.
13987 (array_type_has_dynamic_stride): New function.
13988 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
13989 of arrays with dynamic byte strides.
13990 * dwarf2read.c (read_array_type): Add support for dynamic
13991 DW_AT_byte_stride attributes.
13993 2018-01-02 Joel Brobecker <brobecker@adacore.com>
13995 * dwarf2read.c (read_unspecified_type): Treat
13996 DW_TAG_enumeration_type DIEs from Ada units as stubs.
13998 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14000 Update copyright year range in all GDB files.
14002 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14004 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14005 and gdb/testsuite/gdb.base/step-line.c.
14007 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14009 * copyright.py (main): Dump the contents of
14010 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14011 even if BY_HAND is empty.
14013 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14015 * top.c (print_gdb_version): Update Copyright year in version
14018 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14020 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14022 For older changes see ChangeLog-2017.
14028 version-control: never