1 2018-10-02 John Darrington <john@darrington.wattle.id.au>
3 * NEWS: Mention changed commands.
5 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
6 * configure: Regenerate.
7 * Makefile.in: Add new file.
8 * serial.c (serial_open): Check if filename is a socket
9 and lookup the appropriate interface accordingly.
11 2018-10-01 Alan Hayward <alan.hayward@arm.com>
13 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
15 (AARCH64_EXTRA_MAGIC): Likewise.
16 (AARCH64_FPSIMD_MAGIC): Likewise.
17 (AARCH64_SVE_MAGIC): Likewise.
18 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
19 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
20 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
21 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
22 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
23 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
24 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
25 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
26 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
27 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
28 (read_aarch64_ctx): Add function.
29 (aarch64_linux_sigframe_init): Detect FP registers.
31 2018-10-01 Alan Hayward <alan.hayward@arm.com>
33 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
34 (AARCH64_D0_REGNUM): Likewise.
35 (AARCH64_S0_REGNUM): Likewise.
36 (AARCH64_H0_REGNUM): Likewise.
37 (AARCH64_B0_REGNUM): Likewise.
38 (AARCH64_SVE_V0_REGNUM): Likewise.
39 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
40 (AARCH64_D0_REGNUM): Likewise.
41 (AARCH64_S0_REGNUM): Likewise.
42 (AARCH64_H0_REGNUM): Likewise.
43 (AARCH64_B0_REGNUM): Likewise.
44 (AARCH64_SVE_V0_REGNUM): Likewise.
46 2018-10-01 Gary Benson <gbenson@redhat.com>
48 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
49 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
50 prfpregset_t instead of gdb_prfpregset_t.
51 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
52 * configure, config.in: Rebuild.
54 2018-10-01 Gary Benson <gbenson@redhat.com>
56 * common/gdb_proc_service.h: New file, factored out from...
57 * gdb_proc_service.h: Moved common code to the above file.
58 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
60 2018-10-01 Gary Benson <gbenson@redhat.com>
62 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
63 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
65 2018-10-01 Gary Benson <gbenson@redhat.com>
67 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
68 (AC_CHECK_HEADERS): Check for linux/elf.h.
69 * configure, config.in: Rebuild.
70 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
71 doesn't define elf_fpregset_t.
73 2018-10-01 Gary Benson <gbenson@redhat.com>
75 * gdb_proc_service.h: Whitespace change.
77 2018-10-01 Tom Tromey <tom@tromey.com>
79 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
80 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
81 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
83 2018-10-01 Tom Tromey <tom@tromey.com>
85 * README: Minor change.
87 2018-09-30 Pedro Alves <palves@redhat.com>
89 * darwin-nat-info.c (darwin_debug_regions_recurse)
90 (info_mach_exceptions_command): Remove unused local variables.
91 * darwin-nat.c (darwin_decode_notify_message)
92 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
93 (darwin_stop_inferior, darwin_setup_exceptions)
94 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
95 (darwin_nat_target::attach, darwin_nat_target::detach)
96 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
98 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
101 2018-09-29 Tom Tromey <tom@tromey.com>
103 * README: Remove some leftover text.
105 2018-09-29 Tom Tromey <tom@tromey.com>
110 2018-09-28 John Baldwin <jhb@FreeBSD.org>
112 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
113 case with explicit breakpoint kind.
114 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
115 'additional_info' and related logic.
116 (riscv_debug_breakpoints): New variable.
117 (riscv_breakpoint_kind_from_pc): Use the length of the existing
118 instruction to determine the breakpoint kind.
119 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
120 flag. Update description of 'set/show riscv
121 use-compressed-breakpoints' flag.
123 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
125 (NEWS): Mention changes to frame related commands.
126 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
127 (add_prefix_cmd_suppress_notification): New function.
128 (add_com_suppress_notification): Call
129 add_cmd_suppress_notification.
130 * command.h (add_cmd_suppress_notification): Declare.
131 (add_prefix_cmd_suppress_notification): Declare.
132 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
133 (parse_frame_specification): Moved from stack.c, with
134 simplification to handle a single argument.
135 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
136 switch to the selected frame. Add a header comment.
137 * stack.c: Remove 'safe-ctype.h' include.
138 (find_frame_for_function): Add declaration.
139 (find_frame_for_address): New function.
140 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
141 (frame_selection_by_function_completer): New function.
142 (info_frame_command): Rename to...
143 (info_frame_command_core): ...this, and update parameter types.
144 (select_frame_command): Rename to...
145 (select_frame_command_core): ...this, and update parameter types.
146 (frame_command): Rename to...
147 (frame_command_core): ...this, and update parameter types.
148 (class frame_command_helper): New class to wrap implementations of
149 frame related sub-commands.
150 (frame_apply_cmd_list): New static global.
151 (frame_cmd_list): Make static.
152 (select_frame_cmd_list): New global for sub-commands.
153 (info_frame_cmd_list): New global for sub-commands.
154 (_initialize_stack): Register sub-commands for 'frame',
155 'select-frame', and 'info frame'. Update 'frame apply' commands
156 to use frame_apply_cmd_list. Move function local static
157 frame_apply_list to file static frame_apply_cmd_list for
159 * stack.h (select_frame_command): Delete declarationn.
160 (select_frame_for_mi): Declare new function.
162 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
164 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
165 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
168 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
170 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
172 2018-09-26 Tom Tromey <tom@tromey.com>
174 * valops.c (auto_abandon): Remove dead code.
176 2018-09-26 Tom Tromey <tom@tromey.com>
178 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
180 2018-09-24 Tom Tromey <tom@tromey.com>
182 * common/pathstuff.c (get_standard_cache_dir): Make
183 "xdg_cache_home" and "home" const.
184 * top.c (init_history): Make "tmpenv" const.
185 * main.c (get_init_files): Make "homedir" const.
187 2018-09-23 Tom Tromey <tom@tromey.com>
190 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
192 2018-09-23 Tom Tromey <tom@tromey.com>
194 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
195 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
196 * python/python-internal.h (gdbpy_handle_exception): Declare.
197 * python/py-utils.c (gdbpy_handle_exception): New function.
199 2018-09-23 Tom Tromey <tom@tromey.com>
202 * python/py-type.c (typy_template_argument): Check for negative
205 2018-09-23 Tom Tromey <tom@tromey.com>
208 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
210 2018-09-23 Tom Tromey <tom@tromey.com>
213 * python/py-value.c (valpy_int): Allow conversion from pointer
216 2018-09-23 Tom Tromey <tom@tromey.com>
219 * python/py-value.c (valpy_int): Respect type sign.
221 2018-09-23 Tom Tromey <tom@tromey.com>
224 * python/py-value.c (valpy_float): Allow conversions from int or
226 (valpy_int, valpy_long): Allow conversions from float.
228 2018-09-23 Tom Tromey <tom@tromey.com>
230 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
231 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
233 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
235 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
237 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
239 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
241 * windows-nat.c (windows_nat_target::wait): Remove a spurious
242 target_terminal::ours().
244 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
246 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
249 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
251 * breakpoint.c (update_inserted_breakpoint_locations): Remove
254 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
256 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
258 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
259 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
260 * sol-thread.c (ps_pdmodel): Don't guard definition.
262 * procfs.c: Fix formatting.
264 * procfs.c (sysset_t_alloc): Remove.
265 (create_procinfo): Use XNEW instead of sysset_t_alloc.
266 (procfs_debug_inferior): Likewise.
267 (procfs_set_exec_trap): Likewise.
268 (proc_set_traced_sysentry): Don't allocate argp dynamically.
269 (proc_set_traced_sysexit): Likewise.
271 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
272 (dead_procinfo): Likewise.
273 (proc_warn): Likewise.
274 (proc_error): Likewise.
275 (proc_get_LDT_entry): Likewise.
276 (do_attach): Likewise.
277 (procfs_target::pid_to_str): Likewise.
278 (iterate_over_mappings): Likewise.
280 * procfs.c (create_procinfo): Fix ARI warning.
281 (proc_get_status): Likewise.
282 (proc_stop_process): Likewise.
283 (proc_run_process): Likewise.
284 (proc_kill): Likewise.
285 (proc_get_LDT_entry): Likewise.
286 (procfs_find_LDT_entry): Likewise.
287 (proc_update_threads): Likewise.
288 (proc_iterate_over_threads): Likewise.
289 (do_attach): Likewise.
290 (procfs_xfer_memory): Likewise.
291 (invalidate_cache): Likewise.
292 (procfs_target::resume): Likewise.
293 (procfs_init_inferior): Likewise.
294 (procfs_set_exec_trap): Likewise.
295 (procfs_target::thread_alive): Likewise.
296 (procfs_target::pid_to_exec_file): Likewise.
297 (iterate_over_mappings): Likewise.
298 (procfs_target::make_corefile_notes): Likewise.
299 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
301 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
302 (procfs_find_LDT_entry): Likewise.
303 * sol-thread.c (ps_lgetLDT): Likewise.
305 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
308 * procfs.c (procfs_target): Declare pid_to_exec_file.
309 (procfs_target::pid_to_exec_file): New.
311 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
313 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
315 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
316 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
318 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
320 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
321 (supply_fpregset, fill_fpregset): Move ...
322 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
323 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
324 Remove references to ioctl-based procfs.
326 Remove PR_MODEL_NATIVE guards.
327 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
328 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
330 2018-09-19 Xavier Roirand <roirand@adacore.com>
333 * solib-darwin.c (darwin_get_dyld_bfd): New function.
334 (darwin_solib_get_all_image_info_addr_at_init): Update call.
335 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
337 2018-09-19 John Baldwin <jhb@FreeBSD.org>
339 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
340 (fbsd_print_sockaddr_in6): Likewise.
342 2018-09-19 Richard Bunt <richard.bunt@arm.com>
343 Chris January <chris.january@arm.com>
345 * eval.c (skip_undetermined_arglist): Skip argument list helper.
346 (evaluate_subexp_standard): Return a dummy type when
347 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
348 OP_F77_UNDETERMINED_ARGLIST case.
349 * expression.h (enum noside): Update comment.
351 2018-09-19 George Vasick <george.vasick@oracle.com>
353 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
355 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
356 April Chin <april.chin@oracle.com>
357 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
359 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
361 (create_procinfo): Print pids in /proc without leading zeros.
363 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
365 * nios2-tdep.c (nios2_gcc_target_options): New.
366 (nios2_gdb_arch_init): Install new hook.
368 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
370 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
372 * update-gnulib.sh: Apply patch.
373 * configure: Re-generate.
375 2018-09-18 John Baldwin <jhb@FreeBSD.org>
377 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
378 description. Make "info proc" command descriptions more
381 2018-09-18 John Baldwin <jhb@FreeBSD.org>
383 * NEWS: Mention 'info proc files' command.
385 2018-09-18 John Baldwin <jhb@FreeBSD.org>
387 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
388 descriptors for IP_FILES and IP_ALL.
390 2018-09-18 John Baldwin <jhb@FreeBSD.org>
392 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
393 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
394 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
395 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
396 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
397 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
398 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
399 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
400 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
401 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
402 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
403 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
404 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
405 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
406 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
407 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
408 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
409 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
410 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
411 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
412 (struct fbsd_sockaddr_un): New types.
413 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
414 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
415 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
416 (fbsd_core_info_proc_files): New functions.
417 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
419 * fbsd-tdep.h (fbsd_info_proc_files_header)
420 (fbsd_info_proc_files_entry): New.
422 2018-09-18 John Baldwin <jhb@FreeBSD.org>
424 * defs.h (enum info_proc_what) [IP_FILES]: New value.
425 * infcmd.c (info_proc_cmd_files): New function.
426 (_initialize_infcmd): Register 'info proc files' command.
428 2018-09-18 John Baldwin <jhb@FreeBSD.org>
430 * gnulib/aclocal-m4-deps.mk: Re-generate.
431 * gnulib/aclocal.m4: Re-generate.
432 * gnulib/config.in: Re-generate.
433 * gnulib/configure: Re-generate.
434 * gnulib/import/Makefile.am: Re-generate.
435 * gnulib/import/Makefile.in: Re-generate.
436 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
437 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
438 * gnulib/import/arpa_inet.in.h: New file.
439 * gnulib/import/inet_ntop.c: New file.
440 * gnulib/import/m4/arpa_inet_h.m4: New file.
441 * gnulib/import/m4/inet_ntop.m4: New file.
442 * gnulib/import/m4/netinet_in_h.m4: New file.
443 * gnulib/import/m4/socklen.m4: New file.
444 * gnulib/import/m4/sockpfaf.m4: New file.
445 * gnulib/import/m4/stdalign.m4: New file.
446 * gnulib/import/m4/sys_uio_h.m4: New file.
447 * gnulib/import/netinet_in.in.h: New file.
448 * gnulib/import/stdalign.in.h: New file.
449 * gnulib/import/sys_socket.c: New file.
450 * gnulib/import/sys_socket.in.h: New file.
451 * gnulib/import/sys_uio.in.h: New file.
452 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
455 2018-09-18 John Baldwin <jhb@FreeBSD.org>
457 * gnulib/aclocal-m4-deps.mk: New file.
458 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
461 2018-09-18 John Baldwin <jhb@FreeBSD.org>
463 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
466 2018-09-18 Tom Tromey <tom@tromey.com>
468 * compile/compile-object-load.c (struct
469 link_hash_table_cleanup_data): Add constructor and destructor.
470 Use DISABLE_COPY_AND_ASSIGN.
471 (~link_hash_table_cleanup_data): Rename from
472 link_hash_table_free. Now a destructor.
473 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
475 2018-09-18 Tom Tromey <tom@tromey.com>
477 * compile/compile-object-run.c (do_module_cleanup): Use delete.
478 * compile/compile-object-load.c (struct munmap_list): Move to
480 (munmap_list::add): Rename from munmap_list_add; rewrite.
481 (munmap_list::~munmap_list): Rename from munmap_list_free.
482 (munmap_listp_free_cleanup): Remove.
483 (compile_object_load): Update.
484 * compile/compile-object-load.h (struct munmap_list): Move from
485 compile-object-load.c. Rewrite.
487 2018-09-18 Alan Hayward <alan.hayward@arm.com>
489 * aarch64-tdep.c (pass_in_v): Use register size.
490 (aarch64_extract_return_value): Likewise.
491 (aarch64_store_return_value): Likewise.
493 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
495 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
498 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
500 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
503 2018-09-17 Tom Tromey <tom@tromey.com>
506 * configure: Rebuild.
507 * configure.ac: Conditionally use -DNDEBUG for Python.
509 2018-09-17 Tom Tromey <tom@tromey.com>
511 * configure: Rebuild.
512 * configure.ac: Use gmp as a library dependency when checking for
515 2018-09-17 Pedro Alves <palves@redhat.com>
517 * python/py-inferior.c (find_inferior_object): Delete.
519 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
521 * compile/compile-cplus-types.c
522 (compile_cplus_instance::enter_scope): Don't use new_scope after
525 2018-09-17 Tom Tromey <tom@tromey.com>
527 * common/pathstuff.c (get_standard_cache_dir): Use
528 ~/Library/Caches on macOS.
529 * common/pathstuff.h (get_standard_cache_dir): Update comment.
531 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
534 * breakpoint.c (commands_cmd_element): New.
535 (_initialize_breakpoint): Assign commands_cmd_element.
536 * breakpoint.h (commands_cmd_element): New.
537 * cli/cli-script.c (while_cmd_element, if_command,
538 define_cmd_element): New.
539 (command_name_equals): Remove.
540 (process_next_line): Compare commands by pointer, not by name.
541 (_initialize_cli_script): Assign the various cmd_list_element
543 * compile/compile.c (compile_cmd_element): New.
544 (_initialize_compile): Assign compile_cmd_element.
545 * compile/compile.h (compile_cmd_element): New.
546 * guile/guile.c (guile_cmd_element): New.
547 (install_gdb_commands): Assign guile_cmd_element.
548 * guile/guile.h (guile_cmd_element): New.
549 * python/python.c (python_cmd_element): New.
550 (_initialize_python): Assign python_cmd_element.
551 * python/python.h (python_cmd_element): New.
552 * tracepoint.c (while_stepping_cmd_element): New.
553 (_initialize_tracepoint): Assign while_stepping_cmd_element.
554 * tracepoint.h (while_stepping_cmd_element): New.
556 2018-09-17 Tom Tromey <tom@tromey.com>
558 * infrun.c (save_infcall_suspend_state): Return
559 infcall_suspend_state_up.
560 (save_infcall_control_state): Return infcall_control_state_up.
561 * inferior.h (save_infcall_suspend_state)
562 (save_infcall_control_state): Declare later. Return unique
565 2018-09-17 Tom Tromey <tom@tromey.com>
567 * infrun.c (struct stop_context): Declare constructor,
568 destructor, "changed" method.
569 (stop_context::stop_context): Rename from save_stop_context.
570 (stop_context::~stop_context): Rename from
571 release_stop_context_cleanup.
572 (normal_stop): Update.
573 (stop_context::changed): Rename from stop_context_changed. Return
576 2018-09-17 Tom Tromey <tom@tromey.com>
578 * inferior.h (struct infcall_suspend_state_deleter): New.
579 (infcall_suspend_state_up): New typedef.
580 (struct infcall_control_state_deleter): New.
581 (infcall_control_state_up): New typedef.
582 (make_cleanup_restore_infcall_suspend_state)
583 (make_cleanup_restore_infcall_control_state): Don't declare.
584 * infcall.c (call_function_by_hand_dummy): Update.
585 * infrun.c (do_restore_infcall_suspend_state_cleanup)
586 (make_cleanup_restore_infcall_suspend_state): Remove.
587 (do_restore_infcall_control_state_cleanup)
588 (make_cleanup_restore_infcall_control_state): Remove.
590 2018-09-17 Tom Tromey <tom@tromey.com>
592 * gdbthread.h (struct thread_control_state): Add initializer.
593 (class thread_info) <control>: Remove initializer.
594 * inferior.h (struct inferior_control_state): Add initializer.
595 (class inferior) <control>: Remove initializer.
596 (exit_inferior_1): Update.
597 * infrun.c (struct infcall_control_state): Add constructors.
598 (save_infcall_control_state): Use new.
599 (restore_infcall_control_state, discard_infcall_control_state):
602 2018-09-17 Tom Tromey <tom@tromey.com>
604 * infrun.c (struct infcall_suspend_state) <registers>: Now a
606 <siginfo_data>: Now a unique_xmalloc_ptr.
607 (save_infcall_suspend_state, restore_infcall_suspend_state)
608 (discard_infcall_suspend_state)
609 (get_infcall_suspend_state_regcache): Update.
611 2018-09-17 Tom Tromey <tom@tromey.com>
613 * gdbthread.h (struct thread_suspend_state): Add initializers.
614 (class thread_info) <suspend>: Remove initializer.
615 * infrun.c (struct infcall_suspend_state): Add initializers.
616 (save_infcall_suspend_state): Use new.
617 (discard_infcall_suspend_state): Use delete.
619 2018-09-16 Tom Tromey <tom@tromey.com>
621 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
623 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
624 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
625 (py_varobj_iter_new): Likewise.
626 (py_varobj_get_iterator): Use gdbpy_ref.
628 2018-09-16 Tom Tromey <tom@tromey.com>
630 * python/py-threadevent.c (py_get_event_thread): Simplify.
631 * python/py-inferior.c (infpy_thread_from_thread_handle):
632 Return immediately after calling thread_to_thread_object. Use
634 (thread_to_thread_object): Set the exception on a NULL return.
636 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
638 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
640 2018-09-16 Tom Tromey <tom@tromey.com>
642 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
645 2018-09-16 Tom Tromey <tom@tromey.com>
647 * python/python-internal.h (thread_to_thread_object): Change
649 * python/py-inferior.c (thread_to_thread_object): Return a new
651 (infpy_thread_from_thread_handle): Update.
652 * python/py-infthread.c (gdbpy_selected_thread): Update.
653 * python/py-stopevent.c (create_stop_event_object): Update.
654 * python/py-threadevent.c (py_get_event_thread): Return a new
656 (py_get_event_thread): Update.
657 * python/py-event.h (py_get_event_thread): Change return type.
658 * python/py-continueevent.c (create_continue_event_object):
661 2018-09-16 Tom Tromey <tom@tromey.com>
663 * python/py-progspace.c (pspy_get_objfiles): Update.
664 * python/python-internal.h (objfile_to_objfile_object): Change
666 * python/py-newobjfileevent.c (create_new_objfile_event_object):
668 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
670 * python/python.c (gdbpy_get_current_objfile): Update.
671 (gdbpy_objfiles): Update.
672 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
674 (objfile_to_objfile_object): Return a new reference.
675 * python/py-symtab.c (stpy_get_objfile): Update.
676 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
679 2018-09-16 Tom Tromey <tom@tromey.com>
681 * python/py-inferior.c (infpy_get_progspace): Update.
682 * python/python-internal.h (pspace_to_pspace_object): Change
684 * python/py-newobjfileevent.c
685 (create_clear_objfiles_event_object): Update.
686 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
688 * python/python.c (gdbpy_get_current_progspace): Update.
689 (gdbpy_progspaces): Update.
690 * python/py-progspace.c (pspace_to_pspace_object): Return a new
692 * python/py-objfile.c (objfpy_get_progspace): Update.
693 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
696 2018-09-16 Tom Tromey <tom@tromey.com>
698 * python/lib/gdb/__init__.py (current_progspace, objfiles)
699 (solib_name, block_for_pc, find_pc_line): New functions.
700 (execute_unwinders): Update.
701 * python/py-block.c (gdbpy_block_for_pc): Remove.
702 * python/py-inferior.c (infpy_get_progspace): New function.
703 (inferior_object_getset) <progspace>: Add.
704 * python/py-progspace.c (pspy_objfiles): Rewrite.
705 (pspy_solib_name, pspy_block_for_pc)
706 (pspy_find_pc_line, pspy_is_valid): New functions.
707 (progspace_object_methods): Add entries for solib_name,
708 block_for_pc, find_pc_line, is_valid.
709 * python/python-internal.h (gdbpy_block_for_pc)
710 (build_objfiles_list): Don't declare.
711 * python/python.c: Don't include solib.h.
712 (gdbpy_solib_name, gdbpy_find_pc_line)
713 (gdbpy_get_current_progspace, build_objfiles_list)
714 (gdbpy_objfiles): Remove.
715 (GdbMethods) <current_progspace, objfiles, block_for_pc,
716 solib_name, find_pc_line>: Remove entries.
718 2018-09-16 Tom Tromey <tom@tromey.com>
720 * top.c (new_ui_command): Use GNU style for metasyntactic
722 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
724 * maint.c (maintenance_translate_address): Remove "<>" around
726 * interps.c (interpreter_exec_cmd): Use GNU style for
727 metasyntactic variables.
728 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
729 metasyntactic variables.
730 * tracepoint.c (tfind_range_command): Use GNU style for
731 metasyntactic variables.
732 (tfind_outside_command): Likewise.
733 (_initialize_tracepoint): Likewise.
734 * remote.c (extended_remote_target::create_inferior): Use GNU
735 style for metasyntactic variables.
736 * sparc64-tdep.c (adi_examine_command): Use GNU style for
737 metasyntactic variables.
738 (adi_assign_command): Likewise.
740 2018-09-16 Tom Tromey <tom@tromey.com>
742 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
743 metasyntactic variables. Print message if no disassembler options
746 2018-09-15 Tom Tromey <tom@tromey.com>
748 * infcmd.c (get_inferior_args): Return const char *.
749 * inferior.h (get_inferior_args): Return type now const.
750 * linux-tdep.c (linux_fill_prpsinfo): Update.
751 * procfs.c (procfs_target::make_corefile_notes): Update.
753 2018-09-07 Tom Tromey <tom@tromey.com>
755 * python/python.c (execute_gdb_command): Call bpstat_do_actions
758 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
760 * nios2-tdep.c (nios2_type_align): New.
761 (nios2_gdb_arch_init): Install type_align hook.
763 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
765 * eval.c (fake_method::fake_method): Call xzalloc directly for a
766 type that is neither object file owned, nor gdbarch owned.
767 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
769 (alloc_type_instance): Allocate non-objfile owned types on the
771 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
772 using TYPE_ALLOC to ensure memory is allocated on the correct
774 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
775 obstack, or the gdbarch obstack.
776 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
778 2018-09-14 Tom Tromey <tom@tromey.com>
780 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
783 2018-09-14 Tom Tromey <tom@tromey.com>
785 * nat/fork-inferior.c (get_startup_shell): Remove "static".
787 2018-09-13 Tom Tromey <tom@tromey.com>
789 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
792 2018-09-13 Tom Tromey <tom@tromey.com>
794 * exec.c (try_open_exec_file): Use std::string.
796 2018-09-13 Tom Tromey <tom@tromey.com>
798 * utils.h (gdb_bfd_errmsg): Return std::string.
799 * exec.c (exec_file_attach): Update.
800 * compile/compile-object-load.c (compile_object_load): Update.
801 * utils.c (gdb_bfd_errmsg): Return std::string.
803 2018-09-13 Tom Tromey <tom@tromey.com>
805 * procfs.c (struct procinfo_deleter): New.
806 (procinfo_up): New typedef.
807 (do_destroy_procinfo_cleanup): Remove.
808 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
810 2018-09-13 Tom Tromey <tom@tromey.com>
812 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
814 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
815 2018-09-13 Tom Tromey <tom@tromey.com>
817 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
818 (pspy_get_objfiles): New function.
819 (progspace_object_methods): New.
820 (pspace_object_type): Add tp_methods callback.
821 * python/python-internal.h (build_objfiles_list): New
823 * python/python.c (build_objfiles_list): New function.
824 (gdbpy_objfiles): Implement using build_objfiles_list.
825 * NEWS: Mention the Progspace.objfiles method.
827 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
829 * python/py-inferior.c (infpy_get_progspace): New function.
830 (inferior_object_getset): Add progspace property.
831 * NEWS: Mention the new property.
833 2018-09-13 Tom Tromey <tom@tromey.com>
836 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
838 2018-09-13 Tom Tromey <tom@tromey.com>
841 * rust-lang.c (rust_enum_variant): Now static.
842 (rust_empty_enum_p): New function.
843 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
846 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
848 * python/py-inferior.c (infpy_repr): New.
849 (inferior_object_type): Register infpy_repr.
850 * python/py-objfile.c (objfpy_repr): New.
851 (objfile_object_type): Register objfpy_repr.
853 2018-09-12 John Baldwin <jhb@FreeBSD.org>
855 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
857 2018-09-12 John Baldwin <jhb@FreeBSD.org>
859 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
862 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
864 * common/common-utils.c: Don't include '<sys/stat.h>'.
865 (is_regular_file): Move to...
866 * common/filestuff.c (is_regular_file): ... here.
867 * common/common-utils.h (is_regular_file): Move to...
868 * common/filestuff.h (is_regular_file): ... here.
870 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
872 * skip.c (debug_skip): New variable.
873 (skiplist_entry::do_skip_file_p): Add debug output.
874 (skiplist_entry::do_skip_gfile_p): Likewise.
875 (skiplist_entry::skip_function_p): Likewise.
876 (_initialize_step_skip): Create debug command.
877 * NEWS: Mention set/show debug skip.
879 2018-09-11 Xavier Roirand <roirand@adacore.com>
881 * darwin-nat.c (should_disable_startup_with_shell):
883 (darwin_nat_target::create_inferior): Add call.
885 2018-09-11 Xavier Roirand <roirand@adacore.com>
887 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
888 inf_port, msg_state>: Initialize.
889 (struct darwin_thread_info) <signaled, single_step>: Change
891 (struct darwin_thread_info) <event>: Initialize.
893 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
897 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
900 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
903 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
907 * gnulib/aclocal.m4: Regenerate.
908 * gnulib/config.in: Regenerate.
909 * gnulib/configure: Regenerate.
910 * gnulib/import/Makefile.am: Update.
911 * gnulib/import/Makefile.in: Update.
912 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
913 * gnulib/import/_Noreturn.h: ... this.
914 * gnulib/import/alloca.in.h: Update.
915 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
916 * gnulib/import/arg-nonnull.h: ... this.
917 * gnulib/import/assure.h: Update.
918 * gnulib/import/at-func.c: Update.
919 * gnulib/import/basename-lgpl.c: Update.
920 * gnulib/import/extra/snippet/c++defs.h: Rename to...
921 * gnulib/import/c++defs.h: ... this.
922 * gnulib/import/canonicalize-lgpl.c: Update.
923 * gnulib/import/cdefs.h: Update.
924 * gnulib/import/chdir-long.c: Update.
925 * gnulib/import/chdir-long.h: Update.
926 * gnulib/import/cloexec.c: Update.
927 * gnulib/import/cloexec.h: Update.
928 * gnulib/import/close.c: Update.
929 * gnulib/import/closedir.c: Update.
930 * gnulib/import/config.charset: Update.
931 * gnulib/import/dirent-private.h: Update.
932 * gnulib/import/dirent.in.h: Update.
933 * gnulib/import/dirfd.c: Update.
934 * gnulib/import/dirname-lgpl.c: Update.
935 * gnulib/import/dirname.h: Update.
936 * gnulib/import/dosname.h: Update.
937 * gnulib/import/dup-safer-flag.c: Update.
938 * gnulib/import/dup-safer.c: Update.
939 * gnulib/import/dup.c: Update.
940 * gnulib/import/dup2.c: Update.
941 * gnulib/import/errno.in.h: Update.
942 * gnulib/import/error.c: Update.
943 * gnulib/import/error.h: Update.
944 * gnulib/import/exitfail.c: Update.
945 * gnulib/import/exitfail.h: Update.
946 * gnulib/import/extra/update-copyright: Update.
947 * gnulib/import/fchdir.c: Update.
948 * gnulib/import/fcntl.c: Update.
949 * gnulib/import/fcntl.in.h: Update.
950 * gnulib/import/fd-hook.c: Update.
951 * gnulib/import/fd-hook.h: Update.
952 * gnulib/import/fd-safer-flag.c: Update.
953 * gnulib/import/fd-safer.c: Update.
954 * gnulib/import/fdopendir.c: Update.
955 * gnulib/import/filename.h: Update.
956 * gnulib/import/filenamecat-lgpl.c: Update.
957 * gnulib/import/filenamecat.h: Update.
958 * gnulib/import/flexmember.h: Update.
959 * gnulib/import/float+.h: Update.
960 * gnulib/import/float.c: Update.
961 * gnulib/import/float.in.h: Update.
962 * gnulib/import/fnmatch.c: Update.
963 * gnulib/import/fnmatch.in.h: Update.
964 * gnulib/import/fnmatch_loop.c: Update.
965 * gnulib/import/fpucw.h: Update.
966 * gnulib/import/frexp.c: Update.
967 * gnulib/import/frexpl.c: Update.
968 * gnulib/import/fstat.c: Update.
969 * gnulib/import/fstatat.c: Update.
970 * gnulib/import/getcwd-lgpl.c: Update.
971 * gnulib/import/getcwd.c: Update.
972 * gnulib/import/getdtablesize.c: Update.
973 * gnulib/import/getlogin_r.c: Update.
974 * gnulib/import/getprogname.c: Update.
975 * gnulib/import/getprogname.h: Update.
976 * gnulib/import/gettext.h: Update.
977 * gnulib/import/gettimeofday.c: Update.
978 * gnulib/import/glob-libc.h: Update.
979 * gnulib/import/glob.c: Update.
980 * gnulib/import/glob.in.h: Update.
981 * gnulib/import/glob_internal.h: Update.
982 * gnulib/import/glob_pattern_p.c: Update.
983 * gnulib/import/globfree.c: Update.
984 * gnulib/import/hard-locale.c: Update.
985 * gnulib/import/hard-locale.h: Update.
986 * gnulib/import/intprops.h: Update.
987 * gnulib/import/inttypes.in.h: Update.
988 * gnulib/import/isnan.c: Update.
989 * gnulib/import/isnand-nolibm.h: Update.
990 * gnulib/import/isnand.c: Update.
991 * gnulib/import/isnanl-nolibm.h: Update.
992 * gnulib/import/isnanl.c: Update.
993 * gnulib/import/itold.c: Update.
994 * gnulib/import/libc-config.h: Update.
995 * gnulib/import/limits.in.h: Update.
996 * gnulib/import/localcharset.c: Update.
997 * gnulib/import/localcharset.h: Update.
998 * gnulib/import/localtime-buffer.c: Update.
999 * gnulib/import/localtime-buffer.h: Update.
1000 * gnulib/import/lstat.c: Update.
1001 * gnulib/import/m4/00gnulib.m4: Update.
1002 * gnulib/import/m4/__inline.m4: Update.
1003 * gnulib/import/m4/absolute-header.m4: Update.
1004 * gnulib/import/m4/alloca.m4: Update.
1005 * gnulib/import/m4/builtin-expect.m4: Update.
1006 * gnulib/import/m4/canonicalize.m4: Update.
1007 * gnulib/import/m4/chdir-long.m4: Update.
1008 * gnulib/import/m4/close.m4: Update.
1009 * gnulib/import/m4/closedir.m4: Update.
1010 * gnulib/import/m4/configmake.m4: Update.
1011 * gnulib/import/m4/d-ino.m4: Update.
1012 * gnulib/import/m4/d-type.m4: Update.
1013 * gnulib/import/m4/dirent_h.m4: Update.
1014 * gnulib/import/m4/dirfd.m4: Update.
1015 * gnulib/import/m4/dirname.m4: Update.
1016 * gnulib/import/m4/double-slash-root.m4: Update.
1017 * gnulib/import/m4/dup.m4: Update.
1018 * gnulib/import/m4/dup2.m4: Update.
1019 * gnulib/import/m4/eealloc.m4: Update.
1020 * gnulib/import/m4/environ.m4: Update.
1021 * gnulib/import/m4/errno_h.m4: Update.
1022 * gnulib/import/m4/error.m4: Update.
1023 * gnulib/import/m4/exponentd.m4: Update.
1024 * gnulib/import/m4/exponentl.m4: Update.
1025 * gnulib/import/m4/extensions.m4: Update.
1026 * gnulib/import/m4/extern-inline.m4: Update.
1027 * gnulib/import/m4/fchdir.m4: Update.
1028 * gnulib/import/m4/fcntl-o.m4: Update.
1029 * gnulib/import/m4/fcntl.m4: Update.
1030 * gnulib/import/m4/fcntl_h.m4: Update.
1031 * gnulib/import/m4/fdopendir.m4: Update.
1032 * gnulib/import/m4/filenamecat.m4: Update.
1033 * gnulib/import/m4/flexmember.m4: Update.
1034 * gnulib/import/m4/float_h.m4: Update.
1035 * gnulib/import/m4/fnmatch.m4: Update.
1036 * gnulib/import/m4/fnmatch_h.m4: Update.
1037 * gnulib/import/m4/fpieee.m4: Update.
1038 * gnulib/import/m4/frexp.m4: Update.
1039 * gnulib/import/m4/frexpl.m4: Update.
1040 * gnulib/import/m4/fstat.m4: Update.
1041 * gnulib/import/m4/fstatat.m4: Update.
1042 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1043 * gnulib/import/m4/getcwd-path-max.m4: Update.
1044 * gnulib/import/m4/getcwd.m4: Update.
1045 * gnulib/import/m4/getdtablesize.m4: Update.
1046 * gnulib/import/m4/getlogin.m4: Update.
1047 * gnulib/import/m4/getlogin_r.m4: Update.
1048 * gnulib/import/m4/getpagesize.m4: Update.
1049 * gnulib/import/m4/getprogname.m4: Update.
1050 * gnulib/import/m4/gettimeofday.m4: Update.
1051 * gnulib/import/m4/glibc21.m4: Update.
1052 * gnulib/import/m4/glob.m4: Update.
1053 * gnulib/import/m4/glob_h.m4: Update.
1054 * gnulib/import/m4/gnulib-cache.m4: Update.
1055 * gnulib/import/m4/gnulib-common.m4: Update.
1056 * gnulib/import/m4/gnulib-comp.m4: Update.
1057 * gnulib/import/m4/gnulib-tool.m4: Update.
1058 * gnulib/import/m4/hard-locale.m4: Update.
1059 * gnulib/import/m4/include_next.m4: Update.
1060 * gnulib/import/m4/inttypes-pri.m4: Update.
1061 * gnulib/import/m4/inttypes.m4: Update.
1062 * gnulib/import/m4/isnand.m4: Update.
1063 * gnulib/import/m4/isnanl.m4: Update.
1064 * gnulib/import/m4/largefile.m4: Update.
1065 * gnulib/import/m4/limits-h.m4: Update.
1066 * gnulib/import/m4/localcharset.m4: Update.
1067 * gnulib/import/m4/locale-fr.m4: Update.
1068 * gnulib/import/m4/locale-ja.m4: Update.
1069 * gnulib/import/m4/locale-zh.m4: Update.
1070 * gnulib/import/m4/localtime-buffer.m4: Update.
1071 * gnulib/import/m4/longlong.m4: Update.
1072 * gnulib/import/m4/lstat.m4: Update.
1073 * gnulib/import/m4/malloc.m4: Update.
1074 * gnulib/import/m4/malloca.m4: Update.
1075 * gnulib/import/m4/math_h.m4: Update.
1076 * gnulib/import/m4/mbrtowc.m4: Update.
1077 * gnulib/import/m4/mbsinit.m4: Update.
1078 * gnulib/import/m4/mbsrtowcs.m4: Update.
1079 * gnulib/import/m4/mbstate_t.m4: Update.
1080 * gnulib/import/m4/memchr.m4: Update.
1081 * gnulib/import/m4/memmem.m4: Update.
1082 * gnulib/import/m4/mempcpy.m4: Update.
1083 * gnulib/import/m4/memrchr.m4: Update.
1084 * gnulib/import/m4/mkdir.m4: Update.
1085 * gnulib/import/m4/mkstemp.m4: Update.
1086 * gnulib/import/m4/mmap-anon.m4: Update.
1087 * gnulib/import/m4/mode_t.m4: Update.
1088 * gnulib/import/m4/msvc-inval.m4: Update.
1089 * gnulib/import/m4/msvc-nothrow.m4: Update.
1090 * gnulib/import/m4/multiarch.m4: Update.
1091 * gnulib/import/m4/nocrash.m4: Update.
1092 * gnulib/import/m4/off_t.m4: Update.
1093 * gnulib/import/m4/onceonly.m4: Update.
1094 * gnulib/import/m4/open-cloexec.m4: Update.
1095 * gnulib/import/m4/open.m4: Update.
1096 * gnulib/import/m4/openat.m4: Update.
1097 * gnulib/import/m4/opendir.m4: Update.
1098 * gnulib/import/m4/pathmax.m4: Update.
1099 * gnulib/import/m4/rawmemchr.m4: Update.
1100 * gnulib/import/m4/readdir.m4: Update.
1101 * gnulib/import/m4/readlink.m4: Update.
1102 * gnulib/import/m4/realloc.m4: Update.
1103 * gnulib/import/m4/rename.m4: Update.
1104 * gnulib/import/m4/rewinddir.m4: Update.
1105 * gnulib/import/m4/rmdir.m4: Update.
1106 * gnulib/import/m4/save-cwd.m4: Update.
1107 * gnulib/import/m4/secure_getenv.m4: Update.
1108 * gnulib/import/m4/setenv.m4: Update.
1109 * gnulib/import/m4/signal_h.m4: Update.
1110 * gnulib/import/m4/ssize_t.m4: Update.
1111 * gnulib/import/m4/stat-time.m4: Update.
1112 * gnulib/import/m4/stat.m4: Update.
1113 * gnulib/import/m4/std-gnu11.m4: Update.
1114 * gnulib/import/m4/stdbool.m4: Update.
1115 * gnulib/import/m4/stddef_h.m4: Update.
1116 * gnulib/import/m4/stdint.m4: Update.
1117 * gnulib/import/m4/stdio_h.m4: Update.
1118 * gnulib/import/m4/stdlib_h.m4: Update.
1119 * gnulib/import/m4/strchrnul.m4: Update.
1120 * gnulib/import/m4/strdup.m4: Update.
1121 * gnulib/import/m4/strerror.m4: Update.
1122 * gnulib/import/m4/string_h.m4: Update.
1123 * gnulib/import/m4/strstr.m4: Update.
1124 * gnulib/import/m4/strtok_r.m4: Update.
1125 * gnulib/import/m4/sys_socket_h.m4: Update.
1126 * gnulib/import/m4/sys_stat_h.m4: Update.
1127 * gnulib/import/m4/sys_time_h.m4: Update.
1128 * gnulib/import/m4/sys_types_h.m4: Update.
1129 * gnulib/import/m4/tempname.m4: Update.
1130 * gnulib/import/m4/time_h.m4: Update.
1131 * gnulib/import/m4/unistd-safer.m4: Update.
1132 * gnulib/import/m4/unistd_h.m4: Update.
1133 * gnulib/import/m4/warn-on-use.m4: Update.
1134 * gnulib/import/m4/wchar_h.m4: Update.
1135 * gnulib/import/m4/wchar_t.m4: Update.
1136 * gnulib/import/m4/wctype_h.m4: Update.
1137 * gnulib/import/m4/wint_t.m4: Update.
1138 * gnulib/import/malloc.c: Update.
1139 * gnulib/import/malloc/scratch_buffer.h: Update.
1140 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1141 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1142 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1143 * gnulib/import/malloca.c: Update.
1144 * gnulib/import/malloca.h: Update.
1145 * gnulib/import/malloca.valgrind: Update.
1146 * gnulib/import/math.in.h: Update.
1147 * gnulib/import/mbrtowc.c: Update.
1148 * gnulib/import/mbsinit.c: Update.
1149 * gnulib/import/mbsrtowcs-impl.h: Update.
1150 * gnulib/import/mbsrtowcs-state.c: Update.
1151 * gnulib/import/mbsrtowcs.c: Update.
1152 * gnulib/import/memchr.c: Update.
1153 * gnulib/import/memmem.c: Update.
1154 * gnulib/import/mempcpy.c: Update.
1155 * gnulib/import/memrchr.c: Update.
1156 * gnulib/import/mkdir.c: Update.
1157 * gnulib/import/mkstemp.c: Update.
1158 * gnulib/import/msvc-inval.c: Update.
1159 * gnulib/import/msvc-inval.h: Update.
1160 * gnulib/import/msvc-nothrow.c: Update.
1161 * gnulib/import/msvc-nothrow.h: Update.
1162 * gnulib/import/open.c: Update.
1163 * gnulib/import/openat-die.c: Update.
1164 * gnulib/import/openat-priv.h: Update.
1165 * gnulib/import/openat-proc.c: Update.
1166 * gnulib/import/openat.c: Update.
1167 * gnulib/import/openat.h: Update.
1168 * gnulib/import/opendir.c: Update.
1169 * gnulib/import/pathmax.h: Update.
1170 * gnulib/import/pipe-safer.c: Update.
1171 * gnulib/import/rawmemchr.c: Update.
1172 * gnulib/import/readdir.c: Update.
1173 * gnulib/import/readlink.c: Update.
1174 * gnulib/import/realloc.c: Update.
1175 * gnulib/import/ref-add.sin: Update.
1176 * gnulib/import/ref-del.sin: Update.
1177 * gnulib/import/rename.c: Update.
1178 * gnulib/import/rewinddir.c: Update.
1179 * gnulib/import/rmdir.c: Update.
1180 * gnulib/import/same-inode.h: Update.
1181 * gnulib/import/save-cwd.c: Update.
1182 * gnulib/import/save-cwd.h: Update.
1183 * gnulib/import/scratch_buffer.h: Update.
1184 * gnulib/import/secure_getenv.c: Update.
1185 * gnulib/import/setenv.c: Update.
1186 * gnulib/import/signal.in.h: Update.
1187 * gnulib/import/stat-time.c: Update.
1188 * gnulib/import/stat-time.h: Update.
1189 * gnulib/import/stat-w32.c: Update.
1190 * gnulib/import/stat-w32.h: Update.
1191 * gnulib/import/stat.c: Update.
1192 * gnulib/import/stdbool.in.h: Update.
1193 * gnulib/import/stddef.in.h: Update.
1194 * gnulib/import/stdint.in.h: Update.
1195 * gnulib/import/stdio.in.h: Update.
1196 * gnulib/import/stdlib.in.h: Update.
1197 * gnulib/import/str-two-way.h: Update.
1198 * gnulib/import/strchrnul.c: Update.
1199 * gnulib/import/strdup.c: Update.
1200 * gnulib/import/streq.h: Update.
1201 * gnulib/import/strerror-override.c: Update.
1202 * gnulib/import/strerror-override.h: Update.
1203 * gnulib/import/strerror.c: Update.
1204 * gnulib/import/string.in.h: Update.
1205 * gnulib/import/stripslash.c: Update.
1206 * gnulib/import/strnlen1.c: Update.
1207 * gnulib/import/strnlen1.h: Update.
1208 * gnulib/import/strstr.c: Update.
1209 * gnulib/import/strtok_r.c: Update.
1210 * gnulib/import/sys_stat.in.h: Update.
1211 * gnulib/import/sys_time.in.h: Update.
1212 * gnulib/import/sys_types.in.h: Update.
1213 * gnulib/import/tempname.c: Update.
1214 * gnulib/import/tempname.h: Update.
1215 * gnulib/import/time.in.h: Update.
1216 * gnulib/import/unistd--.h: Update.
1217 * gnulib/import/unistd-safer.h: Update.
1218 * gnulib/import/unistd.in.h: Update.
1219 * gnulib/import/unsetenv.c: Update.
1220 * gnulib/import/verify.h: Update.
1221 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1222 * gnulib/import/wchar.in.h: Update.
1223 * gnulib/import/wctype.in.h: Update.
1224 * gnulib/import/xalloc-oversized.h: Update.
1225 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1226 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1228 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1230 * record-btrace.c (get_thread_current_frame): Remove
1233 2018-09-10 Jerome Guitton <guitton@adacore.com>
1235 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1236 with check_tag to 1 if and only if the type is tagged and the
1237 component being searched cannot been found in the current
1238 view. Otherwise, always call ada_to_fixed_type with
1241 2018-09-10 Xavier Roirand <roirand@adacore.com>
1243 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1245 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1246 * ada-varobj.c (ada_varobj_get_number_of_children,
1247 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1249 2018-09-10 Xavier Roirand <roirand@adacore.com>
1251 * ada-valprint.c (ada_value_print): Use type instead of
1254 2018-09-10 Xavier Roirand <roirand@adacore.com>
1256 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1257 an array of access to unconstrained array.
1259 2018-09-10 Xavier Roirand <roirand@adacore.com>
1261 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1262 (ada_check_typedef): Use it.
1264 2018-09-10 Xavier Roirand <roirand@adacore.com>
1266 * ada-varobj.c (ada_varobj_describe_struct_child)
1267 (ada_varobj_describe_child): Handle union case like struct one.
1269 2018-09-10 Tom Tromey <tom@tromey.com>
1272 * python/python.c (_initialize_python): Make example in "python"
1273 help work in Python 3.
1275 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1277 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1278 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1279 $(EXEEXT) to the script, as it is not a program.
1281 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1283 * python/py-prettyprint.c (pretty_print_one_value): Return
1285 (print_string_repr): Adjust.
1286 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1287 * python/python-internal.h (apply_varobj_pretty_printer): Return
1289 * varobj.c (varobj_value_get_print_value): Adjust.
1291 2018-09-08 Tom Tromey <tom@tromey.com>
1294 * python/py-prettyprint.c (pretty_print_one_value): Check for
1297 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1299 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1300 replace_operator_with_call.
1302 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1304 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1306 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1308 * ada-typeprint.c (print_range): Print the bounds using TYPE
1309 rather than its TYPE_TARGET_TYPE.
1311 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1313 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1314 call to ada_to_fixed_value_create.
1316 2018-09-08 Jerome Guitton <guitton@adacore.com>
1318 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1320 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1322 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1325 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1327 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1328 Move update of loop variable "fi".
1330 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1332 * ada-lang.c (value_assign_to_component): In the case of
1333 big-endian targets, extract the bits of the given VAL
1334 using an src_offset of zero if container is not a scalar.
1336 2018-09-06 Simon Ser <contact@emersion.fr>
1339 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1340 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1341 * fbsd-tdep.c (fbsd_make_note_desc): New.
1342 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1343 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1344 * target.h (enum target_object) Add FreeBSD-specific
1345 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1347 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1349 * compile/compile-c.h (generate_c_for_variable_locations):
1350 Change reference to pointer.
1351 * compile/compile-c-support.c (compile_program) <compute>:
1353 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1354 (generate_c_for_for_one_variable): Likewise
1355 (generate_c_for_variable_locations): Likewise
1356 * compile/compile-c-types.c (compile_c_instance::convert_type):
1358 * compile/compile-cplus-symbols.c (convert_one_symbol):
1359 std::move the scope passed to enter_scope.
1360 * compile/compile-cplus-types.c
1361 (compile_cplus_instance::enter_scope): Make parameter
1363 (compile_cplus_instance::new_scope): Change reference to
1365 (compile_cplus_instance::convert_type): Likewise
1366 (compile_cplus_convert_typedef): std::move the scope passed to
1368 (compile_cplus_convert_struct_or_union): Likewise.
1369 (compile_cplus_convert_enum): Likewise.
1370 (compile_cplus_convert_namespace): Likewise.
1371 * compile/compile-cplus.h (compile_cplus_instance)
1372 <enter_scope>: Make parameter rvalue-reference.
1373 * compile/compile-internal.h (compile_instance)
1374 <get_cached_type>: Likewise
1375 * compile/compile-loc2c.c (push): Likewise
1379 (print_label): Likewise
1380 (pushf_register_address): Likewise
1381 (pushf_register): Likewise
1382 (do_compile_dwarf_expr_to_c): Likewise
1383 (compile_dwarf_expr_to_c): Likewise
1384 (compile_dwarf_bounds_to_c): Likewise
1385 * compile/compile.c (compile_instance::get_cached_type):
1387 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1388 (compile_dwarf_bounds_to_c): Likewise
1389 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1390 (dwarf2_compile_property_to_c): Likewise
1391 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1392 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1395 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1397 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1398 * tui/tui-data.c (init_content_element): Don't initialize it.
1400 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1402 * tui/tui-data.h (struct tui_win_info)
1403 <detail::opaque>: Remove.
1404 * tui/tui-data.c (init_win_info): Remove assignment.
1406 2018-09-05 Tom Tromey <tom@tromey.com>
1408 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1409 -Wformat-nonliteral.
1410 * target-float.c (host_float_ops<T>::to_string)
1411 (host_float_ops<T>::from_string): Use
1412 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1413 * configure: Rebuild.
1415 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1417 * printcmd.c (printf_c_string): Use
1418 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1419 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1421 2018-09-05 Tom Tromey <tom@tromey.com>
1423 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1425 2018-09-05 Tom de Vries <tdevries@suse.de>
1427 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1428 with resolve_abstract_p == true.
1429 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1430 defaulting to false. Propagate resolve_abstract_p to
1431 dwarf2_fetch_die_loc_sect_off.
1432 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1433 parameter, defaulting to false.
1434 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1435 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1437 * dwarf2read.h (struct die_info): Forward-declare.
1438 (die_info_ptr): New typedef.
1439 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1441 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1445 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1446 Pedro Alves <palves@redhat.com>
1448 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1449 "aclocal-m4-deps.mk". Include file here.
1450 $(srcdir)/aclocal.m4: Add "configure.ac".
1451 * gnulib/aclocal-m4-deps.mk: New file.
1452 * gnulib/update-gnulib.sh: Automatically update
1453 "aclocal-m4-deps.mk".
1455 2018-09-04 Tom Tromey <tom@tromey.com>
1457 * configure: Rebuild.
1458 * configure.ac: Remove multi-ice code.
1460 2018-09-04 Tom Tromey <tom@tromey.com>
1462 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1463 (ada-exp.o): Update.
1465 2018-09-04 Tom Tromey <tom@tromey.com>
1467 * Makefile.in (printcmd.o, target-float.o): Remove.
1468 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1470 2018-09-04 Tom Tromey <tom@tromey.com>
1472 * gnulib/Makefile.in: Remove obsolete comment.
1473 * Makefile.in: Remove obsolete comment.
1475 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1477 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1480 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1482 * riscv-tdep.c: Add 'prologue-value.h' include.
1483 (struct riscv_unwind_cache): New struct.
1484 (riscv_debug_unwinder): New global.
1485 (riscv_scan_prologue): Update arguments, capture register details
1487 (riscv_skip_prologue): Reformat arguments line, move end of
1488 prologue calculation into riscv_scan_prologue.
1489 (riscv_frame_cache): Update return type, create
1490 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1492 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1493 (riscv_frame_prev_register): Use the trad_frame within the
1495 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1498 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1500 * trad-frame.h (trad_frame_set_realreg): Declare.
1501 (trad_frame_set_addr): Declare.
1502 * trad-frame.c (trad_frame_set_realreg): Define new function.
1503 (trad_frame_set_addr): Define new function.
1504 (trad_frame_set_reg_realreg): Use new function.
1505 (trad_frame_set_reg_addr): Use new function.
1507 2018-09-01 Keith Seitz <keiths@redhat.com>
1509 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1510 pulongest instead of "%lld".
1511 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1514 2018-08-31 Tom Tromey <tom@tromey.com>
1516 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1519 2018-08-31 Pedro Alves <palves@redhat.com>
1521 * gdbarch.h: Regenerate.
1523 2018-08-31 Pedro Alves <palves@redhat.com>
1525 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1526 * target.h (Hardware watchpoint interfaces): Describe
1527 continuable/steppable/non-steppable watchpoints.
1528 * gdbarch.h, gdbarch.c: Regenerate.
1530 2018-08-31 Pedro Alves <palves@redhat.com>
1532 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1535 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1536 * target.h (target_ops::have_continuable_watchpoint): Delete.
1537 (target_have_continuable_watchpoint): Delete.
1538 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1539 * target-delegates.c: Regenerate.
1541 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1543 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1544 the files present in "gnulib/import/m4/".
1546 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1548 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1549 c.sw, c.swsp, and c.sdsp.
1551 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1553 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1554 (riscv_read_misa_reg): Don't cache value read into inferior data.
1555 (riscv_new_inferior_data): Delete.
1556 (riscv_inferior_data_cleanup): Delete.
1557 (riscv_inferior_data): Delete.
1558 (riscv_invalidate_inferior_data): Delete.
1559 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1561 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1563 * compile/compile-cplus-types.c
1564 (compile_cplus_instance::leave_scope): Take the address of scope
1566 (compile_cplus_instance::convert_qualified_base): Compare quals
1569 2018-08-30 Keith Seitz <keiths@redhat.com>
1571 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1572 Use "%s" and host_address_to_string instead of "%p" in printf.
1574 2018-08-29 Keith Seitz <keiths@redhat.com>
1576 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1577 and compile-cplus-types.c.
1578 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1579 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1580 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1582 * compile/compile-c-support.c: Include compile-cplus.h.
1583 (load_libcompile): Templatize.
1584 (get_compile_context): "New" function.
1585 (c_get_compile_context): Use get_compile_context.
1586 (cplus_get_compile_context): New function.
1587 (cplus_push_user_expression, cplus_pop_user_expression)
1588 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1589 (cplus_compute_program): Define new structs/functions.
1590 * compile/compile-cplus-symmbols.c: New file.
1591 * compile/compile-cplus-types.c: New file.
1592 * compile/compile-cplus.h: New file.
1593 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1595 * compile/compile-object-load.c (get_out_value_type): Use
1596 strncmp_iw when comparing symbol names.
1597 (compile_object_load): Add mst_bss and mst_data.
1598 * compile/compile.c (_initialize_compile): Remove
1599 -Wno-implicit-function-declaration from `compile_args'.
1600 * compile/gcc-cp-plugin.h: New file.
1601 * NEWS: Mention C++ compile support and new debug options.
1603 2018-08-29 Keith Seitz <keiths@redhat.com>
1605 * linespec.c (collect_info::add_symbol): Make virtual.
1606 (struct symbol_searcher_collect_info): New struct.
1607 (symbol_searcher::find_all_symbols): New method.
1608 * symtab.h (class symbol_searcher): New class.
1610 2018-08-29 Keith Seitz <keiths@redhat.com>
1612 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1613 Change to vector of block_symbol. Update all users.
1614 (struct collect_info) <symbols>: Likewise.
1615 (collect_info::add_symbol): Take block_symbol as argument.
1617 (decode_compound_collector) <m_symbols>: Change type to vector
1618 of block_symbol. Update all users.
1619 (decode_compound_collector::operator ()): Change parameter type
1621 (find_method, find_function_symbols, find_linespec_symbols)
1622 (find_label_symbols_in_block, find_label_symbols): Change symbol
1623 vectors to block_symbol vectors.
1624 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1627 2018-08-29 Keith Seitz <keiths@redhat.com>
1629 * linespec.c (symbolp): Remove typedef and VEC definitions.
1630 (bound_minimal_symbol_d): Likewise.
1632 2018-08-29 Keith Seitz <keiths@redhat.com>
1634 * linespec.c (decode_compound_collector::decode_compound_collector):
1635 Remove initialization for `m_symtabs'.
1636 (decode_compound_collector::release_symbols): Change return type
1637 to std::vector. Update all callers.
1638 (class decode_compound_collector) <m_symbols>: Change type to
1640 (lookup_prefix_sym): Change return type to std::vector. Update all
1642 (compare_symbols): Remove.
1643 (std_compare_symbols): Rename to `compare_symbols'.
1644 (find_method): Change `sym_classes' parameter to std::vector.
1645 Update all callers. Use std::sort to sort sym_classes.
1646 (find_linespec_symbols): Remove cleanup.
1648 2018-08-29 Keith Seitz <keiths@redhat.com>
1650 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1651 std::vector. Update all users.
1652 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1653 (struct collect_info) <minimal_symbols>: Likewise.
1654 (compare_msymbols): Return bool. Change parameters to const
1655 bound_minimal_symbol references.
1656 (find_method, find_function_symbols, find_linespec_symbols): Change
1657 `minsyms' parameter to std::vector. Update all callers.
1659 2018-08-29 Keith Seitz <keiths@redhat.com>
1661 * linespec.c (struct linespec) <label_symbols>: Change type to
1662 std::vector. Update all users.
1663 (find_label_symbols_in_block): Change `result' parameter to
1664 std::vector. Update all callers.
1665 (find_label_symbols): Return std::vector. Update all callers.
1667 2018-08-29 Keith Seitz <keiths@redhat.com>
1669 * linespec.c (struct linespec) <function_symbols>: Change type to
1670 std::vector. Update all users.
1671 (struct collect_info) <function_symbols>: Likewise.
1672 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1673 (std_compare_symbols): New function.
1674 (find_method, find_function_symbols, find_linespec_symbols)
1675 (find_label_symbols_in_block): Change `symbols' parameter to
1676 std::vector. Update all callers.
1677 (find_label_symbols): Likewise for `function_symbols' and
1680 2018-08-29 Keith Seitz <keiths@redhat.com>
1682 * linespec.c (symtab_vector_up): Define.
1683 (struct linespec) <file_symtabs>: Change type to std::vector *.
1685 (struct collect_info) <file_symtabs>: Likewise.
1686 (collect_symtabs_from_filename): Return symtab_vector_up.
1688 (decode_objc): Remove cleanup.
1689 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1690 (symtab_collector::release_symtabs): Return symtab_vector_up.
1692 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1694 (collect_symtabs_from_filename, symtabs_from_filename): Return
1695 symtab_vector_up. Update all callers.
1697 2018-08-29 Tom Tromey <tom@tromey.com>
1699 * csky-tdep.c (csky_analyze_prologue): Use
1700 core_addr_to_string_nz.
1702 2018-08-29 Tom Tromey <tom@tromey.com>
1704 * windows-nat.c (struct xlate_exception) <them>: Change type to
1706 (xlate): Fix formatting. Remove last entry.
1707 (struct xlate_exception, xlate): Comment out.
1708 (windows_nat_target::resume): Use ranged for.
1710 2018-08-29 Jim Wilson <jimw@sifive.com>
1712 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1713 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1715 (riscv_linux_nat_target::store_registers): Likewise.
1717 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1721 * gnulib/aclocal.m4: Regenerate.
1722 * gnulib/config.in: Regenerate.
1723 * gnulib/configure: Regenerate.
1724 * gnulib/import/Makefile.am: Update.
1725 * gnulib/import/Makefile.in: Update.
1726 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1727 * gnulib/import/_Noreturn.h: ... this.
1728 * gnulib/import/alloca.in.h: Update.
1729 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1730 * gnulib/import/arg-nonnull.h: ... this.
1731 * gnulib/import/assure.h: Update.
1732 * gnulib/import/at-func.c: Update.
1733 * gnulib/import/basename-lgpl.c: Update.
1734 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1735 * gnulib/import/c++defs.h: ... this.
1736 * gnulib/import/canonicalize-lgpl.c: Update.
1737 * gnulib/import/cdefs.h: Update.
1738 * gnulib/import/chdir-long.c: Update.
1739 * gnulib/import/chdir-long.h: Update.
1740 * gnulib/import/cloexec.c: Update.
1741 * gnulib/import/cloexec.h: Update.
1742 * gnulib/import/close.c: Update.
1743 * gnulib/import/closedir.c: Update.
1744 * gnulib/import/config.charset: Update.
1745 * gnulib/import/dirent-private.h: Update.
1746 * gnulib/import/dirent.in.h: Update.
1747 * gnulib/import/dirfd.c: Update.
1748 * gnulib/import/dirname-lgpl.c: Update.
1749 * gnulib/import/dirname.h: Update.
1750 * gnulib/import/dosname.h: Update.
1751 * gnulib/import/dup-safer-flag.c: Update.
1752 * gnulib/import/dup-safer.c: Update.
1753 * gnulib/import/dup.c: Update.
1754 * gnulib/import/dup2.c: Update.
1755 * gnulib/import/errno.in.h: Update.
1756 * gnulib/import/error.c: Update.
1757 * gnulib/import/error.h: Update.
1758 * gnulib/import/exitfail.c: Update.
1759 * gnulib/import/exitfail.h: Update.
1760 * gnulib/import/extra/update-copyright: Update.
1761 * gnulib/import/fchdir.c: Update.
1762 * gnulib/import/fcntl.c: Update.
1763 * gnulib/import/fcntl.in.h: Update.
1764 * gnulib/import/fd-hook.c: Update.
1765 * gnulib/import/fd-hook.h: Update.
1766 * gnulib/import/fd-safer-flag.c: Update.
1767 * gnulib/import/fd-safer.c: Update.
1768 * gnulib/import/fdopendir.c: Update.
1769 * gnulib/import/filename.h: Update.
1770 * gnulib/import/filenamecat-lgpl.c: Update.
1771 * gnulib/import/filenamecat.h: Update.
1772 * gnulib/import/flexmember.h: Update.
1773 * gnulib/import/float+.h: Update.
1774 * gnulib/import/float.c: Update.
1775 * gnulib/import/float.in.h: Update.
1776 * gnulib/import/fnmatch.c: Update.
1777 * gnulib/import/fnmatch.in.h: Update.
1778 * gnulib/import/fnmatch_loop.c: Update.
1779 * gnulib/import/fpucw.h: Update.
1780 * gnulib/import/frexp.c: Update.
1781 * gnulib/import/frexpl.c: Update.
1782 * gnulib/import/fstat.c: Update.
1783 * gnulib/import/fstatat.c: Update.
1784 * gnulib/import/getcwd-lgpl.c: Update.
1785 * gnulib/import/getcwd.c: Update.
1786 * gnulib/import/getdtablesize.c: Update.
1787 * gnulib/import/getlogin_r.c: Update.
1788 * gnulib/import/getprogname.c: Update.
1789 * gnulib/import/getprogname.h: Update.
1790 * gnulib/import/gettext.h: Update.
1791 * gnulib/import/gettimeofday.c: Update.
1792 * gnulib/import/glob-libc.h: Update.
1793 * gnulib/import/glob.c: Update.
1794 * gnulib/import/glob.in.h: Update.
1795 * gnulib/import/glob_internal.h: Update.
1796 * gnulib/import/glob_pattern_p.c: Update.
1797 * gnulib/import/globfree.c: Update.
1798 * gnulib/import/hard-locale.c: Update.
1799 * gnulib/import/hard-locale.h: Update.
1800 * gnulib/import/intprops.h: Update.
1801 * gnulib/import/inttypes.in.h: Update.
1802 * gnulib/import/isnan.c: Update.
1803 * gnulib/import/isnand-nolibm.h: Update.
1804 * gnulib/import/isnand.c: Update.
1805 * gnulib/import/isnanl-nolibm.h: Update.
1806 * gnulib/import/isnanl.c: Update.
1807 * gnulib/import/itold.c: Update.
1808 * gnulib/import/libc-config.h: Update.
1809 * gnulib/import/limits.in.h: Update.
1810 * gnulib/import/localcharset.c: Update.
1811 * gnulib/import/localcharset.h: Update.
1812 * gnulib/import/localtime-buffer.c: Update.
1813 * gnulib/import/localtime-buffer.h: Update.
1814 * gnulib/import/lstat.c: Update.
1815 * gnulib/import/m4/00gnulib.m4: Update.
1816 * gnulib/import/m4/__inline.m4: Update.
1817 * gnulib/import/m4/absolute-header.m4: Update.
1818 * gnulib/import/m4/alloca.m4: Update.
1819 * gnulib/import/m4/builtin-expect.m4: Update.
1820 * gnulib/import/m4/canonicalize.m4: Update.
1821 * gnulib/import/m4/chdir-long.m4: Update.
1822 * gnulib/import/m4/close.m4: Update.
1823 * gnulib/import/m4/closedir.m4: Update.
1824 * gnulib/import/m4/configmake.m4: Update.
1825 * gnulib/import/m4/d-ino.m4: Update.
1826 * gnulib/import/m4/d-type.m4: Update.
1827 * gnulib/import/m4/dirent_h.m4: Update.
1828 * gnulib/import/m4/dirfd.m4: Update.
1829 * gnulib/import/m4/dirname.m4: Update.
1830 * gnulib/import/m4/double-slash-root.m4: Update.
1831 * gnulib/import/m4/dup.m4: Update.
1832 * gnulib/import/m4/dup2.m4: Update.
1833 * gnulib/import/m4/eealloc.m4: Update.
1834 * gnulib/import/m4/environ.m4: Update.
1835 * gnulib/import/m4/errno_h.m4: Update.
1836 * gnulib/import/m4/error.m4: Update.
1837 * gnulib/import/m4/exponentd.m4: Update.
1838 * gnulib/import/m4/exponentl.m4: Update.
1839 * gnulib/import/m4/extensions.m4: Update.
1840 * gnulib/import/m4/extern-inline.m4: Update.
1841 * gnulib/import/m4/fchdir.m4: Update.
1842 * gnulib/import/m4/fcntl-o.m4: Update.
1843 * gnulib/import/m4/fcntl.m4: Update.
1844 * gnulib/import/m4/fcntl_h.m4: Update.
1845 * gnulib/import/m4/fdopendir.m4: Update.
1846 * gnulib/import/m4/filenamecat.m4: Update.
1847 * gnulib/import/m4/flexmember.m4: Update.
1848 * gnulib/import/m4/float_h.m4: Update.
1849 * gnulib/import/m4/fnmatch.m4: Update.
1850 * gnulib/import/m4/fnmatch_h.m4: Update.
1851 * gnulib/import/m4/fpieee.m4: Update.
1852 * gnulib/import/m4/frexp.m4: Update.
1853 * gnulib/import/m4/frexpl.m4: Update.
1854 * gnulib/import/m4/fstat.m4: Update.
1855 * gnulib/import/m4/fstatat.m4: Update.
1856 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1857 * gnulib/import/m4/getcwd-path-max.m4: Update.
1858 * gnulib/import/m4/getcwd.m4: Update.
1859 * gnulib/import/m4/getdtablesize.m4: Update.
1860 * gnulib/import/m4/getlogin.m4: Update.
1861 * gnulib/import/m4/getlogin_r.m4: Update.
1862 * gnulib/import/m4/getpagesize.m4: Update.
1863 * gnulib/import/m4/getprogname.m4: Update.
1864 * gnulib/import/m4/gettimeofday.m4: Update.
1865 * gnulib/import/m4/glibc21.m4: Update.
1866 * gnulib/import/m4/glob.m4: Update.
1867 * gnulib/import/m4/glob_h.m4: Update.
1868 * gnulib/import/m4/gnulib-cache.m4: Update.
1869 * gnulib/import/m4/gnulib-common.m4: Update.
1870 * gnulib/import/m4/gnulib-comp.m4: Update.
1871 * gnulib/import/m4/gnulib-tool.m4: Update.
1872 * gnulib/import/m4/hard-locale.m4: Update.
1873 * gnulib/import/m4/include_next.m4: Update.
1874 * gnulib/import/m4/inttypes-pri.m4: Update.
1875 * gnulib/import/m4/inttypes.m4: Update.
1876 * gnulib/import/m4/isnand.m4: Update.
1877 * gnulib/import/m4/isnanl.m4: Update.
1878 * gnulib/import/m4/largefile.m4: Update.
1879 * gnulib/import/m4/limits-h.m4: Update.
1880 * gnulib/import/m4/localcharset.m4: Update.
1881 * gnulib/import/m4/locale-fr.m4: Update.
1882 * gnulib/import/m4/locale-ja.m4: Update.
1883 * gnulib/import/m4/locale-zh.m4: Update.
1884 * gnulib/import/m4/localtime-buffer.m4: Update.
1885 * gnulib/import/m4/longlong.m4: Update.
1886 * gnulib/import/m4/lstat.m4: Update.
1887 * gnulib/import/m4/malloc.m4: Update.
1888 * gnulib/import/m4/malloca.m4: Update.
1889 * gnulib/import/m4/math_h.m4: Update.
1890 * gnulib/import/m4/mbrtowc.m4: Update.
1891 * gnulib/import/m4/mbsinit.m4: Update.
1892 * gnulib/import/m4/mbsrtowcs.m4: Update.
1893 * gnulib/import/m4/mbstate_t.m4: Update.
1894 * gnulib/import/m4/memchr.m4: Update.
1895 * gnulib/import/m4/memmem.m4: Update.
1896 * gnulib/import/m4/mempcpy.m4: Update.
1897 * gnulib/import/m4/memrchr.m4: Update.
1898 * gnulib/import/m4/mkdir.m4: Update.
1899 * gnulib/import/m4/mkstemp.m4: Update.
1900 * gnulib/import/m4/mmap-anon.m4: Update.
1901 * gnulib/import/m4/mode_t.m4: Update.
1902 * gnulib/import/m4/msvc-inval.m4: Update.
1903 * gnulib/import/m4/msvc-nothrow.m4: Update.
1904 * gnulib/import/m4/multiarch.m4: Update.
1905 * gnulib/import/m4/nocrash.m4: Update.
1906 * gnulib/import/m4/off_t.m4: Update.
1907 * gnulib/import/m4/onceonly.m4: Update.
1908 * gnulib/import/m4/open-cloexec.m4: Update.
1909 * gnulib/import/m4/open.m4: Update.
1910 * gnulib/import/m4/openat.m4: Update.
1911 * gnulib/import/m4/opendir.m4: Update.
1912 * gnulib/import/m4/pathmax.m4: Update.
1913 * gnulib/import/m4/rawmemchr.m4: Update.
1914 * gnulib/import/m4/readdir.m4: Update.
1915 * gnulib/import/m4/readlink.m4: Update.
1916 * gnulib/import/m4/realloc.m4: Update.
1917 * gnulib/import/m4/rename.m4: Update.
1918 * gnulib/import/m4/rewinddir.m4: Update.
1919 * gnulib/import/m4/rmdir.m4: Update.
1920 * gnulib/import/m4/save-cwd.m4: Update.
1921 * gnulib/import/m4/secure_getenv.m4: Update.
1922 * gnulib/import/m4/setenv.m4: Update.
1923 * gnulib/import/m4/signal_h.m4: Update.
1924 * gnulib/import/m4/ssize_t.m4: Update.
1925 * gnulib/import/m4/stat-time.m4: Update.
1926 * gnulib/import/m4/stat.m4: Update.
1927 * gnulib/import/m4/std-gnu11.m4: Update.
1928 * gnulib/import/m4/stdbool.m4: Update.
1929 * gnulib/import/m4/stddef_h.m4: Update.
1930 * gnulib/import/m4/stdint.m4: Update.
1931 * gnulib/import/m4/stdio_h.m4: Update.
1932 * gnulib/import/m4/stdlib_h.m4: Update.
1933 * gnulib/import/m4/strchrnul.m4: Update.
1934 * gnulib/import/m4/strdup.m4: Update.
1935 * gnulib/import/m4/strerror.m4: Update.
1936 * gnulib/import/m4/string_h.m4: Update.
1937 * gnulib/import/m4/strstr.m4: Update.
1938 * gnulib/import/m4/strtok_r.m4: Update.
1939 * gnulib/import/m4/sys_socket_h.m4: Update.
1940 * gnulib/import/m4/sys_stat_h.m4: Update.
1941 * gnulib/import/m4/sys_time_h.m4: Update.
1942 * gnulib/import/m4/sys_types_h.m4: Update.
1943 * gnulib/import/m4/tempname.m4: Update.
1944 * gnulib/import/m4/time_h.m4: Update.
1945 * gnulib/import/m4/unistd-safer.m4: Update.
1946 * gnulib/import/m4/unistd_h.m4: Update.
1947 * gnulib/import/m4/warn-on-use.m4: Update.
1948 * gnulib/import/m4/wchar_h.m4: Update.
1949 * gnulib/import/m4/wchar_t.m4: Update.
1950 * gnulib/import/m4/wctype_h.m4: Update.
1951 * gnulib/import/m4/wint_t.m4: Update.
1952 * gnulib/import/malloc.c: Update.
1953 * gnulib/import/malloc/scratch_buffer.h: Update.
1954 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1955 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1956 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1957 * gnulib/import/malloca.c: Update.
1958 * gnulib/import/malloca.h: Update.
1959 * gnulib/import/malloca.valgrind: Update.
1960 * gnulib/import/math.in.h: Update.
1961 * gnulib/import/mbrtowc.c: Update.
1962 * gnulib/import/mbsinit.c: Update.
1963 * gnulib/import/mbsrtowcs-impl.h: Update.
1964 * gnulib/import/mbsrtowcs-state.c: Update.
1965 * gnulib/import/mbsrtowcs.c: Update.
1966 * gnulib/import/memchr.c: Update.
1967 * gnulib/import/memmem.c: Update.
1968 * gnulib/import/mempcpy.c: Update.
1969 * gnulib/import/memrchr.c: Update.
1970 * gnulib/import/mkdir.c: Update.
1971 * gnulib/import/mkstemp.c: Update.
1972 * gnulib/import/msvc-inval.c: Update.
1973 * gnulib/import/msvc-inval.h: Update.
1974 * gnulib/import/msvc-nothrow.c: Update.
1975 * gnulib/import/msvc-nothrow.h: Update.
1976 * gnulib/import/open.c: Update.
1977 * gnulib/import/openat-die.c: Update.
1978 * gnulib/import/openat-priv.h: Update.
1979 * gnulib/import/openat-proc.c: Update.
1980 * gnulib/import/openat.c: Update.
1981 * gnulib/import/openat.h: Update.
1982 * gnulib/import/opendir.c: Update.
1983 * gnulib/import/pathmax.h: Update.
1984 * gnulib/import/pipe-safer.c: Update.
1985 * gnulib/import/rawmemchr.c: Update.
1986 * gnulib/import/readdir.c: Update.
1987 * gnulib/import/readlink.c: Update.
1988 * gnulib/import/realloc.c: Update.
1989 * gnulib/import/ref-add.sin: Update.
1990 * gnulib/import/ref-del.sin: Update.
1991 * gnulib/import/rename.c: Update.
1992 * gnulib/import/rewinddir.c: Update.
1993 * gnulib/import/rmdir.c: Update.
1994 * gnulib/import/same-inode.h: Update.
1995 * gnulib/import/save-cwd.c: Update.
1996 * gnulib/import/save-cwd.h: Update.
1997 * gnulib/import/scratch_buffer.h: Update.
1998 * gnulib/import/secure_getenv.c: Update.
1999 * gnulib/import/setenv.c: Update.
2000 * gnulib/import/signal.in.h: Update.
2001 * gnulib/import/stat-time.c: Update.
2002 * gnulib/import/stat-time.h: Update.
2003 * gnulib/import/stat-w32.c: Update.
2004 * gnulib/import/stat-w32.h: Update.
2005 * gnulib/import/stat.c: Update.
2006 * gnulib/import/stdbool.in.h: Update.
2007 * gnulib/import/stddef.in.h: Update.
2008 * gnulib/import/stdint.in.h: Update.
2009 * gnulib/import/stdio.in.h: Update.
2010 * gnulib/import/stdlib.in.h: Update.
2011 * gnulib/import/str-two-way.h: Update.
2012 * gnulib/import/strchrnul.c: Update.
2013 * gnulib/import/strdup.c: Update.
2014 * gnulib/import/streq.h: Update.
2015 * gnulib/import/strerror-override.c: Update.
2016 * gnulib/import/strerror-override.h: Update.
2017 * gnulib/import/strerror.c: Update.
2018 * gnulib/import/string.in.h: Update.
2019 * gnulib/import/stripslash.c: Update.
2020 * gnulib/import/strnlen1.c: Update.
2021 * gnulib/import/strnlen1.h: Update.
2022 * gnulib/import/strstr.c: Update.
2023 * gnulib/import/strtok_r.c: Update.
2024 * gnulib/import/sys_stat.in.h: Update.
2025 * gnulib/import/sys_time.in.h: Update.
2026 * gnulib/import/sys_types.in.h: Update.
2027 * gnulib/import/tempname.c: Update.
2028 * gnulib/import/tempname.h: Update.
2029 * gnulib/import/time.in.h: Update.
2030 * gnulib/import/unistd--.h: Update.
2031 * gnulib/import/unistd-safer.h: Update.
2032 * gnulib/import/unistd.in.h: Update.
2033 * gnulib/import/unsetenv.c: Update.
2034 * gnulib/import/verify.h: Update.
2035 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2036 * gnulib/import/wchar.in.h: Update.
2037 * gnulib/import/wctype.in.h: Update.
2038 * gnulib/import/xalloc-oversized.h: Update.
2039 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2040 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2042 2018-08-16 Gary Benson <gbenson@redhat.com>
2045 * gdb/main.c (captured_main_1): Exit with nonzero status
2046 in batch mode if the last command to be executed failed.
2047 * NEWS: Mention the above.
2049 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2051 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2052 end of warning message.
2054 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2057 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2058 (aarch64_extract_return_value): Use
2059 aapcs_is_vfp_call_or_return_candidate.
2060 (aarch64_return_in_memory): Likewise.
2061 (aarch64_store_return_value): Likewise.
2063 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2066 (aapcs_is_vfp_call_or_return_candidate): Make static
2067 (pass_in_v_or_stack): Remove function.
2068 (pass_in_v_vfp_candidate): New function.
2069 (aarch64_push_dummy_call): Check for float register candidates.
2071 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2073 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2074 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2075 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2077 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2080 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2081 (struct ipa_sym_addresses): Rename to...
2082 (struct ipa_sym_addresses_common): ... this.
2083 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2085 2018-08-28 Tom Tromey <tom@tromey.com>
2087 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2088 (token_fifo): Now a std::vector.
2089 (yylex, c_parse): Update.
2090 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2091 (token_fifo): Now a std::vector.
2092 (yylex, d_parse): Update.
2093 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2094 (token_fifo): Now a std::vector.
2095 (yylex, go_parse): Update.
2097 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2099 * parser-defs.h (struct type_stack) <elements>: Change type to
2100 std::vector<union type_stack_elt>.
2101 <depth, size>: Remove.
2102 * parse.c (parse_exp_in_context_1): Adjust.
2103 (type_stack_reserve): Remove.
2104 (check_type_stack_depth): Remove.
2105 (insert_into_type_stack): Adjust to std::vector.
2106 (insert_type): Likewise.
2107 (push_type): Likewise.
2108 (push_type_int): Likewise.
2109 (insert_type_address_space): Likewise.
2110 (pop_type): Likewise.
2111 (pop_type_int): Likewise.
2112 (pop_typelist): Likewise.
2113 (pop_type_stack): Likewise.
2114 (append_type_stack): Likewise.
2115 (push_type_stack): Likewise.
2116 (get_type_stack): Likewise.
2117 (type_stack_cleanup): Likewise.
2118 (push_typelist): Likewise.
2119 (follow_types): Likewise.
2120 (_initialize_parse): Likewise.
2122 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2124 * NEWS: Mention csky target.
2126 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2127 Hafiz Abid Qadeer <abidh@codesourcery.com>
2128 Don Breazeal <donb@codesourcery.com>
2130 * csky-linux-tdep.c: New file.
2131 * csky-tdep.c: Likewise.
2132 * csky-tdep.h: Likewise.
2133 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2135 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2136 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2137 * configure.tgt: Add csky support.
2139 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2141 * python/py-framefilter.c (py_print_frame): Print frame architecture
2142 when printing on an MI output.
2144 2018-08-27 Tom Tromey <tom@tromey.com>
2147 * configure: Rebuild.
2148 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2150 2018-08-27 Tom Tromey <tom@tromey.com>
2152 * aarch64-linux-tdep.c
2153 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2156 2018-08-27 Tom Tromey <tom@tromey.com>
2158 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2160 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2161 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2162 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2163 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2166 2018-08-27 Tom Tromey <tom@tromey.com>
2168 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2169 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2171 2018-08-27 Tom Tromey <tom@tromey.com>
2173 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2174 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2176 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2178 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2180 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2181 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2182 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2184 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2185 (ppc64_linux_sigaction_tramp_frame)
2186 (ppc32_linux_sighandler_tramp_frame)
2187 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2188 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2189 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2190 * mn10300-linux-tdep.c (am33_linux_sigframe)
2191 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2192 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2193 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2194 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2195 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2196 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2197 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2198 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2199 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2200 * microblaze-linux-tdep.c
2201 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2202 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2203 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2204 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2205 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2206 * common/common-types.h (ULONGEST_MAX): New define.
2207 (CORE_ADDR_MAX): Fix formatting.
2208 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2209 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2210 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2211 (arm_linux_rt_sigreturn_tramp_frame)
2212 (arm_eabi_linux_sigreturn_tramp_frame)
2213 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2214 (thumb2_eabi_linux_sigreturn_tramp_frame)
2215 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2216 (arm_linux_restart_syscall_tramp_frame)
2217 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2218 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2219 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2221 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2223 2018-08-27 Tom Tromey <tom@tromey.com>
2225 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2227 * mips-tdep.c (mips_deal_with_atomic_sequence)
2228 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2229 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2230 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2231 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2233 * aarch64-tdep.c (aarch64_software_single_step): Use
2236 2018-08-27 Tom Tromey <tom@tromey.com>
2238 * linespec.c (complete_linespec_component): Add cast to "char".
2239 * completer.c (completion_tracker::build_completion_result): Add
2242 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2244 * solist.h (struct solist, struct target_so_ops): Fix
2247 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2249 * ada-tasks.c (ada_task_info_s): Remove typedef.
2250 (DEF_VEC_O(ada_task_info_s)): Remove.
2251 (struct ada_tasks_inferior_data): Initialize fields.
2252 <task_list>: Make an std::vector.
2253 (get_ada_tasks_inferior_data): Allocate with new.
2254 (ada_get_task_number): Adjust.
2255 (get_task_number_from_id): Likewise.
2256 (valid_task_id): Likewise.
2257 (ada_get_task_info_from_ptid): Likewise.
2258 (iterate_over_live_ada_tasks): Likewise.
2259 (add_ada_task): Likewise.
2260 (read_known_tasks): Likewise.
2261 (ada_build_task_list): Likewise.
2262 (print_ada_task_info): Likewise.
2263 (info_task): Likewise.
2264 (task_command_1): Likewise.
2266 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2268 * ada-lang.c (add_angle_brackets): Return std::string.
2270 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2272 * python/py-threadevent.c (py_get_event_thread): Initialize
2275 2018-08-24 Pedro Alves <palves@redhat.com>
2277 * python/py-bpevent.c (create_breakpoint_event_object): Use
2278 copy-initialization.
2279 * python/py-continueevent.c (emit_continue_event): Use
2280 copy-initialization.
2281 * python/py-exitedevent.c (create_exited_event_object): Return a
2283 (emit_exited_event): Use copy-initialization.
2284 * python/py-inferior.c (python_new_inferior)
2285 (python_inferior_deleted, add_thread_object): Use
2286 copy-initialization.
2287 * python/py-infevents.c (create_inferior_call_event_object)
2288 (create_register_changed_event_object)
2289 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2290 (emit_inferior_call_event, emit_memory_changed_event)
2291 (emit_register_changed_event): Use copy-initialization.
2292 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2293 Return a gdbpy_ref<>.
2294 (emit_new_objfile_event): Use copy-initialization.
2295 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2296 (emit_clear_objfiles_event): Use copy-initialization.
2297 * python/py-signalevent.c (create_signal_event_object): Use
2298 copy-initialization.
2299 * python/py-threadevent.c (create_thread_event_object): Use
2300 copy-initialization.
2302 2018-08-24 Pedro Alves <palves@redhat.com>
2303 Simon Marchi <simon.marchi@ericsson.com>
2306 * python/py-continueevent.c: Include "gdbthread.h".
2307 (create_continue_event_object): Add intro comment. Add 'ptid'
2308 parameter. Use it to find thread to pass to
2309 create_thread_event_object.
2310 (emit_continue_event): Pass PTID down to
2311 create_continue_event_object.
2312 * python/py-event.h (py_get_event_thread): Declare.
2313 (create_thread_event_object): Remove default from 'thread'
2315 * python/py-stopevent.c (create_stop_event_object): Use
2316 py_get_event_thread.
2317 * python/py-threadevent.c (get_event_thread): Rename to ...
2318 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2319 and use it to find the thread.
2320 (create_thread_event_object): Assert that THREAD isn't null.
2321 Don't find the event thread here.
2323 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2325 * block.h (blockrange, blockranges): New struct declarations.
2326 (struct block): Add new field named `ranges'.
2327 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2328 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2329 macros for accessing ranges in struct block.
2330 (make_blockranges): New declaration.
2331 block.c (make_blockranges): New function.
2332 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2334 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2335 * blockframe.c (cache_pc_function_block): New static global.
2336 (clear_pc_function_cache): Clear cache_pc_function_block.
2337 (find_pc_partial_function): Move comment to symtab.h. Add
2338 support for non-contiguous blocks.
2339 * cli/cli-cmds.c (block.h): Include.
2340 (print_disassembly): Handle printing of non-contiguous blocks.
2341 (disassemble_current_function): Likewise.
2342 (disassemble_command): Likewise.
2344 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2346 * blockframe.c (get_pc_function_start): Likewise.
2347 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2348 (gcc_symbol_address): Likewise.
2349 * compile/compile-object-run.c (compile_object_run): Likewise.
2350 * compile/compile.c (get_expr_block_and_pc): Likewise.
2351 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2352 (func_addr_to_tail_call_list): Likewise.
2353 * findvar.c (default_read_var_value): Likewise.
2354 * inline-frame.c (inline_frame_this_id): Likewise.
2355 (skip-inline_frames): Likewise.
2356 * infcmd.c (until_next_command): Likewise.
2357 * linespec.c (convert_linespec_to_sals): Likewise.
2358 * parse.c (parse_exp_in_context_1): Likewise.
2359 * printcmd.c (build_address_symbolic): likewise.
2360 (info_address_command): Likewise.
2361 symtab.c (find_function_start_sal): Likewise.
2362 (skip_prologue_sal): Likewise.
2363 (find_function_alias_target): Likewise.
2364 (find_gnu_ifunc): Likewise.
2365 * stack.c (find_frame_funname): Likewise.
2366 * symtab.c (fixup_symbol_section): Likewise.
2367 (find_function_start_sal): Likewise.
2368 (skip_prologue_sal): Likewsie.
2369 (find_function_alias_target): Likewise.
2370 (find_gnu_ifunc): Likewise.
2371 * tracepoint.c (info_scope_command): Likewise.
2372 * value.c (value_fn_field): Likewise.
2374 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2375 in place of find_pc_partial_function.
2376 * blockframe.c (find_function_entry_range_from_pc): New function.
2377 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2378 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2379 for each range in a block.
2382 2018-08-23 Xavier Roirand <roirand@adacore.com>
2384 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2387 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2389 * solib-svr4.c (read_program_headers_from_bfd): Return
2390 gdb::optional<gdb::byte_vector>.
2391 (svr4_exec_displacement): Adjust.
2393 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2395 * solib-svr4.c (read_program_header): Return
2396 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2397 (find_program_interpreter): Return
2398 gdb::optional<gdb::byte_vector>.
2399 (scan_dyntag_auxv): Adjust.
2400 (enable_break): Adjust.
2401 (svr4_exec_displacement): Adjust.
2403 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2405 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2406 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2408 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2410 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2412 * guile/scm-utils.c (gdbscm_printf): Likewise.
2413 * serial.c (serial_printf): Likewise.
2414 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2416 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2418 * stack.c (print_frame): Print frame architecture when printing on
2420 * NEWS: Mention new "arch" attribute in frame output.
2422 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2424 * arch/aarch64.h (aarch64_regnum): Update comment.
2426 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2428 * NEWS: Add SVE to 8.2 section.
2430 2018-08-21 Pedro Alves <palves@redhat.com>
2432 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2433 out from gdbscm_parse_function_args.
2434 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2435 gdbscm_parse_function_args_1.
2437 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2440 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2443 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2445 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2447 2018-08-19 Michael Spang <spang@google.com>
2450 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2451 for PT_TLS segments.
2453 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2455 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2456 dwarf_variable_value.
2457 * dwarf2-frame.c (class dwarf_expr_executor):
2458 Add override for dwarf_variable_value.
2459 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2460 (class symbol_needs_eval_context): Likewise.
2461 (indirect_synthetic_pointer): Add forward declaration.
2462 (sect_variable_value): New function.
2463 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2464 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2465 for DW_OP_GNU_variable_value.
2467 2018-08-16 Tom Tromey <tom@tromey.com>
2469 * top.c (read_command_file): Update.
2470 (command_line_input): Remove "repeat" argument.
2471 * ada-lang.c (get_selections): Update.
2472 * linespec.c (decode_line_2): Update.
2473 * defs.h (command_line_input): Remove argument.
2474 * cli/cli-script.c (read_next_line): Update.
2475 * python/py-gdb-readline.c: Update.
2477 2018-08-17 Tom Tromey <tom@tromey.com>
2479 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2482 2018-08-15 Tom Tromey <tom@tromey.com>
2484 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2486 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2488 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2489 If used, use find_pc_partial_function to find address range
2491 * mi/mi-main.c (mi_cmd_list_features): Report
2492 "data-disassemble-a-option" feature.
2493 * NEWS: Mention new -data-disassemble option -a.
2495 2018-08-13 Tom Tromey <tom@tromey.com>
2497 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2499 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2501 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2502 (aarch64_linux_collect_sve_regset): Likewise.
2503 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2504 * regcache.h (regcache_map_entry_size): New function.
2506 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2508 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2509 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2510 (SVE_HEADER_VL_LENGTH): Likewise.
2511 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2512 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2513 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2514 (SVE_HEADER_SIZE_OFFSET): Likewise.
2515 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2516 (SVE_HEADER_VL_OFFSET): Likewise.
2517 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2518 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2519 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2520 (SVE_HEADER_SIZE): Likewise.
2521 (aarch64_linux_core_read_vq): Add function.
2522 (aarch64_linux_core_read_description): Check for SVE section.
2524 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2526 * aarch64-fbsd-tdep.c
2527 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2529 * aarch64-linux-tdep.c
2530 (aarch64_linux_iterate_over_regset_sections): Likewise.
2531 * alpha-linux-tdep.c
2532 (alpha_linux_iterate_over_regset_sections):
2534 (alphanbsd_iterate_over_regset_sections): Likewise.
2536 (amd64fbsd_iterate_over_regset_sections): Likewise.
2537 * amd64-linux-tdep.c
2538 (amd64_linux_iterate_over_regset_sections): Likewise.
2540 (armbsd_iterate_over_regset_sections): Likewise.
2542 (arm_fbsd_iterate_over_regset_sections): Likewise.
2544 (arm_linux_iterate_over_regset_sections): Likewise.
2545 * corelow.c (get_core_registers_cb): Likewise.
2546 (core_target::fetch_registers): Likewise.
2547 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2548 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2549 * gdbarch.h (void): Regenerate.
2550 * gdbarch.sh: Add supply_size and collect_size.
2551 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2552 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2553 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2554 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2555 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2556 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2557 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2558 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2559 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2560 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2561 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2562 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2563 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2564 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2565 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2566 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2567 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2568 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2569 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2570 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2571 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2572 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2573 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2574 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2575 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2576 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2577 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2578 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2579 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2580 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2582 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2584 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2587 2018-08-10 Keith Seitz <keiths@redhat.com>
2589 * compile/compile-c-support.c (add_code_header, add_code_footer):
2590 Move into policy class.
2591 (c_push_user_expression, pop_user_expression_nop)
2592 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2593 (compile_program): New host class.
2594 (c_compile_program): New typedef.
2595 (c_compute_porgram): Use c_compile_program.
2597 2018-08-10 Keith Seitz <keiths@redhat.com>
2599 * compile/compile-internal.h (compile_instance::~compile_instance):
2600 Remove calls to htab_delete.
2601 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2602 * compile.c (compile_instance::compile_instance): Initialize
2603 htab unique pointers.
2604 (compile_instance::get_cached_type, compile_instance::insert_type)
2605 (compile_instance::error_symbol_once): Update for unique_ptr.
2607 2018-08-10 Keith Seitz <keiths@redhat.com>
2609 * compile/compile-c-symbols.c (struct symbol_error)
2610 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2611 (compile_instance::insert_symbol_error)
2612 (compile_instance::error_symbol_once): Move to ...
2613 * compile/compile.c: ... here.
2615 2018-08-10 Keith Seitz <keiths@redhat.com>
2617 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2618 instead of `new_compile_instance'.
2619 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2621 If the symbol error map is not initialized, create it.
2622 (generate_c_for_for_one_symbol): Do not check/initialize
2623 the symbol error map.
2624 * compile/compile-c-types.c (compile_c_instance): Make a class.
2626 (compile_instance::compile_instance): Initialize the type cache.
2627 (get_cached_type): New function.
2628 (insert_type): Update description.
2629 (compile_c_instance::m_default_cflags): Define.
2630 (convert_type): Update description. Use get_cached_type.
2631 (delete_instance): Moved to destructor.
2632 (new_compile_instance): Moved to constructor.
2633 * compile/compile-c.h (compile_c_instance): Make class inheriting
2634 from compile_instance.
2635 <base>: Remove field.
2636 <type_map, symbol_err_map>: Move to base class.
2637 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2638 * compile/compile-internal.h (compile_instance): Make class.
2639 <type_map_t, symbol_err_map_t>: Define.
2640 <fe>: Rename to `m_gcc_fe'.
2641 <scope, block, gcc_target_options>: Add `m_' prefix.
2642 <m_type_map, m_symbol_err_map>: New fields, moved from
2645 (convert_type, new_compile_instance): Remove.
2646 * compile/compile.c (cleanup_compile_instance): Remove.
2647 (compile_to_object): Use unique_ptr to eliminate cleanups.
2648 (compile_instance::set_print_callback, compile_instance::version)
2649 (compile_instance::set_verbose)
2650 (compile_instance::set_driver_filename)
2651 (compile_instance::set_triplet_regexp)
2652 (compile_instance::set_arguments)
2653 (compile_instance::set_source_file)
2654 (compile_instance::compile): Define.
2656 2018-08-10 Keith Seitz <keiths@redhat.com>
2658 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2659 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2660 gcc-c-fe.def to define C plugin.
2661 (delete_instance): Delete `c_plugin'.
2662 (new_compile_instance): Initialize `c_plugin'.
2663 * compile/compile-c.h: Include gcc_c_plugin.h.
2664 (struct compile_c_instance) <c_plugin>: New member.
2665 * gcc-c-plugin.h: New file.
2666 Update all callers with API change.
2668 2018-08-10 Keith Seitz <keiths@redhat.com>
2670 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2671 (HFILES_NO_SRCDIR): ... to here.
2672 Add compile-internal.h and compile-c.h.
2673 * compile/compile-c-support.c: Include compile-c.h.
2674 * compile/compile-c-symbols.c: Include compile-c.h.
2675 (generate_c_for_variable_locations): Update comment.
2676 * compile/compile-c-types.c: Include compile-c.h.
2677 * compile/compile-c.h: New file -- moved C language declarations
2678 from other files here.
2679 * compile/compile-internal.h: Do not include hashtab.h or
2680 common/enum-flags.h.
2681 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2682 (gcc_convert_symbol, gcc_symbol_address)
2683 (generate_c_for_variable_locations, c_get_mode_for_size)
2684 (c_get_range_decl_name): Definitions moved to compile-c.h.
2685 * compile/compile-loc2c.c: Include compile-c.h.
2687 2018-08-10 Keith Seitz <keiths@redhat.com>
2689 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2690 (c_symbol_substitution_name): ... this.
2693 2018-08-10 Keith Seitz <keiths@redhat.com>
2695 * compile/compile-c-support.c (c_compute_program): Use
2696 unique_xmalloc_ptr to eliminate cleanup.
2697 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2698 Return a unique_xmalloc_ptr and eliminate cleanup.
2699 * compile/compile-internal.h (generate_c_for_variable_locations):
2700 Return unique_xmalloc_ptr and update description.
2702 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2704 * corelow.c (core_target::get_core_register_section): Rename
2705 min_size to section_min_size.
2707 2018-08-09 Jim Wilson <jimw@sifive.com>
2709 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2710 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2711 * NEWS: Mention new GNU/Linux RISC-V target.
2712 * configure.host: Add riscv*-*-linux*.
2713 * configure.nat: Add riscv*.
2714 * configure.tgt: Add riscv*-*-linux*.
2715 * riscv-linux-nat.c: New file.
2716 * riscv-linux-tdep.c: New file.
2718 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2720 * infrun.c (resume): Make static, add forward declaration.
2721 (proceed): Update header comment.
2722 * infrun.h (resume): Delete declaration.
2724 2018-08-09 Tom Tromey <tom@tromey.com>
2726 * riscv-tdep.h: Minor formatting fixes.
2728 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2730 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2731 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2732 (test_mkdir_recursive): Likewise.
2733 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2735 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2737 * valarith.c (value_subscripted_rvalue): If an array is not in
2738 memory, and we don't know the upper bound, then we can't know that
2739 the requested element exists or not.
2741 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2743 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2744 (target_options_to_string): Add comment.
2746 2018-08-08 Tom Tromey <tom@tromey.com>
2748 * unittests/scoped_mmap-selftests.c: Check result of "write".
2750 2018-08-08 Jim Wilson <jimw@sifive.com>
2752 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2753 (decode_register_index_short): New.
2754 (decode_j_type_insn, decode_cj_type_insn): New.
2755 (decode_b_type_insn, decode_cb_type_insn): New.
2756 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2757 local xlen. Check xlen when decoding ambiguous compressed insns. In
2758 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2759 is_c_sw_insn instead of is_sw_insn.
2760 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2761 (riscv_software_single_step): New.
2762 * riscv-tdep.h (riscv_software_single_step): Declare.
2764 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2765 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2767 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2770 * target.c (dispose_inferior): Don't dispose of inferiors that are
2773 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2775 * remote.c (remote_target::download_tracepoint): Change char* to
2778 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2780 * target.h (target_options_to_string): Return an std::string.
2781 * target.c (str_comma_list_concat_elem): Return void, use
2783 (do_option): Likewise.
2784 (target_options_to_string): Return an std::string.
2785 * linux-nat.c (linux_nat_target::wait): Adjust.
2786 * target-debug.h (target_debug_print_options): Adjust.
2788 2018-08-07 Tom Tromey <tom@tromey.com>
2790 * Makefile.in (CPPFLAGS): New variable.
2791 (INTERNAL_CPPFLAGS): Use it.
2793 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2795 * NEWS: Mention the index cache.
2797 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2799 * common/pathstuff.h (get_standard_cache_dir): New.
2800 * common/pathstuff.c (get_standard_cache_dir): New.
2801 * build-id.h (build_id_to_string): New.
2802 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2803 DEBUG_STR_SUFFIX): Move to here.
2804 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2805 DEBUG_STR_SUFFIX): Move from there.
2806 (write_psymtabs_to_index): Make non-static, add basename
2807 parameter. Write to temporary files, rename when done.
2808 (save_gdb_index_command): Adjust call to
2809 write_psymtabs_to_index.
2810 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2812 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2813 (get_gdb_index_contents_from_cache): New.
2814 (get_gdb_index_contents_from_cache_dwz): New.
2815 (dwarf2_initialize_objfile): Read index from cache.
2816 (dwarf2_build_psymtabs): Save to index.
2817 * dwarf-index-cache.h: New file.
2818 * dwarf-index-cache.c: New file.
2819 * dwarf-index-write.h: New file.
2821 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2823 * gnulib/aclocal.m4: Re-generate.
2824 * gnulib/config.in: Re-generate.
2825 * gnulib/configure: Re-generate.
2826 * gnulib/import/Makefile.am: Re-generate.
2827 * gnulib/import/Makefile.in: Re-generate.
2828 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2829 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2830 * gnulib/import/m4/mkdir.m4: New file.
2831 * gnulib/import/mkdir.c: New file.
2832 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2835 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2837 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2838 * common/scoped_mmap.c: New file.
2839 * common/scoped_mmap.h (destroy): New method.
2840 (~scoped_mmap, reset): Use destroy.
2841 (scoped_mmap): New move constructor.
2842 (mmap_file): New declaration.
2843 * unittests/scoped_mmap-selftests.c (test_normal,
2844 test_invalid_filename, run_tests): New functions.
2845 (_initialize_scoped_mmap_selftests): Register selftest.
2847 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2849 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2850 (read_gdb_index_from_buffer): ... this. Remove section
2851 parameter, add buffer parameter.
2852 (get_gdb_index_contents_ftype,
2853 get_gdb_index_contents_dwz_ftype): New typedefs.
2854 (dwarf2_read_gdb_index): Add callback parameters to get the
2856 (get_gdb_index_contents_from_section): New.
2857 (dwarf2_initialize_objfile): Update call to
2858 dwarf2_read_gdb_index.
2860 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2862 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2863 (gdb_open_cloexec): Likewise.
2864 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2865 (commandline_from_pid): Likewise.
2866 (linux_xfer_osdata_threads): Likewise.
2867 (linux_xfer_osdata_fds): Likewise.
2868 * ada-lang.c (is_package_name): Likewise.
2869 * auxv.c (procfs_xfer_auxv): Likewise.
2870 * breakpoint.c (print_one_breakpoint_location): Use
2872 (print_one_catch_solib): Use string_printf.
2873 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2874 (add_pe_forwarded_sym): Likewise.
2875 * dwarf2read.c (create_type_unit_group): Likewise.
2876 (build_error_marker_type): Likewise.
2877 * infcall.c (get_function_name): Likewise.
2878 * valprint.c (print_converted_chars_to_obstack): Likewise.
2879 * xtensa-tdep.c (xtensa_register_type): Likewise.
2881 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2883 * remote.c (remote_target::download_tracepoint): Fix format
2886 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2888 * tracefile.c: Include common/byte-vector.h.
2889 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2890 with trace_regblock_size if needed. Update uses of buf.
2892 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2894 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2895 std::vector<unsigned char>.
2896 * tracepoint.c (collection_list::collection_list): Remove
2897 m_regs_mask initializer from initializer list. Resize
2898 m_regs_mask using the largest remote register number.
2899 (collection_list::add_remote_register): Remove size check on
2900 m_regs_mask. Use at to access element.
2901 (collection_list::stringify): Change type of temp_buf to
2902 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2903 stringify the register mask. Use pack_hex_byte for the register
2906 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2908 * tracepoint.h (class collection_list) <add_register>: Remove.
2909 <add_remote_register, add_ax_registers, add_local_register>:
2911 <add_memrange>: Add scope parameter.
2912 * tracepoint.c (encode_actions_1): Likewise.
2913 (collection_list::add_register): Rename to ...
2914 (collection_list::add_remote_register): ... this. Update
2916 (collection_list::add_ax_registers, add_local_register): New
2918 (collection_list::add_memrange): Add scope parameter. Call
2919 add_local_register instead of add_register.
2920 (finalize_tracepoint_aexpr): New function.
2921 (collection_list::collect_symbol): Update calls to add_memrange.
2922 Call add_local_register instead of add_register. Call
2923 add_ax_registers. Call finalize_tracepoint_aexpr.
2924 (encode_actions_1): Get remote regnos for $reg action. Call
2925 add_remote_register, add_ax_registers, and add_local_register.
2926 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2927 (validate_actionline): Call finalize_tracepoint_aexpr.
2929 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2931 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2932 Replace array buf with gdb::char_vector buf, of size
2933 get_remote_packet_size (). Replace references to buf and
2934 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2935 and xsnprintf with snprintf. Raise errors if the buffer is too
2938 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2940 * remote.c (remote_target::download_tracepoint): Fix the has_more
2941 predicate in the QTDP action list iteration.
2943 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2945 * remote.c (remote_target::download_tracepoint): Fix indentation
2948 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2950 * proc-api.c (_initialize_proc_api): Remove c, unused.
2951 * procfs.c (procfs_init_inferior): Remove signals, unused.
2952 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
2955 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
2956 Andrew Burgess <andrew.burgess@embecosm.com>
2958 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
2959 'W_STOPCODE (0)' as this could be ambiguous.
2961 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
2963 * ser-tcp.c (net_open): Fix thinko when deciding whether to
2964 disable TCP's Nagle algorithm (use "ai_protocol" instead of
2967 2018-08-02 Tom Tromey <tom@tromey.com>
2970 * dwarf2read.c (read_func_scope): Set symtab on template parameter
2972 (process_structure_scope): Likewise.
2974 2018-08-02 Xavier Roirand <roirand@adacore.com>
2977 * darwin-nat.c (darwin_kill_inferior): Fix handling of
2980 2018-08-02 Tom Tromey <tom@tromey.com>
2982 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
2983 (darwin_suspend_inferior, darwin_resume_inferior)
2984 (darwin_decode_notify_message, darwin_resume_inferior_threads)
2985 (darwin_check_new_threads): Check result of get_darwin_inferior.
2987 2018-07-31 Joel Brobecker <brobecker@adacore.com>
2991 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
2993 * varobj.c (varobj_get_path_expr_parent): Report an error if
2994 parent is a dynamic varobj.
2996 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
2998 * gnulib/aclocal.m4: Re-generate.
2999 * gnulib/config.in: Re-generate.
3000 * gnulib/configure: Re-generate.
3001 * gnulib/import/Makefile.in: Re-generate.
3002 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3003 * gnulib/import/m4/onceonly.m4: Re-generate.
3005 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3007 * target-descriptions.c (struct xml_test_tdesc): New.
3008 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3009 (record_xml_tdesc): Update.
3010 (maintenance_check_xml_descriptions): Update.
3011 * target-descriptions.h (record_xml_tdesc): Update comment.
3013 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3015 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3016 checking array bounds are defined.
3018 2018-07-30 Tom Tromey <tom@tromey.com>
3020 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3021 irreflexivity violation.
3023 2018-07-30 Tom Tromey <tom@tromey.com>
3025 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3026 * value.c (unpack_long): Remove lint code.
3027 * valops.c (value_ind): Remove lint code.
3028 * valarith.c (value_x_binop, value_x_unop, value_equal)
3029 (value_pos): Remove lint code.
3031 2018-07-28 Tom de Vries <tdevries@suse.de>
3033 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3034 with undefined upper bound as <optimized out>.
3036 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3038 * gcore.in: Rename variable "name" to "prefix". Expand
3041 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3043 * windows-nat.c (windows_nat_target::create_inferior): Update to
3044 call close() in global namespace.
3046 2018-07-26 Tom Tromey <tom@tromey.com>
3048 * dwarf-index-write.c (add_address_entry): Don't add objfile
3050 * dbxread.c (find_stab_function): Rename from
3051 find_stab_function_addr. Return a bound_minimal_symbol.
3052 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3053 Don't add objfile offsets.
3054 (end_psymtab): Use raw_text_low, raw_text_high,
3055 MSYMBOL_VALUE_RAW_ADDRESS.
3056 (read_ofile_symtab): Update.
3057 (process_one_symbol): Update.
3058 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3060 (dw2_relocate): Remove.
3061 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3063 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3065 (process_psymtab_comp_unit_reader, add_partial_symbol)
3066 (add_partial_subprogram, dwarf2_ranges_read): Update.
3067 (load_partial_dies): Update.
3068 (add_address_entry): Don't add objfile offsets.
3069 (dwarf2_build_include_psymtabs): Update.
3070 (create_addrmap_from_aranges): Don't add objfile offsets.
3071 (dw2_find_pc_sect_compunit_symtab): Update.
3072 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3073 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3075 (parse_partial_symbols): Don't add objfile offsets. Use
3076 raw_text_low, raw_text_high. Update.
3077 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3078 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3079 or call 'relocate' quick function. Clear psymbol_map.
3080 * psympriv.h (struct partial_symbol) <address>: Add section
3082 <set_unrelocated_address>: Rename from set_address.
3083 <raw_text_low, raw_text_high>: New methods.
3084 <text_low, text_high>: Add objfile parameter.
3085 (add_psymbol_to_bcache): Add 'section' parameter. Call
3086 set_unrelocated_address.
3087 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3088 (find_pc_psymbol): Update.
3089 (fixup_psymbol_section, relocate_psymtabs): Remove.
3090 (dump_psymtab, psym_functions): Update.
3091 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3093 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3094 (start_psymtab_common): Update.
3095 * symfile-debug.c (debug_qf_relocate): Remove.
3096 (debug_sym_quick_functions): Update.
3097 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3098 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3101 2018-07-26 Tom Tromey <tromey@redhat.com>
3103 * dbxread.c (end_psymtab): Use text_high_valid and
3105 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3106 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3107 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3109 <text_low_valid, text_high_valid>: New fields.
3110 <set_text_low, set_text_high>: Update.
3111 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3113 2018-07-26 Tom Tromey <tom@tromey.com>
3115 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3117 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3118 textlow and texthigh fields.
3119 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3121 * mdebugread.c (parse_lines, parse_partial_symbols)
3122 (psymtab_to_symtab_1): Update.
3123 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3124 Rename fields. Update comment. Now private.
3125 <text_low, text_high, set_text_low, set_text_high>: New methods.
3126 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3127 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3128 (start_psymtab_common, maintenance_info_psymtabs)
3129 (maintenance_check_psymtabs): Update.
3130 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3132 (scan_xcoff_symtab): Update.
3134 2018-07-26 Tom Tromey <tromey@redhat.com>
3136 * psympriv.h (struct partial_symbol) <unrelocated_address,
3137 address, set_address>: New methods.
3138 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3139 (fixup_psymbol_section, relocate_psymtabs): Update.
3140 (print_partial_symbols): Add 'objfile' parameter. Update.
3141 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3144 2018-07-26 Tom Tromey <tom@tromey.com>
3146 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3147 (debug_names::write_psymbols): Update.
3148 * psympriv.h (struct partial_symbol): Derive from
3149 general_symbol_info.
3150 <obj_section>: New method.
3151 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3152 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3153 (find_pc_sect_psymbol, fixup_psymbol_section)
3154 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3155 (print_partial_symbols, recursively_search_psymtabs)
3156 (compare_psymbols, psymbol_hash, psymbol_compare)
3157 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3158 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3160 2018-07-26 Tom Tromey <tromey@redhat.com>
3162 * dbxread.c (end_psymtab): Remove dead code.
3164 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3166 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3167 DWARF unwinders are disabled.
3168 * dwarf2-frame.c: Add dwarf2read.h include.
3169 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3171 (dwarf2_frame_unwinders_enabled_p): Define.
3172 (show_dwarf_unwinders_enabled_p): New function.
3173 (_initialize_dwarf2_frame): Register switch to control DWARF
3175 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3176 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3177 (show_dwarf_cmdlist): Remove static keyword.
3178 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3179 (show_dwarf_cmdlist): Declare.
3180 * NEWS: Document new feature.
3182 2018-07-26 Tom de Vries <tdevries@suse.de>
3184 PR breakpoints/23366
3185 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3187 2018-07-26 Tom de Vries <tdevries@suse.de>
3189 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3190 DW_AT_count can't be translated to a dynamic prop.
3192 2018-07-25 Tom de Vries <tdevries@suse.de>
3194 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3197 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3199 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3201 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3203 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3205 2018-07-24 Keith Seitz <keiths@redhat.comt
3208 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3209 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3210 instead of add_symbol_to_list.
3211 (read_file_scope): Call prepare_one_comp_unit before reading
3214 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3216 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3218 2018-07-24 Tom Tromey <tom@tromey.com>
3220 * utils.c (malloc, realloc, free): Don't declare.
3221 * configure, config.in: Rebuild.
3222 * configure.ac: Don't check for declarations of free, malloc, or
3225 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3227 * aarch64-linux-nat.c
3228 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3230 * arm-linux-nat.c (fetch_regs): Likewise.
3231 (store_regs): Likewise.
3232 (fetch_vfp_regs): Likewise.
3233 (store_vfp_regs): Likewise.
3234 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3235 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3236 (arm_linux_nat_target::insert_watchpoint): Likewise.
3237 (arm_linux_nat_target::remove_watchpoint): Likewise.
3238 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3240 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3242 * ppc-linux-nat.c (fetch_register): Likewise.
3243 (fetch_all_gp_regs): Likewise.
3244 (fetch_ppc_registers): Likewise.
3245 (store_all_gp_regs): Likewise.
3246 (store_ppc_registers): Likewise.
3247 (hwdebug_insert_point): Likewise.
3248 (can_use_watchpoint_cond_accel): Likewise.
3249 * remote-sim.c (gdb_os_write_stdout): Likewise.
3251 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3252 Tom Tromey <tom@tromey.com>
3254 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3256 * configure: Rebuild.
3258 2018-07-22 Tom Tromey <tom@tromey.com>
3260 * regformats/regdat.sh: Define xmltarget_${name} inside
3261 #ifndef IN_PROCESS_AGENT.
3263 2018-07-22 Tom Tromey <tom@tromey.com>
3265 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3267 2018-07-22 Tom Tromey <tom@tromey.com>
3269 * symfile.c (reread_symbols): Notify iter, not objfile.
3271 2018-07-22 Tom Tromey <tom@tromey.com>
3273 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3275 (ravenscar_thread_target::prepare_to_store): Likewise.
3277 2018-07-22 Tom Tromey <tom@tromey.com>
3279 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3280 unused variable. Call value_fetch_lazy when needed.
3281 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3282 Remove unused variable. Call value_fetch_lazy when needed.
3284 2018-07-22 Tom Tromey <tom@tromey.com>
3286 * m32c-tdep.c (mark_dma): Return void.
3287 (make_regs): Remove unused declarations.
3289 2018-07-22 Tom Tromey <tom@tromey.com>
3291 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3292 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3293 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3294 bkscm_get_valid_block_smob_arg_unsafe for effect.
3296 2018-07-22 Tom Tromey <tom@tromey.com>
3298 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3301 2018-07-22 Tom Tromey <tom@tromey.com>
3303 * windows-nat.c (saved_context): Conditionally define.
3304 * remote.c (remote_target::remote_btrace_maybe_reopen):
3305 Conditionally declare "warned".
3306 * inflow.c (sigquit_ours): Conditionally define.
3307 (new_tty): Move "tty" declaration inside #if.
3308 * guile/guile.c (guile_datadir): Conditionally define.
3309 * charset.c (set_be_le_names): Move some declarations inside #if.
3310 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3312 (parse_xml_btrace_conf): Likewise.
3314 2018-07-22 Tom Tromey <tom@tromey.com>
3316 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3318 2018-07-22 Tom Tromey <tom@tromey.com>
3320 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3321 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3322 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3323 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3324 * stack.c (frame_apply_level_command): Remove unused variable.
3325 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3326 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3327 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3329 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3330 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3331 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3333 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3334 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3336 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3337 Remove unused variable.
3338 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3340 * common/tdesc.c (print_xml_feature::visit): Remove unused
3342 * compile/compile-object-load.c (store_regs): Remove unused
3344 * complaints.c (clear_complaints): Remove unused variable.
3345 * corelow.c (core_target_open): Remove unused variable.
3346 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3348 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3350 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3352 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3354 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3356 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3358 * ia64-tdep.c (examine_prologue): Remove unused variable.
3359 * infcall.c (run_inferior_call): Remove unused variable.
3360 * inferior.c (exit_inferior): Remove unused variable.
3361 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3362 * linespec.c (decode_line_2): Remove unused variable.
3363 * linux-nat.c (super_close): Remove.
3364 * linux-tdep.c (linux_info_proc): Remove unused variable.
3365 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3366 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3367 Remove unused variable.
3368 * parse.c (find_minsym_type_and_address): Remove unused variable.
3369 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3371 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3373 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3375 * record-btrace.c (record_btrace_target::store_registers): Remove
3377 (cmd_show_record_btrace_cpu): Remove unused variable.
3378 * riscv-tdep.c (riscv_register_reggroup_p)
3379 (riscv_push_dummy_call, riscv_return_value): Remove unused
3381 * rust-exp.y (literal): Remove unused variable.
3382 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3384 <STRUCTOP_ANONYMOUS>: Likewise.
3385 * s390-linux-tdep.c (s390_linux_init_abi_31)
3386 (s390_linux_init_abi_64): Remove unused variable.
3387 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3388 (file_select_thread, net_windows_open, _initialize_ser_windows):
3389 Remove unused variables.
3390 * symtab.c (find_pc_sect_line): Remove unused variable.
3391 * target-memory.c (compute_garbled_blocks): Remove unused
3393 (target_write_memory_blocks): Remove unused variable.
3394 * target.c (target_stack::unpush): Remove unused variables.
3395 * tracepoint.c (start_tracing, all_tracepoint_actions)
3396 (merge_uploaded_trace_state_variables)
3397 (print_one_static_tracepoint_marker): Remove unused variable.
3398 * unittests/basic_string_view/element_access/char/1.cc (test01):
3399 Remove unused variable.
3400 * windows-nat.c (windows_continue, windows_add_all_dlls)
3401 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3402 Remove unused variables.
3404 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3406 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3407 attr_profile in HAVE_ELF.
3408 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3411 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3413 * frame.c (frame_register_unwind): Change parameter name.
3414 (frame_unwind_register): Likewise.
3415 (frame_unwind_register_value): Likewise.
3416 (frame_unwind_register_signed): Likewise.
3417 (frame_unwind_register_unsigned): Likewise.
3418 * frame.h (frame_register_unwind): Likewise.
3419 (frame_unwind_register): Likewise.
3420 (frame_unwind_register_value): Likewise.
3421 (frame_unwind_register_signed): Likewise.
3422 (frame_unwind_register_unsigned): Likewise.
3423 (frame_unwind_arch): Likewise.
3425 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3427 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3430 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3432 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3433 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3436 2018-07-20 Keith Seitz <keiths@redhat.com>
3438 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3439 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3440 m_compunit_symtab, m_language>: Add "m_" prefix.
3442 * buildsym.c: Update all uses.
3444 2018-07-20 Tom Tromey <tom@tromey.com>
3446 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3447 * buildsym.h (record_line_ftype): Remove typedef.
3449 2018-07-20 Tom Tromey <tom@tromey.com>
3451 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3452 (end_expandable_symtab): Likewise.
3453 (end_symtab_get_static_block): Likewise.
3454 (end_symtab_from_static_block): Likewise.
3455 * buildsym-legacy.c (augment_type_symtab): Remove.
3456 (end_expandable_symtab): Remove.
3457 (end_symtab_get_static_block): Remove.
3458 (end_symtab_from_static_block): Remove.
3460 2018-07-20 Tom Tromey <tom@tromey.com>
3462 * dwarf2read.c: Include buildsym.h.
3463 (struct dwarf2_cu) <builder>: New method.
3464 (fixup_go_packaging): Update.
3465 (process_full_comp_unit, process_full_type_unit): Update. Don't
3466 use scoped_free_pendings.
3467 (using_directives): Add "cu" parameter, remove "language".
3468 (read_import_statement, setup_type_unit_groups, )
3469 (read_func_scope, read_lexical_block_scope)
3470 (dwarf2_record_block_ranges, read_namespace): Update.
3471 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3472 (lnp_state_machine::handle_end_sequence): Update.
3473 (class lnp_state_machine) <m_cu>: New member.
3474 <m_record_line_callback>: Remove.
3475 <m_currently_recording_lines>: New member.
3476 (lnp_state_machine::handle_set_file): Update.
3477 (noop_record_line): Remove.
3478 (dwarf_record_line_p): Add cu parameter.
3479 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3480 (lnp_state_machine::record_line)
3481 (lnp_state_machine::lnp_state_machine)
3482 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3483 (dwarf_decode_lines): Update.
3484 (dwarf2_start_subfile): Add cu parameter.
3485 (dwarf2_start_symtab, new_symbol): Update.
3486 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3487 Remove dwarf2_per_objfile parameter.
3488 (dwarf_decode_macros): Update.
3490 2018-07-20 Tom Tromey <tom@tromey.com>
3492 * stabsread.c (define_symbol): Update.
3493 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3494 * dwarf2read.c (new_symbol): Update.
3495 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3496 * cp-namespace.c: Include buildsym.h.
3497 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3498 * buildsym-legacy.c (get_buildsym_compunit): New function.
3500 2018-07-20 Tom Tromey <tom@tromey.com>
3502 * xcoffread.c: Include buildsym-legacy.h.
3503 * windows-nat.c: Include buildsym-legacy.h.
3504 * stabsread.c: Include buildsym-legacy.h.
3505 * mdebugread.c: Include buildsym-legacy.h.
3506 * buildsym-legacy.h: New file.
3507 * buildsym-legacy.c: New file, from buildsym.c.
3508 * go32-nat.c: Include buildsym-legacy.h.
3509 * dwarf2read.c: Include buildsym-legacy.h.
3510 * dbxread.c: Include buildsym-legacy.h.
3511 * cp-namespace.c: Include buildsym-legacy.h.
3512 * coffread.c: Include buildsym-legacy.h.
3513 * buildsym.h: Move some contents to buildsym-legacy.h.
3514 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3516 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3518 2018-07-20 Tom Tromey <tom@tromey.com>
3520 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3521 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3522 (buildsym_compunit::buildsym_compunit)
3523 (buildsym_compunit::~buildsym_compunit)
3524 (buildsym_compunit::get_macro_table): Define.
3526 2018-07-20 Tom Tromey <tom@tromey.com>
3528 * buildsym.c (reset_symtab_globals): Remove.
3529 (buildsym_compunit::end_symtab_from_static_block): Update.
3530 (buildsym_compunit::augment_type_symtab): Update.
3531 (end_symtab_from_static_block): Call free_buildsym_compunit.
3532 (augment_type_symtab, end_symtab, end_expandable_symtab):
3535 2018-07-20 Tom Tromey <tom@tromey.com>
3537 * arch-utils.c: Do not include buildsym.h.
3538 * mipsread.c: Do not include buildsym.h.
3539 * machoread.c: Do not include buildsym.h.
3540 * elfread.c: Do not include buildsym.h.
3542 2018-07-20 Tom Tromey <tom@tromey.com>
3544 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3546 (buildsym_compunit): Add new constructor.
3547 (struct buildsym_compunit) <get_last_source_file, finish_block,
3548 record_block_range, start_subfile, patch_subfile_names,
3549 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3550 set_last_source_start_addr, get_last_source_start_addr,
3551 get_local_using_directives, set_local_using_directives,
3552 get_global_using_directives, outermost_context_p,
3553 get_current_context_stack, get_context_stack_depth,
3554 get_current_subfile, get_local_symbols, get_file_symbols,
3555 get_global_symbols, record_debugformat, record_producer,
3556 push_context, pop_context, end_symtab_get_static_block,
3557 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3559 <record_pending_block, finish_block_internal, make_blockvector,
3560 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3564 2018-05-22 Tom Tromey <tom@tromey.com>
3566 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3568 (finish_block_internal): Update.
3570 2018-07-20 Tom Tromey <tom@tromey.com>
3572 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3574 (finish_block_internal): Update.
3576 2018-07-20 Tom Tromey <tom@tromey.com>
3578 * buildsym.h (EXTERN): Don't define or undef.
3579 * buildsym.c (EXTERN): Don't define.
3581 2018-07-20 Tom Tromey <tom@tromey.com>
3583 * buildsym.c: Remove TODO comment.
3585 2018-07-20 Tom Tromey <tom@tromey.com>
3587 * coffread.c (coff_symtab_read): Update.
3588 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3589 (xcoff_new_init): Update.
3590 * mipsread.c (mipscoff_new_init): Update.
3591 * mdebugread.c (mdebug_build_psymtabs): Update.
3592 * elfread.c (elf_new_init): Update.
3593 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3595 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3596 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3597 (stabsect_build_psymtabs): Update.
3598 * buildsym.h (buildsym_init): Don't declare.
3599 * buildsym.c: Update comment.
3600 (prepare_for_building): Remove.
3601 (start_symtab, restart_symtab): Update.
3602 (reset_symtab_globals): Update comment.
3603 (buildsym_init): Remove.
3605 2018-07-20 Tom Tromey <tom@tromey.com>
3607 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3608 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3609 (read_enum_type, common_block_start, common_block_end)
3610 (cleanup_undefined_types_1, finish_global_stabs): Update.
3611 * mdebugread.c (psymtab_to_symtab_1): Update.
3612 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3613 (read_lexical_block_scope, new_symbol): Update.
3614 * dbxread.c (process_one_symbol): Update.
3615 * coffread.c (coff_symtab_read, process_coff_symbol)
3616 (coff_read_enum_type): Update.
3617 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3619 (get_local_symbols, get_file_symbols, get_global_symbols): New
3621 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3623 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3624 (~scoped_free_pendings): Update.
3625 (finish_block, prepare_for_building, reset_symtab_globals)
3626 (end_symtab_get_static_block, end_symtab_with_blockvector)
3627 (augment_type_symtab, push_context): Update.
3628 (get_local_symbols, get_file_symbols, get_global_symbols): New
3630 (buildsym_init): Update.
3632 2018-07-20 Tom Tromey <tom@tromey.com>
3634 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3635 (process_full_type_unit): Likewise.
3636 (dwarf2_start_symtab): Set list_in_scope.
3638 2018-07-20 Tom Tromey <tom@tromey.com>
3640 * dwarf2read.c (process_psymtab_comp_unit_reader)
3641 (build_type_psymtabs_reader): Do not set list_in_scope.
3643 2018-07-20 Tom Tromey <tom@tromey.com>
3645 * buildsym.c (free_pendings): Remove.
3646 (add_symbol_to_list, scoped_free_pendings)
3647 (finish_block_internal, buildsym_init): Update.
3649 2018-07-20 Tom Tromey <tom@tromey.com>
3651 * xcoffread.c (read_xcoff_symtab): Update.
3652 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3654 * dbxread.c (process_one_symbol): Update.
3655 * coffread.c (coff_symtab_read): Update.
3656 * buildsym.h (finish_block): Update.
3657 * buildsym.c (finish_block): Remove "listhead" argument.
3658 (end_symtab_get_static_block): Update.
3660 2018-07-20 Tom Tromey <tom@tromey.com>
3662 * buildsym.h (class scoped_free_pendings): Remove constructor.
3663 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3665 <m_pending_block_obstack, m_pending_blocks>: New members.
3666 (pending_block_obstack, pending_blocks): Remove.
3667 (scoped_free_pendings::scoped_free_pendings): Default.
3668 (~scoped_free_pendings): Update.
3669 (free_pending_blocks): Remove.
3670 (finish_block_internal, record_pending_block, make_blockvector)
3671 (end_symtab_get_static_block, augment_type_symtab, push_context)
3672 (buildsym_init): Update.
3674 2018-07-20 Tom Tromey <tom@tromey.com>
3676 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3677 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3679 (pending_addrmap, pending_addrmap_obstack)
3680 (pending_addrmap_interesting): Remove.
3681 (scoped_free_pendings, record_block_range, make_blockvector)
3682 (prepare_for_building, reset_symtab_globals, buildsym_init):
3685 2018-07-20 Tom Tromey <tom@tromey.com>
3687 * xcoffread.c (process_linenos): Update.
3688 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3689 * mdebugread.c (psymtab_to_symtab_1): Update.
3690 * dwarf2read.c (setup_type_unit_groups)
3691 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3692 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3693 * dbxread.c (process_one_symbol): Update.
3694 * coffread.c (coff_symtab_read, enter_linenos)
3695 (process_coff_symbol): Update.
3696 * buildsym.h (current_subfile): Don't declare.
3697 (get_current_subfile): Declare.
3698 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3700 (start_subfile, free_buildsym_compunit, push_subfile)
3701 (prepare_for_building, start_symtab): Update.
3702 (get_current_subfile): New function.
3704 2018-07-20 Tom Tromey <tom@tromey.com>
3706 * coffread.c (coff_symtab_read): Update.
3707 * xcoffread.c (read_xcoff_symtab): Update.
3708 * dwarf2read.c (new_symbol): Update.
3709 (read_func_scope, read_lexical_block_scope): Update.
3710 * dbxread.c (process_one_symbol): Update.
3711 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3712 (outermost_context_p): Remove macro.
3713 (outermost_context_p, get_current_context_stack)
3714 (get_context_stack_depth): Declare.
3715 (pop_context): Return struct context_stack.
3716 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3718 (context_stack_size): Remove.
3719 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3720 (prepare_for_building, end_symtab_get_static_block)
3721 (augment_type_symtab, push_context): Update.
3722 (pop_context): Return struct context_stack.
3723 (outermost_context_p, get_current_context_stack)
3724 (get_context_stack_depth): New functions.
3725 (buildsym_init): Update.
3727 2018-07-20 Tom Tromey <tom@tromey.com>
3729 * rust-exp.y: Now a pure parser. Update all rules.
3730 (%union): Move earlier.
3731 (current_parser, work_obstack): Remove globals.
3732 (rust_parser, ~rust_parser): Update.
3733 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3734 lex_character, lex_number, lex_string, lex_identifier,
3735 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3736 convert_name, convert_params_to_expression,
3737 convert_ast_to_expression, ast_basic_type, ast_operation,
3738 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3739 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3740 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3741 ast_array_type, ast_slice_type, ast_reference_type,
3742 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3743 (rust_parse): Update.
3744 (rustyyerror, rustyylex): Add parser parameter.
3745 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3746 (rust_lex_stringish_test, rust_lex_test_sequence)
3747 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3748 (rust_lex_test_push_back, rust_lex_tests): Update.
3750 2018-07-19 Pedro Alves <palves@redhat.com>
3752 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3753 gdb::unique_xmalloc_ptr.
3754 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3755 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3756 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3757 copy-initialization.
3758 * guile/scm-pretty-print.c (ppscm_print_children): Use
3759 gdb::unique_xmalloc_ptr instead of cleanups.
3760 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3761 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3762 gdb::unique_xmalloc_ptr.
3763 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3764 Adjust to use gdb::unique_xmalloc_ptr.
3765 * guile/scm-utils.c (extract_arg): Adjust.
3766 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3767 gdb::unique_xmalloc_ptr instead of a cleanup.
3769 2018-07-19 Tom Tromey <tom@tromey.com>
3771 * utils.c (do_value_free_to_mark)
3772 (make_cleanup_value_free_to_mark): Remove.
3773 * utils.h (make_cleanup_value_free_to_mark): Remove.
3775 2018-07-19 Pedro Alves <palves@redhat.com>
3777 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3778 forwarding reference.
3780 2018-07-18 Pedro Alves <palves@redhat.com>
3782 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3783 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3786 2018-07-18 Pedro Alves <palves@redhat.com>
3788 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3790 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3792 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3793 directly instead of a cleanup.
3794 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3795 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3796 (vlscm_binop_gdbthrow): New, factored out from ...
3797 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3798 (vlscm_rich_compare): Use gdbscm_wrap.
3799 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3800 instead of a cleanup.
3801 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3803 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3804 Use xfree directly instead of a cleanup.
3805 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3806 Adjust to use gdbscm_wrap and scoped_value_mark.
3807 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3808 (gdbscm_value_address, gdbscm_value_dereference)
3809 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3811 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3812 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3814 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3815 gdbscm_wrap and scoped_value_mark.
3816 (gdbscm_value_to_string): Use xfree directly instead of a
3817 cleanup. Move 'buffer' unique_ptr to TRY scope.
3818 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3819 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3821 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3822 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3824 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3827 2018-07-18 Tom de Vries <tdevries@suse.de>
3829 * findvar.c (default_read_var_value): Also resolve dynamic type for
3830 LOC_OPTIMIZED_OUT vars.
3832 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3834 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3837 2018-07-17 Tom Tromey <tom@tromey.com>
3839 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3840 (compute_enum_list, pascm_set_param_value_x)
3841 (gdbscm_parameter_value): Update.
3842 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3843 (gdbscm_scm_to_host_string): Update.
3844 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3846 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3847 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3848 * guile/scm-string.c (gdbscm_scm_to_string): Return
3850 (gdbscm_scm_to_host_string): Likewise.
3852 2018-07-17 Tom Tromey <tom@tromey.com>
3854 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3855 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3856 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3857 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3860 2018-07-17 Tom Tromey <tom@tromey.com>
3862 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3863 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3865 * guile/scm-cmd.c (cmdscm_function): Update.
3866 * guile/scm-pretty-print.c
3867 (ppscm_print_exception_unless_memory_error): Update.
3868 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3869 Return unique_xmalloc_ptr.
3871 2018-07-17 Tom Tromey <tom@tromey.com>
3873 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3876 2018-07-17 Jim Wilson <jimw@sifive.com>
3878 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3879 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3880 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3881 unecessary braces after EF_RISCV_RVC test. Delete call to
3882 set_gdbarch_decr_pc_after_break.
3884 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3885 RISCV_LAST_FP_REGNUM + 1.
3886 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3888 2018-07-17 Tom Tromey <tom@tromey.com>
3890 * configure.ac: Remove --disable-gdbcli.
3891 * configure: Rebuild.
3892 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3893 (SUBDIR_CLI_CFLAGS): Remove.
3894 (SFILES): Use SUBDIR_CLI_SRCS.
3895 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3897 2018-07-17 Tom Tromey <tom@tromey.com>
3900 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3902 2018-07-16 Jim Wilson <jimw@sifive.com>
3904 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3906 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3908 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3910 (libunwind_frame_sniffer): Likewise.
3911 (libunwind_frame_prev_register): Likewise.
3912 (libunwind_sigtramp_frame_sniffer): Likewise.
3913 * ia64-tdep.c (ia64_access_reg): Likewise.
3914 (ia64_access_rse_reg): Likewise.
3915 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3916 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3918 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3920 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3922 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3924 * remote-sim.c (gdbsim_target::close,
3925 gdbsim_target::mourn_inferior): Remove unused variables.
3927 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3929 * ia64-tdep.c (ktab_buf): New global.
3930 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3931 (get_kernel_table): Adjust.
3933 2018-07-16 Tom Tromey <tom@tromey.com>
3935 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3936 * dwarf2read.c (using_directives, new_symbol): Use
3937 outermost_context_p.
3938 * dbxread.c (process_one_symbol): Use outermost_context_p.
3939 * coffread.c (coff_symtab_read): Use outermost_context_p.
3941 2018-07-16 Tom Tromey <tom@tromey.com>
3943 * dwarf2read.c (using_directives, read_func_scope)
3944 (read_lexical_block_scope): Update.
3945 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3946 * buildsym.h (local_using_directives, global_using_directives):
3948 (get_local_using_directives, set_local_using_directives)
3949 (get_global_using_directives): Declare.
3950 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
3951 m_global_using_directives>: New members.
3952 (finish_block_internal, prepare_for_building)
3953 (reset_symtab_globals, end_symtab_get_static_block)
3954 (push_context): Update.
3955 (get_local_using_directives, set_local_using_directives)
3956 (get_global_using_directives): New functions.
3957 (buildsym_init): Update.
3959 2018-07-16 Tom Tromey <tom@tromey.com>
3961 * xcoffread.c (xcoff_initial_scan): Don't call
3962 free_pending_blocks.
3963 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
3964 * buildsym.h (class scoped_free_pendings): Add constructor.
3965 (free_pending_blocks): Don't declare.
3966 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
3967 (free_pending_blocks): Now static.
3969 2018-07-16 Tom Tromey <tom@tromey.com>
3971 * buildsym.h (push_subfile, pop_subfile): Update declarations.
3972 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
3974 (struct subfile_stack): Remove.
3975 (subfile_stack): Remove.
3976 (push_subfile, pop_subfile, buildsym_init): Update.
3978 2018-07-16 Tom Tromey <tom@tromey.com>
3980 * buildsym.c (push_subfile): Use gdb_assert.
3981 (pop_subfile): Use gdb_assert.
3983 2018-07-16 Tom Tromey <tom@tromey.com>
3985 * buildsym.h (merge_symbol_lists): Remove.
3986 * buildsym.c (merge_symbol_lists): Remove.
3988 2018-07-16 Tom Tromey <tom@tromey.com>
3990 * stabsread.c (scan_file_globals): Update comment.
3991 * stabsread.h (scan_file_globals): Move from buildsym.h.
3992 * buildsym.h (scan_file_globals): Move to stabsread.h.
3994 2018-07-16 Tom Tromey <tom@tromey.com>
3996 * xcoffread.c (xcoff_new_init): Update.
3997 * mipsread.c (mipscoff_new_init): Update.
3998 * mdebugread.c (mdebug_build_psymtabs): Update.
3999 * elfread.c (elf_new_init): Update.
4000 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4001 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4002 * buildsym.h (buildsym_new_init): Don't declare.
4003 * buildsym.c (buildsym_new_init): Remove.
4005 2018-07-16 Tom Tromey <tom@tromey.com>
4007 * stabsread.h (within_function): Move from buildsym.h.
4008 * stabsread.c (start_stabs): Clear within_function.
4009 * coffread.c (coff_start_symtab): Clear within_function.
4010 * buildsym.h (within_function): Move to stabsread.h.
4011 * buildsym.c (prepare_for_building): Update.
4013 2018-07-16 Tom Tromey <tom@tromey.com>
4015 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4016 * dwarf2read.c (dwarf2_start_symtab): Don't set
4017 processing_gcc_compilation.
4018 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4020 2018-07-16 Tom Tromey <tom@tromey.com>
4022 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4023 (next_symbol_text_func): Move from buildsym.h.
4024 * stabsread.c (hashname): Move from buildsym.c.
4025 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4026 (next_symbol_text_func, hashname): Move to stabsread.h.
4027 * buildsym.c: Don't include bcache.h
4028 (hashname): Move to stasbread.c.
4030 2018-07-16 Tom Tromey <tom@tromey.com>
4032 * buildsym.h (context_stack_size): Don't declare.
4033 * buildsym.c (context_stack_size): New global.
4035 2018-07-16 Tom Tromey <tom@tromey.com>
4037 * dbxread.c (processing_acc_compilation): New global.
4038 * buildsym.h (processing_acc_compilation): Don't declare.
4040 2018-07-16 Tom Tromey <tom@tromey.com>
4042 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4043 * dbxread.c (read_ofile_symtab): Update.
4044 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4045 * buildsym.h (last_source_start_addr): Remove.
4046 (set_last_source_start_addr, get_last_source_start_addr):
4048 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4050 (struct buildsym_compunit) <m_last_source_start_addr>: New
4052 (prepare_for_building): Remove start_addr parameter.
4053 (start_symtab, restart_symtab, end_symtab_get_static_block)
4054 (end_symtab_with_blockvector): Update.
4055 (set_last_source_start_addr, get_last_source_start_addr): New
4058 2018-07-16 Tom Tromey <tom@tromey.com>
4060 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4062 (have_line_numbers): Remove.
4063 (record_line, prepare_for_building, end_symtab_get_static_block)
4064 (augment_type_symtab): Update.
4066 2018-07-16 Tom Tromey <tom@tromey.com>
4068 * buildsym.c (~buildsym_compunit): Free the macro table.
4069 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4071 <m_pending_macros>: New member.
4072 (pending_macros): Remove.
4073 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4074 (reset_symtab_globals, end_symtab_get_static_block)
4075 (end_symtab_with_blockvector, augment_type_symtab)
4076 (buildsym_init): Update.
4078 2018-07-16 Tom Tromey <tom@tromey.com>
4080 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4082 (buildsym_compunit::set_last_source_file): New method.
4083 <m_last_source_file>: New member.
4084 (prepare_for_building): Remove "name" parameter.
4085 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4086 (last_source_file): Remove.
4087 (set_last_source_file, get_last_source_file): Update.
4089 2018-07-16 Tom Tromey <tom@tromey.com>
4091 * buildsym.c (prepare_for_building): Add assert.
4093 2018-07-16 Tom Tromey <tom@tromey.com>
4095 * buildsym.c (~buildsym_compunit): Update.
4096 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4097 (start_subfile, patch_subfile_names)
4098 (end_symtab_with_blockvector): Update.
4100 2018-07-16 Tom Tromey <tom@tromey.com>
4102 * buildsym.c (struct buildsym_compunit): Add constructor,
4103 destructor, initializers.
4104 (start_buildsym_compunit): Remove.
4105 (free_buildsym_compunit): Use "delete".
4106 (start_symtab, restart_symtab): Use "new".
4108 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4110 * symfile.c (set_objfile_default_section_offset): Remove struct
4113 2018-07-14 Stafford Horne <shorne@gmail.com>
4115 * (Responsible Maintainers): Add myself as or1k maintainer.
4117 2018-07-13 Tom Tromey <tom@tromey.com>
4119 * symfile.c (set_objfile_default_section_offset): Use extra braces
4122 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4124 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4127 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4129 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4130 unittests/cli-utils-selftests.c
4131 * unittests/cli-utils-selftests.c: New file.
4133 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4135 * NEWS: Mention new commands. Mention change to 'thread apply'.
4137 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4139 * thread.c (thr_try_catch_cmd): New function.
4140 (thread_apply_all_command): Handle qcs flags.
4141 (thread_apply_command): Handle qcs flags.
4142 (taas_command): New function.
4143 (tfaas_command): New function.
4144 (_initialize_thread): Update to setup the new commands 'taas
4145 and 'tfaas'. Change doc string for 'thread apply'.
4147 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4149 * stack.c: (trailing_outermost_frame): New function, mostly
4150 extracted from backtrace_command_1.
4151 (leading_innermost_frame): New function.
4152 (backtrace_command_1): Update to call trailing_outermost_frame.
4153 (frame_apply_command_count): New function.
4154 (frame_apply_level_command): New function.
4155 (frame_apply_all_command): New function.
4156 (frame_apply_command): New function.
4157 (faas_command): New function.
4158 (frame_cmd_list): New variable.
4159 (_initialize_stack): Update to setup the new commands 'frame apply'
4162 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4164 * cli-utils.c (number_or_range_parser::get_number): Only handle
4165 numbers or convenience var as numbers.
4166 (parse_flags): New function.
4167 (parse_flags_qcs): New function.
4168 (number_or_range_parser::finished): Ensure parsing end is detected
4169 before end of string.
4170 * cli-utils.h (parse_flags): New function.
4171 (parse_flags_qcs): New function.
4172 (number_or_range_parser): Remove m_finished bool.
4173 (number_or_range_parser::skip_range): Set m_in_range to false.
4175 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4177 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4180 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4181 Jan Kratochvil <jan.kratochvil@redhat.com>
4182 Paul Fertser <fercerpav@gmail.com>
4183 Tsutomu Seki <sekiriki@gmail.com>
4184 Pedro Alves <palves@redhat.com>
4186 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4187 'unittests/parse-connection-spec-selftests.c'.
4188 (COMMON_SFILES): Add 'common/netstuff.c'.
4189 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4190 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4191 * common/netstuff.c: New file.
4192 * common/netstuff.h: New file.
4193 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4194 (wait_for_connect): Update comment. New parameter
4195 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4196 Use 'sock' directly instead of 'scb->fd'.
4197 (try_connect): New function, with code from 'net_open'.
4198 (net_open): Rewrite main loop to deal with multiple
4199 sockets/addresses. Handle IPv6-style hostnames; implement
4200 support for IPv6 connections.
4201 * unittests/parse-connection-spec-selftests.c: New file.
4203 2018-07-11 Pedro Alves <palves@redhat.com>
4206 * remote.c (remote_target::remote_detach_pid): Call
4207 set_current_process.
4209 2018-07-11 Pedro Alves <palves@redhat.com>
4211 * h8300-tdep.c (h8300_gdbarch_init): Remove
4212 set_gdbarch_ecoff_reg_to_regnum calls.
4214 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4217 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4218 offsets/sizes for static members of a class/struct.
4220 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4222 * target-descriptions.c (tdesc_register_bitsize): Rename.
4223 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4224 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4225 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4227 2018-07-10 Tom Tromey <tom@tromey.com>
4229 * breakpoint.c (moribund_locations): Now static and a
4231 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4232 (build_bpstat_chain, update_global_location_list)
4233 (breakpoint_retire_moribund): Update.
4234 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4237 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4239 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4240 (riscv_register_reggroup_p): Use new function, remove unneeded
4242 (riscv_push_dummy_call): Extend assert to compare against xlen or
4243 flen based on register type.
4245 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4247 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4249 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4251 * remote.c (show_hardware_watchpoint_limit): New function.
4252 (show_hardware_watchpoint_length_limit): New function.
4253 (show_hardware_breakpoint_limit): New function.
4254 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4255 where appropriate, update help text.
4257 2018-07-09 Tom Tromey <tom@tromey.com>
4259 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4260 (CLIBS): Don't mention NAT_CLIBS.
4262 2018-07-09 Tom Tromey <tom@tromey.com>
4264 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4265 (LIBGDB_OBS, clean mostlyclean): Update.
4266 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4268 2018-07-09 Tom Tromey <tom@tromey.com>
4270 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4271 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4272 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4274 2018-07-09 Tom Tromey <tom@tromey.com>
4276 * Makefile.in (ALLDEPFILES): Remove exec.c.
4277 (COMMON_OBS): Remove exec.o.
4278 (COMMON_SFILES): Add exec.c.
4280 2018-07-09 Tom Tromey <tom@tromey.com>
4282 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4284 2018-07-09 Tom Tromey <tom@tromey.com>
4286 * Makefile.in (clean mostlyclean): Remove stamp-version.
4287 (version.c): Depend on stamp-version.
4288 (stamp-version): New rule, from version.c rule.
4290 2018-07-09 Tom Tromey <tom@tromey.com>
4292 * Makefile.in (init.c): Depend on stamp-init.
4293 (stamp-init): New rule, from init.c rule.
4294 (clean mostlyclean): Remove stamp-init.
4296 2018-07-09 Tom Tromey <tom@tromey.com>
4298 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4299 SUBDIR_GCC_COMPILE_SRCS.
4301 2018-07-09 Tom Tromey <tom@tromey.com>
4303 * Makefile.in (init.c): Remove some unused sed rules.
4305 2018-07-09 Tom Tromey <tom@tromey.com>
4307 * Makefile.in (TSOBS): Remove.
4308 (INIT_FILES): Update.
4309 (LIBGDB_OBS): Update.
4310 (COMMON_SFILES): Add inflow.c.
4311 (SFILES): Remove inflow.c.
4313 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4315 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4317 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4319 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4320 get_saveloc_name, is_signal_frame_name, step_name,
4321 init_remote_name, create_addr_space_name,
4322 destroy_addr_space_name, search_unwind_table_name,
4323 find_dyn_list_name): Constify.
4325 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4327 * darwin-nat.c (darwin_pthread_kill): New function.
4328 (darwin_resume_thread): Use darwin_pthread_kill.
4330 2018-07-05 Tom de Vries <tdevries@suse.de>
4332 * macroexp.c (macro_buffer) <operator=>: New member function.
4334 2018-07-04 Tom Tromey <tom@tromey.com>
4336 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4338 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4340 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4341 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4342 * maint.c: Likewise.
4345 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4347 * NEWS: Create a new section for the next release branch.
4348 Rename the section of the current branch, now that it has
4351 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4353 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4354 * version.in: Bump version to 8.2.50.DATE-git.
4356 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4357 Pedro Alves <palves@redhat.com>
4359 * linux-nat.c (linux_init_ptrace): Rename to ...
4360 (linux_init_ptrace_procfs): ... this. Call
4361 linux_proc_init_warnings.
4362 (linux_nat_target::post_attach)
4363 (linux_nat_target::post_startup_inferior): Adjust.
4364 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4365 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4367 2018-07-04 Tom de Vries <tdevries@suse.de>
4369 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4371 (read_comp_unit_head): ... here.
4373 2018-07-03 Tom Tromey <tom@tromey.com>
4375 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4376 (stop_tracing, tstatus_command)
4377 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4378 (print_one_static_tracepoint_marker): Update.
4379 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4381 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4383 (all_tracepoints, static_tracepoints_here): Return std::vector.
4385 2018-07-03 Tom Tromey <tom@tromey.com>
4387 * common/ptid.c (ptid_equal): Remove.
4388 * common/ptid.h (ptid_equal): Don't declare.
4389 * ada-tasks.c: Update.
4390 * breakpoint.c: Update.
4391 * common/agent.c: Update.
4392 * corelow.c: Update.
4393 * darwin-nat-info.c: Update.
4394 * darwin-nat.c: Update.
4396 * dtrace-probe.c: Update.
4397 * dummy-frame.c: Update.
4398 * fbsd-nat.c: Update.
4400 * gdbthread.h: Update.
4401 * gnu-nat.c: Update.
4402 * go32-nat.c: Update.
4403 * inf-loop.c: Update.
4404 * inf-ptrace.c: Update.
4405 * infcall.c: Update.
4409 * linux-fork.c: Update.
4410 * linux-nat.c: Update.
4411 * linux-thread-db.c: Update.
4412 * mi/mi-cmd-var.c: Update.
4413 * mi/mi-interp.c: Update.
4414 * mi/mi-main.c: Update.
4415 * nto-procfs.c: Update.
4416 * ppc-linux-tdep.c: Update.
4418 * python/py-inferior.c: Update.
4419 * python/py-record-btrace.c: Update.
4420 * python/py-record.c: Update.
4421 * ravenscar-thread.c: Update.
4422 * regcache.c: Update.
4423 * remote-sim.c: Update.
4425 * sol-thread.c: Update.
4428 * tui/tui-stack.c: Update.
4430 * windows-nat.c: Update.
4431 * windows-tdep.c: Update.
4433 2018-07-03 Tom Tromey <tom@tromey.com>
4435 * common/ptid.c (ptid_match): Remove.
4436 * common/ptid.h (ptid_match): Don't declare.
4437 * fbsd-nat.c: Update.
4440 * linux-nat.c: Update.
4441 * record-btrace.c: Update.
4442 * regcache.c: Update.
4445 2018-07-03 Tom Tromey <tom@tromey.com>
4447 * common/ptid.c (ptid_tid_p): Remove.
4448 * common/ptid.h (ptid_tid_p): Don't declare.
4449 * sol-thread.c: Update.
4451 2018-07-03 Tom Tromey <tom@tromey.com>
4453 * common/ptid.c (ptid_lwp_p): Remove.
4454 * common/ptid.h (ptid_lwp_p): Don't declare.
4455 * fbsd-nat.c: Update.
4456 * linux-nat.c: Update.
4457 * nat/linux-procfs.c: Update.
4458 * nat/x86-linux-dregs.c: Update.
4459 * sol-thread.c: Update.
4461 2018-07-03 Tom Tromey <tom@tromey.com>
4463 * common/ptid.c (ptid_is_pid): Remove.
4464 * common/ptid.h (ptid_is_pid): Don't declare.
4466 * linux-nat.c: Update.
4467 * mi/mi-interp.c: Update.
4471 2018-07-03 Tom Tromey <tom@tromey.com>
4473 * common/ptid.c (ptid_get_tid): Remove.
4474 * common/ptid.h (ptid_get_tid): Don't declare.
4475 * ada-tasks.c: Update.
4476 * aix-thread.c: Update.
4477 * bsd-uthread.c: Update.
4478 * darwin-nat.c: Update.
4479 * fbsd-nat.c: Update.
4480 * i386-darwin-nat.c: Update.
4482 * linux-tdep.c: Update.
4483 * nto-procfs.c: Update.
4484 * ppc-ravenscar-thread.c: Update.
4485 * python/py-infthread.c: Update.
4486 * ravenscar-thread.c: Update.
4487 * sol-thread.c: Update.
4488 * sparc-ravenscar-thread.c: Update.
4489 * windows-nat.c: Update.
4491 2018-07-03 Tom Tromey <tom@tromey.com>
4493 * common/ptid.c (ptid_get_lwp): Remove.
4494 * common/ptid.h (ptid_get_lwp): Don't declare.
4495 * aarch64-linux-nat.c: Update.
4496 * ada-tasks.c: Update.
4497 * aix-thread.c: Update.
4498 * amd64-linux-nat.c: Update.
4499 * arm-linux-nat.c: Update.
4500 * corelow.c: Update.
4501 * fbsd-nat.c: Update.
4502 * fbsd-tdep.c: Update.
4503 * gnu-nat.c: Update.
4504 * i386-cygwin-tdep.c: Update.
4505 * i386-gnu-nat.c: Update.
4506 * i386-linux-nat.c: Update.
4507 * ia64-linux-nat.c: Update.
4508 * inf-ptrace.c: Update.
4510 * linux-fork.c: Update.
4511 * linux-nat.c: Update.
4512 * linux-tdep.c: Update.
4513 * linux-thread-db.c: Update.
4514 * mips-linux-nat.c: Update.
4515 * nat/aarch64-linux-hw-point.c: Update.
4516 * nat/aarch64-linux.c: Update.
4517 * nat/linux-btrace.c: Update.
4518 * nat/linux-osdata.c: Update.
4519 * nat/linux-procfs.c: Update.
4520 * nat/x86-linux-dregs.c: Update.
4521 * obsd-nat.c: Update.
4522 * ppc-fbsd-nat.c: Update.
4523 * ppc-linux-nat.c: Update.
4525 * python/py-infthread.c: Update.
4526 * ravenscar-thread.c: Update.
4528 * s390-linux-nat.c: Update.
4529 * sol-thread.c: Update.
4530 * sol2-tdep.c: Update.
4531 * spu-linux-nat.c: Update.
4532 * x86-linux-nat.c: Update.
4533 * xtensa-linux-nat.c: Update.
4535 2018-07-03 Tom Tromey <tom@tromey.com>
4537 * common/ptid.c (ptid_get_pid): Remove.
4538 * common/ptid.h (ptid_get_pid): Don't declare.
4539 * aarch64-linux-nat.c: Update.
4540 * ada-lang.c: Update.
4541 * aix-thread.c: Update.
4542 * alpha-bsd-nat.c: Update.
4543 * amd64-fbsd-nat.c: Update.
4544 * amd64-linux-nat.c: Update.
4545 * arm-linux-nat.c: Update.
4546 * arm-nbsd-nat.c: Update.
4548 * break-catch-syscall.c: Update.
4549 * breakpoint.c: Update.
4550 * bsd-uthread.c: Update.
4551 * corelow.c: Update.
4553 * darwin-nat.c: Update.
4554 * fbsd-nat.c: Update.
4555 * fbsd-tdep.c: Update.
4557 * gnu-nat.c: Update.
4558 * hppa-nbsd-nat.c: Update.
4559 * hppa-obsd-nat.c: Update.
4560 * i386-fbsd-nat.c: Update.
4561 * ia64-linux-nat.c: Update.
4562 * inf-ptrace.c: Update.
4564 * inferior.c: Update.
4565 * inferior.h: Update.
4568 * linux-fork.c: Update.
4569 * linux-nat.c: Update.
4570 * linux-tdep.c: Update.
4571 * linux-thread-db.c: Update.
4572 * m68k-bsd-nat.c: Update.
4573 * mi/mi-interp.c: Update.
4574 * mi/mi-main.c: Update.
4575 * mips-linux-nat.c: Update.
4576 * mips-nbsd-nat.c: Update.
4577 * mips64-obsd-nat.c: Update.
4578 * nat/aarch64-linux-hw-point.c: Update.
4579 * nat/aarch64-linux.c: Update.
4580 * nat/linux-btrace.c: Update.
4581 * nat/linux-osdata.c: Update.
4582 * nat/linux-procfs.c: Update.
4583 * nat/x86-linux-dregs.c: Update.
4584 * nto-procfs.c: Update.
4585 * obsd-nat.c: Update.
4586 * ppc-linux-nat.c: Update.
4587 * ppc-nbsd-nat.c: Update.
4588 * ppc-obsd-nat.c: Update.
4589 * proc-service.c: Update.
4591 * python/py-inferior.c: Update.
4592 * python/py-infthread.c: Update.
4593 * ravenscar-thread.c: Update.
4595 * remote-sim.c: Update.
4597 * rs6000-nat.c: Update.
4598 * s390-linux-nat.c: Update.
4599 * sh-nbsd-nat.c: Update.
4600 * sol-thread.c: Update.
4601 * sparc-nat.c: Update.
4602 * sparc64-tdep.c: Update.
4603 * spu-linux-nat.c: Update.
4604 * spu-tdep.c: Update.
4605 * target-debug.h: Update.
4608 * tid-parse.c: Update.
4609 * tracefile-tfile.c: Update.
4610 * vax-bsd-nat.c: Update.
4611 * windows-nat.c: Update.
4612 * x86-linux-nat.c: Update.
4613 * x86-nat.c: Update.
4615 2018-07-03 Tom Tromey <tom@tromey.com>
4617 * common/ptid.c (pid_to_ptid): Remove.
4618 * common/ptid.h (pid_to_ptid): Don't declare.
4619 * aix-thread.c: Update.
4620 * arm-linux-nat.c: Update.
4621 * common/ptid.c: Update.
4622 * common/ptid.h: Update.
4623 * corelow.c: Update.
4625 * darwin-nat.c: Update.
4626 * fbsd-nat.c: Update.
4627 * fork-child.c: Update.
4628 * gnu-nat.c: Update.
4629 * go32-nat.c: Update.
4630 * inf-ptrace.c: Update.
4632 * inferior.c: Update.
4634 * linux-fork.c: Update.
4635 * linux-nat.c: Update.
4636 * nat/aarch64-linux-hw-point.c: Update.
4637 * nat/fork-inferior.c: Update.
4638 * nat/x86-linux-dregs.c: Update.
4639 * nto-procfs.c: Update.
4640 * obsd-nat.c: Update.
4642 * progspace.c: Update.
4644 * rs6000-nat.c: Update.
4645 * s390-linux-nat.c: Update.
4646 * sol-thread.c: Update.
4647 * spu-linux-nat.c: Update.
4650 * tracefile-tfile.c: Update.
4651 * windows-nat.c: Update.
4653 2018-07-03 Tom Tromey <tom@tromey.com>
4655 * common/ptid.h (ptid_build): Don't declare.
4656 * common/ptid.c (ptid_build): Remove.
4657 * aix-thread.c: Update.
4658 * bsd-kvm.c: Update.
4659 * bsd-uthread.c: Update.
4660 * common/agent.c: Update.
4661 * common/ptid.c: Update.
4662 * common/ptid.h: Update.
4663 * corelow.c: Update.
4664 * darwin-nat.c: Update.
4665 * fbsd-nat.c: Update.
4666 * gnu-nat.c: Update.
4667 * linux-fork.c: Update.
4668 * linux-nat.c: Update.
4669 * linux-thread-db.c: Update.
4670 * nat/linux-osdata.c: Update.
4671 * nat/linux-procfs.c: Update.
4672 * nto-procfs.c: Update.
4673 * obsd-nat.c: Update.
4674 * proc-service.c: Update.
4676 * ravenscar-thread.c: Update.
4677 * remote-sim.c: Update.
4679 * sol-thread.c: Update.
4681 * windows-nat.c: Update.
4683 2018-07-03 Tom Tromey <tom@tromey.com>
4685 * infrun.c (follow_exec): Use exit_inferior_silent.
4686 * inferior.c (exit_inferior_num_silent): Remove.
4687 * inferior.h (exit_inferior_num_silent): Don't declare.
4689 2018-07-03 Tom Tromey <tom@tromey.com>
4692 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4693 inferior_ptid on error.
4695 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4696 Simon Marchi <simon.marchi@polymtl.ca>
4699 * disasm.h (gdb_disassembler): Add
4700 `m_disassembler_options_holder'. member
4701 * disasm.c (get_all_disassembler_options): New function.
4702 (gdb_disassembler::gdb_disassembler): Use it.
4703 (gdb_buffered_insn_length_init_dis): Likewise.
4704 (gdb_buffered_insn_length): Adjust accordingly.
4705 (set_disassembler_options): Handle options with arguments.
4706 (show_disassembler_options_sfunc): Likewise. Add a leading new
4707 line if showing options with descriptions.
4708 (disassembler_options_completer): Adapt to using the
4709 `disasm_options_and_args_t' structure.
4710 * mips-tdep.c (mips_disassembler_options): New variable.
4711 (mips_disassembler_options_o32): Likewise.
4712 (mips_disassembler_options_n32): Likewise.
4713 (mips_disassembler_options_n64): Likewise.
4714 (gdb_print_insn_mips): Don't set `disassembler_options'.
4715 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4717 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4718 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4719 `gdbarch_disassembler_options_implicit' and
4720 `gdbarch_valid_disassembler_options'.
4721 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4722 `disasm_options_and_args_t' structure.
4723 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4725 (valid_disassembler_options): Switch from `disasm_options_t' to
4726 the `disasm_options_and_args_t' structure.
4727 * NEWS: Document `set disassembler-options' support for the MIPS
4729 * gdbarch.h: Regenerate.
4730 * gdbarch.c: Regenerate.
4732 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4734 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4736 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4738 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4739 parameter in call to amd64_target_description.
4740 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4741 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4742 (amd64fbsd_init_abi): Likewise.
4743 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4744 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4745 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4746 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4748 2018-06-29 Pedro Alves <palves@redhat.com>
4750 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4751 "segments" parameter.
4752 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4753 (_initialize_amd64_tdep): Update call to
4754 amd64_create_target_description.
4755 (amd64_target_description): Add "segments" parameter. Adjust
4756 the implementation to use it.
4757 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4758 call to amd64_create_target_description.
4759 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4760 * gdb/arch/amd64.h (amd64_create_target_description): Add
4761 "segments" register.
4762 * gdb/arch/amd64.c (amd64_create_target_description): Add
4763 "segments" parameter. Call create_feature_i386_64bit_segments
4764 only if SEGMENTS is true.
4765 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4766 call to amd64_create_target_description.
4768 2018-06-29 Pedro Alves <palves@redhat.com>
4770 * thread.c (thread_target_id_str): New, factored out from ...
4771 (print_thread_info_1): ... here. Use it to compute the max
4772 "Target Id" column width.
4774 2018-06-29 Pedro Alves <palves@redhat.com>
4776 * remote.c (remote_target::extra_thread_info): Delete
4777 'display_buf' and 'n' locals. from the cache, regardless of
4778 packet mechanims is in use. Use cache for qThreadExtra and qP
4781 2018-06-29 Pedro Alves <palves@redhat.com>
4783 * blockframe.c (find_pc_sect_containing_function): New function.
4784 * breakpoint.c (print_breakpoint_location): Don't call
4785 find_pc_sect_function.
4786 * linespec.c (create_sals_line_offset): Record the location's
4788 * linespec.c (convert_address_location_to_sals): Fill in sal's
4789 symbol with find_pc_sect_containing_function.
4790 * symtab.c (find_function_start_sal): Rename to ...
4791 (find_function_start_sal_1): ... this.
4792 (find_function_start_sal): Reimplement as wrapper around
4793 find_function_start_sal_1, and use
4794 find_pc_sect_containing_function to fill in the sal's symbol.
4795 (find_function_start_sal(symbol*, bool)): Adjust.
4796 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4798 (find_pc_sect_containing_function): Declare.
4800 2018-06-29 Pedro Alves <palves@redhat.com>
4802 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4803 true if the the location has no symbol.
4805 2018-06-28 Tom Tromey <tom@tromey.com>
4807 * NEWS: Mention --enable-codesign.
4808 * silent-rules.mk (ECHO_SIGN): New variable.
4809 * configure.ac: Add --enable-codesign.
4810 * configure: Rebuild.
4811 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4812 (gdb$(EXEEXT)): Optionally invoke codesign.
4814 2018-06-28 Pedro Alves <palves@redhat.com>
4816 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4818 (switch_to_thread_no_regs): Adjust comment.
4819 * infcmd.c (stop_pc): Delete.
4820 (post_create_inferior, info_program_command): Replace references
4821 to stop_pc with references to thread_info->suspend.stop_pc.
4822 * inferior.h (stop_pc): Delete declaration.
4823 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4824 (handle_inferior_event_1, handle_signal_stop)
4825 (process_event_stop_test, keep_going_stepped_thread)
4826 (handle_step_into_function, handle_step_into_function_backward)
4827 (print_stop_location): Replace references to stop_pc with
4828 references to thread_info->suspend.stop_pc.
4829 (struct infcall_suspend_state) <stop_pc>: Delete field.
4830 (save_infcall_suspend_state, restore_infcall_suspend_state):
4831 Remove references to inf_stat->stop_pc.
4832 * linux-fork.c (fork_load_infrun_state): Likewise.
4833 * record-btrace.c (record_btrace_set_replay): Likewise.
4834 * record-full.c (record_full_goto_entry): Likewise.
4835 * remote.c (print_one_stopped_thread): Likewise.
4836 * target.c (target_resume): Extend comment.
4837 * thread.c (set_executing_thread): New.
4838 (set_executing): Use it.
4839 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4840 Remove references to stop_pc.
4842 2018-06-28 Pedro Alves <palves@redhat.com>
4844 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4845 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4847 2018-06-28 Tom Tromey <tom@tromey.com>
4849 * coffread.c (coff_symfile_finish): Update.
4850 * xcoffread.c (xcoff_symfile_finish): Update.
4851 * elfread.c (elf_symfile_finish): Update.
4852 * symfile.h (dwarf2_free_objfile): Don't declare.
4853 * dwarf2read.c (_initialize_dwarf2_read): Use
4854 register_objfile_data_with_cleanup.
4855 (dwarf2_free_objfile): Now static. Change signature.
4857 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4859 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4860 option "-o" to add-symbol-file-load to add an offset to each
4861 section's load address.
4862 * symfile.c (set_objfile_default_section_offset): New function.
4864 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4866 * symfile.c (add_symbol_file_command): Make sure that sections
4867 with the same name are sorted in the same order.
4869 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4871 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4872 require the second argument. If omitted, load sections at the
4873 addresses specified in the file.
4875 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4877 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4878 (_initialize_symfile): Add option "-o" to symbol-file to add an
4879 offset to each section of the symbol file.
4881 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4883 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4885 2018-06-27 Tom Tromey <tom@tromey.com>
4887 * stack.c (_initialize_stack): Update "func" help text.
4889 2018-06-27 Tom Tromey <tom@tromey.com>
4891 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4893 (unwind_infopy_str, pyuw_create_unwind_info)
4894 (unwind_infopy_add_saved_register, pyuw_sniffer)
4895 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4897 (struct saved_reg): Add constructor.
4898 <value>: Now a gdbpy_ref<>.
4900 2018-06-27 Tom Tromey <tom@tromey.com>
4902 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4904 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4906 * gdb-gdb.py.in: Format using autopep8.
4908 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4910 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4911 (type_lookup_function): Recognize CORE_ADDR values.
4913 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4915 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4918 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4920 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4923 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4925 * gdb-gdb.py: Move to...
4926 * gdb-gdb.py.in: ... here.
4927 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4928 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4930 (distclean): Remove gdb-gdb.py when cleaning.
4931 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4932 * configure: Re-generate.
4934 2018-06-27 Pedro Alves <palves@redhat.com>
4936 * proc-service.c (get_ps_regcache): New.
4937 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4938 (ps_lsetfpregs): Use it.
4940 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
4943 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
4944 (dwarf_decode_lines_1): Adjust.
4946 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4948 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
4950 <info_proc>: Likewise.
4952 2018-06-26 Joel Brobecker <brobecker@adacore.com>
4954 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
4955 to windows_fetch_one_register, and only handle the case of
4956 fetching one register. Move the code that reloads the context
4957 and iterates over all registers if R is negative to...
4958 (windows_nat_target::fetch_registers): ... here.
4959 (do_windows_store_inferior_registers): Rename to
4960 windows_store_one_register, and only handle the case of storing
4961 one register. Move the code that handles the case where r is
4963 (windows_nat_target::store_registers) ... here.
4965 2018-06-26 Tom Tromey <tom@tromey.com>
4968 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
4969 * rust-lang.c (rust_print_struct_def): Add podata parameter.
4971 (rust_internal_print_type): Add podata parameter.
4972 (rust_print_type): Update.
4974 2018-06-26 Tom Tromey <tom@tromey.com>
4976 * typeprint.h (struct print_offset_data) <update, finish,
4977 maybe_print_hole>: New methods.
4978 <indentation>: New constant.
4979 * typeprint.c (print_offset_data::indentation): Define.
4980 (print_offset_data::maybe_print_hole, print_offset_data::update)
4981 (print_offset_data::finish): Move from c-typeprint.c and rename.
4982 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
4983 (print_spaces_filtered_with_print_options): Update.
4984 (c_print_type_union_field_offset, maybe_print_hole)
4985 (c_print_type_struct_field_offset): Move to typeprint.c and
4987 (c_type_print_base_struct_union): Update.
4989 2018-06-25 Pedro Alves <palves@redhat.com>
4991 * gdbthread.h (thread_info_ref, delete_thread)
4992 (delete_thread_silent, first_thread_of_inferior)
4993 (any_thread_of_inferior, switch_to_thread)
4994 (enable_thread_stack_temporaries)
4995 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
4996 (get_last_thread_stack_temporary)
4997 (value_in_thread_stack_temporaries, can_access_registers_thread):
4998 Spell out "struct thread_info" instead of just "thread_info".
4999 * inferior.h (notice_new_inferior): Likewise.
5001 2018-06-25 Pedro Alves <palves@redhat.com>
5003 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5004 pass thread_info pointer to delete_thread.
5005 (windows_nat_target::detach): Pass inferior pointer to
5007 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5009 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5010 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5011 and pass a thread_info pointer to delete_thread.
5012 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5013 pass thread_info pointer to delete_thread.
5014 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5015 delete_thread_silent call.
5016 * procfs.c (procfs_target::detach): Pass inferior pointer to
5018 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5019 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5020 delete_thread_silent call.
5021 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5022 pass thread_info pointer to delete_thread.
5023 (windows_nat_target::detach): Pass inferior pointer to
5026 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5028 * regcache.c (readable_regcache::read_part): Fix asserts.
5029 (reg_buffer::raw_collect_part): New function.
5030 (regcache::write_part): Fix asserts.
5031 (reg_buffer::raw_supply_part): New function.
5032 (regcache::transfer_regset_register): New helper function.
5033 (regcache::transfer_regset): Call new functions.
5034 (regcache_supply_regset): Use gdb_byte*.
5035 (regcache::supply_regset): Likewise.
5036 (regcache_collect_regset): Likewise.
5037 (regcache::collect_regset): Likewise.
5038 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5039 (reg_buffer::raw_supply_part): Likewise.
5040 (regcache::transfer_regset_register): Likewise.
5041 (regcache::transfer_regset): Use gdb_byte*.
5043 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5045 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5047 2018-06-21 Pedro Alves <palves@redhat.com>
5049 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5050 instead of a ptid_t. All callers adjusted.
5051 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5053 (print_ada_task_info, display_current_task_id, task_command_1):
5055 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5057 (breakpoint_kind): Adjust.
5058 (remove_breakpoints_pid): Rename to ...
5059 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5060 pointer. All callers adjusted.
5061 (bpstat_clear_actions): Use inferior_thread.
5062 (get_bpstat_thread): New.
5063 (bpstat_do_actions): Use it.
5064 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5065 to take a thread_info pointer. All callers adjusted.
5066 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5067 (breakpoint_re_set_thread): Use inferior_thread.
5068 * breakpoint.h (struct inferior): Forward declare.
5069 (bpstat_stop_status): Update.
5070 (remove_breakpoints_pid): Delete.
5071 (remove_breakpoints_inf): New.
5072 * bsd-uthread.c (bsd_uthread_target::wait)
5073 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5074 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5075 (maint_btrace_packet_history_cmd)
5076 (maint_btrace_clear_packet_history_cmd): Adjust.
5077 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5079 * cli/cli-interp.c: Include "inferior.h".
5080 * common/refcounted-object.h (struct
5081 refcounted_object_ref_policy): New.
5082 * compile/compile-object-load.c: Include gdbthread.h.
5083 (store_regs): Use inferior_thread.
5084 * corelow.c (core_target::close): Use current_inferior.
5085 (core_target_open): Adjust to use first_thread_of_inferior and use
5086 the current inferior.
5087 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5088 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5089 <thread>: ... this new field. All references adjusted.
5090 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5091 Take a thread_info pointer instead of a ptid_t.
5092 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5093 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5094 thread_info pointer instead of a ptid_t.
5095 * elfread.c: Include "inferior.h".
5096 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5097 Use inferior_thread.
5098 * eval.c (evaluate_subexp): Likewise.
5099 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5101 * gdb_proc_service.h (struct thread_info): Forward declare.
5102 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5103 <thread>: ... this new field. All references adjusted.
5104 * gdbarch.h, gdbarch.c: Regenerate.
5105 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5106 'thread' parameter. All implementations and callers adjusted.
5107 * gdbthread.h (thread_info) <set_running>: New method.
5108 (delete_thread, delete_thread_silent): Take a thread_info pointer
5110 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5111 (first_thread_of_process): Delete, replaced by ...
5112 (first_thread_of_inferior): ... this new function. All callers
5114 (any_live_thread_of_process): Delete, replaced by ...
5115 (any_live_thread_of_inferior): ... this new function. All callers
5117 (switch_to_thread, switch_to_no_thread): Declare.
5118 (is_executing): Delete.
5119 (enable_thread_stack_temporaries): Update comment.
5120 <enable_thread_stack_temporaries>: Take a thread_info pointer
5121 instead of a ptid_t. Incref the thread.
5122 <~enable_thread_stack_temporaries>: Decref the thread.
5125 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5126 (get_last_thread_stack_temporary)
5127 (value_in_thread_stack_temporaries, can_access_registers_thread):
5128 Take a thread_info pointer instead of a ptid_t. All callers
5130 * infcall.c (get_call_return_value): Use inferior_thread.
5131 (run_inferior_call): Work with thread pointers instead of ptid_t.
5132 (call_function_by_hand_dummy): Work with thread pointers instead
5133 of ptid_t. Use thread_info_ref.
5134 * infcmd.c (proceed_thread_callback): Access thread's state
5136 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5137 access thread's state directly.
5138 (continue_command): Use inferior_thread.
5139 (info_program_command): Use find_thread_ptid and access thread
5141 (proceed_after_attach_callback): Use thread state directly.
5142 (notice_new_inferior): Take a thread_info pointer instead of a
5143 ptid_t. All callers adjusted.
5144 (exit_inferior): Take an inferior pointer instead of a pid. All
5146 (exit_inferior_silent): New.
5147 (detach_inferior): Delete.
5148 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5149 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5150 (detach_inferior_command, kill_inferior_command): Use
5151 find_inferior_id instead of valid_gdb_inferior_id and
5152 gdb_inferior_id_to_pid.
5153 (inferior_command): Use inferior and thread pointers.
5154 * inferior.h (struct thread_info): Forward declare.
5155 (notice_new_inferior): Take a thread_info pointer instead of a
5156 ptid_t. All callers adjusted.
5157 (detach_inferior): Delete declaration.
5158 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5159 instead of a pid. All callers adjusted.
5160 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5161 (valid_gdb_inferior_id): Delete.
5162 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5163 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5164 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5166 <inf>: ... this new field.
5167 <step_ptid>: Delete, replaced by ...
5168 <step_thread>: ... this new field.
5169 (get_displaced_stepping_state): Take an inferior pointer instead
5170 of a pid. All callers adjusted.
5171 (displaced_step_in_progress_any_inferior): Adjust.
5172 (displaced_step_in_progress_thread): Take a thread pointer instead
5173 of a ptid_t. All callers adjusted.
5174 (displaced_step_in_progress, add_displaced_stepping_state): Take
5175 an inferior pointer instead of a pid. All callers adjusted.
5176 (get_displaced_step_closure_by_addr): Adjust.
5177 (remove_displaced_stepping_state): Take an inferior pointer
5178 instead of a pid. All callers adjusted.
5179 (displaced_step_prepare_throw, displaced_step_prepare)
5180 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5181 All callers adjusted.
5182 (start_step_over): Adjust.
5183 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5184 displaced step queue.
5185 (do_target_resume): Adjust.
5186 (fetch_inferior_event): Use inferior_thread.
5187 (context_switch, get_inferior_stop_soon): Take an
5188 execution_control_state pointer instead of a ptid_t. All callers
5190 (switch_to_thread_cleanup): Delete.
5191 (stop_all_threads): Use scoped_restore_current_thread.
5192 * inline-frame.c: Include "gdbthread.h".
5193 (inline_state) <inline_state>: Take a thread pointer instead of a
5194 ptid_t. All callers adjusted.
5195 <ptid>: Delete, replaced by ...
5196 <thread>: ... this new field.
5197 (find_inline_frame_state): Take a thread pointer instead of a
5198 ptid_t. All callers adjusted.
5199 (skip_inline_frames, step_into_inline_frame)
5200 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5201 pointer instead of a ptid_t. All callers adjusted.
5202 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5203 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5204 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5206 * linux-nat.c (get_detach_signal): Likewise.
5207 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5208 (thread_db_notice_clone): Adjust.
5209 (thread_db_find_new_threads_silently)
5210 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5211 a thread pointer instead of a ptid_t. All callers adjusted.
5212 * mi/mi-cmd-var.c: Include "inferior.h".
5213 (mi_cmd_var_update_iter): Update to use thread pointers.
5214 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5216 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5218 (mi_output_running): ... this new function.
5219 (mi_on_resume_1): Adjust to use it.
5220 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5221 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5223 (interrupt_thread_callback): : Adjust to use thread and inferior
5225 * proc-service.c: Include "gdbthread.h".
5226 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5227 * progspace-and-thread.c: Include "inferior.h".
5228 * progspace.c: Include "inferior.h".
5229 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5230 hold a reference to an inferior_object.
5231 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5233 * python/py-inferior.c (struct inferior_object): Give the type a
5234 tag name instead of a typedef.
5235 (python_on_normal_stop): No need to check if the current thread is
5237 (inferior_to_inferior_object): Change return type to
5238 inferior_object. All callers adjusted.
5239 (find_thread_object): Delete, bits factored out to ...
5240 (thread_to_thread_object): ... this new function.
5241 * python/py-infthread.c (create_thread_object): Use
5242 inferior_to_inferior_object.
5243 (thpy_is_stopped): Use thread pointer directly.
5244 (gdbpy_selected_thread): Use inferior_thread.
5245 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5246 field, replaced with ...
5247 <thread>: ... this new field. All users adjusted.
5248 (btpy_insn_or_gap_new): Drop const.
5249 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5251 * python/py-record.c: Include "gdbthread.h".
5252 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5253 a ptid_t. All callers adjusted.
5254 (gdbpy_current_recording): Use inferior_thread.
5255 * python/py-record.h (recpy_record_object) <ptid>: Delete
5256 field, replaced with ...
5257 <thread>: ... this new field. All users adjusted.
5258 (recpy_element_object) <ptid>: Delete
5259 field, replaced with ...
5260 <thread>: ... this new field. All users adjusted.
5261 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5262 a ptid_t. All callers adjusted.
5263 * python/py-threadevent.c: Include "gdbthread.h".
5264 (get_event_thread): Use thread_to_thread_object.
5265 * python/python-internal.h (struct inferior_object): Forward
5267 (find_thread_object, find_inferior_object): Delete declarations.
5268 (thread_to_thread_object, inferior_to_inferior_object): New
5270 * record-btrace.c: Include "inferior.h".
5271 (require_btrace_thread): Use inferior_thread.
5272 (record_btrace_frame_sniffer)
5273 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5274 (get_thread_current_frame): Use scoped_restore_current_thread and
5276 (get_thread_current_frame): Use thread pointer directly.
5277 (record_btrace_replay_at_breakpoint): Use thread's inferior
5279 * record-full.c: Include "inferior.h".
5280 * regcache.c: Include "gdbthread.h".
5281 (get_thread_arch_regcache): Use the inferior's address space
5283 (get_thread_regcache, registers_changed_thread): New.
5284 * regcache.h (get_thread_regcache(thread_info *thread)): New
5286 (registers_changed_thread): New.
5287 (remote_target) <remote_detach_1>: Swap order of parameters.
5288 (remote_add_thread): <remote_add_thread>: Return the new thread.
5289 (get_remote_thread_info(ptid_t)): New overload.
5290 (remote_target::remote_notice_new_inferior): Use thread pointers
5292 (remote_target::process_initial_stop_replies): Use
5293 thread_info::set_running.
5294 (remote_target::remote_detach_1, remote_target::detach)
5295 (extended_remote_target::detach): Adjust.
5296 * stack.c (frame_show_address): Use inferior_thread.
5297 * target-debug.h (target_debug_print_thread_info_pp): New.
5298 * target-delegates.c: Regenerate.
5299 * target.c (default_thread_address_space): Delete.
5300 (memory_xfer_partial_1): Use current_inferior.
5301 (target_detach): Use current_inferior.
5302 (target_thread_address_space): Delete.
5303 (generic_mourn_inferior): Use current_inferior.
5304 * target.h (struct target_ops) <thread_address_space>: Delete.
5305 (target_thread_address_space): Delete.
5306 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5308 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5309 thread pointer instead of a ptid_t. Adjust all callers.
5310 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5311 (first_thread_of_process): Delete, replaced by ...
5312 (first_thread_of_inferior): ... this new function. All callers
5314 (any_thread_of_process): Rename to ...
5315 (any_thread_of_inferior): ... this, and take an inferior pointer.
5316 (any_live_thread_of_process): Rename to ...
5317 (any_live_thread_of_inferior): ... this, and take an inferior
5319 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5320 (value_in_thread_stack_temporaries)
5321 (get_last_thread_stack_temporary): Take a thread pointer instead
5322 of a ptid_t. Adjust all callers.
5323 (thread_info::set_running): New.
5324 (validate_registers_access): Use inferior_thread.
5325 (can_access_registers_ptid): Rename to ...
5326 (can_access_registers_thread): ... this, and take a thread
5328 (print_thread_info_1): Adjust to compare thread pointers instead
5330 (switch_to_no_thread, switch_to_thread): Make extern.
5331 (scoped_restore_current_thread::~scoped_restore_current_thread):
5332 Use m_thread pointer directly.
5333 (scoped_restore_current_thread::scoped_restore_current_thread):
5334 Use inferior_thread.
5335 (thread_command): Use thread pointer directly.
5336 (thread_num_make_value_helper): Use inferior_thread.
5337 * top.c (execute_command): Use inferior_thread.
5338 * tui/tui-interp.c: Include "inferior.h".
5339 * varobj.c (varobj_create): Use inferior_thread.
5340 (value_of_root_1): Use find_thread_global_id instead of
5341 global_thread_id_to_ptid.
5343 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5345 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5347 (regcache::write_part): Likewise.
5348 (readable_regcache::cooked_read_part): Update comment.
5349 (readable_regcache::cooked_write_part): Likewise.
5350 * regcache.h: (readable_regcache::read_part): Likewise.
5351 (regcache::write_part): Likewise.
5353 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5354 Dirk Schubert <dirk.schubert@arm.com>
5356 * aarch64-linux-nat.c (post_attach): New.
5357 (aarch64_linux_nat_target::post_attach): Override post_attach to
5358 record the number of hardware debug registers.
5360 2018-06-20 Tom Tromey <tom@tromey.com>
5362 * python/py-param.c (add_setshow_generic): Make parameters const.
5363 (parmpy_init): Update.
5365 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5367 * regcache.h (regcache_cooked_read_ftype): Rename to...
5368 (register_read_ftype): ...this, change type to function_view.
5369 (class reg_buffer) <save>: Remove src parameter.
5370 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5371 parameter non-const in first overload. Remove src parameter in
5373 * regcache.c (do_cooked_read): Remove.
5374 (readonly_detached_regcache::readonly_detached_regcache): Make
5375 parameter non-const, adjust call to other constructor.
5376 (reg_buffer::save): Remove src parameter.
5377 * frame.c (do_frame_register_read): Remove.
5378 (frame_save_as_regcache): Use lambda function.
5379 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5380 parameter to ppu2spu_data *.
5381 (ppu2spu_sniffer): Use lambda function.
5383 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5385 * record-full.c (record_full_target::insert_breakpoint): Remove
5386 "struct" keyword, add const.
5388 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5390 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5391 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5392 * configure.ac: Remove AC_PREREQ, add missing quoting.
5393 * gnulib/configure.ac: Modernize usage of
5394 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5395 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5396 (AUTOMAKE_VERSION): Bump to 1.15.1.
5397 * configure: Re-generate.
5398 * config.in: Re-generate.
5399 * aclocal.m4: Re-generate.
5400 * gnulib/aclocal.m4: Re-generate.
5401 * gnulib/config.in: Re-generate.
5402 * gnulib/configure: Re-generate.
5403 * gnulib/import/Makefile.in: Re-generate.
5405 2018-06-19 Pedro Alves <palves@redhat.com>
5407 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5408 (lookup_minimal_symbol_by_pc_section): ... here with
5409 gdb_assert_not_reached added.
5411 2018-06-19 Pedro Alves <palves@redhat.com>
5413 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5414 parameter with a block parameter. Compare location's block symbol
5415 with the frame's block instead of addresses.
5416 (skip_inline_frames): Pass the current block instead of the
5417 frame's address. Break out as soon as we determine the frame
5418 should not be skipped.
5420 2018-06-18 Tom Tromey <tom@tromey.com>
5422 * solib-aix.c (solib_aix_get_section_offsets): Return
5424 (solib_aix_solib_create_inferior_hook): Update.
5426 2018-06-18 Tom Tromey <tom@tromey.com>
5428 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5430 2018-06-18 Tom Tromey <tom@tromey.com>
5432 * solib-frv.c (frv_relocate_main_executable): Use
5434 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5437 2018-06-18 Tom Tromey <tom@tromey.com>
5439 * objfiles.h (inhibit_section_map_updates): Update.
5440 (resume_section_map_updates, resume_section_map_updates_cleanup):
5442 * solib-svr4.c (svr4_handle_solib_event): Update.
5443 * objfiles.c (inhibit_section_map_updates): Return
5444 scoped_restore_tmpl<int>.
5445 (resume_section_map_updates, resume_section_map_updates_cleanup):
5448 2018-06-18 Tom Tromey <tom@tromey.com>
5450 * valprint.h (read_string): Update.
5451 * valprint.c (read_string): Change type of "buffer".
5452 (val_print_string): Update.
5453 * python/py-value.c (valpy_string): Update.
5454 * language.h (struct language_defn) <la_get_string>: Change
5456 (default_get_string, c_get_string): Update.
5457 * language.c (default_get_string): Change type of "buffer".
5458 * guile/scm-value.c (gdbscm_value_to_string): Update.
5459 * c-lang.c (c_get_string): Change type of "buffer".
5461 2018-06-18 Tom Tromey <tom@tromey.com>
5463 * ser-mingw.c (struct pipe_state_destroyer): New.
5464 (pipe_state_up): New typedef.
5465 (cleanup_pipe_state): Remove.
5466 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5468 2018-06-18 Tom Tromey <tom@tromey.com>
5470 * rust-lang.h (rust_yyerror): Don't declare.
5471 * rust-lang.c (rust_language_defn): Update.
5472 * rust-exp.y (yyerror): Now static.
5473 * parse.c (parse_exp_in_context_1): Update.
5474 * p-lang.h (p_yyerror): Don't declare.
5475 * p-lang.c (p_language_defn): Update.
5476 * p-exp.y (yyerror): Now static.
5477 * opencl-lang.c (opencl_language_defn): Update.
5478 * objc-lang.c (objc_language_defn): Update.
5479 * m2-lang.h (m2_yyerror): Don't declare.
5480 * m2-lang.c (m2_language_defn): Update.
5481 * m2-exp.y (yyerror): Now static.
5482 * language.h (struct language_defn) <la_error>: Remove.
5483 * language.c (unk_lang_error): Remove.
5484 (unknown_language_defn, auto_language_defn): Remove.
5485 * go-lang.h (go_yyerror): Don't declare.
5486 * go-lang.c (go_language_defn): Update.
5487 * go-exp.y (yyerror): Now static.
5488 * f-lang.h (f_yyerror): Don't declare.
5489 * f-lang.c (f_language_defn): Update.
5490 * f-exp.y (yyerror): Now static.
5491 * d-lang.h (d_yyerror): Don't declare.
5492 * d-lang.c (d_language_defn): Update.
5493 * d-exp.y (yyerror): Now static.
5494 * c-lang.h (c_yyerror): Don't declare.
5495 * c-lang.c (c_language_defn, cplus_language_defn)
5496 (asm_language_defn, minimal_language_defn): Update.
5497 * c-exp.y (yyerror): Now static.
5498 * ada-lang.h (ada_yyerror): Don't declare.
5499 * ada-lang.c (ada_language_defn): Update.
5500 * ada-exp.y (yyerror): Now static.
5502 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5504 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5505 (store_sveregs_to_thread): Likewise.
5506 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5507 (aarch64_linux_store_inferior_registers): Likewise.
5508 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5510 (aarch64_sve_regs_copy_to_regcache): Likewise.
5511 (aarch64_sve_regs_copy_from_regcache): Likewise.
5512 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5514 (aarch64_sve_regs_copy_to_regcache): Likewise.
5515 (aarch64_sve_regs_copy_from_regcache): Likewise.
5516 (sve_context): Structure from Linux headers.
5517 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5518 (SVE_SIG_ZREG_SIZE): Likewise.
5519 (SVE_SIG_PREG_SIZE): Likewise.
5520 (SVE_SIG_FFR_SIZE): Likewise.
5521 (SVE_SIG_REGS_OFFSET): Likewise.
5522 (SVE_SIG_ZREGS_OFFSET): Likewise.
5523 (SVE_SIG_ZREG_OFFSET): Likewise.
5524 (SVE_SIG_ZREGS_SIZE): Likewise.
5525 (SVE_SIG_PREGS_OFFSET): Likewise.
5526 (SVE_SIG_PREG_OFFSET): Likewise.
5527 (SVE_SIG_PREGS_SIZE): Likewise.
5528 (SVE_SIG_FFR_OFFSET): Likewise.
5529 (SVE_SIG_REGS_SIZE): Likewise.
5530 (SVE_SIG_CONTEXT_SIZE): Likewise.
5531 (SVE_PT_REGS_MASK): Likewise.
5532 (SVE_PT_REGS_FPSIMD): Likewise.
5533 (SVE_PT_REGS_SVE): Likewise.
5534 (SVE_PT_VL_INHERIT): Likewise.
5535 (SVE_PT_VL_ONEXEC): Likewise.
5536 (SVE_PT_REGS_OFFSET): Likewise.
5537 (SVE_PT_FPSIMD_OFFSET): Likewise.
5538 (SVE_PT_FPSIMD_SIZE): Likewise.
5539 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5540 (SVE_PT_SVE_PREG_SIZE): Likewise.
5541 (SVE_PT_SVE_FFR_SIZE): Likewise.
5542 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5543 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5544 (__SVE_SIG_TO_PT): Likewise.
5545 (SVE_PT_SVE_OFFSET): Likewise.
5546 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5547 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5548 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5549 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5550 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5551 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5552 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5553 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5554 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5555 (SVE_PT_SVE_SIZE): Likewise.
5556 (SVE_PT_SIZE): Likewise.
5557 (HAS_SVE_STATE): New define.
5559 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5561 * nat/aarch64-sve-linux-sigcontext.h: New file.
5562 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5564 (SVE_VQ_MIN): Likewise.
5565 (SVE_VQ_MAX): Likewise.
5566 (SVE_VL_MIN): Likewise.
5567 (SVE_VL_MAX): Likewise.
5568 (SVE_NUM_ZREGS): Likewise.
5569 (SVE_NUM_PREGS): Likewise.
5570 (sve_vl_valid): Likewise.
5571 (struct user_sve_header): Likewise.
5573 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5574 Richard Bunt <Richard.Bunt@arm.com>
5576 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5577 was requested by GDB.
5579 2018-06-15 Tom de Vries <tdevries@suse.de>
5581 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5583 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5585 * gnulib/update-gnulib.sh: Print expected versions of
5588 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5590 * arch-utils.c (default_type_align): Use type_length_units.
5591 * gdbtypes.c (type_align): Use type_length_units.
5593 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5595 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5596 of 'define' command.
5598 2018-06-14 Tom de Vries <tdevries@suse.de>
5601 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5602 get_no_prettyformat_print_options.
5604 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5606 * sparc-nat.h: Include target.h.
5607 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5608 <fetch_registers>: Remove this argument in function call.
5609 <store_registers>: Remove this argument in function call, remove
5611 <low_forget_process>: Call sparc64_forget_process instead of
5612 sparc_forget_process.
5614 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5616 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5617 (procfs_target::make_corefile_notes): Adjust to new
5618 target_read_alloc return type.
5620 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5621 Stephen Roberts <stephen.roberts@arm.com>
5624 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5625 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5626 Move should_notify_stop local into more inner scope.
5628 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5629 Stephen Roberts <stephen.roberts@arm.com>
5632 * infrun.c (resume_1): Add call to mark_async_event_handler.
5634 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5636 * infrun.c (do_target_wait): Change old version of $pc printed.
5638 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5640 * dwarf2read.c (read_index_from_section): Rename to...
5641 (read_gdb_index_from_section): ... this, update all callers.
5642 (dwarf2_read_index): Rename to...
5643 (dwarf2_read_gdb_index): ... this, update all callers.
5645 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5647 * gdb/hppa-linux-nat.c
5648 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5649 hppa_linux_nat_target::fetch_registers.
5651 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5653 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5654 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5655 (AARCH64_DWARF_SVE_FFR): Likewise.
5656 (AARCH64_DWARF_SVE_P0): Likewise.
5657 (AARCH64_DWARF_SVE_Z0): Likewise.
5659 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5661 * common/common-regcache.h (raw_compare): New function.
5662 * regcache.c (regcache::raw_compare): Likewise.
5663 * regcache.h (regcache::raw_compare): New declaration.
5665 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5667 * common/common-regcache.h (reg_buffer_common): New structure.
5668 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5669 (reg_buffer::raw_supply): Likewise.
5670 (reg_buffer::raw_supply_integer): Likewise.
5671 (reg_buffer::raw_supply_zeroed): Likewise.
5672 (reg_buffer::raw_collect): Likewise.
5673 (reg_buffer::raw_collect_integer): Likewise.
5674 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5675 (reg_buffer::raw_supply): Likewise.
5676 (reg_buffer::raw_supply_integer): Likewise.
5677 (reg_buffer::raw_supply_zeroed): Likewise.
5678 (reg_buffer::raw_collect): Likewise.
5679 (reg_buffer::raw_collect_integer): Likewise.
5681 2018-06-10 Tom Tromey <tom@tromey.com>
5683 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5684 (class remote_state) <stop_reply_queue>: Now std::vector.
5685 (remote_state::~remote_state)
5686 (remote_target::stop_reply_queue_length): Update.
5687 (struct queue_iter_param, remove_child_of_pending_fork)
5688 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5689 (check_pending_event_prevents_wildcard_vcont_callback)
5690 (remove_stop_reply_for_inferior)
5691 (remove_stop_reply_of_remote_state)
5692 (remote_notif_remove_once_on_match)
5693 (stop_reply_match_ptid_and_ws)
5694 (remote_kill_child_of_pending_fork): Remove.
5695 (remote_target::remove_new_fork_children)
5696 (remote_target::check_pending_events_prevent_wildcard_vcont)
5697 (remote_target::discard_pending_stop_replies)
5698 (remote_target::discard_pending_stop_replies_in_queue)
5699 (remote_target::remote_notif_remove_queued_reply)
5700 (remote_target::queued_stop_reply)
5701 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5702 (remote_target::wait, remote_target::kill_new_fork_children)
5703 (remote_target::async): Update.
5705 2018-06-10 Tom Tromey <tom@tromey.com>
5707 * record-full.c (record_full_arch_list_cleanups): Remove.
5708 (record_full_message): Use try/catch.
5709 (record_full_wait_cleanups): Remove.
5710 (record_full_wait_1): Use try/catch.
5711 (record_full_restore): Likewise.
5713 2018-06-10 Tom Tromey <tom@tromey.com>
5715 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5716 declare VEC. Add constructor.
5717 <in_target_beneath>: Now bool.
5718 (record_full_breakpoints): Now a std::vector, static.
5719 (record_full_sync_record_breakpoints)
5720 (record_full_init_record_breakpoints)
5721 (record_full_target::insert_breakpoint)
5722 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5724 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5726 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5727 * serial.c (serial_interface_lookup): Remove struct keyword.
5729 2018-06-10 Tom Tromey <tom@tromey.com>
5731 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5733 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5735 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5737 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5738 "beneath" as a method.
5739 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5740 Use "beneath" as a method.
5742 2018-06-10 Tom Tromey <tom@tromey.com>
5744 * tracefile.c (struct trace_file_writer_deleter): New.
5745 <operator()>: Rename from trace_file_writer_xfree.
5746 (trace_file_writer_up): New typedef.
5747 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5749 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5751 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5752 <m_registers, m_register_status>: Change type to
5754 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5757 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5759 * common/common-regcache.h (enum register_status): Add
5760 underlying type "signed char".
5761 * regcache.h (reg_buffer) <m_register_status>: Change type to
5763 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5764 register_status instead of signed char.
5765 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5766 (reg_buffer::get_register_status): Remove cast.
5767 (readable_regcache::raw_read): Remove cast.
5768 (readable_regcache::cooked_read): Remove cast.
5770 2018-06-09 Tom Tromey <tom@tromey.com>
5772 * source.c (reverse_search_command, forward_search_command): Use
5775 2018-06-09 Tom Tromey <tom@tromey.com>
5777 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5778 (serial_ops_list): Now static, std::vector.
5779 (serial_interface_lookup, serial_add_interface): Update.
5781 2018-06-09 Tom Tromey <tom@tromey.com>
5783 * dwarf2read.c (process_cu_includes): Update.
5784 (process_full_comp_unit): Update.
5785 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5788 2018-06-08 Paul Koning <paul_koning@dell.com>
5792 * python/python.c (do_start_initialization):
5793 Avoid call to internal Python API.
5794 (init__gdb_module): New function.
5796 2018-06-08 Gary Benson <gbenson@redhat.com>
5798 * linux-thread-db.c (valprint.h): New include.
5799 (struct check_thread_db_info): New structure.
5800 (check_thread_db_on_load, tdb_testinfo): New static globals.
5801 (check_thread_db, check_thread_db_callback): New functions.
5802 (try_thread_db_load_1): Run integrity checks if requested.
5803 (maintenance_check_libthread_db): New function.
5804 (_initialize_thread_db): Register "maint check libthread-db"
5805 and "maint set/show check-libthread-db".
5806 * NEWS: Mention the above new commands.
5808 2018-06-08 Tom Tromey <tom@tromey.com>
5810 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5813 2018-06-08 Tom Tromey <tom@tromey.com>
5815 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5817 2018-06-08 Tom Tromey <tom@tromey.com>
5819 * common/btrace-common.h (struct btrace_data): Add constructor,
5820 destructor, move assignment operator.
5821 <empty, clear, fini>: New methods.
5822 <format>: Initialize.
5823 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5824 (btrace_data_empty): Don't declare.
5825 * common/btrace-common.c (btrace_data_init): Remove.
5826 (btrace_data::fini): Rename from btrace_data_fini.
5827 (btrace_data::empty): Rename from btrace_data_empty.
5828 (btrace_data::clear): Rename from btrace_data_clear. Return
5830 * btrace.h (make_cleanup_btrace_data): Don't declare.
5831 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5832 (parse_xml_btrace): Update.
5833 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5834 (maint_btrace_clear_packet_history_cmd): Update.
5836 2018-06-07 Pedro Alves <palves@redhat.com>
5838 * target.h (target_ops) <beneath>: Now a method. All references
5840 (class target_stack): New.
5841 * target.c (g_target_stack): New.
5842 (g_current_top_target): Delete.
5843 (current_top_target): Get the top target out of g_target_stack.
5844 (target_stack::push, target_stack::unpush): New.
5845 (push_target, unpush_target): Reimplement.
5846 (target_is_pushed): Reimplement in terms of g_target_stack.
5847 (target_ops::beneath, target_stack::find_beneath): New.
5849 2018-06-07 Pedro Alves <palves@redhat.com>
5851 * target.h (find_target_beneath): Delete declaration.
5852 * target.c (find_target_beneath): Delete definition.
5853 * aix-thread.c: All callers of find_target_beneath adjusted to
5854 call target_ops::beneath instead.
5855 * bsd-uthread.c: Likewise.
5856 * linux-thread-db.c: Likewise.
5857 * ravenscar-thread.c: Likewise.
5858 * sol-thread.c: Likewise.
5859 * spu-multiarch.c: Likewise.
5861 2018-06-07 Pedro Alves <palves@redhat.com>
5863 * target.h (target_ops) <beneath>: Now a method. All references
5865 (target_ops) <m_beneath>: New.
5866 * target.c (target_ops::beneath): New.
5867 * corelow.c: Adjust all references to target_ops::beneath.
5868 * linux-thread-db.c: Likewise.
5869 * make-target-delegates: Likewise.
5870 * record-btrace.c: Likewise.
5871 * record-full.c: Likewise.
5872 * remote.c: Likewise.
5873 * target.c: Likewise.
5874 * target-delegates.c: Regenerate.
5876 2018-06-07 Pedro Alves <palves@redhat.com>
5878 * target.h (target_stack): Delete.
5879 (current_top_target): Declare function.
5880 * target.c (target_stack): Delete.
5881 (g_current_top_target): New.
5882 (current_top_target): New function.
5883 * auxv.c: Use current_top_target instead of target_stack
5885 * avr-tdep.c: Likewise.
5886 * breakpoint.c: Likewise.
5887 * corefile.c: Likewise.
5888 * elfread.c: Likewise.
5890 * exceptions.c: Likewise.
5891 * frame.c: Likewise.
5892 * gdbarch-selftests.c: Likewise.
5893 * gnu-v3-abi.c: Likewise.
5894 * ia64-tdep.c: Likewise.
5895 * ia64-vms-tdep.c: Likewise.
5896 * infcall.c: Likewise.
5897 * infcmd.c: Likewise.
5898 * infrun.c: Likewise.
5899 * linespec.c: Likewise.
5900 * linux-tdep.c: Likewise.
5901 * minsyms.c: Likewise.
5902 * ppc-linux-nat.c: Likewise.
5903 * ppc-linux-tdep.c: Likewise.
5904 * procfs.c: Likewise.
5905 * regcache.c: Likewise.
5906 * remote.c: Likewise.
5907 * rs6000-tdep.c: Likewise.
5908 * s390-linux-nat.c: Likewise.
5909 * s390-tdep.c: Likewise.
5910 * solib-aix.c: Likewise.
5911 * solib-darwin.c: Likewise.
5912 * solib-dsbt.c: Likewise.
5913 * solib-spu.c: Likewise.
5914 * solib-svr4.c: Likewise.
5915 * solib-target.c: Likewise.
5916 * sparc-tdep.c: Likewise.
5917 * sparc64-tdep.c: Likewise.
5918 * spu-tdep.c: Likewise.
5919 * symfile.c: Likewise.
5920 * symtab.c: Likewise.
5921 * target-descriptions.c: Likewise.
5922 * target-memory.c: Likewise.
5923 * target.c: Likewise.
5924 * target.h: Likewise.
5925 * tracefile-tfile.c: Likewise.
5926 * tracepoint.c: Likewise.
5927 * valops.c: Likewise.
5928 * valprint.c: Likewise.
5929 * value.c: Likewise.
5930 * windows-tdep.c: Likewise.
5931 * mi/mi-main.c: Likewise.
5933 2018-06-07 Tom Tromey <tom@tromey.com>
5935 * valprint.h (build_address_symbolic): Declare.
5936 * printcmd.c (print_address_symbolic): Update.
5937 (build_address_symbolic): Change "name" and "filename" to
5939 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
5941 * defs.h (build_address_symbolic): Remove declaration.
5943 2018-06-07 Alan Hayward <alan.hayward@arm.com>
5945 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
5946 (aarch64_vnv_type): Add function.
5947 (aarch64_pseudo_register_name): Add V regs for SVE.
5948 (aarch64_pseudo_register_type): Likewise.
5949 (aarch64_pseudo_register_reggroup_p): Likewise.
5950 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
5951 (aarch64_pseudo_read_value): Add V regs for SVE.
5952 (aarch64_pseudo_write_2): Use V0 offset for SVE
5953 (aarch64_pseudo_write): Add V regs for SVE.
5954 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
5956 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
5958 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
5959 (sve_vl_from_vq): Likewise.
5961 2018-06-05 Tom Tromey <tom@tromey.com>
5963 * cli/cli-cmds.c (show_version): Update.
5964 * top.c (print_gdb_version): Add "interactive" parameter.
5966 * main.c (captured_main_1): Update.
5967 * top.h (print_gdb_version): Add "interactive" parameter and a
5970 2018-06-05 David Malcolm <dmalcolm@redhat.com>
5972 * common/enum-flags.h: Add trailing semicolon to example in
5975 2018-06-05 Tom Tromey <tom@tromey.com>
5978 * NEWS: Add entry about pager.
5979 * utils.c (pagination_disabled_for_command): New global.
5980 (prompt_for_continue): Allow "c" response to prompt.
5981 (reinitialize_more_filter): Clear
5982 pagination_disabled_for_command.
5983 (fputs_maybe_filtered): Check pagination_disabled_for_command.
5985 2018-06-04 Tom Tromey <tom@tromey.com>
5987 * ada-lang.h (ada_lookup_symbol_list): Update.
5988 * ada-lang.c (resolve_subexp): Update.
5989 (symbols_are_identical_enums): Change type of syms. Remove nsyms
5991 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
5992 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
5993 results parameter to std::vector.
5994 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
5996 * ada-exp.y (block_lookup): Update.
5997 (select_possible_type_sym): Change type of syms. Remove nsyms
5999 (write_var_or_type, write_name_assoc): Update.
6001 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6003 * windows-nat.c (windows_nat_target::xfer_partial): Return
6004 TARGET_XFER_E_IO if we need to delegate to the target beneath
6005 but BENEATH is NULL.
6007 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6009 * Makefile.in (config.status): Add configure.nat as a
6012 2018-06-04 Tom Tromey <tom@tromey.com>
6014 * cp-name-parser.y (cpname_state): Add method declarations.
6015 (HANDLE_QUAL): Update.
6016 (cpname_state::d_grab, cpname_state::fill_comp)
6017 (cpname_state::make_operator, cpname_state::make_dtor)
6018 (cpname_state::make_builtin_type, cpname_state::make_name)
6019 (cpname_state::d_qualify, cpname_state::d_int_type)
6020 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6021 (%union): Move earlier.
6023 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6025 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6027 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6029 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6030 (aarch64_pseudo_write_1): Likewise.
6031 (aarch64_pseudo_read_value): Use helper.
6032 (aarch64_pseudo_write): Likewise.
6034 2018-06-04 Pedro Alves <palves@redhat.com>
6036 * darwin-nat.c (darwin_ops): Delete.
6037 (darwin_attach_pid): Use get_native_target.
6039 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6041 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6042 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6044 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6046 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6047 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6048 (aarch64_gdbarch_init): Check for SVE.
6049 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6051 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6053 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6054 * aarch64-tdep.h (aarch64_read_description): Likewise.
6055 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6056 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6057 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6058 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6059 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6061 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6063 * value.c (value_fetch_lazy_bitfield): New.
6064 (value_fetch_lazy_memory): New.
6065 (value_fetch_lazy_register): New.
6066 (value_fetch_lazy): Factor out to smaller functions.
6068 2018-06-01 Tom Tromey <tom@tromey.com>
6070 * cp-name-parser.y (backslashable, represented): Now const.
6072 2018-06-01 Tom Tromey <tom@tromey.com>
6074 * cp-name-parser.y: Include parser-defs.h.
6075 (parser_fprintf): Remove declaration.
6077 2018-06-01 Tom Tromey <tom@tromey.com>
6079 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6081 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6082 (global_result): Remove globals.
6083 (struct cpname_state): New.
6084 (yyparse): Don't declare.
6085 (yylex, yyerror): Move declarations after %union.
6086 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6087 (make_name): Add state parameter.
6089 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6091 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6093 (yylex): Add lvalp, state parameters.
6094 (yyerror): Add state parameter.
6095 (cp_demangled_name_to_comp): Update.
6097 2018-06-01 Tom Tromey <tom@tromey.com>
6099 * cp-name-parser.y (parser_fprintf): Declare.
6100 (GDB_YY_REMAP_PREFIX): Define.
6101 Include yy-remap.h. Don't redefine yy* identifiers.
6103 2018-06-01 Tom Tromey <tom@tromey.com>
6105 * python/py-type.c (typy_legacy_template_argument): Update.
6106 * cp-support.h (cp_demangled_name_to_comp): Update.
6107 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6108 parameter to be a "std::string *".
6111 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6113 * ada-lex.l: Include "diagnostics.h" instead of
6114 "common/diagnostics.h".
6115 * unittests/environ-selftests.c: Likewise.
6116 * common/diagnostics.h: Moved to ../include.
6118 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6120 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6121 to language_mode_manual while calling breakpoint_re_set_one.
6123 2018-06-01 Tom Tromey <tom@tromey.com>
6125 * valops.c (value_cast_structs, destructor_name_p): Update.
6126 * symtab.c (gdb_mangle_name): Update.
6127 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6129 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6130 (pascal_object_print_value_fields, pascal_object_print_value):
6132 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6133 * linespec.c (find_methods): Update.
6134 * gdbtypes.h (type_name_no_tag): Remove.
6135 (type_name_or_error): Rename from type_name_no_tag_or_error.
6136 * gdbtypes.c (type_name_no_tag): Remove.
6137 (type_name_or_error): Rename from type_name_no_tag_or_error.
6138 (lookup_struct_elt_type, check_typedef): Update.
6139 * expprint.c (print_subexp_standard): Update.
6140 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6141 * d-namespace.c (d_lookup_nested_symbol): Update.
6142 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6143 (cp_print_class_member): Update.
6144 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6145 * completer.c (add_struct_fields): Update.
6146 * c-typeprint.c (cp_type_print_derivation_info)
6147 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6149 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6150 (ada_prefer_type, ada_is_exception_sym): Update.
6152 2018-06-01 Tom Tromey <tom@tromey.com>
6154 * valops.c (enum_constant_from_type, value_namespace_elt)
6155 (value_maybe_namespace_elt): Update.
6156 * valarith.c (find_size_for_pointer_math): Update.
6157 * target-descriptions.c (make_gdb_type): Update.
6158 * symmisc.c (print_symbol): Update.
6159 * stabsread.c (define_symbol, read_type)
6160 (complain_about_struct_wipeout, add_undefined_type)
6161 (cleanup_undefined_types_1): Update.
6162 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6163 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6164 (rust_internal_print_type, rust_composite_type)
6165 (rust_evaluate_funcall, rust_evaluate_subexp)
6166 (rust_inclusive_range_type_p): Update.
6167 * python/py-type.c (typy_get_tag): Update.
6168 * p-typeprint.c (pascal_type_print_base): Update.
6169 * mdebugread.c (parse_symbol, parse_type): Update.
6170 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6172 * guile/scm-type.c (gdbscm_type_tag): Update.
6173 * go-lang.c (sixg_string_p): Update.
6174 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6176 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6177 (TYPE_TAG_NAME): Remove.
6178 * gdbtypes.c (type_name_no_tag): Simplify.
6179 (check_typedef, check_types_equal, recursive_dump_type)
6180 (copy_type_recursive, arch_composite_type): Update.
6181 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6182 in summary mode when needed.
6183 * eval.c (evaluate_funcall): Update.
6184 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6185 (process_structure_scope, read_enumeration_type)
6186 (read_namespace_type, read_module_type, determine_prefix): Update.
6187 * cp-support.c (inspect_type): Update.
6188 * coffread.c (process_coff_symbol, decode_base_type): Update.
6189 * c-varobj.c (c_is_path_expr_parent): Update.
6190 * c-typeprint.c (c_type_print_base_struct_union): Update.
6191 (c_type_print_base_1): Update. Print struct/class/union/enum in
6192 summary when using C language.
6193 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6194 (gen_maybe_namespace_elt): Update.
6195 * ada-lang.c (ada_type_name): Simplify.
6196 (empty_record, ada_template_to_fixed_record_type_1)
6197 (template_to_static_fixed_type)
6198 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6200 2018-06-01 Tom Tromey <tom@tromey.com>
6202 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6204 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6205 (c_print_type): Update.
6206 (c_print_type): New overload.
6207 (c_type_print_varspec_prefix, c_type_print_args)
6208 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6209 (c_type_print_base_struct_union, c_type_print_base_1)
6210 (cp_type_print_method_args): Add "language" parameter.
6211 (c_type_print_base): Update.
6212 * c-lang.h (c_print_type): Add new overload.
6214 2018-06-01 Tom Tromey <tom@tromey.com>
6216 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6217 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6219 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6221 * aarch64-tdep.c (aarch64_sve_register_names): New const
6223 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6224 (AARCH64_SVE_Z_REGS_NUM): New define.
6225 (AARCH64_SVE_P_REGS_NUM): Likewise.
6226 (AARCH64_SVE_NUM_REGS): Likewise.
6228 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6230 * nat/linux-ptrace.h [__alpha__]
6231 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6234 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6236 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6237 the endianness selected.
6238 * NEWS: Document `set endian auto' mode operation update.
6240 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6242 * Makefile.in: Add new header.
6243 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6244 (sve_vl_from_vg): Likewise.
6245 (sve_vq_from_vl): Likewise.
6246 (sve_vl_from_vq): Likewise.
6247 (sve_vq_from_vg): Likewise.
6248 (sve_vg_from_vq): Likewise.
6249 * configure.nat: Add new c file.
6250 * nat/aarch64-sve-linux-ptrace.c: New file.
6251 * nat/aarch64-sve-linux-ptrace.h: New file.
6253 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6255 * aarch64-linux-nat.c (aarch64_linux_read_description):
6257 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6259 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6260 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6261 (aarch64_gdbarch_init): Add parmeter zero.
6262 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6263 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6264 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6266 * doc/gdb.texinfo: Describe SVE feature
6267 * features/aarch64-sve.c: New file.
6269 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6272 * gdbarch.sh (significant_addr_bit): Default to zero when
6273 not set by target architecture.
6274 * gdbarch.c: Re-generated.
6275 * utils.c (address_significant): Update.
6277 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6279 * stack.c (func_command): Remove trailing newline in call to error.
6281 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6283 * regcache.h (regcache_raw_collect): Remove, update callers to
6284 use regcache::raw_collect.
6285 * regcache.c (regcache_raw_collect): Remove.
6287 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6289 * regcache.h (regcache_raw_supply): Remove, update callers to
6290 use detached_regcache::raw_supply.
6291 * regcache.c (regcache_raw_supply): Remove.
6293 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6295 * regcache.h (regcache_cooked_write_part): Remove, update
6296 callers to use regcache::cooked_write_part.
6297 * regcache.c (regcache_cooked_write_part): Remove.
6299 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6301 * regcache.h (regcache_cooked_read_part): Remove, update callers
6302 to use readable_regcache::cooked_read_part.
6303 * regcache.c (regcache_cooked_read_part): Remove.
6305 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6307 * regcache.h (regcache_cooked_read_value): Remove, update
6308 callers to use readable_regcache::cooked_read_value.
6309 * regcache.c (regcache_cooked_read_value): Remove.
6311 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6313 * regcache.h (regcache_cooked_write): Remove, update callers to
6314 use regcache::cooked_write.
6315 * regcache.c (regcache_cooked_write): Remove.
6317 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6319 * regcache.h (regcache_invalidate): Remove, update callers to
6320 use detached_regcache::invalidate instead.
6321 * regcache.c (regcache_invalidate): Remove.
6323 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6325 * regcache.h (regcache_raw_write_part): Remove, update callers
6326 to use regcache::raw_write_part instead.
6327 * regcache.c (regcache_raw_write_part): Remove.
6329 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6331 * regcache.h (regcache_raw_read_part): Remove, update callers to
6332 use readable_regcache::raw_read_part instead.
6333 * regcache.c (regcache_raw_read_part): Remove.
6335 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6337 * regcache.h (regcache_cooked_read): Remove, update callers to
6338 use readable_regcache::cooked_read instead.
6339 * regcache.c (regcache_cooked_read): Remove.
6341 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6343 * regcache.h (regcache_raw_write): Remove, update callers to use
6344 regcache::raw_write instead.
6345 * regcache.c (regcache_raw_write): Remove.
6347 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6349 * regcache.h (regcache_raw_read): Remove, update callers to use
6350 readable_regcache::raw_read instead.
6351 * regcache.c (regcache_raw_read): Remove.
6353 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6355 * regcache.h (regcache_raw_update): Remove, update callers to
6356 use readable_regcache::raw_update instead.
6357 * regcache.c (regcache_raw_update): Remove.
6359 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6361 * regcache.h (regcache_register_status): Remove, update callers
6362 to use reg_buffer::get_register_status directly instead.
6363 * regcache.c (regcache_register_status): Remove.
6365 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6367 * regcache.h (regcache_get_ptid): Remove, update all callers to
6368 call regcache::ptid instead.
6369 * regcache.c (regcache_get_ptid): Remove.
6371 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6373 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6375 2018-05-30 Pedro Alves <palves@redhat.com>
6377 * common/common-exceptions.h (exception_rethrow): Use
6380 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6382 * breakpoint.c (print_solib_event, check_status_catch_solib):
6383 Remove struct keyword in range-based for loops.
6384 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6385 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6387 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6389 * symfile.c (addr_info_make_relative): Likewise.
6390 * thread.c (value_in_thread_stack_temporaries): Likewise.
6392 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6395 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6396 aggregate type to get its real type before accessing it.
6398 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6400 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6401 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6402 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6403 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6404 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6405 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6406 * printcmd.c (info_address_command): Likewise.
6408 2018-05-29 Tom Tromey <tom@tromey.com>
6410 * windows-nat.c (handle_exception): Update fall-through comment.
6412 2018-05-29 Tom Tromey <tom@tromey.com>
6414 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6415 (struct program_space) <added_solibs>: Now a std::vector.
6416 * breakpoint.c (print_solib_event): Update.
6417 (check_status_catch_solib): Update.
6418 * progspace.c (clear_program_space_solib_cache): Update.
6419 * solib.c (update_solib_list): Update.
6421 2018-05-29 Tom Tromey <tom@tromey.com>
6423 * python/py-type.c (typy_richcompare): Update.
6424 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6425 * gdbtypes.h (types_deeply_equal): Return bool.
6426 (types_equal): Likewise.
6427 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6429 (check_types_equal): Change worklist to std::vector. Return
6431 (struct type_equality_entry): Add constructor.
6432 (compare_maybe_null_strings): Return bool.
6433 (check_types_worklist): Return bool. Change worklist to
6435 (types_deeply_equal): Use std::vector.
6436 (types_equal): Return bool.
6437 (compare_maybe_null_strings): Simplify.
6439 2018-05-29 Tom Tromey <tom@tromey.com>
6441 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6443 2018-05-29 Tom Tromey <tom@tromey.com>
6445 * objc-lang.h: Don't include cp-support.h.
6446 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6449 2018-05-27 Tom Tromey <tom@tromey.com>
6451 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6453 2018-05-25 Tom Tromey <tom@tromey.com>
6455 * value.c (value::location): Initialize.
6457 2018-05-25 Tom Tromey <tom@tromey.com>
6459 * dbxread.c (init_bincl_list): Remove.
6460 (bincl_list): Now a std::vector.
6461 (bincls_allocated, next_bincl): Remove.
6462 (free_bincl_list, do_free_bincl_list_cleanup)
6463 (make_cleanup_free_bincl_list): Remove.
6464 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6466 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6467 (struct header_file_location): Add constructor.
6468 (add_bincl_to_list): Remove.
6470 2018-05-25 Tom Tromey <tom@tromey.com>
6472 * tui/tui.c (tui_enable): Update.
6473 * mi/mi-interp.c (mi_interp::init): Update.
6474 * interps.h (class interp) <name>: New method.
6475 <m_name>: Rename from name.
6476 (~scoped_restore_interp): Update.
6477 * interps.c (interp::interp): Update.
6478 (interp_add, interp_set, interp_lookup_existing)
6479 (current_interp_named_p): Update.
6481 2018-05-25 Tom Tromey <tom@tromey.com>
6483 * interps.c (interp_name): Remove.
6484 * mi/mi-interp.c (mi_interp::init): Update.
6485 * interps.h (interp_name): Remove.
6486 (~scoped_restore_interp): Update.
6487 * tui/tui.c (tui_enable): Update.
6489 2018-05-25 Tom Tromey <tom@tromey.com>
6491 * utils.c (fputs_maybe_filtered): Update.
6492 * linespec.c (decode_line_full): Update.
6493 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6494 (mi_print_breakpoint_for_event, mi_solib_loaded)
6495 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6496 (mi_user_selected_context_changed): Update.
6497 * mi/mi-main.c (mi_execute_command): Update.
6498 * cli/cli-script.c (execute_control_command): Update.
6499 * python/python.c (execute_gdb_command): Update.
6500 * solib.c (info_sharedlibrary_command): Update.
6501 * interps.c (interp_ui_out): Remove.
6502 * interps.h (interp_ui_out): Remove.
6504 2018-05-25 Tom Tromey <tom@tromey.com>
6506 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6507 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6508 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6510 2018-05-25 Tom Tromey <tom@tromey.com>
6512 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6513 * interps.c (interp_exec): Use scoped_restore.
6515 2018-05-25 Tom Tromey <tom@tromey.com>
6517 * remote.c (remote_target::remote_file_get): Use
6519 (remote_target::remote_file_put): Likewise.
6521 2018-05-25 Tom Tromey <tom@tromey.com>
6523 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6525 (get_pe_section_index, add_pe_exported_sym): Update.
6526 (read_pe_exported_syms): Use gdb::def_vector.
6528 2018-05-25 Tom Tromey <tom@tromey.com>
6530 * frame.c (remove_prev_frame): Remove.
6531 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6533 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6535 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6537 * mips-linux-nat.c (supply_fpregset): Always call
6538 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6539 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6540 `mips_fill_fpregset'.
6541 * mips-linux-tdep.c (mips_supply_fpregset)
6542 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6543 (mips_fill_fpregset_wrapper): Remove functions.
6544 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6545 (mips_linux_fpregset): Remove variable.
6546 (mips_linux_iterate_over_regset_sections): Use
6547 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6548 (mips_linux_o32_sigframe_init): Remove comment.
6550 2018-05-25 Pedro Alves <palves@redhat.com>
6552 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6553 (struct readahead_cache, struct packet_reg, struct
6554 remote_arch_state, class remote_state): Move higher up in the
6556 (remote_target::m_remote_state): Now an object instead of a pointer.
6557 (remote_target::get_remote_state): Adjust.
6559 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6561 * stack.c (select_and_print_frame): Delete.
6562 (struct function_bounds): Move struct within function.
6563 (func_command): Most content moved into new function
6564 find_frame_for_function, use new function, print result, add
6566 (find_frame_for_function): New function, now returns a result.
6568 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6570 * stack.c (iterate_over_block_arg_vars): Fix comment.
6571 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6573 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6577 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6579 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6581 * frame.h (class scoped_restore_selected_frame): New class.
6582 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6583 of any exception, use scoped_restore_selected_frame to restore the
6586 2018-05-24 Pedro Alves <palves@redhat.com>
6588 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6591 2018-05-23 Tom Tromey <tom@tromey.com>
6593 * complaints.c (struct complaints): Remove.
6594 (symfile_complaint_book): Remove.
6595 (series): New global.
6596 (complaint_internal): Update.
6597 (clear_complaints): Update.
6599 2018-05-23 Tom Tromey <tom@tromey.com>
6601 * complaints.c (counters): New global.
6602 (struct complain): Remove.
6603 (struct complaints) <root>: Remove.
6604 (complaint_sentinel): Remove.
6605 (symfile_complaint_book): Update.
6606 (find_complaint) Remove.
6607 (complaint_internal, clear_complaints): Update.
6609 2018-05-23 Tom Tromey <tom@tromey.com>
6611 * complaints.c (struct complain) <file, line>: Remove.
6612 (find_complaint): Remove file, line parameters.
6613 (complaint_internal): Update.
6615 2018-05-23 Tom Tromey <tom@tromey.com>
6617 * complaints.c (vcomplaint): Remove.
6618 (complaint_internal) Merge in contents of vcomplaint.
6620 2018-05-23 Tom Tromey <tom@tromey.com>
6622 * complaints.c (struct complaints) <explanation>: Remove.
6623 (symfile_explanations): Remove.
6624 (symfile_complaint_book): Update.
6625 (vcomplaint): Update.
6626 (struct explanation): Remove.
6628 2018-05-23 Tom Tromey <tom@tromey.com>
6630 * complaints.c (symfile_complaints): Remove.
6631 (complaint_internal): Remove "complaints" parameter.
6632 (clear_complaints, vcomplaint): Remove "c" parameter.
6633 (get_complaints): Remove.
6634 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6635 (dwarf2_debug_line_missing_file_complaint)
6636 (dwarf2_debug_line_missing_end_sequence_complaint)
6637 (dwarf2_complex_location_expr_complaint)
6638 (dwarf2_const_value_length_mismatch_complaint)
6639 (dwarf2_section_buffer_overflow_complaint)
6640 (dwarf2_macro_malformed_definition_complaint)
6641 (dwarf2_invalid_attrib_class_complaint)
6642 (create_addrmap_from_index, dw2_symtab_iter_next)
6643 (dw2_expand_marked_cus)
6644 (dw2_debug_names_iterator::find_vec_in_debug_names)
6645 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6646 (create_debug_type_hash_table, init_cutu_and_read_dies)
6647 (partial_die_parent_scope, add_partial_enumeration)
6648 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6649 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6650 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6651 (create_cus_hash_table, create_dwp_hash_table)
6652 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6653 (dwarf2_rnglists_process, dwarf2_ranges_process)
6654 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6655 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6656 (handle_struct_member_die, process_structure_scope)
6657 (read_array_type, read_common_block, read_module_type)
6658 (read_tag_pointer_type, read_typedef, read_base_type)
6659 (read_subrange_type, load_partial_dies, partial_die_info::read)
6660 (partial_die_info::read, partial_die_info::read)
6661 (partial_die_info::read, read_checked_initial_length_and_offset)
6662 (dwarf2_string_attr, read_formatted_entries)
6663 (dwarf_decode_line_header)
6664 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6665 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6666 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6667 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6668 (get_signatured_type, get_DW_AT_signature_type)
6669 (decode_locdesc, file_file_name, consume_improper_spaces)
6670 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6671 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6672 (dwarf2_symbol_mark_computed, set_die_type)
6673 (read_attribute_value): Update.
6674 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6676 * dbxread.c (unknown_symtype_complaint)
6677 (lbrac_mismatch_complaint, repeated_header_complaint)
6678 (set_namestring, function_outside_compilation_unit_complaint)
6679 (read_dbx_symtab, process_one_symbol): Update.
6680 * gdbtypes.c (stub_noname_complaint): Update.
6681 * windows-nat.c (handle_unload_dll): Update.
6682 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6683 (decode_base_type): Update.
6684 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6685 (eb_complaint, record_include_begin, record_include_end)
6686 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6687 (process_xcoff_symbol, read_symbol)
6688 (function_outside_compilation_unit_complaint)
6689 (scan_xcoff_symtab): Update.
6690 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6691 * buildsym.c (finish_block_internal, make_blockvector)
6692 (end_symtab_get_static_block, augment_type_symtab): Update.
6693 * dtrace-probe.c (dtrace_process_dof)
6694 (dtrace_static_probe_ops::get_probes): Update.
6695 * complaints.h (struct complaint): Don't declare.
6696 (symfile_complaints): Remove.
6697 (complaint_internal): Remove "complaints" parameter.
6698 (complaint): Likewise.
6699 (clear_complaints): Likewise.
6700 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6701 (reread_symbols): Update.
6702 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6703 (dwarf2_frame_cache, decode_frame_entry): Update.
6704 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6705 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6706 (info_selectors_command): Update.
6707 * macrotab.c (macro_include, check_for_redefinition)
6708 (macro_undef): Update.
6709 * objfiles.c (filter_overlapping_sections): Update.
6710 * stabsread.c (invalid_cpp_abbrev_complaint)
6711 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6712 (define_symbol, error_type, read_type, rs6000_builtin_type)
6713 (stabs_method_name_from_physname, read_member_functions)
6714 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6715 (attach_fields_to_type, complain_about_struct_wipeout)
6716 (read_range_type, read_args, common_block_start)
6717 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6719 * mdebugread.c (index_complaint, unknown_ext_complaint)
6720 (basic_type_complaint, bad_tag_guess_complaint)
6721 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6722 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6723 (parse_procedure, parse_lines)
6724 (function_outside_compilation_unit_complaint)
6725 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6726 (bad_tag_guess_complaint, reg_value_complaint): Update.
6727 * cp-support.c (demangled_name_complaint): Update.
6728 * macroscope.c (sal_macro_scope): Update.
6729 * dwarf-index-write.c (class debug_names): Update.
6731 2018-05-23 Tom Tromey <tom@tromey.com>
6733 * complaints.c (clear_complaints): Remove "noisy" parameter.
6734 * complaints.h (clear_complaints): Update.
6735 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6736 (reread_symbols): Update.
6738 2018-05-23 Tom Tromey <tom@tromey.com>
6740 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6742 (vcomplaint, clear_complaints): Update.
6743 (symfile_explanations): Remove some messages.
6745 2018-05-23 Tom Tromey <tom@tromey.com>
6747 * complaints.c (internal_complaint): Remove.
6748 * complaints.h (internal_complaint): Remove.
6750 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6752 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6754 2018-05-22 Pedro Alves <palves@redhat.com>
6756 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6757 (remote_fileio_badfd, remote_fileio_return_errno)
6758 (remote_fileio_return_success, remote_fileio_func_open)
6759 (remote_fileio_func_open, remote_fileio_func_close)
6760 (remote_fileio_func_read, remote_fileio_func_write)
6761 (remote_fileio_func_lseek, remote_fileio_func_rename)
6762 (remote_fileio_func_unlink, remote_fileio_func_stat)
6763 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6764 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6765 remote_target parameter.
6766 (remote_fio_func_map) <func>: Add remote_target parameter.
6767 (do_remote_fileio_request, remote_fileio_request):
6768 * remote-fileio.h (remote_fileio_request):
6769 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6770 remote_target parameter.
6771 (remote_notif_process, handle_notification): Adjust to pass down
6773 (remote_notif_state_allocate): Add remote_target parameter. Save
6775 * remote-notif.h (struct remote_target): Forward declare.
6776 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6777 remote_target parameter.
6778 (struct remote_notif_state) <remote>: New field.
6779 (remote_notif_ack, remote_notif_parse): Add remote_target
6781 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6782 remote_target parameter.
6783 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6784 (threads_listing_context, rmt_thread_action, protocol_feature)
6785 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6786 (packet_result, struct threads_listing_context, remote_state):
6787 Move definitions and declarations higher up.
6788 (remote_target) <~remote_target>: Declare.
6789 (remote_download_command_source, remote_file_put, remote_file_get)
6790 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6791 (remote_hostio_pread_vFile, remote_hostio_send_command)
6792 (remote_hostio_set_filesystem, remote_hostio_open)
6793 (remote_hostio_close, remote_hostio_unlink, remote_state)
6794 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6795 (get_memory_write_packet_size, get_memory_read_packet_size)
6796 (append_pending_thread_resumptions, remote_detach_1)
6797 (append_resumption, remote_resume_with_vcont)
6798 (add_current_inferior_and_thread, wait_ns, wait_as)
6799 (process_stop_reply, remote_notice_new_inferior)
6800 (process_initial_stop_replies, remote_add_thread)
6801 (btrace_sync_conf, remote_btrace_maybe_reopen)
6802 (remove_new_fork_children, kill_new_fork_children)
6803 (discard_pending_stop_replies, stop_reply_queue_length)
6804 (check_pending_events_prevent_wildcard_vcont)
6805 (discard_pending_stop_replies_in_queue, stop_reply)
6806 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6807 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6808 (remote_interrupt_as, remote_interrupt_ns)
6809 (remote_get_noisy_reply, remote_query_attached)
6810 (remote_add_inferior, remote_current_thread, get_current_thread)
6811 (set_thread, set_general_thread, set_continue_thread)
6812 (set_general_process, write_ptid)
6813 (remote_unpack_thread_info_response, remote_get_threadinfo)
6814 (parse_threadlist_response, remote_get_threadlist)
6815 (remote_threadlist_iterator, remote_get_threads_with_ql)
6816 (remote_get_threads_with_qxfer)
6817 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6818 (get_offsets, remote_check_symbols, remote_supported_packet)
6819 (remote_query_supported, remote_packet_size)
6820 (remote_serial_quit_handler, remote_detach_pid)
6821 (remote_vcont_probe, remote_resume_with_hc)
6822 (send_interrupt_sequence, interrupt_query)
6823 (remote_notif_get_pending_events, fetch_register_using_p)
6824 (send_g_packet, process_g_packet, fetch_registers_using_g)
6825 (store_register_using_P, store_registers_using_G)
6826 (set_remote_traceframe, check_binary_download)
6827 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6828 (remote_xfer_live_readonly_partial, remote_read_bytes)
6829 (remote_send_printf, remote_flash_write, readchar)
6830 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6831 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6832 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6833 (extended_remote_disable_randomization, extended_remote_run)
6834 (send_environment_packet, extended_remote_environment_support)
6835 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6836 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6837 (packet_command): Now methods of ...
6838 (remote_target): ... this class.
6839 (m_remote_state) <remote_target>: New field.
6840 (struct remote_state) <stop_reply_queue,
6841 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6843 (remote_state::remote_state): Allocate stop_reply_queue.
6844 (remote_state): Delete global.
6845 (get_remote_state_raw): Delete.
6846 (remote_target::get_remote_state): Allocate m_remote_state on
6848 (get_current_remote_target): New.
6849 (remote_ops, extended_remote_ops): Delete.
6850 (wait_forever_enabled_p, remote_async_inferior_event_token):
6851 Delete, moved to struct remote_state.
6852 (remote_target::close): Delete self. Destruction bits split to
6854 (remote_target::~remote_target): ... this.
6855 (show_memory_packet_size): Adjust to use
6856 get_current_remote_target.
6857 (struct protocol_feature) <func>: Add remote_target parameter.
6858 All callers adjusted.
6859 (curr_quit_handler_target): New.
6860 (remote_serial_quit_handler): Reimplement.
6861 (remote_target::open_1): Adjust to use get_current_remote_target.
6862 Heap-allocate remote_target/extended_remote_target instances.
6863 (vcont_builder::vcont_builder): Add remote_target parameter, and
6864 save it in m_remote. All callers adjusted.
6865 (vcont_builder::m_remote): New field.
6866 (vcont_builder::restart, vcont_builder::flush)
6867 (vcont_builder::push_action): Use it.
6868 (remote_target::commit_resume): Use it.
6869 (struct queue_iter_param) <remote>: New field.
6870 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6871 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6872 (check_pending_event_prevents_wildcard_vcont_callback)
6873 (remote_target::check_pending_events_prevent_wildcard_vcont)
6874 (remote_target::discard_pending_stop_replies)
6875 (remote_target::discard_pending_stop_replies_in_queue)
6876 (remote_target::remote_notif_remove_queued_reply): Fill in
6878 (remote_notif_get_pending_events): New.
6879 (remote_target::readchar, remote_target::remote_serial_write):
6880 Save/restore curr_quit_handler_target.
6882 (kill_new_fork_children): Fill in 'remote' field.
6883 (packet_command): Use get_current_remote_target, defer to
6884 remote_target method of same name.
6885 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6886 parameter, and save it in m_remote. All callers adjusted.
6887 (scoped_remote_fd::release): Use m_remote.
6888 (scoped_remote_fd::m_remote): New field.
6889 (remote_file_put, remote_file_get, remote_file_delete): Use
6890 get_current_remote_target, defer to remote_target method of same
6892 (remote_btrace_reset): Add remote_state paremeter. Update all
6894 (remote_async_inferior_event_handler). Pass down 'data'.
6895 (remote_new_objfile): Use get_current_remote_target.
6896 (remote_target::vcont_r_supported): New.
6897 (set_range_stepping): Use get_current_remote_target and
6898 remote_target::vcont_r_supported.
6899 (_initialize_remote): Don't allocate 'remote_state' and
6900 'stop_reply_queue' globals.
6901 * remote.h (struct remote_target): Forward declare.
6902 (getpkt, putpkt, remote_notif_get_pending_events): Add
6903 'remote_target' parameter.
6905 2018-05-22 Pedro Alves <palves@redhat.com>
6907 * remote.c (vcont_builder): Now a class. Make all data members
6909 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6911 (vcont_builder_restart): Rename to ...
6912 (vcont_builder::restart): ... this.
6913 (vcont_builder_flush): Rename to ...
6914 (vcont_builder::flush): ... this.
6915 (vcont_builder_push_action): Rename to ...
6916 (vcont_builder::push_action): ... this.
6917 (remote_target::commit_resume): Adjust.
6919 2018-05-22 Pedro Alves <palves@redhat.com>
6921 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6922 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6923 (get_fixed_memory_packet_size): New.
6924 (get_memory_packet_size): Use it.
6925 (set_memory_packet_size): Don't override the config size with
6926 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6927 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6928 Don't refer to get_memory_packet_size if not connected to a remote
6929 target. Show "(default)" if configured size is 0.
6931 2018-05-22 Pedro Alves <palves@redhat.com>
6933 * remote.c (remote_target::mourn_inferior): Move
6934 discard_pending_stop_replies call here from ...
6935 (_initialize_remote): ... here.
6937 2018-05-22 Pedro Alves <palves@redhat.com>
6939 * remote.c (compare_section_command): Remove set_general_process
6942 2018-05-22 Pedro Alves <palves@redhat.com>
6944 * remote.c (struct packet_reg, struct remote_arch_state):
6945 Move higher up in the file.
6946 (remote_state) <m_arch_states>: Store remote_arch_state values
6947 instead of remote_arch_state pointers.
6948 (remote_state::get_remote_arch_state): Adjust.
6950 2018-05-22 Pedro Alves <palves@redhat.com>
6952 * remote.c: Include <unordered_map>.
6953 (remote_state): Now a class.
6954 (remote_state) <get_remote_arch_state>: Declare method.
6955 <get_remote_arch_state>: New field.
6956 (remote_arch_state) <remote_arch_state>: Declare ctor.
6957 <regs>: Now a unique_ptr.
6958 (remote_gdbarch_data_handle): Delete.
6959 (get_remote_arch_state): Delete.
6960 (remote_state::get_remote_arch_state): New.
6961 (get_remote_state): Adjust to call remote_state's
6962 get_remote_arch_state method.
6963 (init_remote_state): Delete, bits factored out to ...
6964 (remote_arch_state::remote_arch_state): ... this new method.
6965 (get_remote_packet_size, get_memory_packet_size)
6966 (process_g_packet, remote_target::fetch_registers)
6967 (remote_target::prepare_to_store, store_registers_using_G)
6968 (remote_target::store_registers, remote_target::get_trace_status):
6969 Adjust to call remote_state's method.
6970 (_initialize_remote): Remove reference to
6971 remote_gdbarch_data_handle.
6973 2018-05-22 Pedro Alves <palves@redhat.com>
6975 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
6976 pread>: New method declarations.
6977 (remote_target::open_1): Adjust.
6978 (readahead_cache_invalidate): Rename to ...
6979 (readahead_cache::invalidate): ... this, and adjust to be a class
6981 (readahead_cache_invalidate_fd): Rename to ...
6982 (readahead_cache::invalidate_fd): ... this, and adjust to be a
6984 (remote_hostio_pwrite): Adjust.
6985 (remote_hostio_pread_from_cache): Rename to ...
6986 (readahead_cache::pread): ... this, and adjust to be a class
6988 (remote_hostio_close): Adjust.
6990 2018-05-22 Pedro Alves <palves@redhat.com>
6992 * remote.c (remote_hostio_close_cleanup): Delete.
6993 (class scoped_remote_fd): New.
6994 (remote_file_put, remote_file_get): Use it.
6996 2018-05-22 Pedro Alves <palves@redhat.com>
6998 (struct vCont_action_support): Use bool and initialize all fields.
6999 (struct readahead_cache): Initialize all fields.
7000 (remote_state): Use bool and initialize all fields.
7001 (remote_state::remote_state, remote_state::~remote_state): New.
7002 (new_remote_state): Delete.
7003 (_initialize_remote): Use new to allocate remote_state.
7005 2018-05-22 Pedro Alves <palves@redhat.com>
7009 * c-exp.y: Include "c-support.h".
7010 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7011 of tolower. Use c_ident_is_alpha to scan names.
7012 * c-lang.c: Include "c-support.h".
7013 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7014 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7015 * c-support.h: New file, with bits factored out from ...
7016 * cp-name-parser.y: ... this file.
7017 Include "c-support.h".
7018 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7019 c-support.h and renamed.
7020 (symbol_end, yylex): Adjust.
7022 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7024 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7025 parameter type to CORE_ADDR.
7026 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7027 parameter type in declaration to CORE_ADDR.
7028 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7029 target_auxv_search to get AT_HWCAP and use the result to get the
7031 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7032 to CORE_ADDR. Remove the cast of the return value to unsigned
7033 long. Fix error predicate of target_auxv_search.
7034 (ppc_linux_nat_target::read_description): Change the type of the
7035 hwcap variable to CORE_ADDR.
7037 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7039 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7040 if the size of fpscr is larger than 32 bits.
7042 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7044 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7045 (ppc32_linux_vsxregmap): New global.
7046 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7047 regcache_supply_regset, and regcache_collect_regset.
7048 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7049 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7050 (fetch_vsx_register, store_vsx_register): Remove.
7051 (fetch_vsx_registers): Add regno parameter. Get regset using
7052 ppc_linux_vsxregset. Use regset to supply registers.
7053 (store_vsx_registers): Add regno parameter. Get regset using
7054 ppc_linux_vsxregset. Use regset to collect registers.
7055 (fetch_register): Call fetch_vsx_registers instead of
7057 (store_register): Call store_vsx_registers instead of
7059 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7060 new regno parameter.
7061 (store_ppc_registers): Call store_vsx_registers with -1 for the
7062 new regno parameter.
7063 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7064 (ppc_collect_vsxregset): Remove.
7066 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7068 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7070 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7071 for vector register offset fields.
7072 (ppc64_fbsd_reg_offsets): Likewise.
7073 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7074 to vector register offset fields.
7075 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7076 to vector register offset fields.
7077 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7078 vector register offset fields.
7079 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7080 initializers for vector register offset fields.
7081 (rs6000_aix64_reg_offsets): Likewise.
7082 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7083 (ppc_supply_vrregset): Remove.
7084 (ppc_collect_vrregset): Remove.
7085 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7086 (ppc_linux_vrregset) : New function.
7087 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7088 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7089 (ppc32_linux_vrregset): Remove.
7090 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7091 and use result instead of ppc32_linux_vrregset.
7092 (ppc32_linux_reg_offsets): Remove initializers for vector register
7094 (ppc64_linux_reg_offsets): Likewise.
7095 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7096 * ppc-linux-nat.c: Include regset.h.
7097 (gdb_vrregset_t): Adjust comment to account for little-endian
7099 (supply_vrregset, fill_vrregset): Remove.
7100 (fetch_altivec_register, store_altivec_register): Remove.
7101 (fetch_altivec_registers): Add regno parameter. Get regset using
7102 ppc_linux_vrregset. Use regset to supply registers.
7103 (store_altivec_registers): Add regno parameter. Get regset using
7104 ppc_linux_vrregset. Use regset to collect registers.
7105 (fetch_register): Call fetch_altivec_registers instead of
7106 fetch_altivec_register.
7107 (store_register): Call store_altivec_registers instead of
7108 store_altivec_register.
7109 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7110 the new regno parameter.
7111 (store_ppc_registers): Call store_altivec_registers with -1 for
7112 the new regno parameter.
7114 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7116 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7117 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7118 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7119 (gdb_vrregset_t): Change array type size to
7120 PPC_LINUX_SIZEOF_VRREGSET.
7121 (gdb_vsxregset_t): Change array type size to
7122 PPC_LINUX_SIZEOF_VSXREGSET.
7123 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7124 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7125 PPC_LINUX_SIZEOF_VSXREGSET.
7127 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7129 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7130 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7132 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7133 ppc_linux_target_wordsize with tid.
7134 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7136 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7137 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7138 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7139 tid parameter. Remove static specifier.
7140 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7141 (ppc_linux_target_wordsize): New declaration.
7143 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7145 * arch/ppc-linux-common.c: New file.
7146 * arch/ppc-linux-common.h: New file.
7147 * arch/ppc-linux-tdesc.h: New file.
7148 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7149 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7150 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7151 arch/ppc-linux-tdesc.h.
7152 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7153 arch/ppc-linux-tdesc.h.
7154 (ppc_linux_nat_target::read_description): Remove target
7155 description matching code. Fill a ppc_linux_features struct and
7156 call ppc_linux_match_description with it. Move comment about ISA
7157 2.05 to ppc-linux-common.c.
7158 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7159 arch/ppc-linux-tdesc.h.
7160 (ppc_linux_core_read_description): Remove target description
7161 matching code. Fill a ppc_linux_features struct and call
7162 ppc_linux_match_description with it.
7163 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7164 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7165 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7166 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7167 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7168 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7169 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7170 (tdesc_powerpc_e500l): Remove.
7172 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7174 * ada-lang.c (catch_assert_command): Pass empty string instead
7175 of NULL for excep_string argument.
7177 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7179 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7180 the width of the requested register exceeds the width of the
7183 2018-05-21 Tom Tromey <tom@tromey.com>
7185 * printcmd.c (output_command): Remove.
7186 (output_command_const): Rename to output_command.
7187 * valprint.h (output_command): Rename from output_command_const.
7188 * tracepoint.c (trace_dump_actions): Call output_command.
7190 2018-05-21 Tom Tromey <tom@tromey.com>
7192 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7193 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7194 * ada-lang.h (create_ada_exception_catchpoint): Update.
7195 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7197 (create_excep_cond_exprs, ~ada_catchpoint)
7198 (should_stop_exception, print_one_exception)
7199 (print_mention_exception, print_recreate_exception): Update.
7200 (ada_get_next_arg): Remove.
7201 (catch_ada_exception_command_split): Use std::string. Change type
7202 of "excep_string", "cond_string".
7203 (catch_ada_exception_command): Update.
7204 (create_ada_exception_catchpoint): Change type of excep_string.
7205 (ada_exception_sal): Remove excep_string parameter.
7206 (~ada_catchpoint): Remove.
7208 2018-05-21 Tom Tromey <tom@tromey.com>
7210 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7213 2018-05-21 Tom Tromey <tom@tromey.com>
7215 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7216 Return unique_xmalloc_ptr.
7217 (print_it_exception): Update.
7219 2018-05-21 Tom Tromey <tom@tromey.com>
7221 * tracepoint.c (trace_dump_actions): Use std::string.
7223 2018-05-21 Tom Tromey <tom@tromey.com>
7225 * symfile.c (reread_symbols): Use std::string for original_name.
7227 2018-05-21 Tom Tromey <tom@tromey.com>
7229 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7230 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7233 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7235 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7237 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7238 * objfiles.c (get_objfile_bfd_data): Allocate
7239 objfile_per_bfd_storage with obstack_new when allocating on
7242 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7244 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7246 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7247 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7248 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7249 (add_pending): Likewise.
7250 (parse_symbol): Likewise.
7251 (parse_partial_symbols): Likewise.
7252 (psymtab_to_symtab_1): Likewise.
7253 (new_psymtab): Likewise.
7254 (elfmdebug_build_psymtabs): Likewise.
7255 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7256 * objfiles.c (get_objfile_bfd_data): Likewise.
7257 (objfile_register_static_link): Likewise.
7258 * psymtab.c (allocate_psymtab): Likewise.
7259 * stabsread.c (read_member_functions): Likewise.
7260 * xcoffread.c (xcoff_end_psymtab): Likewise.
7262 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7264 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7265 compiler supports std::is_trivially_constructible.
7266 * common/poison.h: Include obstack.h.
7267 (IsMallocable): Define to is_trivially_constructible if the
7268 compiler supports it, define to true_type otherwise.
7272 (XOBNEWVEC): Redefine.
7273 * gdb_obstack.h (obstack_zalloc): New.
7274 (OBSTACK_ZALLOC): Redefine.
7275 (obstack_calloc): New.
7276 (OBSTACK_CALLOC): Redefine.
7278 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7279 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7281 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7282 obstack_calloc/obstack_zalloc.
7283 (gdbarch_obstack_zalloc): Remove.
7284 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7286 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7288 * stack.c (backtrace_command_1): Remove useless variable int i.
7290 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7292 * stack.c (print_frame_info): Fix comment.
7294 2018-05-18 Tom Tromey <tom@tromey.com>
7296 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7297 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7298 (~dwarf2_per_objfile): Update
7299 (dwarf2_get_dwz_file): Use new.
7300 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7303 2018-05-18 Tom Tromey <tom@tromey.com>
7305 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7307 * dwarf2read.c (struct dwp_file): Add constructor and
7309 (open_and_init_dwp_file): Return a unique_ptr.
7310 (dwarf2_per_objfile, create_dwp_hash_table)
7311 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7312 (lookup_dwo_unit_in_dwp): Update.
7313 (open_and_init_dwp_file, get_dwp_file): Update.
7315 2018-05-18 Tom Tromey <tom@tromey.com>
7317 * dwarf2read.c (dwarf2_per_objfile): Update.
7318 (struct mapped_index): Add initializers.
7319 (dwarf2_read_index): Use new.
7320 (dw2_symtab_iter_init): Update.
7321 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7324 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7326 * dwarf2read.c (mapped_index) <total_size>: Remove.
7328 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7330 * unittests/format_pieces-selftests.c (test_format_specifier):
7333 2018-05-18 Tom Tromey <tom@tromey.com>
7335 * c-typeprint.c (maybe_print_hole): New function.
7336 (c_print_type_struct_field_offset): Update.
7337 (c_type_print_base_struct_union): Call maybe_print_hole.
7339 2018-05-17 Keith Seitz <keiths@redhat.com>
7341 * breakpoint.c (build_bpstat_chain): New function, moved from
7343 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7344 If no stop chain is passed, call build_bpstat_chain to build it.
7345 * breakpoint.h (build_bpstat_chain): Declare.
7346 (bpstat_stop_status): Move documentation here from breakpoint.c.
7347 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7348 build the stop chain and pass it to skip_inline_frames.
7349 Pass this stop chain to bpstat_stop_status.
7350 * inline-frame.c: Include breakpoint.h.
7351 (stopped_by_user_bp_inline_frame): New function.
7352 (skip_inline_frames): Add parameter `stop_chain'.
7353 Move documention to inline-frame.h.
7354 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7355 whether the frame should be elided.
7356 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7357 Add moved documentation and update for new parameter.
7359 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7362 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7363 unittests/format_pieces-selftests.c.
7364 * common/format.h (format_piece) <operator==>: New.
7365 (format_pieces) <operator[]>: Remove.
7366 * common/format.c (format_pieces::format_pieces): Handle \e.
7367 * unittests/format_pieces-selftests.c: New.
7369 2018-05-17 Tom Tromey <tom@tromey.com>
7372 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7373 (dw2_instantiate_symtab): Add skip_partial parameter.
7374 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7375 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7376 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7377 (dw2_expand_symtabs_matching_one)
7378 (dw2_find_pc_sect_compunit_symtab)
7379 (dw2_debug_names_lookup_symbol)
7380 (dw2_debug_names_expand_symtabs_for_function): Update.
7381 (init_cutu_and_read_dies): Add skip_partial parameter.
7382 (process_psymtab_comp_unit, build_type_psymtabs_1)
7383 (process_skeletonless_type_unit, load_partial_comp_unit)
7384 (psymtab_to_symtab_1): Update.
7385 (load_full_comp_unit): Add skip_partial parameter.
7386 (process_imported_unit_die, dwarf2_read_addr_index)
7387 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7388 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7389 (read_signatured_type): Update.
7391 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7393 * value.c (release_value): Remove unused variable.
7394 (record_latest_value): Likewise.
7395 (access_value_history): Likewise.
7396 (preserve_values): Likewise.
7398 2018-05-17 Tom Tromey <tom@tromey.com>
7400 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7403 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7406 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7407 Also handle registers whose width is not a multiple of
7409 (linux_nat_trad_target::store_register): Likewise.
7411 2018-05-16 Tom Tromey <tom@tromey.com>
7413 * gdbcore.h (core_bfd): Redefine.
7414 * corelow.c (core_target::close): Update.
7415 (core_target_open): Update.
7416 * progspace.h (struct program_space) <cbfd>: Now a
7419 2018-05-16 Tom Tromey <tom@tromey.com>
7422 * symfile-add-flags.h (enum symfile_add_flags)
7423 <SYMFILE_NOT_FILENAME>: New constant.
7424 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7425 objfile name from BFD.
7426 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7427 * minidebug.c (find_separate_debug_file_in_section): Put
7428 ".gnu_debugdata" into BFD's file name.
7430 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7432 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7435 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7438 * aarch64-tdep.c (aarch64_analyze_prologue,
7439 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7440 Indicate not interested in errors.
7442 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7444 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7445 Supply the MIPS_ZERO_REGNUM register.
7447 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7449 * mips-tdep.c (mask_address_var): Make variable static.
7451 2018-05-14 Tom Tromey <tom@tromey.com>
7453 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7455 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7457 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7458 FXSAVE_ADDR for the mxcsr register.
7460 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7462 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7464 2018-05-11 Pedro Alves <palves@redhat.com>
7466 * corelow.c (core_target) <core_target>: No longer inline.
7467 Initialize m_core_gdbarch, m_core_vec and build the section table
7469 <~core_target>: New.
7470 <core_gdbarch, get_core_register_section>: New methods.
7471 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7472 factored out from ...
7473 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7475 (sniff_core_bfd): Add gdbarch parameter.
7476 (core_close): Delete, merged into ...
7477 (core_target::close): ... here. Delete self.
7478 (core_close_cleanup): Delete.
7479 (core_target_open): Allocate a core_target on the heap. Use a
7480 unique_ptr instead of a cleanup. Bits moved into the core_target
7481 ctor. Adjust to use core_target methods instead of globals.
7482 (get_core_register_section): Rename to ...
7483 (core_target::get_core_register_section): ... this and adjust.
7484 (struct get_core_registers_cb_data): New.
7485 (get_core_registers_cb): Use it. Use bool.
7486 (core_target::fetch_registers, core_target::files_info)
7487 (core_target::xfer_partial, core_target::read_description)
7488 (core_target::pid_to, core_target::thread_name): Adjust to
7489 reference class fields instead of globals.
7490 * target.h (struct target_ops_deleter, target_ops_up): New.
7492 2018-05-11 Pedro Alves <palves@redhat.com>
7494 * corefile.c (core_file_command): Move to corelow.c.
7495 * corelow.c (the_core_target): Delete.
7496 (core_file_command): Moved from corefile.c. Check exec_bfd
7497 instead of the_core_target. Use target_detach instead of calling
7498 into the_core_target directly.
7499 (maybe_say_no_core_file_now): New.
7500 (core_target::detach): Use it.
7501 (_initialize_corelow): Remove references to the_core_target.
7502 * gdbcore.h (the_core_target): Delete.
7504 2018-05-11 Tom Tromey <tromey@redhat.com>
7505 Pedro Alves <palves@redhat.com>
7507 * corefile.c (core_bfd): Remove.
7508 * gdbcore.h (core_bfd): Now a macro.
7509 * progspace.h (struct program_space) <cbfd>: New field.
7511 2018-05-11 Tom Tromey <tom@tromey.com>
7513 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7516 2018-05-10 Tom Tromey <tom@tromey.com>
7518 * configure: Rebuild.
7519 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7521 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7524 * regformats/regdat.sh: Adjust script, following the addition
7525 of the new expedite_regs parameter to init_target_desc.
7527 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7530 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7531 set_gdbarch_significant_addr_bit.
7532 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7533 set_gdbarch_significant_addr_bit.
7534 * utils.c (address_significant): Update to sign extend addr.
7536 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7538 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7539 (xtensa_linux_init_abi): Limit tdep->num_regs by
7540 tdep->num_nopriv_regs.
7541 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7542 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7545 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7547 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7549 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7551 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7552 (I387_MXCSR_INIT_VAL): New constant.
7553 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7554 buffer if it was supplied by the inferior.
7555 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7556 (i387_xsave_get_clear_bv): New function.
7557 (i387_supply_xsave): Only read x87 control registers from the
7558 xsave buffer if the feature is enabled, and the state will have
7559 been written, otherwise, provide a suitable default.
7560 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7561 including x87 control registers. Update control registers if they
7562 have changed from the default value, and mark features as enabled
7564 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7566 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7568 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7570 2018-05-07 Tom Tromey <tom@tromey.com>
7572 * configure: Rebuild.
7573 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7575 2018-05-07 Tom Tromey <tom@tromey.com>
7578 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7579 bit. Use correct value for VDIV.
7581 2018-05-04 Tom Tromey <tom@tromey.com>
7583 * configure: Rebuild.
7584 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7586 2018-05-04 Tom Tromey <tom@tromey.com>
7588 * linux-record.c (record_linux_system_call) <case
7589 RECORD_SYS_RECVFROM>: Add "break".
7591 2018-05-04 Tom Tromey <tom@tromey.com>
7593 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7594 Add missing "break".
7595 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7596 Add missing "break".
7598 2018-05-04 Tom Tromey <tom@tromey.com>
7600 * rs6000-tdep.c (ppc_process_record_op4)
7601 (ppc_process_record_op63): Add fall-through comment.
7603 2018-05-04 Tom Tromey <tom@tromey.com>
7605 * i386-tdep.c (i386_process_record): Add fall-through comment.
7607 2018-05-04 Tom Tromey <tom@tromey.com>
7609 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7612 2018-05-04 Tom Tromey <tom@tromey.com>
7614 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7615 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7616 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7618 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7620 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7623 2018-05-04 Tom Tromey <tom@tromey.com>
7625 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7627 2018-05-04 Tom Tromey <tom@tromey.com>
7629 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7630 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7631 * symfile.c (section_is_mapped): Fix fall-through comment.
7632 * stabsread.c (define_symbol, read_member_functions): Fix
7633 fall-through comment.
7634 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7636 * remote.c (remote_wait_as): Fix fall-through comment.
7637 * p-exp.y (yylex): Fix fall-through comment.
7638 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7640 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7641 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7642 * jv-exp.y (yylex): Fix fall-through comment.
7643 * go-exp.y (lex_one_token): Fix fall-through comment.
7644 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7645 fall-through comment.
7646 * f-exp.y (yylex): Fix fall-through comment.
7647 * dwarf2read.c (process_die): Fix fall-through comments.
7648 * dbxread.c (process_one_symbol): Fix fall-through comment.
7649 * d-exp.y (lex_one_token): Fix fall-through comment.
7650 * cp-name-parser.y (yylex): Fix fall-through comment.
7651 * coffread.c (coff_symtab_read): Fix fall-through comment.
7652 * c-exp.y (lex_one_token): Fix fall-through comment.
7653 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7655 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7658 2018-05-04 Tom Tromey <tom@tromey.com>
7661 * NEWS: Mention gdb.execute change.
7662 * gdbcmd.h (execute_control_command): Don't declare.
7663 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7664 execute_control_commands, execute_control_commands_to_string.
7665 * cli/cli-script.h (execute_control_commands)
7666 (execute_control_commands_to_string): Declare.
7667 (execute_control_command): Add from_tty parameter.
7668 * cli/cli-script.c (execute_control_commands)
7669 (execute_control_commands_to_string): New functions.
7670 (execute_user_command): Use execute_control_commands.
7671 (execute_control_command_1): Add "from_tty" parameter. Update.
7672 (execute_control_command): Likewise.
7674 2018-05-04 Tom Tromey <tom@tromey.com>
7677 * NEWS: Mention that breakpoint commands are writable.
7678 * python/py-breakpoint.c (bppy_set_commands): New function.
7679 (breakpoint_object_getset) <"commands">: Use it.
7681 2018-05-04 Tom Tromey <tom@tromey.com>
7683 * tracepoint.c (actions_command): Update.
7684 * mi/mi-cmd-break.c (mi_command_line_array)
7685 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7686 (mi_read_next_line): Remove.
7687 (mi_cmd_break_commands): Update.
7688 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7690 * cli/cli-script.c (get_command_line): Update.
7691 (process_next_line): Use function_view. Constify.
7692 (recurse_read_control_structure, read_command_lines)
7693 (read_command_lines_1): Change argument types to function_view.
7694 (do_define_command, document_command): Update.
7695 * breakpoint.h (check_tracepoint_command): Don't declare.
7696 * breakpoint.c (check_tracepoint_command): Remove.
7697 (commands_command_1, create_tracepoint_from_upload): Update.
7699 2018-05-04 Tom Tromey <tom@tromey.com>
7702 * cli/cli-script.h (enum command_control_type) <define_control>:
7704 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7705 (build_command_line, execute_control_command_1)
7706 (process_next_line): Likewise.
7707 (do_define_command): New function, extracted from define_command.
7708 (define_command): Use it.
7710 2018-05-04 Tom Tromey <tom@tromey.com>
7712 * tracepoint.c (actions_command): Update.
7713 * cli/cli-script.h (read_command_lines): Update.
7714 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7715 (MAX_TMPBUF): Remove define.
7716 (define_command): Use string_printf.
7717 (document_command): Likewise.
7718 * breakpoint.c (commands_command_1): Update.
7720 2018-05-04 Tom Tromey <tom@tromey.com>
7722 * top.c (execute_command): Update.
7723 * cli/cli-script.h (print_command_lines): Now varargs.
7724 * cli/cli-script.c (print_command_lines): Now varargs.
7725 (execute_control_command_1) <case while_control, case if_control>:
7728 2018-05-04 Tom Tromey <tom@tromey.com>
7730 * tracepoint.c (all_tracepoint_actions): Rename from
7731 all_tracepoint_actions_and_cleanup. Change return type.
7732 (actions_command, encode_actions_1, encode_actions)
7733 (trace_dump_actions, tdump_command): Update.
7734 * remote.c (remote_download_command_source): Update.
7735 * python/python.c (gdbpy_eval_from_control_command)
7736 (python_command, python_interactive_command): Update.
7737 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7738 * guile/guile.c (guile_command)
7739 (gdbscm_eval_from_control_command, guile_command): Update.
7740 * compile/compile.c (compile_code_command)
7741 (compile_print_command, compile_to_object): Update.
7742 * cli/cli-script.h (struct command_lines_deleter): New.
7743 (counted_command_line): New typedef.
7744 (struct command_line): Add constructor, destructor.
7745 <body_list>: Remove.
7746 <body_list_0, body_list_1>: New members.
7747 (command_line_up): Remove typedef.
7748 (read_command_lines, read_command_lines_1, get_command_line):
7750 (copy_command_lines): Don't declare.
7751 * cli/cli-script.c (build_command_line): Use "new".
7752 (get_command_line): Return counted_command_line.
7753 (print_command_lines, execute_user_command)
7754 (execute_control_command_1, while_command, if_command): Update.
7755 (realloc_body_list): Remove.
7756 (process_next_line, recurse_read_control_structure): Update.
7757 (read_command_lines, read_command_lines_1): Return counted_command_line.
7758 (free_command_lines): Use "delete".
7759 (copy_command_lines): Remove.
7760 (define_command, document_command, show_user_1): Update.
7761 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7762 a counted_command_line.
7763 * breakpoint.h (counted_command_line): Remove typedef.
7764 (breakpoint_set_commands): Update.
7765 * breakpoint.c (check_no_tracepoint_commands)
7766 (validate_commands_for_breakpoint): Update.
7767 (breakpoint_set_commands): Change commands to be a
7768 counted_command_line.
7769 (commands_command_1, update_dprintf_command_list)
7770 (create_tracepoint_from_upload): Update.
7772 2018-05-04 Tom Tromey <tom@tromey.com>
7774 * cli/cli-decode.h (cmd_list_element): New constructor.
7775 (~cmd_list_element): New destructor.
7776 (struct cmd_list_element): Add initializers.
7777 * cli/cli-decode.c (do_add_cmd): Use "new".
7778 (delete_cmd): Use "delete".
7780 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7781 Pedro Alves <palves@redhat.com>
7783 PR breakpoints/19806 and support for PR external/20207.
7784 * NEWS: Mention Aarch64 watchpoint improvements.
7785 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7786 watchpoints and PR external/20207 watchpoints.
7787 * nat/aarch64-linux-hw-point.c
7788 (kernel_supports_any_contiguous_range): New.
7789 (aarch64_watchpoint_offset): New.
7790 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7791 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7792 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7793 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7794 next_addr_orig_p. Support PR external/20207 watchpoints.
7795 (aarch64_downgrade_regs): New.
7796 (aarch64_dr_state_insert_one_point): New parameters offset and
7798 (aarch64_dr_state_remove_one_point): Likewise.
7799 (aarch64_handle_breakpoint): Update caller.
7800 (aarch64_handle_aligned_watchpoint): Likewise.
7801 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7803 (aarch64_linux_set_debug_regs): Remove const from state. Call
7804 aarch64_downgrade_regs.
7805 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7806 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7807 (DR_CONTROL_MASK): ... this.
7808 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7809 (unsigned int aarch64_watchpoint_offset): New prototype.
7810 (aarch64_linux_set_debug_regs): Remove const from state.
7811 * utils.c (align_up, align_down): Move to ...
7812 * common/common-utils.c (align_up, align_down): ... here.
7813 * utils.h (align_up, align_down): Move to ...
7814 * common/common-utils.h (align_up, align_down): ... here.
7816 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7818 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7819 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7820 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7821 Re-implement to match the ABI as summarized in GCC's
7822 gcc/config/sparc/sparc.c. All callers updated.
7823 (sparc32_store_arguments): Remove assertion.
7825 2018-05-04 Tom Tromey <tom@tromey.com>
7827 * printcmd.c: Don't include tui.h.
7828 (decode_format): Use skip_spaces.
7830 2018-05-04 Tom Tromey <tom@tromey.com>
7833 * printcmd.c (last_count): New global.
7834 (x_command): Use saved count when repeating.
7836 2018-05-04 Tom Tromey <tom@tromey.com>
7838 * nto-procfs.c (do_closedir_cleanup): Remove.
7839 (procfs_pidlist): Use gdb_dir_up.
7840 * procfs.c (do_closedir_cleanup): Remove.
7841 (proc_update_threads): Use gdb_dir_up.
7842 * common/filestuff.h (struct gdb_dir_deleter): New.
7843 (gdb_dir_up): New typedef.
7845 2018-05-04 Tom Tromey <tom@tromey.com>
7847 * ada-lang.c (print_mention_exception): Use std::string.
7849 2018-05-04 Tom Tromey <tom@tromey.com>
7851 * ada-lang.c (create_excep_cond_exprs): Update.
7852 (ada_exception_catchpoint_cond_string): Use std::string.
7854 2018-05-04 Tom Tromey <tom@tromey.com>
7856 * ada-lang.c (xget_renaming_scope): Return std::string.
7857 (old_renaming_is_invisible): Update.
7859 2018-05-04 Tom Tromey <tom@tromey.com>
7861 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7862 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7864 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7866 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7868 2018-05-04 Tom Tromey <tom@tromey.com>
7870 * remote.c (remote_query_supported_append): Change type.
7871 (remote_check_symbols): Update.
7873 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7876 * configure.ac: Prepend libpython.
7877 * python/python-config.py: Likewise.
7878 * configure: Regenerate.
7880 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7882 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7884 2018-05-03 Pedro Alves <palves@redhat.com>
7887 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7888 override. Write 'true' instead of '1'.
7889 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7892 2018-05-02 Pedro Alves <palves@redhat.com>
7894 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7895 add_inf_child_target.
7896 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7897 add_inf_child_target.
7898 * aix-thread.c (aix_thread_target_info): New.
7899 (aix_thread_target) <shortname, longname, doc>: Delete.
7901 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7902 add_inf_child_target.
7903 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7904 add_inf_child_target.
7905 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7906 add_inf_child_target.
7907 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7908 add_inf_child_target.
7909 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7910 add_inf_child_target.
7911 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7912 add_inf_child_target.
7913 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7914 add_inf_child_target.
7915 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7916 add_inf_child_target.
7917 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7918 add_inf_child_target.
7919 * bfd-target.c (target_bfd_target_info): New.
7920 (target_bfd) <shortname, longname, doc>: Delete.
7922 * bsd-kvm.c (bsd_kvm_target_info): New.
7923 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7925 (bsd_kvm_target::open): Rename to ...
7926 (bsd_kvm_target_open): ... this. Adjust.
7927 * bsd-uthread.c (bsd_uthread_target_info): New.
7928 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7930 * corefile.c (core_file_command): Adjust.
7931 * corelow.c (core_target_info): New.
7932 (core_target) <shortname, longname, doc>: Delete.
7934 (core_target::open): Rename to ...
7935 (core_target_open): ... this. Adjust.
7936 * ctf.c (ctf_target_info): New.
7937 (ctf_target) <shortname, longname, doc>: Delete.
7939 (ctf_target::open): Rename to ...
7940 (ctf_target_open): ... this.
7941 (_initialize_ctf): Adjust.
7942 * exec.c (exec_target_info): New.
7943 (exec_target) <shortname, longname, doc>: Delete.
7945 (exec_target::open): Rename to ...
7946 (exec_target_open): ... this.
7947 * gdbcore.h (core_target_open): Declare.
7948 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
7949 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
7950 add_inf_child_target.
7951 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
7952 add_inf_child_target.
7953 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
7954 add_inf_child_target.
7955 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
7956 add_inf_child_target.
7957 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
7958 add_inf_child_target.
7959 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
7960 add_inf_child_target.
7961 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
7962 add_inf_child_target.
7963 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
7964 add_inf_child_target.
7965 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
7966 add_inf_child_target.
7967 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
7968 add_inf_child_target.
7969 * inf-child.c (inf_child_target_info): New.
7970 (inf_child_target::info): New.
7971 (inf_child_open_target): Remove 'target' parameter. Use
7972 get_native_target instead.
7973 (inf_child_target::open): Delete.
7974 (add_inf_child_target): New.
7975 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
7978 (add_inf_child_target): Declare.
7979 (inf_child_open_target): Declare.
7980 * linux-thread-db.c (thread_db_target_info): New.
7981 (thread_db_target) <shortname, longname, doc>: Delete.
7983 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
7984 add_inf_child_target.
7985 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
7986 add_inf_child_target.
7987 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
7988 add_inf_child_target.
7989 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
7990 add_inf_child_target.
7991 * make-target-delegates (print_class): Adjust.
7992 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
7993 add_inf_child_target.
7994 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
7995 add_inf_child_target.
7996 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
7997 add_inf_child_target.
7998 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
7999 add_inf_child_target.
8000 * nto-procfs.c (nto_native_target_info): New.
8001 (nto_procfs_target_native) <shortname, longname, doc>:
8004 (nto_procfs_target_info): New.
8005 (nto_procfs_target_procfs) <shortname, longname, doc>:
8008 (init_procfs_targets): Adjust.
8009 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8010 add_inf_child_target.
8011 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8012 add_inf_child_target.
8013 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8014 add_inf_child_target.
8015 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8016 add_inf_child_target.
8017 * ravenscar-thread.c (ravenscar_target_info): New.
8018 (ravenscar_thread_target) <shortname, longname, doc>:
8021 * record-btrace.c (record_btrace_target_info):
8022 (record_btrace_target) <shortname, longname, doc>: Delete.
8024 (record_btrace_target::open): Rename to ...
8025 (record_btrace_target_open): ... this. Adjust.
8026 * record-full.c (record_longname, record_doc): New.
8027 (record_full_base_target) <shortname, longname, doc>: Delete.
8029 (record_full_target_info): New.
8030 (record_full_target): <shortname>: Delete.
8032 (record_full_core_open_1, record_full_open_1): Update comments.
8033 (record_full_base_target::open): Rename to ...
8034 (record_full_open): ... this.
8035 (cmd_record_full_restore): Update.
8036 (_initialize_record_full): Update.
8037 * remote-sim.c (remote_sim_target_info): New.
8038 (gdbsim_target) <shortname, longname, doc>: Delete.
8040 (gdbsim_target::open): Rename to ...
8041 (gdbsim_target_open): ... this.
8042 (_initialize_remote_sim): Adjust.
8043 * remote.c (remote_doc): New.
8044 (remote_target_info): New.
8045 (remote_target) <shortname, longname, doc>: Delete.
8047 (extended_remote_target_info): New.
8048 (extended_remote_target) <shortname, longname, doc>: Delete.
8050 (remote_target::open_1): Make static. Adjust.
8051 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8052 * s390-linux-nat.c (_initialize_s390_nat): Use
8053 add_inf_child_target.
8054 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8055 add_inf_child_target.
8056 * sol-thread.c (thread_db_target_info): New.
8057 (sol_thread_target) <shortname, longname, doc>: Delete.
8059 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8060 add_inf_child_target.
8061 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8062 add_inf_child_target.
8063 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8064 add_inf_child_target.
8065 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8066 add_inf_child_target.
8067 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8068 add_inf_child_target.
8069 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8070 add_inf_child_target.
8071 * spu-linux-nat.c (_initialize_spu_nat): Use
8072 add_inf_child_target.
8073 * spu-multiarch.c (spu_multiarch_target_info): New.
8074 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8076 * target-delegates.c: Regenerate.
8077 * target.c: Include <unordered_map>.
8078 (target_ops_p): Delete.
8079 (DEF_VEC_P(target_ops_p)): Delete.
8080 (target_factories): New.
8081 (test_target_info): New.
8082 (test_target_ops::info): New.
8083 (open_target): Adjust to use target_factories.
8084 (add_target_with_completer): Rename to ...
8085 (add_target): ... this. Change prototype. Register target_info
8086 and open callback in target_factories. Register target_info in
8087 command context instead of target_ops.
8088 (add_target): Delete old implementation.
8089 (add_deprecated_target_alias): Change prototype. Adjust.
8090 (the_native_target): New.
8091 (set_native_target, get_native_target): New.
8092 (find_default_run_target): Use the_native_target.
8093 (find_attach_target, find_run_target): Simplify.
8094 (target_ops::open): Delete.
8095 (dummy_target_info): New.
8096 (dummy_target::shortname, dummy_target::longname)
8097 (dummy_target::doc): Delete.
8098 (dummy_target::info): New.
8099 (debug_target::shortname, debug_target::longname)
8100 (debug_target::doc): Delete.
8101 (debug_target::info): New.
8102 * target.h (struct target_info): New.
8103 (target_ops::~target_ops): Add comment.
8104 (target_ops::info): New.
8105 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8106 longer virtual. Implement in terms of target_info.
8107 (set_native_target, get_native_target): Declare.
8108 (target_open_ftype): New.
8109 (add_target, add_target_with_completer)
8110 (add_deprecated_target_alias): Change prototype.
8111 (test_target) <shortname, longname, doc>: Delete.
8113 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8114 add_inf_child_target.
8115 * tracefile-tfile.c (tfile_target_info): New.
8116 (tfile_target) <shortname, longname, doc>: Delete.
8118 (tfile_target::open): Rename to ...
8119 (tfile_target_open): ... this.
8120 (_initialize_tracefile_tfile): Adjust.
8121 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8122 add_inf_child_target.
8123 * windows-nat.c (_initialize_windows_nat): Use
8124 add_inf_child_target.
8125 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8126 add_inf_child_target.
8128 2018-05-02 Pedro Alves <palves@redhat.com>
8130 * linux-nat.h (linux_nat_target) <low_new_thread,
8131 low_delete_thread, low_new_fork, low_forget_process,
8132 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8133 New virtual methods.
8134 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8135 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8136 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8137 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8138 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8140 * linux-fork.c (delete_fork): Adjust to call low method.
8141 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8142 (linux_nat_new_fork, linux_nat_forget_process_hook)
8143 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8144 (linux_nat_status_is_event):
8145 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8146 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8148 (sigtrap_is_event): Rename to ...
8149 (linux_nat_target::low_status_is_event): ... this.
8150 (linux_nat_set_status_is_event): Delete.
8151 (save_stop_reason, linux_nat_wait_1)
8152 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8154 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8155 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8156 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8157 (linux_nat_set_prepare_to_resume): Delete.
8158 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8159 low virtual methods.
8160 * amd64-linux-nat.c: Likewise.
8161 * arm-linux-nat.c: Likewise.
8162 * i386-linux-nat.c: Likewise.
8163 * ia64-linux-nat.c: Likewise.
8164 * mips-linux-nat.c: Likewise.
8165 * ppc-linux-nat.c: Likewise.
8166 * s390-linux-nat.c: Likewise.
8167 * sparc64-linux-nat.c: Likewise.
8168 * x86-linux-nat.c: Likewise.
8169 * x86-linux-nat.h: Include "nat/x86-linux.h".
8170 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8171 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8174 2018-05-02 Pedro Alves <palves@redhat.com>
8176 * target.h (target_ops)
8177 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8178 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8179 stopped_by_watchpoint, have_continuable_watchpoint,
8180 stopped_data_address, watchpoint_addr_within_range,
8181 can_accel_watchpoint_condition, can_run, thread_alive,
8182 has_all_memory, has_memory, has_stack, has_registers,
8183 has_execution, can_async_p, is_async_p, supports_non_stop,
8184 always_non_stop_p, can_execute_reverse, supports_multi_process,
8185 supports_enable_disable_tracepoint,
8186 supports_disable_randomization, supports_string_tracing,
8187 supports_evaluation_of_breakpoint_conditions,
8188 can_run_breakpoint_commands, filesystem_is_local,
8189 can_download_tracepoint, get_trace_state_variable_value,
8190 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8191 record_is_replaying, record_will_replay,
8192 augmented_libraries_svr4_read>: Adjust to return bool.
8193 * aarch64-linux-nat.c: All implementations adjusted.
8194 * aix-thread.c: All implementations adjusted.
8195 * arm-linux-nat.c: All implementations adjusted.
8196 * breakpoint.c: All implementations adjusted.
8197 * bsd-kvm.c: All implementations adjusted.
8198 * bsd-uthread.c: All implementations adjusted.
8199 * corelow.c: All implementations adjusted.
8200 * ctf.c: All implementations adjusted.
8201 * darwin-nat.c: All implementations adjusted.
8202 * darwin-nat.h: All implementations adjusted.
8203 * exec.c: All implementations adjusted.
8204 * fbsd-nat.c: All implementations adjusted.
8205 * fbsd-nat.h: All implementations adjusted.
8206 * gnu-nat.c: All implementations adjusted.
8207 * gnu-nat.h: All implementations adjusted.
8208 * go32-nat.c: All implementations adjusted.
8209 * ia64-linux-nat.c: All implementations adjusted.
8210 * inf-child.c: All implementations adjusted.
8211 * inf-child.h: All implementations adjusted.
8212 * inf-ptrace.c: All implementations adjusted.
8213 * inf-ptrace.h: All implementations adjusted.
8214 * linux-nat.c: All implementations adjusted.
8215 * linux-nat.h: All implementations adjusted.
8216 * mips-linux-nat.c: All implementations adjusted.
8217 * nto-procfs.c: All implementations adjusted.
8218 * ppc-linux-nat.c: All implementations adjusted.
8219 * procfs.c: All implementations adjusted.
8220 * ravenscar-thread.c: All implementations adjusted.
8221 * record-btrace.c: All implementations adjusted.
8222 * record-full.c: All implementations adjusted.
8223 * remote-sim.c: All implementations adjusted.
8224 * remote.c: All implementations adjusted.
8225 * s390-linux-nat.c: All implementations adjusted.
8226 * sol-thread.c: All implementations adjusted.
8227 * spu-multiarch.c: All implementations adjusted.
8228 * target-delegates.c: All implementations adjusted.
8229 * target.c: All implementations adjusted.
8230 * target.h: All implementations adjusted.
8231 * tracefile-tfile.c: All implementations adjusted.
8232 * tracefile.c: All implementations adjusted.
8233 * tracefile.h: All implementations adjusted.
8234 * windows-nat.c: All implementations adjusted.
8235 * x86-linux-nat.h: All implementations adjusted.
8236 * x86-nat.h: All implementations adjusted.
8238 2018-05-02 Pedro Alves <palves@redhat.com>
8240 * make-target-delegates (scan_target_h): Don't trim lines here.
8241 Replace sequences of tabs and/or whitespace with a single
8243 (top level, parsing methods): Trim each line before processing it
8246 2018-05-02 Pedro Alves <palves@redhat.com>
8247 John Baldwin <jhb@freebsd.org>
8249 * target.h (enum strata) <debug_stratum>: New.
8250 (struct target_ops) <all delegation methods>: Replace by C++
8251 virtual methods, and drop "to_" prefix. All references updated
8253 <to_shortname, to_longname, to_doc, to_data,
8254 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8255 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8256 virtual methods. All references updated throughout.
8257 <can_attach, supports_terminal_ours, can_create_inferior,
8258 get_thread_control_capabilities, attach_no_wait>: New
8260 <insert_breakpoint, remove_breakpoint>: Now
8261 TARGET_DEFAULT_NORETURN methods.
8262 <info_proc>: Now returns bool.
8264 (OPS_MAGIC): Delete.
8265 (current_target): Delete. All references replaced by references
8267 (target_stack): ... this. New.
8268 (target_shortname, target_longname): Adjust.
8269 (target_can_run): Now a function declaration.
8270 (default_child_has_all_memory, default_child_has_memory)
8271 (default_child_has_stack, default_child_has_registers)
8272 (default_child_has_execution): Remove target_ops parameter.
8273 (complete_target_initialization): Delete.
8274 (memory_breakpoint_target): New template class.
8275 (test_target_ops): Refactor as a C++ class with virtual methods.
8276 * make-target-delegates (NAME_PART): Tighten.
8277 (POINTER_PART, CP_SYMBOL): New.
8278 (SIMPLE_RETURN_PART): Reimplement.
8279 (VEC_RETURN_PART): Expect less.
8280 (RETURN_PART, VIRTUAL_PART): New.
8281 (METHOD): Adjust to C++ virtual methods.
8282 (scan_target_h): Remove reference to C99.
8283 (dname): Output "target_ops::" prefix.
8284 (write_function_header): Adjust to output a C++ class method.
8285 (write_declaration): New.
8286 (write_delegator): Adjust to output a C++ class method.
8287 (tdname): Output "dummy_target::" prefix.
8288 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8290 (tdefault_names, debug_names): Delete.
8291 (return_types, tdefaults, styles, argtypes_array): New.
8292 (top level): All methods are delegators.
8294 (top level): Print dummy_target and debug_target classes.
8295 * target-delegates.c: Regenerate.
8296 * target-debug.h (target_debug_print_enum_info_proc_what)
8297 (target_debug_print_thread_control_capabilities)
8298 (target_debug_print_thread_info_p): New.
8299 * target.c (dummy_target): Delete.
8300 (the_dummy_target, the_debug_target): New.
8301 (target_stack): Now extern.
8302 (set_targetdebug): Push/unpush debug target.
8303 (default_child_has_all_memory, default_child_has_memory)
8304 (default_child_has_stack, default_child_has_registers)
8305 (default_child_has_execution): Remove target_ops parameter.
8306 (complete_target_initialization): Delete.
8307 (add_target_with_completer): No longer call
8308 complete_target_initialization.
8309 (target_supports_terminal_ours): Use regular delegation.
8310 (update_current_target): Delete.
8311 (push_target): No longer check magic number. Don't call
8312 update_current_target.
8313 (unpush_target): Don't call update_current_target.
8314 (target_is_pushed): No longer check magic number.
8315 (target_require_runnable): Skip for all stratums over
8317 (target_ops::info_proc): New.
8318 (target_info_proc): Use find_target_at and
8319 find_default_run_target.
8320 (target_supports_disable_randomization): Use regular delegation.
8321 (target_get_osdata): Use find_target_at.
8322 (target_ops::open, target_ops::close, target_ops::can_attach)
8323 (target_ops::attach, target_ops::can_create_inferior)
8324 (target_ops::create_inferior, target_ops::can_run)
8325 (target_can_run): New.
8326 (default_fileio_target): Use regular delegation.
8327 (target_ops::fileio_open, target_ops::fileio_pwrite)
8328 (target_ops::fileio_pread, target_ops::fileio_fstat)
8329 (target_ops::fileio_close, target_ops::fileio_unlink)
8330 (target_ops::fileio_readlink): New.
8331 (target_fileio_open_1, target_fileio_unlink)
8332 (target_fileio_readlink): Always call the target method. Handle
8334 (return_zero, return_zero_has_execution): Delete.
8335 (init_dummy_target): Delete.
8336 (dummy_target::dummy_target, dummy_target::shortname)
8337 (dummy_target::longname, dummy_target::doc)
8338 (debug_target::debug_target, debug_target::shortname)
8339 (debug_target::longname, debug_target::doc): New.
8340 (target_supports_delete_record): Use regular delegation.
8341 (setup_target_debug): Delete.
8342 (maintenance_print_target_stack): Skip debug_stratum.
8343 (initialize_targets): Instantiate the_dummy_target and
8345 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8347 (target_auxv_search, fprint_target_auxv): Adjust.
8348 (info_auxv_command): Adjust to use target_stack.
8349 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8350 * exceptions.c (print_flush): Handle a NULL target_stack.
8351 * regcache.c (target_ops_no_register): Refactor as class with
8354 * exec.c (exec_target): New class.
8355 (exec_ops): Now an exec_target.
8356 (exec_open, exec_close_1, exec_get_section_table)
8357 (exec_xfer_partial, exec_files_info, exec_has_memory)
8358 (exec_make_note_section): Refactor as exec_target methods.
8359 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8361 (exec_target::find_memory_regions): New.
8362 (_initialize_exec): Don't call init_exec_ops.
8363 * gdbcore.h (exec_file_clear): Delete.
8365 * corefile.c (core_target): Delete.
8366 (core_file_command): Adjust.
8367 * corelow.c (core_target): New class.
8368 (the_core_target): New.
8369 (core_close): Remove target_ops parameter.
8370 (core_close_cleanup): Adjust.
8371 (core_target::close): New.
8372 (core_open, core_detach, get_core_registers, core_files_info)
8373 (core_xfer_partial, core_thread_alive, core_read_description)
8374 (core_pid_to_str, core_thread_name, core_has_memory)
8375 (core_has_stack, core_has_registers, core_info_proc): Rework as
8376 core_target methods.
8377 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8378 (_initialize_corelow): Initialize the_core_target.
8379 * gdbcore.h (core_target): Delete.
8380 (the_core_target): New.
8382 * ctf.c: (ctf_target): New class.
8383 (ctf_ops): Now a ctf_target.
8384 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8385 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8386 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8388 (init_ctf_ops): Delete.
8389 (_initialize_ctf): Don't call it.
8390 * tracefile-tfile.c (tfile_target): New class.
8391 (tfile_ops): Now a tfile_target.
8392 (tfile_open, tfile_close, tfile_files_info)
8393 (tfile_get_tracepoint_status, tfile_trace_find)
8394 (tfile_fetch_registers, tfile_xfer_partial)
8395 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8396 Refactor as tfile_target methods.
8397 (tfile_xfer_partial_features): Remove target_ops parameter.
8398 (init_tfile_ops): Delete.
8399 (_initialize_tracefile_tfile): Don't call it.
8400 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8401 (tracefile_has_stack, tracefile_has_registers)
8402 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8403 tracefile_target methods.
8404 (init_tracefile_ops): Delete.
8405 (tracefile_target::tracefile_target): New.
8406 * tracefile.h: Include "target.h".
8407 (tracefile_target): New class.
8408 (init_tracefile_ops): Delete.
8410 * spu-multiarch.c (spu_multiarch_target): New class.
8411 (spu_ops): Now a spu_multiarch_target.
8412 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8413 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8414 (spu_search_memory, spu_mourn_inferior): Refactor as
8415 spu_multiarch_target methods.
8416 (init_spu_ops): Delete.
8417 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8418 complete_target_initialization.
8420 * ravenscar-thread.c (ravenscar_thread_target): New class.
8421 (ravenscar_ops): Now a ravenscar_thread_target.
8422 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8423 (ravenscar_thread_alive, ravenscar_pid_to_str)
8424 (ravenscar_fetch_registers, ravenscar_store_registers)
8425 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8426 (ravenscar_stopped_by_hw_breakpoint)
8427 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8428 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8429 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8431 (init_ravenscar_thread_ops): Delete.
8432 (_initialize_ravenscar): Remove references to
8433 init_ravenscar_thread_ops and complete_target_initialization.
8435 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8436 (bsd_uthread_target): New class.
8437 (bsd_uthread_ops): Now a bsd_uthread_target.
8438 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8439 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8440 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8441 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8442 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8443 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8444 (bsd_uthread_target): Delete function.
8445 (_initialize_bsd_uthread): Remove reference to
8446 complete_target_initialization.
8448 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8449 (target_bfd): ... this new class.
8450 (target_bfd_xfer_partial, target_bfd_get_section_table)
8451 (target_bfd_close): Refactor as target_bfd methods.
8452 (target_bfd::~target_bfd): New.
8453 (target_bfd_reopen): Adjust.
8454 (target_bfd::close): New.
8456 * record-btrace.c (record_btrace_target): New class.
8457 (record_btrace_ops): Now a record_btrace_target.
8458 (record_btrace_open, record_btrace_stop_recording)
8459 (record_btrace_disconnect, record_btrace_close)
8460 (record_btrace_async, record_btrace_info)
8461 (record_btrace_insn_history, record_btrace_insn_history_range)
8462 (record_btrace_insn_history_from, record_btrace_call_history)
8463 (record_btrace_call_history_range)
8464 (record_btrace_call_history_from, record_btrace_record_method)
8465 (record_btrace_is_replaying, record_btrace_will_replay)
8466 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8467 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8468 (record_btrace_store_registers, record_btrace_prepare_to_store)
8469 (record_btrace_to_get_unwinder)
8470 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8471 (record_btrace_commit_resume, record_btrace_wait)
8472 (record_btrace_stop, record_btrace_can_execute_reverse)
8473 (record_btrace_stopped_by_sw_breakpoint)
8474 (record_btrace_supports_stopped_by_sw_breakpoint)
8475 (record_btrace_stopped_by_hw_breakpoint)
8476 (record_btrace_supports_stopped_by_hw_breakpoint)
8477 (record_btrace_update_thread_list, record_btrace_thread_alive)
8478 (record_btrace_goto_begin, record_btrace_goto_end)
8479 (record_btrace_goto, record_btrace_stop_replaying_all)
8480 (record_btrace_execution_direction)
8481 (record_btrace_prepare_to_generate_core)
8482 (record_btrace_done_generating_core): Refactor as
8483 record_btrace_target methods.
8484 (init_record_btrace_ops): Delete.
8485 (_initialize_record_btrace): Remove reference to
8486 init_record_btrace_ops.
8487 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8488 the execution_direction global.
8489 (record_full_base_target, record_full_target)
8490 (record_full_core_target): New classes.
8491 (record_full_ops): Now a record_full_target.
8492 (record_full_core_ops): Now a record_full_core_target.
8493 (record_full_target::detach, record_full_target::disconnect)
8494 (record_full_core_target::disconnect)
8495 (record_full_target::mourn_inferior, record_full_target::kill):
8497 (record_full_open, record_full_close, record_full_async): Refactor
8498 as methods of the record_full_base_target class.
8499 (record_full_resume, record_full_commit_resume): Refactor
8500 as methods of the record_full_target class.
8501 (record_full_wait, record_full_stopped_by_watchpoint)
8502 (record_full_stopped_data_address)
8503 (record_full_stopped_by_sw_breakpoint)
8504 (record_full_supports_stopped_by_sw_breakpoint)
8505 (record_full_stopped_by_hw_breakpoint)
8506 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8507 methods of the record_full_base_target class.
8508 (record_full_store_registers, record_full_xfer_partial)
8509 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8510 Refactor as methods of the record_full_target class.
8511 (record_full_can_execute_reverse, record_full_get_bookmark)
8512 (record_full_goto_bookmark, record_full_execution_direction)
8513 (record_full_record_method, record_full_info, record_full_delete)
8514 (record_full_is_replaying, record_full_will_replay)
8515 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8516 (record_full_stop_replaying): Refactor as methods of the
8517 record_full_base_target class.
8518 (record_full_core_resume, record_full_core_kill)
8519 (record_full_core_fetch_registers)
8520 (record_full_core_prepare_to_store)
8521 (record_full_core_store_registers, record_full_core_xfer_partial)
8522 (record_full_core_insert_breakpoint)
8523 (record_full_core_remove_breakpoint)
8524 (record_full_core_has_execution): Refactor
8525 as methods of the record_full_core_target class.
8526 (record_full_base_target::supports_delete_record): New.
8527 (init_record_full_ops): Delete.
8528 (init_record_full_core_ops): Delete.
8529 (record_full_save): Refactor as method of the
8530 record_full_base_target class.
8531 (_initialize_record_full): Remove references to
8532 init_record_full_ops and init_record_full_core_ops.
8534 * remote.c (remote_target, extended_remote_target): New classes.
8535 (remote_ops): Now a remote_target.
8536 (extended_remote_ops): Now an extended_remote_target.
8537 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8538 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8539 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8540 (remote_pass_signals, remote_set_syscall_catchpoint)
8541 (remote_program_signals, )
8542 (remote_thread_always_alive): Remove target_ops parameter.
8543 (remote_thread_alive, remote_thread_name)
8544 (remote_update_thread_list, remote_threads_extra_info)
8545 (remote_static_tracepoint_marker_at)
8546 (remote_static_tracepoint_markers_by_strid)
8547 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8548 (remote_open): Refactor as methods of remote_target.
8549 (extended_remote_open, extended_remote_detach)
8550 (extended_remote_attach, extended_remote_post_attach):
8551 (extended_remote_supports_disable_randomization)
8552 (extended_remote_create_inferior): : Refactor as method of
8553 extended_remote_target.
8554 (remote_set_permissions, remote_open_1, remote_detach)
8555 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8556 (remote_resume, remote_commit_resume, remote_stop)
8557 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8558 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8559 (remote_prepare_to_store, remote_store_registers)
8560 (remote_flash_erase, remote_flash_done, remote_files_info)
8561 (remote_kill, remote_mourn, remote_insert_breakpoint)
8562 (remote_remove_breakpoint, remote_insert_watchpoint)
8563 (remote_watchpoint_addr_within_range)
8564 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8565 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8566 (remote_supports_stopped_by_sw_breakpoint)
8567 (remote_stopped_by_hw_breakpoint)
8568 (remote_supports_stopped_by_hw_breakpoint)
8569 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8570 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8571 (remote_verify_memory): Refactor as methods of remote_target.
8572 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8574 (remote_xfer_partial, remote_get_memory_xfer_limit)
8575 (remote_search_memory, remote_rcmd, remote_memory_map)
8576 (remote_pid_to_str, remote_get_thread_local_address)
8577 (remote_get_tib_address, remote_read_description): Refactor as
8578 methods of remote_target.
8579 (remote_target::fileio_open, remote_target::fileio_pwrite)
8580 (remote_target::fileio_pread, remote_target::fileio_close): New.
8581 (remote_hostio_readlink, remote_hostio_fstat)
8582 (remote_filesystem_is_local, remote_can_execute_reverse)
8583 (remote_supports_non_stop, remote_supports_disable_randomization)
8584 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8585 (remote_supports_enable_disable_tracepoint)
8586 (remote_supports_string_tracing)
8587 (remote_can_run_breakpoint_commands, remote_trace_init)
8588 (remote_download_tracepoint, remote_can_download_tracepoint)
8589 (remote_download_trace_state_variable, remote_enable_tracepoint)
8590 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8591 (remote_trace_start, remote_get_trace_status)
8592 (remote_get_tracepoint_status, remote_trace_stop)
8593 (remote_trace_find, remote_get_trace_state_variable_value)
8594 (remote_save_trace_data, remote_get_raw_trace_data)
8595 (remote_set_disconnected_tracing, remote_core_of_thread)
8596 (remote_set_circular_trace_buffer, remote_traceframe_info)
8597 (remote_get_min_fast_tracepoint_insn_len)
8598 (remote_set_trace_buffer_size, remote_set_trace_notes)
8599 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8600 (remote_disable_btrace, remote_teardown_btrace)
8601 (remote_read_btrace, remote_btrace_conf)
8602 (remote_augmented_libraries_svr4_read, remote_load)
8603 (remote_pid_to_exec_file, remote_can_do_single_step)
8604 (remote_execution_direction, remote_thread_handle_to_thread_info):
8605 Refactor as methods of remote_target.
8606 (init_remote_ops, init_extended_remote_ops): Delete.
8607 (remote_can_async_p, remote_is_async_p, remote_async)
8608 (remote_thread_events, remote_upload_tracepoints)
8609 (remote_upload_trace_state_variables): Refactor as methods of
8611 (_initialize_remote): Remove references to init_remote_ops and
8612 init_extended_remote_ops.
8614 * remote-sim.c (gdbsim_target): New class.
8615 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8616 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8617 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8618 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8619 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8620 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8621 Refactor as methods of gdbsim_target.
8622 (gdbsim_ops): Now a gdbsim_target.
8623 (init_gdbsim_ops): Delete.
8624 (gdbsim_cntrl_c): Adjust.
8625 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8627 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8628 (the_amd64_linux_nat_target): New.
8629 (amd64_linux_fetch_inferior_registers)
8630 (amd64_linux_store_inferior_registers): Refactor as methods of
8631 amd64_linux_nat_target.
8632 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8633 * i386-linux-nat.c: Don't include "linux-nat.h".
8634 (i386_linux_nat_target): New class.
8635 (the_i386_linux_nat_target): New.
8636 (i386_linux_fetch_inferior_registers)
8637 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8638 as methods of i386_linux_nat_target.
8639 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8640 * inf-child.c (inf_child_ops): Delete.
8641 (inf_child_fetch_inferior_registers)
8642 (inf_child_store_inferior_registers): Delete.
8643 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8644 methods of inf_child_target.
8645 (inf_child_target::supports_terminal_ours)
8646 (inf_child_target::terminal_init)
8647 (inf_child_target::terminal_inferior)
8648 (inf_child_target::terminal_ours_for_output)
8649 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8650 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8652 (inf_child_open, inf_child_disconnect, inf_child_close)
8653 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8654 (inf_child_post_startup_inferior, inf_child_can_run)
8655 (inf_child_pid_to_exec_file): Refactor as methods of
8657 (inf_child_follow_fork): Delete.
8658 (inf_child_target::can_create_inferior)
8659 (inf_child_target::can_attach): New.
8660 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8661 (inf_child_target::has_stack, inf_child_target::has_registers)
8662 (inf_child_target::has_execution): New.
8663 (inf_child_fileio_open, inf_child_fileio_pwrite)
8664 (inf_child_fileio_pread, inf_child_fileio_fstat)
8665 (inf_child_fileio_close, inf_child_fileio_unlink)
8666 (inf_child_fileio_readlink, inf_child_use_agent)
8667 (inf_child_can_use_agent): Refactor as methods of
8669 (return_zero, inf_child_target): Delete.
8670 (inf_child_target::inf_child_target): New.
8671 * inf-child.h: Include "target.h".
8672 (inf_child_target): Delete function prototype.
8673 (inf_child_target): New class.
8674 (inf_child_open_target, inf_child_mourn_inferior)
8675 (inf_child_maybe_unpush_target): Delete.
8676 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8677 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8678 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8679 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8680 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8681 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8682 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8683 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8684 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8685 methods of inf_ptrace_target.
8686 (inf_ptrace_target): Delete function.
8687 * inf-ptrace.h: Include "inf-child.h".
8688 (inf_ptrace_target): Delete function declaration.
8689 (inf_ptrace_target): New class.
8690 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8691 * linux-nat.c (linux_target): New.
8692 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8693 (linux_nat_target::~linux_nat_target): New.
8694 (linux_child_post_attach, linux_child_post_startup_inferior)
8695 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8696 (linux_child_remove_fork_catchpoint)
8697 (linux_child_insert_vfork_catchpoint)
8698 (linux_child_remove_vfork_catchpoint)
8699 (linux_child_insert_exec_catchpoint)
8700 (linux_child_remove_exec_catchpoint)
8701 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8702 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8703 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8704 (linux_nat_stopped_data_address)
8705 (linux_nat_stopped_by_sw_breakpoint)
8706 (linux_nat_supports_stopped_by_sw_breakpoint)
8707 (linux_nat_stopped_by_hw_breakpoint)
8708 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8709 (linux_nat_kill, linux_nat_mourn_inferior)
8710 (linux_nat_xfer_partial, linux_nat_thread_alive)
8711 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8712 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8713 (linux_child_static_tracepoint_markers_by_strid)
8714 (linux_nat_is_async_p, linux_nat_can_async_p)
8715 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8716 (linux_nat_supports_multi_process)
8717 (linux_nat_supports_disable_randomization, linux_nat_async)
8718 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8719 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8720 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8721 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8722 methods of linux_nat_target.
8723 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8724 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8726 (check_stopped_by_watchpoint): Adjust.
8727 (linux_xfer_partial): Delete.
8728 (linux_target_install_ops, linux_target, linux_nat_add_target):
8730 (linux_nat_target::linux_nat_target): New.
8731 * linux-nat.h: Include "inf-ptrace.h".
8732 (linux_nat_target): New.
8733 (linux_target, linux_target_install_ops, linux_nat_add_target):
8734 Delete function declarations.
8735 (linux_target): Declare global.
8736 * linux-thread-db.c (thread_db_target): New.
8737 (thread_db_target::thread_db_target): New.
8738 (thread_db_ops): Delete.
8739 (the_thread_db_target): New.
8740 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8741 (thread_db_update_thread_list, thread_db_pid_to_str)
8742 (thread_db_extra_thread_info)
8743 (thread_db_thread_handle_to_thread_info)
8744 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8745 (thread_db_resume): Refactor as methods of thread_db_target.
8746 (init_thread_db_ops): Delete.
8747 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8748 * x86-linux-nat.c: Don't include "linux-nat.h".
8749 (super_post_startup_inferior): Delete.
8750 (x86_linux_nat_target::~x86_linux_nat_target): New.
8751 (x86_linux_child_post_startup_inferior)
8752 (x86_linux_read_description, x86_linux_enable_btrace)
8753 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8754 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8755 methods of x86_linux_nat_target.
8756 (x86_linux_create_target): Delete. Bits folded ...
8757 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8759 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8760 (x86_linux_nat_target): New class.
8761 (x86_linux_create_target): Delete.
8762 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8763 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8764 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8765 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8766 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8767 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8769 (x86_use_watchpoints): Delete.
8770 * x86-nat.h: Include "breakpoint.h" and "target.h".
8771 (x86_use_watchpoints): Delete.
8772 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8773 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8774 (x86_insert_watchpoint, x86_remove_watchpoint)
8775 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8776 (x86_stopped_by_hw_breakpoint): New declarations.
8777 (x86_nat_target): New template class.
8779 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8780 (the_ppc_linux_nat_target): New.
8781 (ppc_linux_fetch_inferior_registers)
8782 (ppc_linux_can_use_hw_breakpoint)
8783 (ppc_linux_region_ok_for_hw_watchpoint)
8784 (ppc_linux_ranged_break_num_registers)
8785 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8786 (ppc_linux_insert_mask_watchpoint)
8787 (ppc_linux_remove_mask_watchpoint)
8788 (ppc_linux_can_accel_watchpoint_condition)
8789 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8790 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8791 (ppc_linux_watchpoint_addr_within_range)
8792 (ppc_linux_masked_watch_num_registers)
8793 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8794 (ppc_linux_read_description): Refactor as methods of
8795 ppc_linux_nat_target.
8796 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8798 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8799 (procfs_target): New class.
8800 (the_procfs_target): New.
8801 (procfs_target): Delete function.
8802 (procfs_auxv_parse, procfs_attach, procfs_detach)
8803 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8804 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8805 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8806 (procfs_create_inferior, procfs_update_thread_list)
8807 (procfs_thread_alive, procfs_pid_to_str)
8808 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8809 (procfs_stopped_data_address, procfs_insert_watchpoint)
8810 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8811 (proc_find_memory_regions, procfs_info_proc)
8812 (procfs_make_note_section): Refactor as methods of procfs_target.
8813 (_initialize_procfs): Adjust.
8814 * sol-thread.c (sol_thread_target): New class.
8815 (sol_thread_ops): Now a sol_thread_target.
8816 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8817 (sol_thread_fetch_registers, sol_thread_store_registers)
8818 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8819 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8820 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8821 (init_sol_thread_ops): Delete.
8822 (_initialize_sol_thread): Adjust. Remove references to
8823 init_sol_thread_ops and complete_target_initialization.
8825 * windows-nat.c (windows_nat_target): New class.
8826 (windows_fetch_inferior_registers)
8827 (windows_store_inferior_registers, windows_resume, windows_wait)
8828 (windows_attach, windows_detach, windows_pid_to_exec_file)
8829 (windows_files_info, windows_create_inferior)
8830 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8831 (windows_close, windows_pid_to_str, windows_xfer_partial)
8832 (windows_get_tib_address, windows_get_ada_task_ptid)
8833 (windows_thread_name, windows_thread_alive): Refactor as
8834 windows_nat_target methods.
8835 (do_initial_windows_stuff): Adjust.
8836 (windows_target): Delete function.
8837 (_initialize_windows_nat): Adjust.
8839 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8840 (darwin_mourn_inferior, darwin_kill_inferior)
8841 (darwin_create_inferior, darwin_attach, darwin_detach)
8842 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8843 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8844 (darwin_supports_multi_process): Refactor as darwin_nat_target
8846 (darwin_resume_to, darwin_files_info): Delete.
8847 (_initialize_darwin_inferior): Rename to ...
8848 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8849 * darwin-nat.h: Include "inf-child.h".
8850 (darwin_nat_target): New class.
8851 (darwin_complete_target): Delete.
8852 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8853 (darwin_target): New.
8854 (i386_darwin_fetch_inferior_registers)
8855 (i386_darwin_store_inferior_registers): Refactor as methods of
8857 (darwin_complete_target): Delete, with ...
8858 (_initialize_i386_darwin_nat): ... bits factored out here.
8860 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8861 (the_alpha_linux_nat_target): New.
8862 (alpha_linux_register_u_offset): Refactor as
8863 alpha_linux_nat_target method.
8864 (_initialize_alpha_linux_nat): Adjust.
8865 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8866 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8867 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8868 methods of linux_nat_trad_target.
8869 (linux_trad_target): Delete.
8870 * linux-nat-trad.h (linux_trad_target): Delete function.
8871 (linux_nat_trad_target): New class.
8872 * mips-linux-nat.c (mips_linux_nat_target): New class.
8873 (super_fetch_registers, super_store_registers, super_close):
8875 (the_mips_linux_nat_target): New.
8876 (mips64_linux_regsets_fetch_registers)
8877 (mips64_linux_regsets_store_registers)
8878 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8879 (mips_linux_register_u_offset, mips_linux_read_description)
8880 (mips_linux_can_use_hw_breakpoint)
8881 (mips_linux_stopped_by_watchpoint)
8882 (mips_linux_stopped_data_address)
8883 (mips_linux_region_ok_for_hw_watchpoint)
8884 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8885 (mips_linux_close): Refactor as methods of mips_linux_nat.
8886 (_initialize_mips_linux_nat): Adjust to C++ification.
8888 * aix-thread.c (aix_thread_target): New class.
8889 (aix_thread_ops): Now an aix_thread_target.
8890 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8891 (aix_thread_fetch_registers, aix_thread_store_registers)
8892 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8893 (aix_thread_thread_alive, aix_thread_pid_to_str)
8894 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8895 Refactor as methods of aix_thread_target.
8896 (init_aix_thread_ops): Delete.
8897 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8898 and complete_target_initialization.
8899 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8900 (rs6000_nat_target): New class.
8901 (the_rs6000_nat_target): New.
8902 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8903 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8904 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8905 (super_create_inferior): Delete.
8906 (_initialize_rs6000_nat): Adjust to C++ification.
8908 * arm-linux-nat.c (arm_linux_nat_target): New class.
8909 (the_arm_linux_nat_target): New.
8910 (arm_linux_fetch_inferior_registers)
8911 (arm_linux_store_inferior_registers, arm_linux_read_description)
8912 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8913 (arm_linux_remove_hw_breakpoint)
8914 (arm_linux_region_ok_for_hw_watchpoint)
8915 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8916 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8917 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8918 arm_linux_nat_target.
8919 (_initialize_arm_linux_nat): Adjust to C++ification.
8921 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8922 (the_aarch64_linux_nat_target): New.
8923 (aarch64_linux_fetch_inferior_registers)
8924 (aarch64_linux_store_inferior_registers)
8925 (aarch64_linux_child_post_startup_inferior)
8926 (aarch64_linux_read_description)
8927 (aarch64_linux_can_use_hw_breakpoint)
8928 (aarch64_linux_insert_hw_breakpoint)
8929 (aarch64_linux_remove_hw_breakpoint)
8930 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8931 (aarch64_linux_region_ok_for_hw_watchpoint)
8932 (aarch64_linux_stopped_data_address)
8933 (aarch64_linux_stopped_by_watchpoint)
8934 (aarch64_linux_watchpoint_addr_within_range)
8935 (aarch64_linux_can_do_single_step): Refactor as methods of
8936 aarch64_linux_nat_target.
8937 (super_post_startup_inferior): Delete.
8938 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8940 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
8941 (the_hppa_linux_nat_target): New.
8942 (hppa_linux_fetch_inferior_registers)
8943 (hppa_linux_store_inferior_registers): Refactor as methods of
8944 hppa_linux_nat_target.
8945 (_initialize_hppa_linux_nat): Adjust to C++ification.
8947 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
8948 (the_ia64_linux_nat_target): New.
8949 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
8950 (ia64_linux_stopped_data_address)
8951 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
8952 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
8953 ia64_linux_nat_target methods.
8954 (super_xfer_partial): Delete.
8955 (_initialize_ia64_linux_nat): Adjust to C++ification.
8957 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
8958 (the_m32r_linux_nat_target): New.
8959 (m32r_linux_fetch_inferior_registers)
8960 (m32r_linux_store_inferior_registers): Refactor as
8961 m32r_linux_nat_target methods.
8962 (_initialize_m32r_linux_nat): Adjust to C++ification.
8964 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
8965 (the_m68k_linux_nat_target): New.
8966 (m68k_linux_fetch_inferior_registers)
8967 (m68k_linux_store_inferior_registers): Refactor as
8968 m68k_linux_nat_target methods.
8969 (_initialize_m68k_linux_nat): Adjust to C++ification.
8971 * s390-linux-nat.c (s390_linux_nat_target): New class.
8972 (the_s390_linux_nat_target): New.
8973 (s390_linux_fetch_inferior_registers)
8974 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
8975 (s390_insert_watchpoint, s390_remove_watchpoint)
8976 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
8977 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
8978 (s390_auxv_parse, s390_read_description): Refactor as methods of
8979 s390_linux_nat_target.
8980 (_initialize_s390_nat): Adjust to C++ification.
8982 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
8983 (the_sparc_linux_nat_target): New.
8984 (_initialize_sparc_linux_nat): Adjust to C++ification.
8985 * sparc-nat.c (sparc_fetch_inferior_registers)
8986 (sparc_store_inferior_registers): Remove target_ops parameter.
8987 * sparc-nat.h (sparc_fetch_inferior_registers)
8988 (sparc_store_inferior_registers): Remove target_ops parameter.
8989 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
8990 (the_sparc64_linux_nat_target): New.
8991 (_initialize_sparc64_linux_nat): Adjust to C++ification.
8993 * spu-linux-nat.c (spu_linux_nat_target): New class.
8994 (the_spu_linux_nat_target): New.
8995 (spu_child_post_startup_inferior, spu_child_post_attach)
8996 (spu_child_wait, spu_fetch_inferior_registers)
8997 (spu_store_inferior_registers, spu_xfer_partial)
8998 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9000 (_initialize_spu_nat): Adjust to C++ification.
9002 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9003 (the_tilegx_linux_nat_target): New.
9004 (fetch_inferior_registers, store_inferior_registers):
9005 Refactor as methods.
9006 (_initialize_tile_linux_nat): Adjust to C++ification.
9008 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9009 (the_xtensa_linux_nat_target): New.
9010 (xtensa_linux_fetch_inferior_registers)
9011 (xtensa_linux_store_inferior_registers): Refactor as
9012 xtensa_linux_nat_target methods.
9013 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9015 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9016 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9017 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9018 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9019 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9020 (fbsd_stopped_by_sw_breakpoint)
9021 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9022 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9023 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9024 (fbsd_post_startup_inferior, fbsd_post_attach)
9025 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9026 (fbsd_set_syscall_catchpoint)
9027 (super_xfer_partial, super_resume, super_wait)
9028 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9029 (fbsd_handle_debug_trap): Remove target_ops parameter.
9030 (fbsd_nat_add_target): Delete.
9031 * fbsd-nat.h: Include "inf-ptrace.h".
9032 (fbsd_nat_add_target): Delete.
9033 (USE_SIGTRAP_SIGINFO): Define.
9034 (fbsd_nat_target): New class.
9036 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9037 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9038 (amd64bsd_target): Delete.
9039 * amd64-bsd-nat.h: New file.
9040 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9042 (amd64_fbsd_nat_target): New class.
9043 (the_amd64_fbsd_nat_target): New.
9044 (amd64fbsd_read_description): Refactor as method of
9045 amd64_fbsd_nat_target.
9046 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9047 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9048 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9049 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9050 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9051 (i386bsd_target): Delete.
9052 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9053 (i386bsd_fetch_inferior_registers)
9054 (i386bsd_store_inferior_registers): Declare.
9055 (i386_bsd_nat_target): New class.
9056 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9057 (the_i386_fbsd_nat_target): New.
9058 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9059 i386_fbsd_nat_target methods.
9060 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9061 (_initialize_i386fbsd_nat): Adjust to C++ification.
9062 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9063 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9064 (_initialize_x86_bsd_nat): Adjust to C++ification.
9065 * x86-bsd-nat.h: Include "x86-nat.h".
9066 (x86bsd_target): Delete declaration.
9067 (x86bsd_nat_target): New class.
9069 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9070 (the_aarch64_fbsd_nat_target): New.
9071 (aarch64_fbsd_fetch_inferior_registers)
9072 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9073 aarch64_fbsd_nat_target.
9074 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9075 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9076 (the_alpha_bsd_nat_target): New.
9077 (alphabsd_fetch_inferior_registers)
9078 (alphabsd_store_inferior_registers): Refactor as
9079 alpha_bsd_nat_target methods.
9080 (_initialize_alphabsd_nat): Refactor as methods of
9081 alpha_bsd_nat_target.
9082 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9083 (the_amd64_nbsd_nat_target): New.
9084 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9085 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9086 (the_amd64_obsd_nat_target): New.
9087 (_initialize_amd64obsd_nat): Adjust to C++ification.
9088 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9089 (the_arm_fbsd_nat_target): New.
9090 (arm_fbsd_fetch_inferior_registers)
9091 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9092 (_initialize_arm_fbsd_nat): Refactor as methods of
9093 arm_fbsd_nat_target.
9094 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9095 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9096 (the_arm_netbsd_nat_target): New.
9097 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9098 arm_netbsd_nat_target.
9099 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9100 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9101 (the_hppa_nbsd_nat_target): New.
9102 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9103 hppa_nbsd_nat_target methods.
9104 (_initialize_hppanbsd_nat): Adjust to C++ification.
9105 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9106 (the_hppa_obsd_nat_target): New.
9107 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9108 methods of hppa_obsd_nat_target.
9109 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9111 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9112 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9114 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9115 (_initialize_i386obsd_nat): Use add_target.
9116 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9117 (the_m68k_bsd_nat_target): New.
9118 (m68kbsd_fetch_inferior_registers)
9119 (m68kbsd_store_inferior_registers): Refactor as methods of
9120 m68k_bsd_nat_target.
9121 (_initialize_m68kbsd_nat): Adjust to C++ification.
9122 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9123 (the_mips_fbsd_nat_target): New.
9124 (mips_fbsd_fetch_inferior_registers)
9125 (mips_fbsd_store_inferior_registers): Refactor as methods of
9126 mips_fbsd_nat_target.
9127 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9129 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9130 (the_mips_nbsd_nat_target): New.
9131 (mipsnbsd_fetch_inferior_registers)
9132 (mipsnbsd_store_inferior_registers): Refactor as methods of
9133 mips_nbsd_nat_target.
9134 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9135 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9136 (the_mips64_obsd_nat_target): New.
9137 (mips64obsd_fetch_inferior_registers)
9138 (mips64obsd_store_inferior_registers): Refactor as methods of
9139 mips64_obsd_nat_target.
9140 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9142 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9144 * nbsd-nat.h: Include "inf-ptrace.h".
9145 (nbsd_nat_target): New class.
9146 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9147 (obsd_wait): Refactor as methods of obsd_nat_target.
9148 (obsd_add_target): Delete.
9149 * obsd-nat.h: Include "inf-ptrace.h".
9150 (obsd_nat_target): New class.
9151 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9152 (the_ppc_fbsd_nat_target): New.
9153 (ppcfbsd_fetch_inferior_registers)
9154 (ppcfbsd_store_inferior_registers): Refactor as methods of
9155 ppc_fbsd_nat_target.
9156 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9158 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9159 (the_ppc_nbsd_nat_target): New.
9160 (ppcnbsd_fetch_inferior_registers)
9161 (ppcnbsd_store_inferior_registers): Refactor as methods of
9162 ppc_nbsd_nat_target.
9163 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9164 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9165 (the_ppc_obsd_nat_target): New.
9166 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9167 methods of ppc_obsd_nat_target.
9168 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9170 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9171 (the_sh_nbsd_nat_target): New.
9172 (shnbsd_fetch_inferior_registers)
9173 (shnbsd_store_inferior_registers): Refactor as methods of
9175 (_initialize_shnbsd_nat): Adjust to C++ification.
9176 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9177 (inf_ptrace_xfer_partial): Delete.
9178 (sparc_xfer_partial, sparc_target): Delete.
9179 * sparc-nat.h (sparc_fetch_inferior_registers)
9180 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9181 (sparc_target): Delete function declaration.
9182 (sparc_target): New template class.
9183 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9184 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9185 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9186 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9188 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9189 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9190 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9191 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9193 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9194 (the_vax_bsd_nat_target): New.
9195 (vaxbsd_fetch_inferior_registers)
9196 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9198 (_initialize_vaxbsd_nat): Adjust to C++ification.
9200 * bsd-kvm.c (bsd_kvm_target): New class.
9201 (bsd_kvm_ops): Now a bsd_kvm_target.
9202 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9203 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9204 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9206 (bsd_kvm_return_one): Delete.
9207 (bsd_kvm_add_target): Adjust to C++ification.
9209 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9210 (nto_procfs_target_procfs): New classes.
9211 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9212 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9213 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9214 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9215 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9216 (procfs_remove_hw_breakpoint, procfs_resume)
9217 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9218 (procfs_kill_inferior, procfs_store_registers)
9219 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9220 as methods of nto_procfs_target.
9221 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9222 (nto_native_ops): Delete.
9223 (procfs_open, procfs_native_open): Delete.
9224 (nto_native_ops): Now an nto_procfs_target_native.
9225 (init_procfs_targets): Adjust to C++ification.
9226 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9227 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9228 Refactor as methods of nto_procfs_target.
9230 * go32-nat.c (go32_nat_target): New class.
9231 (the_go32_nat_target): New.
9232 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9233 (go32_store_registers, go32_xfer_partial, go32_files_info)
9234 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9235 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9236 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9237 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9238 (go32_target): Delete.
9239 (_initialize_go32_nat): Adjust to C++ification.
9241 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9242 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9243 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9244 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9246 (gnu_target): Delete.
9247 * gnu-nat.h (gnu_target): Delete.
9248 (gnu_nat_target): New class.
9249 * i386-gnu-nat.c (gnu_base_target): New.
9250 (i386_gnu_nat_target): New class.
9251 (the_i386_gnu_nat_target): New.
9252 (_initialize_i386gnu_nat): Adjust to C++ification.
9254 2018-05-02 Pedro Alves <palves@redhat.com>
9256 * bfd-target.c (target_bfd_xclose): Rename to ...
9257 (target_bfd_close): ... this.
9258 (target_bfd_reopen): Adjust.
9259 * target.c (target_close): Remove references to to_xclose.
9260 * target.h (target_ops::to_xclose): Delete.
9261 (target_ops::to_close): Update comments.
9263 2018-05-02 Pedro Alves <palves@redhat.com>
9265 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9267 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9268 * inf-ptrace.c (inf_ptrace_register_u_offset)
9269 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9270 (inf_ptrace_store_register, inf_ptrace_store_registers)
9271 (inf_ptrace_trad_target): Move to ...
9272 * linux-nat-trad.c: ... this new file.
9273 * linux-nat-trad.h: New file.
9274 * linux-nat.c (linux_target_install_ops): Make extern.
9275 (linux_trad_target): Delete.
9276 * linux-nat.h (linux_trad_target): Delete declaration.
9277 (linux_target_install_ops): Declare.
9278 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9281 2018-05-02 Pedro Alves <palves@redhat.com>
9283 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9284 procfs_target/add_target here.
9285 * procfs.c (procfs_target): Make static.
9286 (_initialize_procfs): Call add_target here.
9287 * procfs.h (struct target_ops): Remove forward declaration.
9288 (procfs_target): Remove declaration.
9289 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9291 2018-05-02 Pedro Alves <palves@redhat.com>
9293 * procfs.c (procfs_stopped_by_watchpoint)
9294 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9295 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9297 (procfs_use_watchpoints): Delete, move contents...
9298 (procfs_target): ... here.
9299 * procfs.h (procfs_use_watchpoints): Delete declaration.
9300 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9301 procfs_use_watchpoints.
9302 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9303 procfs_use_watchpoints.
9305 2018-05-02 Tom Tromey <tom@tromey.com>
9308 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9309 and var_zuinteger_unlimited.
9310 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9311 and PARAM_ZUINTEGER_UNLIMITED.
9312 (set_parameter_value): Handle var_zuinteger and
9313 var_zuinteger_unlimited.
9314 (add_setshow_generic): Likewise.
9315 (parmpy_init): Likewise.
9317 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9320 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9321 pointer is not null before dereferencing it.
9323 2018-04-30 Tom Tromey <tom@tromey.com>
9325 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9328 2018-04-30 Tom Tromey <tom@tromey.com>
9330 * breakpoint.c (mention): Remove use of is_mi_like_p.
9331 (print_mention_ranged_breakpoint): Likewise.
9332 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9335 2018-04-30 Tom Tromey <tom@tromey.com>
9337 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9339 2018-04-30 Tom Tromey <tom@tromey.com>
9341 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9342 (info_spu_event_command): Remove some uses of is_mi_like_p.
9344 2018-04-30 Tom Tromey <tom@tromey.com>
9346 * python/py-framefilter.c (py_print_single_arg)
9347 (enumerate_locals, py_print_args, py_print_frame): Remove some
9348 uses of is_mi_like_p.
9350 2018-04-30 Tom Tromey <tom@tromey.com>
9353 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9354 * ui-out.h (ui_out::is_mi_like_p): Now const.
9355 (ui_out::do_is_mi_like_p): Now const.
9356 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9358 2018-04-30 Tom Tromey <tom@tromey.com>
9360 * varobj.c (varobj_set_visualizer): Use new_reference.
9361 * python/python.c (gdbpy_decode_line): Use new_reference.
9362 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9365 2018-04-30 Tom Tromey <tom@tromey.com>
9367 * varobj.c (install_new_value): Use new_reference.
9368 * value.h (value_incref): Return void. Swap intro comment with
9370 * value.c (set_value_parent): Use new_reference.
9371 (value_incref): Return void. Update intro comment.
9372 (release_value): Use new_reference.
9373 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9375 2018-04-30 Tom Tromey <tom@tromey.com>
9377 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9378 * gdb_bfd.h (new_bfd_ref): Remove.
9379 (gdb_bfd_open): Update comment.
9380 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9381 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9382 (gdb_bfd_fdopenr): Use new_reference.
9383 * exec.c (exec_file_attach): Use new_reference.
9385 2018-04-30 Tom Tromey <tom@tromey.com>
9387 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9390 2018-04-30 Tom Tromey <tom@tromey.com>
9392 * jit.c (jit_read_code_entry): Use type_align.
9393 * i386-tdep.c (i386_gdbarch_init): Don't call
9394 set_gdbarch_long_long_align_bit.
9395 * gdbarch.sh: Remove long_long_align_bit.
9396 * gdbarch.c, gdbarch.h: Rebuild.
9397 * arc-tdep.c (arc_type_align): New function.
9398 (arc_gdbarch_init): Use arc_type_align. Don't call
9399 set_gdbarch_long_long_align_bit.
9401 2018-04-30 Tom Tromey <tom@tromey.com>
9403 * rust-lang.c (rust_type_alignment): Remove.
9404 (rust_composite_type): Use type_align.
9406 2018-04-30 Tom Tromey <tom@tromey.com>
9408 * NEWS: Mention Type.align.
9409 * python/py-type.c (typy_get_alignof): New function.
9410 (type_object_getset): Add "alignof".
9412 2018-04-30 Tom Tromey <tom@tromey.com>
9416 * std-operator.def (UNOP_ALIGNOF): New operator.
9417 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9419 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9420 * c-lang.c (c_op_print_tab): Add alignof.
9421 * c-exp.y (ALIGNOF): New token.
9422 (exp): Add "ALIGNOF" production.
9423 (ident_tokens): Add _Alignof and alignof.
9425 2018-04-30 Tom Tromey <tom@tromey.com>
9427 * i386-tdep.c (i386_type_align): New function.
9428 (i386_gdbarch_init): Update.
9429 * gdbarch.sh (type_align): New method.
9430 * gdbarch.c, gdbarch.h: Rebuild.
9431 * arch-utils.h (default_type_align): Declare.
9432 * arch-utils.c (default_type_align): New function.
9433 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9434 (struct type) <align_log2>: New field.
9435 <instance_flags>: Now a bitfield.
9436 (TYPE_RAW_ALIGN): New macro.
9437 (type_align, type_raw_align, set_type_align): Declare.
9438 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9440 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9441 (get_alignment, maybe_set_alignment): New functions.
9442 (read_structure_type, read_enumeration_type, read_array_type)
9443 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9444 (read_subrange_type, read_base_type): Set type alignment.
9446 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9448 * dwarf2read.c (read_index_from_section): Use bool.
9450 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9453 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9456 2018-04-29 John Reiser <jreiser@BitWagon.com>
9459 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9460 last step, and do it atomically.
9462 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9464 * compile/compile-c-types.c (convert_int, convert_float):
9467 2018-04-27 Tom Tromey <tom@tromey.com>
9470 * rust-lang.c (rust_inclusive_range_type_p): New function.
9471 (rust_range): Handle inclusive ranges.
9472 (rust_compute_range): Likewise.
9473 * rust-exp.y (struct rust_op) <inclusive>: New field.
9474 (DOTDOTEQ): New constant.
9475 (range_expr): Add "..=" productions.
9476 (operator_tokens): Add "..=" token.
9477 (ast_range): Add "inclusive" parameter.
9478 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9480 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9482 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9483 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9485 * expprint.c (print_subexp_standard): Handle new bounds values.
9486 (dump_subexp_body_standard): Likewise.
9488 2018-04-27 Tom Tromey <tom@tromey.com>
9490 * configure: Rebuild.
9491 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9492 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9494 (class symbol_needs_eval_context): Likewise.
9495 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9496 (mock_mapped_index::symbol_name_at): Use "override". Remove
9498 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9500 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9501 * aarch64-tdep.c (instruction_reader::read): Use "override".
9502 (instruction_reader_test::read): Likewise.
9503 * arm-tdep.c (instruction_reader::read): Use "override".
9504 (instruction_reader_thumb::read): Likewise.
9506 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9509 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9510 instead of remote_send.
9511 (remote_send): Remove.
9513 2018-04-26 Pedro Alves <palves@redhat.com>
9515 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9516 find_function_start_sal instead of find_pc_line.
9518 2018-04-26 Pedro Alves <palves@redhat.com>
9520 * breakpoint.c (set_breakpoint_location_function): Handle
9522 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9523 * elfread.c (elf_symtab_read): Give data symbols with
9524 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9525 (elf_rel_plt_read): Update comment.
9526 * linespec.c (convert_linespec_to_sals): Handle
9528 (minsym_found): Handle mst_data_gnu_ifunc.
9529 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9530 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9531 * parse.c (find_minsym_type_and_address): Handle
9533 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9534 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9535 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9537 <mst_data_gnu_ifunc>: New enumerator.
9539 2018-04-26 Pedro Alves <palves@redhat.com>
9541 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9542 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9543 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9545 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9546 (lookup_minimal_symbol_by_pc): Adjust.
9547 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9548 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9549 * minsyms.h (lookup_msym_prefer): New enum.
9550 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9551 parameter by a lookup_msym_prefer parameter.
9553 2018-04-26 Pedro Alves <palves@redhat.com>
9555 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9556 ends in "@plt" instead of looking at the symbol's section.
9558 2018-04-26 Pedro Alves <palves@redhat.com>
9560 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9562 (find_pc_partial_function_gnu_ifunc): Rename to ...
9563 (find_pc_partial_function): ... this, and remove references to
9565 (find_pc_partial_function): Delete old implementation.
9566 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9568 2018-04-26 Pedro Alves <palves@redhat.com>
9570 * linespec.c (struct bound_minimal_symbol_search_key): New.
9571 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9572 skip first line if we found a GNU ifunc minimal symbol by name.
9573 (compare_msymbols): Change parameters to work with a destructured
9575 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9578 2018-04-26 Pedro Alves <palves@redhat.com>
9580 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9581 ifunc targets here. Instead, if we have an ifunc minsym, use its
9583 (add_location_to_breakpoint): Store the minsym and the objfile in
9584 the breakpoint location.
9585 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9586 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9587 Record the minsym in the sal.
9588 * symtab.h (symtab_and_line) <msymbol>: New field.
9590 2018-04-26 Pedro Alves <palves@redhat.com>
9592 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9593 unless we actually resolved the ifunc.
9595 2018-04-26 Pedro Alves <palves@redhat.com>
9597 * c-exp.y (variable production): Prefer ifunc minsyms over
9598 regular function symbols.
9599 * symtab.c (find_gnu_ifunc): New function.
9600 * minsyms.h (lookup_msym_prefer): New enum.
9601 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9602 parameter by a lookup_msym_prefer parameter.
9603 * symtab.h (find_gnu_ifunc): New declaration.
9605 2018-04-26 Pedro Alves <palves@redhat.com>
9607 * blockframe.c (find_gnu_ifunc_target_type): New function.
9608 (find_function_type): New.
9609 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9610 return a value with a memory address.
9611 (eval_call): For calls to GNU ifunc functions, try to find the
9612 type of the target function from the type that the resolver
9614 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9616 * infcall.c (find_function_return_type): Delete.
9617 (find_function_addr): Add 'function_type' parameter. For calls to
9618 GNU ifunc functions, try to find the type of the target function
9619 from the type that the resolver returns, and return it via
9621 (call_function_by_hand_dummy): Adjust to use the function type
9622 returned by find_function_addr.
9623 (find_function_addr): Add 'function_type' parameter and move
9625 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9628 2018-04-26 Pedro Alves <palves@redhat.com>
9630 * c-exp.y (variable production): Skip finding an alias for ifunc
9633 2018-04-26 Pedro Alves <palves@redhat.com>
9635 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9637 2018-04-25 Pedro Alves <palves@redhat.com>
9639 * infcmd.c (kill_command): Print the pid as string, not the whole
9640 thread's ptid. Add comment. s/has been killed/killed/ in output
9642 * remote.c (remote_detach_1): Print the pid as string, not the
9643 whole thread's ptid.
9645 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9646 Sergio Durigan Junior <sergiodj@redhat.com>
9647 Pedro Alves <palves@redhat.com>
9649 * infcmd.c (kill_command): Print message when inferior has
9651 * inferior.c (print_inferior_events): Remove 'static'. Set as
9653 (add_inferior): Improve message printed when
9654 'print_inferior_events' is on.
9655 (exit_inferior): Remove message printed when
9656 'print_inferior_events' is on.
9657 (detach_inferior): Improve message printed when
9658 'print_inferior_events' is on.
9659 (initialize_inferiors): Use 'add_inferior_silent' to set
9660 'current_inferior_'.
9661 * inferior.h (print_inferior_events): Declare here as
9663 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9664 '[Detaching...]' messages when 'print_inferior_events' is on.
9665 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9666 as prefix/suffix for messages. Remove periods. Fix erroneous
9667 'Detaching after fork from child...', replace it by '... from
9669 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9670 prefix/suffix when printing 'Detaching...' messages. Print
9671 them when 'print_inferior_events' is on.
9672 * remote.c (remote_detach_1): Print message when detaching
9673 from inferior and '!is_fork_parent'.
9675 2018-04-24 Tom Tromey <tom@tromey.com>
9677 * cli-out.h: Reindent.
9679 2018-04-24 Tom Tromey <tom@tromey.com>
9681 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9682 (cli_ui_out::do_field_string): Use fputs_filtered.
9683 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9685 2018-04-23 Tom Tromey <tom@tromey.com>
9687 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9688 gdb::unique_xmalloc_ptr.
9690 2018-04-23 Tom Tromey <tom@tromey.com>
9692 * configure: Rebuild.
9694 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9697 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9698 prepare_for_testing. Set normal_bp to r_debug_state if target
9701 2018-04-21 Pedro Alves <palves@redhat.com>
9702 Rajendra SY <rajendra.sy@gmail.com>
9704 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9705 * remote.c (extended_remote_attach): In all-stop mode, mark the
9706 thread as executing.
9708 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9710 * thread.c (thread_apply_all_command): Fix comment.
9711 (thread_command): Fix comment.
9713 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9715 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9717 * features/aarch64-core.c (create_feature_aarch64_core):
9719 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9721 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9723 * features/i386/32bit-avx512.c
9724 (create_feature_i386_32bit_avx512): Likewise.
9725 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9727 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9729 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9731 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9733 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9735 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9737 * features/i386/64bit-avx512.c
9738 (create_feature_i386_64bit_avx512): Likewise.
9739 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9741 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9743 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9745 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9747 * features/i386/64bit-segments.c
9748 (create_feature_i386_64bit_segments): Likewise.
9749 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9751 * features/i386/x32-core.c
9752 (create_feature_i386_x32_core): Likewise.
9753 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9754 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9755 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9756 * target-descriptions.c: In generated code, don't pass xml
9759 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9761 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9762 (print_xml_feature::visit_post): Likewise.
9763 (print_xml_feature::visit): Likewise.
9764 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9765 (print_xml_feature): Add new class.
9766 * regformats/regdat.sh: Null xmltarget on feature targets.
9767 * target-descriptions.c (struct target_desc): Add xmltarget.
9768 (maintenance_check_tdesc_xml_convert): Add unittest function.
9769 (tdesc_get_features_xml): Add function to get xml.
9770 (maintenance_check_xml_descriptions): Test xml generation.
9771 * xml-tdesc.c (string_read_description_xml): Add function.
9772 * xml-tdesc.h (string_read_description_xml): Add declaration.
9774 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9776 * features/Makefile: Add feature marker to targets with new style
9777 target descriptions.
9778 * regformats/aarch64.dat: Regenerate.
9779 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9780 * regformats/i386/amd64-avx-linux.dat: Likewise.
9781 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9782 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9783 * regformats/i386/amd64-linux.dat: Likewise.
9784 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9785 * regformats/i386/amd64.dat: Likewise.
9786 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9787 * regformats/i386/i386-avx-linux.dat: Likewise.
9788 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9789 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9790 * regformats/i386/i386-linux.dat: Likewise.
9791 * regformats/i386/i386-mmx-linux.dat: Likewise.
9792 * regformats/i386/i386-mpx-linux.dat: Likewise.
9793 * regformats/i386/i386.dat: Likewise.
9794 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9795 * regformats/i386/x32-avx-linux.dat: Likewise.
9796 * regformats/i386/x32-linux.dat: Likewise.
9797 * regformats/tic6x-c62x-linux.dat: Likewise.
9798 * regformats/tic6x-c64x-linux.dat: Likewise.
9799 * regformats/tic6x-c64xp-linux.dat: Likewise.
9800 * regformats/regdat.sh: Parse feature marker.
9802 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9804 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9805 (tdesc_osabi_name): Likewise.
9806 * target-descriptions.c (tdesc_architecture_name): Add new
9808 (tdesc_osabi_name): Likewise.
9810 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9812 * common/tdesc.c (tdesc_predefined_type): Move to here.
9813 (tdesc_named_type): Likewise.
9814 (tdesc_create_vector): Likewise.
9815 (tdesc_create_struct): Likewise.
9816 (tdesc_set_struct_size): Likewise.
9817 (tdesc_create_union): Likewise.
9818 (tdesc_create_flags): Likewise.
9819 (tdesc_create_enum): Likewise.
9820 (tdesc_add_field): Likewise.
9821 (tdesc_add_typed_bitfield): Likewise.
9822 (tdesc_add_bitfield): Likewise.
9823 (tdesc_add_flag): Likewise.
9824 (tdesc_add_enum_value): Likewise.
9825 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9826 (struct tdesc_type_vector): Likewise.
9827 (struct tdesc_type_field): Likewise.
9828 (struct tdesc_type_with_fields): Likewise.
9829 (tdesc_create_enum): Add declaration.
9830 (tdesc_add_typed_bitfield): Likewise.
9831 (tdesc_add_enum_value): Likewise.
9832 * target-descriptions.c (tdesc_type_field): Move from here.
9833 (tdesc_type_builtin): Likewise.
9834 (tdesc_type_vector): Likewise.
9835 (tdesc_type_with_fields): Likewise.
9836 (tdesc_predefined_types): Likewise.
9837 (tdesc_named_type): Likewise.
9838 (tdesc_create_vector): Likewise.
9839 (tdesc_create_struct): Likewise.
9840 (tdesc_set_struct_size): Likewise.
9841 (tdesc_create_union): Likewise.
9842 (tdesc_create_flags): Likewise.
9843 (tdesc_create_enum): Likewise.
9844 (tdesc_add_field): Likewise.
9845 (tdesc_add_typed_bitfield): Likewise.
9846 (tdesc_add_bitfield): Likewise.
9847 (tdesc_add_flag): Likewise.
9848 (tdesc_add_enum_value): Likewise.
9849 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9850 (tdesc_add_typed_bitfield): Likewise.
9851 (tdesc_add_enum_value): Likewise.
9853 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9855 * common/tdesc.c (tdesc_feature::accept): Move to here.
9856 (tdesc_feature::operator==): Likewise.
9857 (tdesc_create_reg): Likewise.
9858 * common/tdesc.h (tdesc_type_kind): Likewise.
9859 (struct tdesc_type): Likewise.
9860 (struct tdesc_feature): Likewise.
9861 * regformats/regdat.sh: Create a feature.
9862 * target-descriptions.c (tdesc_type_kind): Move from here.
9863 (tdesc_type): Likewise.
9864 (tdesc_type_up): Likewise.
9865 (tdesc_feature): Likewise.
9866 (tdesc_create_reg): Likewise.
9868 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9870 * Makefile.in: Add arch/tdesc.c
9871 * common/tdesc.c: New file.
9872 * common/tdesc.h (tdesc_element_visitor): Move to here.
9873 (tdesc_element): Likewise.
9874 (tdesc_reg): Likewise.
9875 (tdesc_reg_up): Likewise.
9876 * regformats/regdef.h (reg): Add offset to constructors.
9877 * target-descriptions.c (tdesc_element_visitor): Move from here.
9878 (tdesc_element): Likewise.
9879 (tdesc_reg): Likewise.
9880 (tdesc_reg_up): Likewise.
9882 2018-04-17 Tom Tromey <tom@tromey.com>
9884 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9887 2018-04-17 Tom Tromey <tom@tromey.com>
9889 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9891 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9893 * symtab.c (print_symbol_info): Skip printing filename and line
9894 number when `last' is NULL.
9895 (symtab_symbol_info): Use empty string instead of NULL for first
9896 invocation of print_symbol_info.
9897 (rbreak_command): Pass NULL to `last' parameter of
9900 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9902 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9905 2018-04-16 Pedro Alves <palves@redhat.com>
9907 * MAINTAINERS (sh): Remove.
9908 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9909 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9910 (ALLDEPFILES): Remove sh64-tdep.c.
9911 * NEWS: Mentions that support for SH-5/SH64 is removed.
9912 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9913 (sh*-*-openbsd*): Ditto.
9914 (sh64-*-elf*): Remove.
9916 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9917 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9918 * sh-tdep.c: No longer include "sh64-tdep.h".
9919 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9920 * sh64-tdep.c, sh64-tdep.h: Remove files.
9922 2018-04-16 Pedro Alves <palves@redhat.com>
9924 * MAINTAINERS: Remove m88k.
9925 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9926 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9927 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9928 * NEWS: Mention that support for m88k was removed.
9929 * configure.host (m88*-*-*): Remove support.
9930 * configure.nat (m88k-*-*): Remove support.
9931 * configure.tgt (m88*-*-openbsd*): Remove.
9932 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9934 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9936 * configure.tgt (x86_tobjs): New variable.
9937 (amd64_tobjs, i386_tobjs): Use it.
9939 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
9941 * symtab.c (print_symbol_info): Precede the symbol definition by
9942 the line number when available.
9943 * NEWS: Advertise this enhancement.
9945 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9947 * NEWS (New options): announce set/show record btrace cpu.
9948 * btrace.c: Include record-btrace.h.
9949 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
9950 the vendor is unknown.
9951 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
9952 Maybe overwrite the btrace configuration's cpu.
9953 (btrace_compute_ftrace): Add cpu parameter. Update callers.
9954 (btrace_fetch): Add cpu parameter. Update callers.
9955 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
9956 Maybe overwrite the btrace configuration's cpu. Skip enabling
9957 errata workarounds if the vendor is unknown.
9958 * python/py-record-btrace.c: Include record-btrace.h.
9959 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
9960 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
9961 * record-btrace.c (record_btrace_cpu_state_kind): New.
9962 (record_btrace_cpu): New.
9963 (set_record_btrace_cpu_cmdlist): New.
9964 (record_btrace_get_cpu): New.
9965 (require_btrace_thread, record_btrace_info)
9966 (record_btrace_resume_thread): Call record_btrace_get_cpu.
9967 (cmd_set_record_btrace_cpu_none): New.
9968 (cmd_set_record_btrace_cpu_auto): New.
9969 (cmd_set_record_btrace_cpu): New.
9970 (cmd_show_record_btrace_cpu): New.
9971 (_initialize_record_btrace): Initialize set/show record btrace cpu
9973 * record-btrace.h (record_btrace_get_cpu): New.
9975 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9977 * record.c (set_record_command): Fix typo in message.
9979 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9981 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
9983 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
9985 * infrun.c (process_event_stop_test): Call
9986 gdbarch_in_indirect_branch_thunk.
9987 * gdbarch.sh (in_indirect_branch_thunk): New.
9988 * gdbarch.c: Regenerated.
9989 * gdbarch.h: Regenerated.
9992 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
9993 (HFILES_NO_SRCDIR): Add x86-tdep.h.
9994 (ALLDEPFILES): Add x86-tdep.c.
9995 * arch-utils.h (default_in_indirect_branch_thunk): New.
9996 * arch-utils.c (default_in_indirect_branch_thunk): New.
9997 * i386-tdep: Include x86-tdep.h.
9998 (i386_in_indirect_branch_thunk): New.
9999 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10001 * amd64-tdep: Include x86-tdep.h.
10002 (amd64_in_indirect_branch_thunk): New.
10003 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10005 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10008 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10009 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10010 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10013 2018-04-12 Tom Tromey <tom@tromey.com>
10015 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10016 (rust_evaluate_subexp): Likewise.
10018 2018-04-12 Pedro Alves <palves@redhat.com>
10020 * procfs.c (procfs_detach): Make forward declaration's prototype
10021 match definition's protototype.
10022 (proc_get_LDT_entry): Remove stale do_cleanups call.
10024 2018-04-12 Pedro Alves <palves@redhat.com>
10026 * target.h (target_ops::to_has_exited): Delete.
10027 (target_has_exited): Delete.
10028 * target-delegates.c: Regenerate.
10030 2018-04-11 Pedro Alves <palves@redhat.com>
10032 * target.c (fileio_fh_t::t): Add comment.
10033 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10034 (target_fileio_close): Handle a NULL target.
10035 (invalidate_fileio_fh): New.
10036 (target_close): Call it.
10037 * remote.c (remote_hostio_send_command): No longer check whether
10038 remote_desc is open.
10040 2018-04-11 Pedro Alves <palves@redhat.com>
10042 * target.c (fileio_fh_t): Make it a named struct instead of a
10044 (fileio_fh_t::is_closed): New method.
10045 (DEF_VEC_O (fileio_fh_t)): Remove.
10046 (fileio_fhandles): Now a std::vector.
10047 (is_closed_fileio_fh): Delete.
10048 (acquire_fileio_fd): Adjust. Rename parameters.
10049 (release_fileio_fd): Adjust.
10050 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10051 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10052 (target_fileio_close): Adjust.
10054 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10056 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10059 2018-04-10 Pedro Alves <palves@redhat.com>
10061 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10062 (scoped_finish_thread_state): New class.
10063 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10065 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10066 (fetch_inferior_event, normal_stop): Likewise.
10067 * thread.c (finish_thread_state_cleanup): Delete.
10069 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10070 Pedro Alves <palves@redhat.com>
10072 * value.c: Include "selftest.h" and "common/array-view.h".
10073 (struct range) <operator ==>: New.
10074 (test_ranges_contain): New.
10075 (check_ranges_vector): New.
10076 (test_insert_into_bit_range_vector): New.
10077 (_initialize_values): Register selftests.
10078 * common/array-view.h (operator==, operator!=): New.
10080 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10082 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10084 * inline-frame.c: Include <algorithm>.
10085 (struct inline_state): Add constructor.
10086 (inline_state_s): Remove.
10087 (DEF_VEC_O(inline_state_s)): Remove.
10088 (inline_states): Change type to std::vector.
10089 (find_inline_frame_state): Adjust to std::vector.
10090 (allocate_inline_frame_state): Remove.
10091 (clear_inline_frame_state): Adjust to std::vector.
10092 (skip_inline_frames): Adjust to std::vector.
10094 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10096 * tracepoint.h (struct trace_state_variable): Add constructor.
10097 <name>: Change type to std::string.
10098 * tracepoint.c (tsv_s): Remove.
10099 (DEF_VEC_O(tsv_s)): Remove.
10100 (tvariables): Change to std::vector.
10101 (create_trace_state_variable): Adjust to std::vector.
10102 (find_trace_state_variable): Likewise.
10103 (find_trace_state_variable_by_number): Likewise.
10104 (delete_trace_state_variable): Likewise.
10105 (trace_variable_command): Adjust to std::string.
10106 (delete_trace_variable_command): Likewise.
10107 (tvariables_info_1): Adjust to std::vector.
10108 (save_trace_state_variables): Likewise.
10109 (start_tracing): Likewise.
10110 (merge_uploaded_trace_state_variables): Adjust to std::vector
10112 * target.h (struct target_ops)
10113 <to_download_trace_state_variable>: Pass reference to
10114 trace_state_variable.
10115 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10116 * target-delegates.c: Re-generate.
10117 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10118 (mi_tsv_deleted): Likewise.
10119 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10120 * remote.c (remote_download_trace_state_variable): Change
10121 pointer to reference and adjust.
10122 * make-target-delegates (parse_argtypes): Handle references.
10123 (write_function_header): Likewise.
10124 (munge_type): Likewise.
10126 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10128 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10129 string_view-selftests.c.
10130 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10132 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10133 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10134 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10135 * unittests/basic_string_view/element_access/char/1.cc:
10137 * unittests/basic_string_view/element_access/char/empty.cc:
10139 * unittests/basic_string_view/element_access/char/front_back.cc:
10141 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10142 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10144 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10146 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10148 * unittests/basic_string_view/operations/compare/char/1.cc:
10150 * unittests/basic_string_view/operations/compare/char/13650.cc:
10152 * unittests/basic_string_view/operations/copy/char/1.cc:
10154 * unittests/basic_string_view/operations/data/char/1.cc:
10156 * unittests/basic_string_view/operations/find/char/1.cc:
10158 * unittests/basic_string_view/operations/find/char/2.cc:
10160 * unittests/basic_string_view/operations/find/char/3.cc:
10162 * unittests/basic_string_view/operations/find/char/4.cc:
10164 * unittests/basic_string_view/operations/rfind/char/1.cc:
10166 * unittests/basic_string_view/operations/rfind/char/2.cc:
10168 * unittests/basic_string_view/operations/rfind/char/3.cc:
10170 * unittests/basic_string_view/operations/substr/char/1.cc:
10172 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10173 * unittests/string_view-selftests.c: New file.
10175 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10177 * unittests/basic_string_view/capacity/1.cc: New file.
10178 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10179 * unittests/basic_string_view/cons/char/1.cc: New file.
10180 * unittests/basic_string_view/cons/char/2.cc: New file.
10181 * unittests/basic_string_view/cons/char/3.cc: New file.
10182 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10183 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10184 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10185 * unittests/basic_string_view/element_access/char/1.cc: New file.
10186 * unittests/basic_string_view/element_access/char/2.cc: New file.
10187 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10188 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10189 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10190 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10191 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10192 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10193 * unittests/basic_string_view/include.cc: New file.
10194 * unittests/basic_string_view/inserters/char/1.cc: New file.
10195 * unittests/basic_string_view/inserters/char/2.cc: New file.
10196 * unittests/basic_string_view/inserters/char/3.cc: New file.
10197 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10198 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10199 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10200 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10201 * unittests/basic_string_view/literals/types.cc: New file.
10202 * unittests/basic_string_view/literals/values.cc: New file.
10203 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10204 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10205 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10206 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10207 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10208 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10209 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10210 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10211 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10212 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10213 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10214 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10215 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10216 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10217 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10218 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10219 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10220 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10221 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10222 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10223 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10224 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10225 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10226 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10227 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10228 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10229 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10230 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10231 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10232 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10233 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10234 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10235 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10236 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10237 * unittests/basic_string_view/operators/char/2.cc: New file.
10238 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10239 * unittests/basic_string_view/range_access/char/1.cc: New file.
10240 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10241 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10242 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10243 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10244 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10245 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10246 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10247 * unittests/basic_string_view/typedefs.cc: New file.
10248 * unittests/basic_string_view/types/1.cc: New file.
10250 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10252 * common/gdb_string_view.h: Remove libstdc++ implementation
10253 details, adjust to gdb reality.
10254 * common/gdb_string_view.tcc: Likewise.
10255 * cli/cli-script.c (struct string_view): Remove.
10256 (user_args) <m_args>: Change element type to gdb::string_view.
10257 (user_args::insert_args): Adjust.
10259 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10261 * common/gdb_string_view.h: New file.
10262 * common/gdb_string_view.tcc: New file.
10264 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10266 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10267 * configure: Re-generate.
10269 2018-04-09 Pedro Alves <palves@redhat.com>
10271 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10272 (set_target_gdbarch): Call
10273 gdb::observers::architecture_changed.notify instead of
10274 observer_notify_architecture_changed.
10276 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10278 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10279 (do_restore_current_traceframe_cleanup): Remove.
10280 (restore_current_traceframe_cleanup_dtor): Remove.
10281 (make_cleanup_restore_current_traceframe): Remove.
10282 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10284 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10285 * infrun.c (fetch_inferior_event): Use
10286 scoped_restore_current_traceframe.
10288 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10290 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10292 <n_allocated_type_units>: Remove.
10293 <all_type_units>: Change to std::vector.
10294 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10295 to std::vector change.
10296 (dwarf2_per_objfile::get_cutu): Likewise.
10297 (dwarf2_per_objfile::get_tu): Likewise.
10298 (create_signatured_type_table_from_index): Likewise.
10299 (create_signatured_type_table_from_debug_names): Likewise.
10300 (dw2_symtab_iter_next): Likewise.
10301 (dw2_print_stats): Likewise.
10302 (dw2_expand_all_symtabs): Likewise.
10303 (dw2_expand_marked_cus): Likewise.
10304 (dw2_debug_names_iterator::next): Likewise.
10305 (dwarf2_initialize_objfile): Likewise.
10306 (add_signatured_type_cu_to_table): Likewise.
10307 (create_all_type_units): Likewise.
10308 (add_type_unit): Likewise.
10309 (struct tu_abbrev_offset): Add constructor.
10310 (build_type_psymtabs_1): Adjust to std::vector change.
10311 (print_tu_stats): Likewise.
10312 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10313 (write_debug_names): Likewise.
10315 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10317 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10318 Make an std::vector.
10319 <n_comp_units>: Remove.
10320 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10321 to std::vector change.
10322 (dwarf2_per_objfile::get_cutu): Likewise.
10323 (dwarf2_per_objfile::get_cu): Likewise.
10324 (create_cus_from_index): Likewise.
10325 (create_addrmap_from_index): Likewise.
10326 (create_addrmap_from_aranges): Likewise.
10327 (dwarf2_read_index): Likewise.
10328 (dw2_find_last_source_symtab): Likewise.
10329 (dw2_map_symtabs_matching_filename): Likewise.
10330 (dw2_symtab_iter_next): Likewise.
10331 (dw2_print_stats): Likewise.
10332 (dw2_expand_all_symtabs): Likewise.
10333 (dw2_expand_symtabs_with_fullname): Likewise.
10334 (dw2_expand_marked_cus): Likewise.
10335 (dw2_map_symbol_filenames): Likewise.
10336 (create_cus_from_debug_names): Likewise.
10337 (dwarf2_read_debug_names): Likewise.
10338 (dw2_debug_names_iterator::next): Likewise.
10339 (dwarf2_initialize_objfile): Likewise.
10340 (set_partial_user): Likewise.
10341 (dwarf2_build_psymtabs_hard): Likewise.
10342 (read_comp_units_from_section): Remove arguments, adjust to
10343 std::vector change.
10344 (create_all_comp_units): Adjust to std::vector and
10345 read_comp_units_from_section changes.
10346 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10348 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10349 (psyms_seen_size): Likewise.
10350 (write_gdbindex): Likewise.
10351 (write_debug_names): Likewise.
10353 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10355 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10356 with dwarf2_per_objfile.
10357 (create_cus_from_index): Likewise.
10358 (create_signatured_type_table_from_index): Likewise.
10359 (dwarf2_read_index): Likewise.
10360 (dwarf2_initialize_objfile): Likewise.
10361 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10362 per_cu rather than get_dwarf2_per_objfile.
10364 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10366 * dwarf2read.h (struct signatured_type): Forward declare.
10367 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10369 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10370 (dw2_get_cutu): ...this.
10371 (dwarf2_per_objfile::get_cu): Rename from...
10372 (dw2_get_cu): ...this.
10373 (dwarf2_per_objfile::get_tu): New.
10374 (create_addrmap_from_index): Adjust.
10375 (create_addrmap_from_aranges): Adjust.
10376 (dw2_find_last_source_symtab): Adjust.
10377 (dw2_map_symtabs_matching_filename): Adjust.
10378 (dw2_symtab_iter_next): Adjust.
10379 (dw2_print_stats): Adjust.
10380 (dw2_expand_all_symtabs): Adjust.
10381 (dw2_expand_symtabs_with_fullname): Adjust.
10382 (dw2_expand_marked_cus): Adjust.
10383 (dw_expand_symtabs_matching_file_matcher): Adjust.
10384 (dw2_map_symbol_filenames): Adjust.
10385 (dw2_debug_names_iterator::next): Adjust.
10386 (dwarf2_initialize_objfile): Adjust.
10387 (set_partial_user): Adjust.
10388 (dwarf2_build_psymtabs_hard): Adjust.
10390 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10392 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10393 Remove unused variables.
10394 (dw2_map_symtabs_matching_filename): Likewise.
10395 (dwarf2_record_block_ranges): Likewise.
10396 (dwarf2_read_addr_index): Likewise.
10397 (follow_die_offset): Likewise.
10399 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10401 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10402 to symbol_file_add_main.
10404 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10407 * mi/mi-console.c (do_fputc_async_safe): New.
10408 (mi_console_file::write_async_safe): New.
10409 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10410 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10412 * ui-file.c (ui_file::putstrn): Adjust call to
10413 fputstrn_unfiltered.
10414 * utils.c (printchar): Replace do_fputs and do_fprintf
10415 parameters by do_fputc.
10416 (fputstr_filtered): Adjust call to printchar.
10417 (fputstr_unfiltered): Likewise.
10418 (fputstrn_filtered): Likewise.
10419 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10421 * utils.h (do_fputc_ftype): New typedef.
10422 (fputstrn_unfiltered): Add do_fputc parameter.
10424 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10426 * regformats/i386/i386-avx.dat: Remove.
10428 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10431 * amd64-tdep.c (amd64_none_init_abi): New function.
10432 (amd64_x32_none_init_abi): New function.
10433 (_initialize_amd64_tdep): Register handlers for x86-64 and
10434 x64_32 with GDB_OSABI_NONE.
10435 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10436 GDB_OSABI_NONE osabi.
10438 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10441 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10443 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10444 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10446 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10448 * common/byte-vector.h (char_vector): New type.
10449 * target.h (target_read_alloc): Return
10450 gdb::optional<byte_vector>.
10451 (target_read_stralloc): Return gdb::optional<char_vector>.
10452 (target_get_osdata): Return gdb::optional<char_vector>.
10453 * target.c (target_read_alloc_1): Templatize. Replacement
10454 manual memory management with vector.
10455 (target_read_alloc): Change return type, adjust.
10456 (target_read_stralloc): Change return type, adjust.
10457 (target_get_osdata): Change return type, adjust.
10458 * auxv.c (struct auxv_info) <length>: Remove.
10459 <data>: Change type to gdb::optional<byte_vector>.
10460 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10461 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10462 (target_auxv_search): Adjust.
10463 (fprint_target_auxv): Adjust.
10464 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10465 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10466 (linux_make_corefile_notes): Adjust.
10467 * osdata.c (get_osdata): Adjust.
10468 * remote.c (remote_get_threads_with_qxfer): Adjust.
10469 (remote_memory_map): Adjust.
10470 (remote_traceframe_info): Adjust.
10471 (btrace_read_config): Adjust.
10472 (remote_read_btrace): Adjust.
10473 (remote_pid_to_exec_file): Adjust.
10474 * solib-aix.c (solib_aix_get_library_list): Adjust.
10475 * solib-dsbt.c (decode_loadmap): Don't free buf.
10476 (dsbt_get_initial_loadmaps): Adjust.
10477 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10478 * solib-target.c (solib_target_current_sos): Adjust.
10479 * tracepoint.c (sdata_make_value): Adjust.
10480 * xml-support.c (xinclude_start_include): Adjust.
10481 (xml_fetch_content_from_file): Adjust.
10482 * xml-support.h (xml_fetch_another): Change return type.
10483 (xml_fetch_content_from_file): Change return type.
10484 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10485 * xml-tdesc.c (file_read_description_xml): Adjust.
10486 (fetch_available_features_from_target): Change return type.
10487 (target_fetch_description_xml): Adjust.
10488 (target_read_description_xml): Adjust.
10490 2018-04-06 Tom Tromey <tom@tromey.com>
10492 * value.c (~value): Update.
10493 (struct value) <contents>: Now unique_xmalloc_ptr.
10494 (value_contents_bits_eq, allocate_value_contents)
10495 (value_contents_raw, value_contents_all_raw)
10496 (value_contents_for_printing, value_contents_for_printing_const)
10497 (set_value_enclosing_type): Update.
10499 2018-04-06 Tom Tromey <tom@tromey.com>
10501 * value.c (range_s): Remove typedef, VEC.
10502 (struct range): Add operator<.
10503 (range_lessthan): Remove.
10504 (ranges_contain): Change type.
10506 (struct value) <unavailable, optimized_out>: Now std::vector.
10507 (value_entirely_available)
10508 (value_entirely_covered_by_range_vector)
10509 (value_entirely_unavailable, value_entirely_optimized_out):
10511 (insert_into_bit_range_vector): Change argument type.
10512 (find_first_range_overlap): Likewise.
10513 (struct ranges_and_idx, value_contents_bits_eq)
10514 (require_not_optimized_out, require_available): Update.
10515 (ranges_copy_adjusted): Change argument types.
10516 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10518 2018-04-06 Tom Tromey <tom@tromey.com>
10520 * value.c (~value): Update.
10521 (struct value) <parent>: Now a value_ref_ptr.
10522 (value_parent, set_value_parent, value_address, value_copy):
10525 2018-04-06 Tom Tromey <tom@tromey.com>
10527 * value.c (struct value): Add constructor, destructor, and member
10529 (allocate_value_lazy, value_decref): Update.
10531 2018-04-06 Tom Tromey <tom@tromey.com>
10533 * value.c (struct value) <released, next>: Remove.
10534 (all_values): Now a std::vector.
10535 (allocate_value_lazy): Update.
10536 (value_next): Remove.
10537 (value_mark, value_free_to_mark, release_value)
10538 (value_release_to_mark): Update.
10540 2018-04-06 Tom Tromey <tom@tromey.com>
10542 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10543 (free_value_chain): Remove.
10544 * value.c (free_value_chain): Remove.
10545 (value_release_to_mark): Return a std::vector.
10546 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10548 (check_condition): Update.
10549 * eval.c (fetch_subexp_value): Change "val_chain" to a
10551 * breakpoint.c (update_watchpoint): Update.
10552 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10554 2018-04-06 Tom Tromey <tom@tromey.com>
10556 * value.h (free_all_values): Remove.
10557 * value.c (free_all_values): Remove.
10559 2018-04-06 Tom Tromey <tom@tromey.com>
10561 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10562 (value_history_chain, value_history_count): Remove.
10563 (value_history): New global.
10564 (record_latest_value, access_value_history, show_values)
10565 (preserve_values): Update.
10567 2018-04-06 Tom Tromey <tom@tromey.com>
10569 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10570 * varobj.c (varobj_set_display_format, varobj_set_value)
10571 (install_default_visualizer, construct_visualizer)
10572 (install_new_value, ~varobj, varobj_get_value_type)
10573 (my_value_of_variable, varobj_editable_p): Update.
10574 * c-varobj.c (c_describe_child, c_value_of_variable)
10575 (cplus_number_of_children, cplus_describe_child): Update.
10576 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10577 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10578 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10580 2018-04-06 Tom Tromey <tom@tromey.com>
10582 * printcmd.c (last_examine_address): Change type to
10584 (do_examine, x_command): Update.
10586 2018-04-06 Tom Tromey <tom@tromey.com>
10588 * value.c (release_value): Update.
10589 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10590 (struct bpstats) <val>: Now a value_ref_ptr.
10591 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10592 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10593 (~watchpoint, print_it_watchpoint, watch_command_1)
10594 (invalidate_bp_value_on_memory_change): Update.
10596 2018-04-06 Tom Tromey <tom@tromey.com>
10598 * varobj.c (varobj_clear_saved_item)
10599 (update_dynamic_varobj_children, install_new_value, ~varobj):
10601 * value.h (value_incref): Move declaration earlier.
10602 (value_decref): Rename from value_free.
10603 (struct value_ref_policy): New.
10604 (value_ref_ptr): New typedef.
10605 (struct value_deleter): Remove.
10606 (gdb_value_up): Remove typedef.
10607 (release_value): Change return type.
10608 (release_value_or_incref): Remove.
10609 * value.c (set_value_parent): Update.
10610 (value_incref): Change return type.
10611 (value_decref): Rename from value_free.
10612 (value_free_to_mark, free_all_values, free_value_chain): Update.
10613 (release_value): Return value_ref_ptr.
10614 (release_value_or_incref): Remove.
10615 (record_latest_value, set_internalvar, clear_internalvar):
10617 * stack.c (info_frame_command): Don't call value_free.
10618 * python/py-value.c (valpy_dealloc, valpy_new)
10619 (value_to_value_object): Update.
10620 * printcmd.c (do_examine): Update.
10621 * opencl-lang.c (lval_func_free_closure): Update.
10622 * mi/mi-main.c (register_changed_p): Don't call value_free.
10623 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10624 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10625 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10627 * guile/scm-value.c (vlscm_free_value_smob)
10628 (vlscm_scm_from_value): Update.
10629 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10630 (frame_unwind_register_unsigned, get_frame_register_bytes)
10631 (put_frame_register_bytes): Don't call value_free.
10632 * findvar.c (address_from_register): Don't call value_free.
10633 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10634 * dwarf2loc.c (entry_data_value_free_closure)
10635 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10636 (dwarf2_evaluate_loc_desc_full): Update.
10637 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10638 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10639 (~watchpoint, watch_command_1)
10640 (invalidate_bp_value_on_memory_change): Update.
10641 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10643 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10646 * warning.m4: Add -Wno-error=deprecated-register.
10647 * configure: Re-generate.
10649 2018-04-05 Tom Tromey <tom@tromey.com>
10651 * linespec.h: Remove include of "vec.h".
10653 2018-04-05 Tom Tromey <tom@tromey.com>
10655 * linespec.c (typep): Remove typedef.
10656 (find_methods, find_superclass_methods): Take a std::vector.
10657 (find_method): Use std::vector.
10659 2018-04-05 Tom Tromey <tom@tromey.com>
10661 * utils.c (compare_strings): Remove.
10662 * utils.h (compare_strings): Remove.
10663 * objc-lang.h (find_imps): Update.
10664 * objc-lang.c (find_methods): Take a std::vector.
10665 (uniquify_strings, find_imps): Likewise.
10666 * linespec.c (find_methods): Take a std::vector.
10667 (decode_objc): Use std::vector.
10668 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10670 (find_method, find_function_symbols): Use std::vector.
10672 2018-04-05 Tom Tromey <tom@tromey.com>
10674 * completer.c (completion_tracker::completion_tracker): Remove
10676 (completion_tracker::discard_completions): Likewise.
10677 * breakpoint.c (ambiguous_names_p): Remove cast.
10678 * ada-lang.c (_initialize_ada_language): Remove cast.
10679 * utils.h (streq): Update.
10680 (streq_hash): Add new declaration.
10681 * utils.c (streq): Return bool.
10682 (streq_hash): New function.
10684 2018-04-05 Tom Tromey <tom@tromey.com>
10686 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10687 Remove a string copy.
10689 2018-04-05 Tom Tromey <tom@tromey.com>
10691 * linespec.c (filter_results): Use std::vector.
10692 (decode_line_2, decode_line_full): Update.
10694 2018-04-05 Tom Tromey <tom@tromey.com>
10696 * linespec.c (canonical_to_fullform): Return std::string.
10697 (filter_results): Update.
10698 (struct decode_line_2_item): Add constructor.
10699 <fullform, displayform>: Now std::string.
10700 (decode_line_2_compare_items): Now a std::sort comparator.
10701 (decode_line_2): Update.
10703 2018-04-05 Tom Tromey <tom@tromey.com>
10705 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10706 (unexpected_linespec_error): Update.
10707 (linespec_parse_basic, parse_linespec): Update.
10709 2018-04-05 Tom Tromey <tom@tromey.com>
10711 * linespec.c (linespec_parse_basic): Reindent.
10713 2018-04-05 Tom Tromey <tom@tromey.com>
10715 * minsyms.h (iterate_over_minimal_symbols): Update.
10716 * minsyms.c (iterate_over_minimal_symbols): Take a
10717 gdb::function_view.
10718 * linespec.c (struct collect_minsyms): Remove.
10719 (compare_msyms): Now a std::sort comparator.
10720 (add_minsym): Add parameters.
10721 (search_minsyms_for_name): Update. Use std::vector.
10723 2018-04-03 Tom Tromey <tom@tromey.com>
10725 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10728 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10730 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10732 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10735 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10736 printing static type.
10738 2018-04-01 Tom Tromey <tom@tromey.com>
10740 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10741 (rs6000_xfer_shared_libraries): Update.
10743 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10745 * common/gdb_vecs.h (char_ptr): Remove.
10746 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10748 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10750 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10752 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10754 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10756 * tracepoint.h (struct uploaded_tp): Initialize fields.
10757 <actions, step_actions, cmd_strings>: Change type to
10758 std::vector<char *>.
10759 * tracepoint.c (get_uploaded_tp): Allocate with new.
10760 (free_uploaded_tps): Free with delete.
10761 (parse_tracepoint_definition): Adjust to std::vector change.
10762 * breakpoint.c (read_uploaded_action): Likewise.
10763 (create_tracepoint_from_upload): Likewise.
10764 * ctf.c (ctf_write_uploaded_tp): Likewise.
10765 (SET_ARRAY_FIELD): Likewise.
10766 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10768 2018-03-30 Tom Tromey <tom@tromey.com>
10770 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10772 (svr4_keep_data_in_core): Update.
10773 (svr4_read_so_list): Update.
10775 2018-03-30 Tom Tromey <tom@tromey.com>
10777 * windows-nat.c (handle_output_debug_string, handle_exception):
10779 * target.h (target_read_string): Update.
10780 * target.c (target_read_string): Change "string" to
10781 unique_xmalloc_ptr.
10782 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10784 * solib-frv.c (frv_current_sos): Update.
10785 * solib-dsbt.c (dsbt_current_sos): Update.
10786 * solib-darwin.c (darwin_current_sos): Update.
10787 * linux-thread-db.c (inferior_has_bug): Update.
10788 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10789 Update. Remove alloca.
10790 * ada-lang.c (ada_main_name): Update.
10792 2018-03-30 Tom Tromey <tom@tromey.com>
10794 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10795 (struct dwo_file_deleter): New.
10796 (dwo_file_up): New typedef.
10797 (open_and_init_dwo_file): Use dwo_file_up.
10798 (free_dwo_file_cleanup): Remove.
10800 2018-03-30 Tom Tromey <tom@tromey.com>
10802 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10803 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10805 2018-03-30 Tom Tromey <tom@tromey.com>
10807 * dwarf2read.c (class free_cached_comp_units): New class.
10808 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10809 (free_cached_comp_units): Remove function.
10811 2018-03-30 Tom Tromey <tom@tromey.com>
10813 * utils.h (make_cleanup_unpush_target): Remove.
10814 * inf-ptrace.c (struct target_unpusher): New.
10815 (target_unpush_up) New typedef.
10816 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10818 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10820 2018-03-27 Tom Tromey <tom@tromey.com>
10822 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10824 2018-03-27 Pedro Alves <palves@redhat.com>
10825 Tom Tromey <tom@tromey.com>
10827 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10828 destructor. Now a class.
10829 (gdb_readline_wrapper_cleanup): Remove function.
10830 (gdb_readline_wrapper): Remove cleanups.
10832 2018-03-27 Tom Tromey <tom@tromey.com>
10834 * typeprint.h (struct type_print_options) <local_typedefs,
10835 global_typedefs>: Remove "struct" keyword.
10836 (class typedef_hash_table): New class.
10837 (recursively_update_typedef_hash, add_template_parameters)
10838 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10839 (find_typedef_in_hash): Don't declare.
10840 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10841 (typedef_hash_table::recursively_update): Rename from
10842 recursively_update_typedef_hash. Now a member.
10843 (typedef_hash_table::add_template_parameters): Rename from
10844 add_template_parameters. Now a member.
10845 (typedef_hash_table::typedef_hash_table): Now a constructor;
10846 rename from create_typedef_hash.
10847 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10848 rename from free_typedef_hash.
10849 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10850 (do_free_global_table): Remove.
10851 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10852 from copy_type_recursive.
10853 (create_global_typedef_table): Remove.
10854 (typedef_hash_table::find_global_typedef): Now a member of
10855 typedef_hash_table.
10856 (typedef_hash_table::find_typedef): Rename from
10857 find_typedef_in_hash; now a member.
10858 (whatis_exp): Update.
10859 * extension.h (struct ext_lang_type_printers): Add constructor and
10861 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10863 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10864 Now a constructor; rename from start_ext_lang_type_printers.
10865 (ext_lang_type_printers): Now a destructor; rename from
10866 free_ext_lang_type_printers.
10867 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10869 (c_type_print_base_struct_union): Update. Remove cleanups.
10871 2018-03-27 Tom Tromey <tom@tromey.com>
10873 * dwarf-index-write.c: Include <cmath>.
10875 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10877 * NEWS: Add entry describing new "set|show varsize-limit" command.
10878 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10880 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10883 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10885 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10886 dwarf-index-write.c
10887 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10888 * dwarf-index-common.c: New file.
10889 * dwarf-index-common.h: New file.
10890 * dwarf-index-write.c: New file.
10891 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10892 (struct dwarf2_section_info): Move from here.
10893 (dwarf2_section_info_def): Likewise.
10894 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10895 (offset_type): Likewise.
10896 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10897 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10898 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10899 (byte_swap): Likewise.
10900 (MAYBE_SWAP): Likewise.
10901 (dwarf2_per_cu_ptr): Likewise.
10902 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10903 (struct tu_stats): Likewise.
10904 (struct dwarf2_per_objfile): Likewise.
10905 (struct dwarf2_per_cu_data): Likewise.
10906 (struct signatured_type): Likewise.
10907 (sig_type_ptr): Likewise.
10908 (DEF_VEC_P (sig_type_ptr)): Likewise.
10909 (INDEX4_SUFFIX): Likewise.
10910 (INDEX5_SUFFIX): Likewise.
10911 (DEBUG_STR_SUFFIX): Likewise.
10912 (dwarf2_read_section): Make non-static.
10913 (mapped_index_string_hash): Move from here.
10914 (dwarf5_djb_hash): Likewise.
10915 (file_write): Likewise.
10916 (class data_buf): Likewise.
10917 (struct symtab_index_entry): Likewise.
10918 (struct mapped_symtab): Likewise.
10919 (find_slot): Likewise.
10920 (hash_expand): Likewise.
10921 (add_index_entry): Likewise.
10922 (uniquify_cu_indices): Likewise.
10923 (class c_str_view): Likewise.
10924 (class c_str_view_hasher): Likewise.
10925 (class vector_hasher): Likewise.
10926 (write_hash_table): Likewise.
10927 (psym_index_map): Likewise.
10928 (struct addrmap_index_data): Likewise.
10929 (add_address_entry): Likewise.
10930 (add_address_entry_worker): Likewise.
10931 (write_address_map): Likewise.
10932 (symbol_kind): Likewise.
10933 (write_psymbols): Likewise.
10934 (struct signatured_type_index_data): Likewise.
10935 (write_one_signatured_type): Likewise.
10936 (recursively_count_psymbols): Likewise.
10937 (recursively_write_psymbols): Likewise.
10938 (class debug_names): Likewise.
10939 (check_dwarf64_offsets): Likewise.
10940 (psyms_seen_size): Likewise.
10941 (write_gdbindex): Likewise.
10942 (write_debug_names): Likewise.
10943 (assert_file_size): Likewise.
10944 (write_psymtabs_to_index): Likewise.
10945 (save_gdb_index_command): Likewise.
10946 (_initialize_dwarf2_read): Don't register the "save gdb-index"
10948 * dwarf2read.h: New file.
10950 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10953 * dwarf2read.c (dwarf2_physname): Do not return the demangled
10954 symbol name if the CU's language stores symbol names in linkage
10956 * language.h (struct language_defn)
10957 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
10958 all instances of this struct.
10960 2018-03-26 Tom Tromey <tom@tromey.com>
10962 * stack.c (backtrace_command_1): Remove verbose code.
10964 2018-03-26 Tom Tromey <tom@tromey.com>
10966 * python/py-framefilter.c (py_print_type): Don't catch
10967 exceptions. Return void.
10968 (py_print_value): Likewise.
10969 (py_print_single_arg): Likewise.
10970 (enumerate_args): Don't catch exceptions.
10971 (py_print_args): Likewise.
10972 (py_print_frame): Likewise.
10973 (gdbpy_apply_frame_filter): Catch exceptions here.
10975 2018-03-26 Tom Tromey <tom@tromey.com>
10977 * stack.c (_initialize_stack): Remove trailing newlines from help
10978 text. Add "Usage" line to "backtrace" help.
10980 2018-03-26 Tom Tromey <tom@tromey.com>
10983 * python/py-framefilter.c (py_print_args): Call wrap_hint.
10985 2018-03-26 Tom Tromey <tom@tromey.com>
10987 * python/py-framefilter.c (py_print_single_arg): Return
10988 EXT_LANG_BT_ERROR from catch.
10990 2018-03-26 Tom Tromey <tom@tromey.com>
10992 PR backtrace/15584:
10993 * stack.c (backtrace_command_1): Move some code into no-filters
10996 2018-03-26 Tom Tromey <tom@tromey.com>
10998 * python/py-framefilter.c (throw_quit_or_print_exception): New
11000 (gdbpy_apply_frame_filter): Use it.
11002 2018-03-26 Tom Tromey <tom@tromey.com>
11005 * python/py-framefilter.c (py_print_type, py_print_value)
11006 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11009 2018-03-26 Tom Tromey <tom@tromey.com>
11011 * python/py-framefilter.c (enumerate_args): Use
11012 gdb::unique_xmalloc_ptr.
11014 2018-03-26 Tom Tromey <tom@tromey.com>
11016 * python/py-framefilter.c (py_print_frame): Return
11018 (gdbpy_apply_frame_filter): Update comment.
11019 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11021 <EXT_LANG_BT_NO_FILTERS>: Change value.
11023 2018-03-26 Tom Tromey <tom@tromey.com>
11025 PR backtrace/15582:
11026 * stack.c (backtrace_command): Parse "hide" argument.
11027 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11028 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11031 2018-03-26 Tom Tromey <tom@tromey.com>
11033 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11035 (backtrace_command): Remove "fulltrace", add "flags".
11037 2018-03-26 Tom Tromey <tom@tromey.com>
11039 * stack.c (backtrace_command): Rewrite command line parsing.
11041 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11043 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11045 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11047 * filename-seen-cache.h: Add include guard.
11049 2018-03-26 Keith Seitz <keiths@redhat.com>
11051 * symfile.c (place_section): Remove "struct" from section_addr_info
11053 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11054 "struct" keyword from section_addr_info.
11056 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11058 * regformats/regdef.h (reg): Add constructors.
11060 2018-03-25 Pedro Alves <palves@redhat.com>
11062 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11063 if then/else bodies in var_func_name extraction.
11065 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11067 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11068 lookup_minimal_symbol() to find symbol entry.
11069 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11071 2018-03-23 Keith Seitz <keiths@redhat.com>
11074 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11075 nested type definitions for C++, too.
11077 2018-03-23 Tom Tromey <tom@tromey.com>
11079 * machoread.c (struct oso_el): Add a constructor. Don't define as
11081 (macho_register_oso): Remove.
11082 (macho_symtab_read): Take a std::vector.
11083 (oso_el_compare_name): Now a std::sort comparator.
11084 (macho_symfile_read_all_oso): Take a std::vector.
11085 (macho_symfile_read): Use std::vector. Remove cleanups.
11087 2018-03-22 Tom Tromey <tom@tromey.com>
11089 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11090 (record_full_goto_bookmark): Use std::string.
11092 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11095 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11098 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11100 * rs6000-tdep.c (store_insn_p): New function.
11101 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11102 and cr_reg to their unshifted values. Use store_insn_p to
11103 match LR saves using either R1 or fdata->alloca_reg. Use
11104 store_insn_p to match CR saves. Set alloca_reg_offset
11105 when alloca_reg and framep are set. Remove lr_reg shift
11106 when assigning to fdata->lr_register.
11108 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11110 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11111 command line args instead of emitting a warning.
11113 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11115 * tracepoint.h (struct static_tracepoint_marker): Initialize
11116 fields, define default constructor, move constructor and move
11117 assignment, disable the rest.
11118 <str_id, extra>: Make std::string.
11119 (release_static_tracepoint_marker): Remove.
11120 (free_current_marker): Remove.
11121 * tracepoint.c (free_current_marker): Remove.
11122 (parse_static_tracepoint_marker_definition): Adjust to
11123 std::string, use new hex2str overload.
11124 (release_static_tracepoint_marker): Remove.
11125 (print_one_static_tracepoint_marker): Get marker by reference
11126 and adjust to std::string.
11127 (info_static_tracepoint_markers_command): Adjust to std::vector
11129 * target.h (static_tracepoint_marker_p): Remove typedef.
11130 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11131 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11133 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11135 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11136 (target_debug_print_std_vector_static_tracepoint_marker): New.
11137 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11139 (target_debug_print_static_tracepoint_marker_p): ... this.
11140 * target-delegates.c: Re-generate.
11141 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11143 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11144 (decode_static_tracepoint_spec): Adjust to std::vector.
11145 (tracepoint_print_one_detail): Adjust to std::string.
11146 (strace_marker_decode_location): Adjust to std::string.
11147 (update_static_tracepoint): Adjust to std::string, remove call
11148 to release_static_tracepoint_marker.
11149 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11150 Adjust to std::vector.
11151 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11152 (remote_static_tracepoint_markers_by_strid): Adjust to
11154 * common/rsp-low.h (hex2str): New overload with explicit count
11156 * common/rsp-low.c (hex2str): New overload with explicit count
11158 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11159 (_initialize_rsp_low_selftests): Add test_hex2str test.
11160 * unittests/tracepoint-selftests.c
11161 (test_parse_static_tracepoint_marker_definition): Adjust to
11164 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11166 * tracepoint.c (parse_static_tracepoint_marker_definition):
11167 Consider case where the definition is followed by more
11169 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11170 tracepoint-selftests.c.
11171 * unittests/tracepoint-selftests.c: New.
11173 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11175 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11178 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11180 * symtab.c (find_pc_sect_line): fixed indentation.
11182 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11184 * symtab.c (find_pc_sect_line): now uses binary search.
11186 2018-03-19 Tom Tromey <tom@tromey.com>
11188 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11189 "IDENT" production.
11191 2018-03-19 Pedro Alves <palves@redhat.com>
11192 Tom Tromey <tom@tromey.com>
11194 * unittests/observable-selftests.c: New file.
11195 * common/observable.h: New file.
11196 * observable.h: New file.
11197 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11198 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11199 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11200 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11201 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11202 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11203 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11204 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11205 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11206 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11207 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11208 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11209 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11210 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11211 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11212 tui/tui-interp.c, valops.c: Update all users.
11213 * tui/tui-hooks.c (tui_bp_created_observer)
11214 (tui_bp_deleted_observer, tui_bp_modified_observer)
11215 (tui_inferior_exit_observer, tui_before_prompt_observer)
11216 (tui_normal_stop_observer, tui_register_changed_observer):
11218 (tui_observers_token): New global.
11219 (attach_or_detach, tui_attach_detach_observers): New functions.
11220 (tui_install_hooks, tui_remove_hooks): Use
11221 tui_attach_detach_observers.
11222 * record-btrace.c (record_btrace_thread_observer): Remove.
11223 (record_btrace_thread_observer_token): New global.
11224 * observer.sh: Remove.
11225 * observer.c: Rename to observable.c.
11226 * observable.c (namespace gdb_observers): Define new objects.
11227 (observer_debug): Move into gdb_observers namespace.
11228 (struct observer, struct observer_list, xalloc_observer_list_node)
11229 (xfree_observer_list_node, generic_observer_attach)
11230 (generic_observer_detach, generic_observer_notify): Remove.
11231 (_initialize_observer): Update.
11232 Don't include observer.inc.
11233 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11234 (clean mostlyclean): Likewise.
11235 (observer.h, observer.inc): Remove targets.
11236 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11237 (COMMON_SFILES): Use observable.c, not observer.c.
11238 * .gitignore: Remove observer.h.
11240 2018-03-18 Tom Tromey <tom@tromey.com>
11242 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11244 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11246 2018-03-17 Tom Tromey <tom@tromey.com>
11248 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11250 2018-03-17 Tom Tromey <tom@tromey.com>
11252 * target.c (class scoped_target_fd): New.
11253 (target_fileio_close_cleanup): Remove.
11254 (target_fileio_read_alloc_1): Use scoped_target_fd.
11256 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11258 * silent-rules.mk: New.
11259 * Makefile.in: Include silent-rules.mk
11260 (srcdir, VPATH, top_srcdir): Move up.
11261 (COMPILE): Add ECHO_CXX.
11262 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11263 (init.c): Add ECHO_INIT_C.
11264 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11265 (version.c): Add ECHO_GEN.
11266 (printcmd.o): Add ECHO_CXX.
11267 (target-float.o): Add ECHO_CXX.
11268 (ada-exp.o): Add ECHO_CXX.
11269 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11270 (insight$(EXEEXT)): Add ECHO_CXXLD.
11271 * gnulib/configure.ac: Add AM_SILENT_RULES.
11272 * gnulib/aclocal.m4: Re-generate.
11273 * gnulib/configure: Re-generate.
11274 * gnulib/import/Makefile.in: Re-generate.
11276 2018-03-16 Tom Tromey <tom@tromey.com>
11278 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11279 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11280 * utils.c (do_free_section_addr_info)
11281 (make_cleanup_free_section_addr_info): Remove.
11282 * symfile.h (struct other_sections): Add constructor.
11283 (struct section_addr_info): Remove.
11284 (section_addr_info): New typedef.
11285 (struct sym_fns) <sym_offsets>: Change type of parameter.
11286 (build_section_addr_info_from_objfile)
11287 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11288 (default_symfile_offsets, symbol_file_add)
11289 (symbol_file_add_from_bfd)
11290 (build_section_addr_info_from_section_table): Update.
11291 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11292 * symfile.c (alloc_section_addr_info): Remove.
11293 (build_section_addr_info_from_section_table): Change return type.
11295 (build_section_addr_info_from_bfd)
11296 (build_section_addr_info_from_objfile): Likewise.
11297 (free_section_addr_info): Remove.
11298 (relative_addr_info_to_section_offsets): Change type of "addrs".
11299 (addrs_section_compar): Now a std::sort comparator.
11300 (addrs_section_sort): Change return type.
11301 (addr_info_make_relative): Change type of "addrs". Update.
11302 (default_symfile_offsets, syms_from_objfile_1)
11303 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11304 (symbol_file_add_separate): Update.
11305 (symbol_file_add): Change type of "addrs". Update.
11306 (add_symbol_file_command): Update. Remove cleanups.
11307 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11309 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11310 * solib.c (solib_read_symbols): Update.
11311 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11312 * machoread.c (macho_symfile_offsets): Update.
11313 * jit.c (jit_bfd_try_read_symtab): Update.
11315 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11317 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11318 unittests/utils-selftests.c.
11319 * unittests/utils-selftests.c: New file.
11321 2018-03-14 Tom Tromey <tom@tromey.com>
11324 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11327 2018-03-14 Tom Tromey <tom@tromey.com>
11330 * printcmd.c (printf_pointer): Allow "-" in format.
11332 2018-03-14 Tom Tromey <tom@tromey.com>
11334 * printcmd.c (_initialize_printcmd): Add usage to printf.
11336 2018-03-14 Yao Qi <qiyao@sourceware.org>
11338 * MAINTAINERS: Update my email address.
11340 2018-03-13 Tom Tromey <tom@tromey.com>
11342 * machoread.c (macho_check_dsym): Change filenamep to a
11344 (macho_symfile_read): Update.
11345 * symfile.c (load_command): Use std::string.
11347 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11349 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11350 to error message string.
11351 (riscv_register_name): Use xsnprintf instead of sprintf.
11352 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11354 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11356 (riscv_push_dummy_call): Likewise.
11358 2018-03-12 Tom Tromey <tom@tromey.com>
11360 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11361 Use gdb::byte_vector.
11362 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11364 2018-03-12 Yao Qi <yao.qi@linaro.org>
11366 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11367 parameter type to readable_regcache.
11368 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11371 2018-03-11 Tom Tromey <tom@tromey.com>
11373 * dwarf2read.c (struct nextfield): Add initializers.
11374 (struct nextfnfield): Remove.
11375 (struct fnfieldlist): Add initializers. Remove "length" and
11376 "head", use std::vector.
11377 (struct decl_field_list): Remove.
11378 (struct field_info): Add initializers.
11379 <fields, baseclasses>: Now std::vector.
11380 <nbaseclasses, nfnfields, typedef_field_list_count,
11381 nested_types_list_count>: Remove.
11382 (dwarf2_add_field, dwarf2_add_type_defn)
11383 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11384 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11385 (process_structure_scope): Update.
11387 2018-03-11 Tom Tromey <tom@tromey.com>
11389 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11390 for use by std::sort.
11391 (build_type_psymtabs_1): Use std::vector.
11393 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11395 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11396 and LIBMPFR in the printed configuration.
11398 2018-03-08 Tom Tromey <tom@tromey.com>
11400 * source.c (get_filename_and_charpos): Use scoped_fd.
11401 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11402 (procfs_pidlist): Likewise.
11403 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11404 (iterate_over_mappings): Likewise.
11406 2018-03-08 Tom Tromey <tom@tromey.com>
11408 * infcall.c (struct call_return_meta_info)
11409 <stack_temporaries_enabled>: Remove.
11410 (get_call_return_value, call_function_by_hand_dummy): Update.
11411 * thread.c (disable_thread_stack_temporaries): Remove.
11412 (enable_thread_stack_temporaries): Remove.
11413 (thread_stack_temporaries_enabled_p): Return bool.
11414 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11415 (get_last_thread_stack_temporary): Update.
11416 * eval.c (evaluate_subexp): Update.
11417 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11418 class, not a function.
11419 (value_ptr, value_vec): Remove typedefs.
11420 (class thread_info) <stack_temporaries_enabled>: Now bool.
11421 <stack_temporaries>: Now a std::vector.
11422 (thread_stack_temporaries_enabled_p)
11423 (value_in_thread_stack_temporaries): Return bool.
11425 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11427 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11428 (getpkt_or_notif_sane_1): Likewise.
11430 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11432 * build-id.c (build_id_to_debug_bfd): Use std::string.
11434 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11436 * build-id.c (find_separate_debug_file_by_buildid): Return
11438 * build-id.h (find_separate_debug_file_by_buildid): Return
11440 * coffread.c (coff_symfile_read): Adjust to std::string.
11441 * elfread.c (elf_symfile_read): Adjust to std::string.
11442 * symfile.c (separate_debug_file_exists): Change parameter to
11444 (find_separate_debug_file): Return std::string.
11445 (find_separate_debug_file_by_debuglink): Return std::string.
11446 * symfile.h (find_separate_debug_file_by_debuglink): Return
11449 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11451 * common/xml-utils.c (xml_escape_text): Move code to...
11452 (xml_escape_text_append): ... this new function.
11453 * common/xml-utils.h (xml_escape_text_append): New declaration.
11454 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11456 (_initialize_xml_utils): register test_xml_escape_text_append as
11459 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11461 * defs.h: Remove MAX_REGISTER_SIZE.
11462 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11464 * python/py-unwind.c (pyuw_sniffer): Likewise.
11466 2018-03-07 Tom Tromey <tom@tromey.com>
11468 * linux-tdep.c (linux_info_proc): Update.
11469 * target.h (struct target_ops) <to_fileio_readlink>: Return
11471 (target_fileio_readlink): Return optional<string>.
11472 * remote.c (remote_hostio_readlink): Return optional<string>.
11473 * inf-child.c (inf_child_fileio_readlink): Return
11475 * target.c (target_fileio_readlink): Return optional<string>.
11477 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11479 * regcache.c (cooked_read_test): Add riscv to the list of
11480 architectures that have a save_reggroup.
11482 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11484 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11485 value is not a dynamic class object.
11487 2018-03-06 Tom Tromey <tom@tromey.com>
11489 * rust-exp.y: Formatting fixes.
11491 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11493 * riscv-tdep.c (riscv_register_name): Remove target description
11495 (riscv_gdbarch_init): Remove target description check.
11497 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11499 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11501 * riscv-tdep.h: Likewise.
11503 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11505 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11506 (riscv_pseudo_register_write): Delete.
11507 (riscv_gdbarch_init): Remove all use of pseudo registers.
11509 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11511 * record-btrace.c (btrace_print_lines): Replace cleanup
11512 parameter with RAII equivalents.
11513 (btrace_insn_history): Replace cleanup with RAII equivalents.
11514 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11515 make_cleanup_ui_out_tuple_begin_end): Remove.
11516 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11517 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11518 make_cleanup_ui_out_list_begin_end): Remove.
11520 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11522 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11523 parameter types to std::vector. Use bool.
11524 (record_btrace_wait): Replace VEC(tp_t) with
11525 std::vector<thread_info *>.
11526 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11528 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11530 * record-btrace.c (record_btrace_disable_callback): Remove.
11531 (struct scoped_btrace_disable): New.
11532 (record_btrace_open): Use scoped_btrace_disable.
11534 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11536 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11537 reading values from registers.
11539 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11541 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11544 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11546 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11547 change parameter type. Use GDB's print functions, and use
11548 core_addr_to_string where appropriate.
11549 (riscv_push_dummy_call): Use core_addr_to_string where
11550 appropriate, update call to riscv_print_arg_location, and reindent
11552 (riscv_return_value): Update call to riscv_print_arg_location.
11554 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11555 Tim Newsome <tim@sifive.com>
11556 Albert Ou <a0u@eecs.berkeley.edu>
11557 Darius Rad <darius@bluespec.com>
11559 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11560 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11561 (ALLDEPFILES): Add riscv-tdep.c
11562 * configure.tgt: Add riscv support.
11563 * riscv-tdep.c: New file.
11564 * riscv-tdep.h: New file.
11565 * NEWS: Mention new target.
11566 * MAINTAINERS: Add entry for riscv.
11568 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11570 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11571 fields within aggregates.
11573 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11575 * record-btrace.c (btrace_print_lines): Change type of flags to
11576 gdb_disassembly_flags.
11578 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11580 * fbsd-nat.c: Include "inf-ptrace.h".
11581 (USE_SIGTRAP_SIGINFO): Conditionally define.
11582 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11583 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11584 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11586 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11588 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11590 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11591 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11592 "supports_stopped_by_hw_breakpoint" target methods.
11594 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11596 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11597 * fbsd-nat.c (debug_fbsd_nat): New variable.
11598 (show_fbsd_nat_debug): New function.
11599 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11600 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11602 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11604 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11605 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11607 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11608 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11611 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11613 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11614 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11616 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11618 * charset.c (struct charset_vector): New.
11619 (charsets): Change type to charset_vector.
11620 (find_charset_names): Adjust.
11622 (_initialize_charset): Adjust.
11624 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11626 * progspace.h (struct program_space) <deleted_solibs>: Change
11627 type to std::vector<std::string>.
11628 * progspace.c (clear_program_space_solib_cache): Adjust.
11629 * breakpoint.c (print_solib_event): Adjust.
11630 (check_status_catch_solib): Adjust.
11631 * solib.c (update_solib_list): Adjust.
11632 * ui-out.h (class ui_out) <field_string>: New overload.
11633 * ui-out.c (ui_out::field_string): New overload.
11635 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11637 * progspace.h (struct program_space): Add constructor and
11638 destructor, initialize fields.
11639 (add_program_space): Remove.
11640 * progspace.c (add_program_space): Rename to...
11641 (program_space::program_space): ... this.
11642 (release_program_space): Rename to...
11643 (program_space::~program_space): ... this.
11644 (delete_program_space): Use delete to delete program_space.
11645 (initialize_progspace): Use new to allocate program_space.
11646 * inferior.c (add_inferior_with_spaces): Likewise.
11647 (clone_inferior_command): Likewise.
11648 * infrun.c (follow_fork_inferior): Likewise.
11649 (handle_vfork_child_exec_or_exit): Likewise.
11651 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11653 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11654 (delim_string_to_char_ptr_vec): Return std::vector of
11655 gdb::unique_xmalloc_ptr.
11656 (dirnames_to_char_ptr_vec_append): Take std::vector of
11657 gdb::unique_xmalloc_ptr.
11658 (dirnames_to_char_ptr_vec): Return std::vector of
11659 gdb::unique_xmalloc_ptr.
11660 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11661 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11662 (delim_string_to_char_ptr_vec): Return an std::vector of
11663 gdb::unique_xmalloc_ptr, adjust the code.
11664 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11665 gdb::unique_xmalloc_ptr, adjust the code.
11666 (dirnames_to_char_ptr_vec): Return an std::vector of
11667 gdb::unique_xmalloc_ptr, adjust the code.
11668 * auto-load.c (auto_load_safe_path_vec): Change type to
11669 std::vector of gdb::unique_xmalloc_ptr.
11670 (auto_load_expand_dir_vars): Return an std::vector of
11671 gdb::unique_xmalloc_ptr, adjust the code.
11672 (auto_load_safe_path_vec_update): Adjust.
11673 (filename_is_in_auto_load_safe_path_vec): Adjust.
11674 (auto_load_objfile_script_1): Adjust.
11675 * build-id.c (build_id_to_debug_bfd): Adjust.
11676 * linux-thread-db.c (thread_db_load_search): Adjust.
11677 * source.c (add_path): Adjust.
11679 * symfile.c (find_separate_debug_file): Adjust.
11680 * utils.c (do_free_char_ptr_vec): Remove.
11681 (make_cleanup_free_char_ptr_vec): Remove.
11683 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11686 * common/pathstuff.c: Conditionally include "<windows.h>".
11688 2018-03-01 Georg Sauthoff <mail@georg.so>
11691 * gcore.in: Quote variables and switch interpreter to bash.
11693 2018-03-01 Tom Tromey <tom@tromey.com>
11695 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11696 assertion. Add assertion for discriminant_index.
11697 (quirk_rust_enum): Use correct base type name in univariant case.
11699 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11701 * record.c (get_call_history_modifiers): Return a
11702 record_print_flags.
11703 (cmd_record_call_history): Adjust.
11704 * record-btrace.c (record_btrace_call_history): Adjust.
11705 (record_btrace_call_history_range): Adjust.
11706 (record_btrace_call_history_from): Adjust.
11707 * target-debug.h (target_debug_print_record_print_flags): New.
11708 * target-delegates.c: Re-generate.
11709 * target.c (target_call_history): Change flags type.
11710 (target_call_history_from): Likewise.
11711 (target_call_history_range): Likewise.
11712 * target.h (struct target_ops) <target_call_history>: Likewise.
11713 (target_call_history_from): Likewise.
11714 (target_call_history_range): Likewise.
11716 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11717 Simon Marchi <simon.marchi@polymtl.ca>
11719 * common/common-utils.c: Include "sys/stat.h".
11720 (is_regular_file): Move here from "source.c"; change return
11722 * common/common-utils.h (is_regular_file): New prototype.
11723 * common/pathstuff.c (contains_dir_separator): New function.
11724 * common/pathstuff.h (contains_dir_separator): New prototype.
11725 * source.c: Don't include "sys/stat.h".
11726 (is_regular_file): Move to "common/common-utils.c".
11728 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11730 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11731 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11732 * auto-load.c: Include "common/pathstuff.h".
11733 * common/common-def.h (current_directory): Move here.
11734 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11736 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11738 * common/pathstuff.c: New file.
11739 * common/pathstuff.h: New file.
11740 * compile/compile.c: Include "common/pathstuff.h".
11741 * defs.h (current_directory): Move to "common/common-defs.h".
11742 * dwarf2read.c: Include "common/pathstuff.h".
11743 * exec.c: Likewise.
11744 * guile/scm-safe-call.c: Likewise.
11745 * linux-thread-db.c: Likewise.
11746 * main.c: Likewise.
11747 * nto-tdep.c: Likewise.
11748 * objfiles.c: Likewise.
11749 * source.c: Likewise.
11750 * symtab.c: Likewise.
11751 * utils.c: Include "common/pathstuff.h".
11752 (gdb_realpath): Move to "common/pathstuff.c".
11753 (gdb_realpath_keepfile): Likewise.
11754 (gdb_abspath): Likewise.
11755 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11756 (gdb_realpath_keepfile): Likewise.
11757 (gdb_abspath): Likewise.
11759 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11761 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11762 wildcard process pid for super_resume for kernels with a
11765 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11767 * compile/compile.c (get_args): Add additional comments
11768 explaining function.
11770 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11771 Tom Tromey <tom@tromey.com>
11773 * target.h (memory_write_request_s): Remove typedef. Don't define
11775 (target_write_memory_blocks): Change argument to std::vector.
11776 (struct memory_write_request): Add constructor.
11777 * target-memory.c (compare_block_starting_address): Return bool.
11778 Change argument types.
11779 (claim_memory): Change arguments to use std::vector.
11780 (split_regular_and_flash_blocks, blocks_to_erase)
11781 (compute_garbled_blocks): Likewise.
11782 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11783 (target_write_memory_blocks): Change argument to std::vector.
11784 * symfile.c (struct load_section_data): Add constructor and
11785 destructor. Use std::vector for "requests".
11786 (struct load_progress_data): Add initializers.
11787 (load_section_callback): Update. Use "new".
11788 (clear_memory_write_data): Remove.
11789 (generic_load): Update.
11791 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11793 * arch/aarch64.h: Use common/tdesc.h.
11795 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11797 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11798 architecture with a 64-bit ABI.
11800 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11802 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11803 ahead of target description loading.
11805 2018-02-26 Tom Tromey <tom@tromey.com>
11807 * stack.c (backtrace_command_1): Update.
11808 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11810 * python/py-framefilter.c (py_print_frame)
11811 (gdbpy_apply_frame_filter): Change type of "flags".
11812 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11814 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11815 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11816 * extension.h (enum frame_filter_flag): Rename from
11817 frame_filter_flags.
11818 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11819 (apply_ext_lang_frame_filter): Change type of "flags".
11820 * extension.c (apply_ext_lang_frame_filter): Change type of
11822 * extension-priv.h (struct extension_language_ops)
11823 <apply_frame_filter>: Change type of "flags".
11825 2018-02-26 Tom Tromey <tom@tromey.com>
11828 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11829 off-by-one in py_end computation.
11830 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11832 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11835 2018-02-26 Tom Tromey <tom@tromey.com>
11837 * dwarf2read.c (struct variant_field): New.
11838 (struct nextfield) <variant>: New field.
11839 (dwarf2_add_field): Handle DW_TAG_variant_part.
11840 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11841 discriminated union.
11842 (read_structure_type): Handle DW_TAG_variant_part.
11843 (handle_struct_member_die): New function, extracted from
11844 process_structure_scope. Handle DW_TAG_variant.
11845 (process_structure_scope): Handle discriminated unions. Call
11846 handle_struct_member_die.
11848 2018-02-26 Tom Tromey <tom@tromey.com>
11850 * rust-lang.h (rust_last_path_segment): Declare.
11851 * rust-lang.c (rust_last_path_segment): Now public. Change
11853 (struct disr_info): Remove.
11854 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11855 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11856 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11857 (rust_enum_p, rust_enum_variant): New function.
11858 (rust_underscore_fields): Remove "offset" parameter.
11859 (rust_print_enum): New function.
11860 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11861 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11862 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11864 (rust_internal_print_type): New function, from rust_print_type.
11866 (rust_print_type): Call rust_internal_print_type.
11867 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11868 Update enum handling.
11869 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11870 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11871 (rust_union_quirks): New functions.
11872 (process_full_comp_unit, process_full_type_unit): Call
11874 (process_structure_scope): Update rust_unions if necessary.
11876 2018-02-26 Tom Tromey <tom@tromey.com>
11878 * value.h (value_union_variant): Declare.
11879 * valops.c (value_union_variant): New function.
11880 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11881 (struct discriminant_info): New.
11882 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11884 (struct main_type) <flag_discriminated_union>: New field.
11886 2018-02-26 Tom Tromey <tom@tromey.com>
11888 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11889 unittests/unpack-selftests.c.
11890 * unittests/unpack-selftests.c: New file.
11891 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11893 2018-02-26 Yao Qi <yao.qi@linaro.org>
11895 * dwarf2read.c (struct partial_die_info) <read>: New method.
11896 (read_partial_die): Remove the declaration.
11897 (load_partial_dies): Update.
11898 (partial_die_info::partial_die_info):
11899 (read_partial_die): Change it to partial_die_info::read.
11901 2018-02-26 Yao Qi <yao.qi@linaro.org>
11903 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11904 (fixup_partial_die): Remove declaration.
11905 (scan_partial_symbols): Update.
11906 (partial_die_parent_scope): Likewise.
11907 (partial_die_full_name): Likewise.
11908 (fixup_partial_die): Change it to partial_die_info::fixup.
11910 2018-02-26 Yao Qi <yao.qi@linaro.org>
11912 * dwarf2read.c (read_partial_die): Update the declaration.
11913 (load_partial_dies): Caller update.
11914 (read_partial_die): Remove one argument abbrev_len.
11916 2018-02-26 Yao Qi <yao.qi@linaro.org>
11918 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11919 assignment operator.
11920 (load_partial_dies): Use ctor and copy ctor.
11921 (read_partial_die): Update.
11922 (dwarf2_cu::find_partial_die): Use ctor.
11924 2018-02-26 Yao Qi <yao.qi@linaro.org>
11926 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11927 (find_partial_die_in_comp_unit): Change it to
11928 dwarf2_cu::find_partial_die.
11929 (find_partial_die): Update.
11931 2018-02-26 Yao Qi <yao.qi@linaro.org>
11933 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11936 2018-02-26 Yao Qi <yao.qi@linaro.org>
11938 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11940 2018-02-26 Alan Hayward <alan.hayward@arm.com>
11942 * arch/amd64.h: Use common/tdesc.h.
11943 * arch/i386.c: Likewise.
11944 * arch/i386.h: Likewise.
11945 * arch/tic6x.c: Likewise.
11946 * arch/tdesc.h: Move file from here...
11947 * common/tdesc.h: ...to here.
11948 * features/aarch64-core.c: Regenerate.
11949 * features/aarch64-fpu.c: Regenerate.
11950 * features/i386/32bit-avx.c: Regenerate.
11951 * features/i386/32bit-avx512.c: Regenerate.
11952 * features/i386/32bit-core.c: Regenerate.
11953 * features/i386/32bit-linux.c: Regenerate.
11954 * features/i386/32bit-mpx.c: Regenerate.
11955 * features/i386/32bit-pkeys.c: Regenerate.
11956 * features/i386/32bit-sse.c: Regenerate.
11957 * features/i386/64bit-avx.c: Regenerate.
11958 * features/i386/64bit-avx512.c: Regenerate.
11959 * features/i386/64bit-core.c: Regenerate.
11960 * features/i386/64bit-linux.c: Regenerate.
11961 * features/i386/64bit-mpx.c: Regenerate.
11962 * features/i386/64bit-pkeys.c: Regenerate.
11963 * features/i386/64bit-segments.c: Regenerate.
11964 * features/i386/64bit-sse.c: Regenerate.
11965 * features/i386/x32-core.c: Regenerate.
11966 * features/tic6x-c6xp.c: Regenerate.
11967 * features/tic6x-core.c: Regenerate.
11968 * features/tic6x-gp.c: Regenerate.
11969 * target-descriptions.c: Use common/tdesc.h.
11970 * target-descriptions.h: Likewise.
11972 2018-02-24 Tom Tromey <tom@tromey.com>
11974 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
11975 (try_thread_db_load_from_dir, thread_db_load_search): Use
11977 (info_auto_load_libthread_db_compare): Return bool. Change
11979 (info_auto_load_libthread_db): Use std::vector, std::string.
11982 2018-02-24 Tom Tromey <tom@tromey.com>
11984 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
11986 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
11988 * gdbarch.c: Rebuild.
11989 * gdbarch.h: Rebuild.
11990 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
11991 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
11992 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
11995 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
11997 * gdbtypes.h (sect_offset): Change type to uint64_t.
11998 (sect_offset_str): New function.
11999 * dwarf2read.c (create_addrmap_from_aranges): Use
12001 (error_check_comp_unit_head): Likewise.
12002 (create_debug_type_hash_table): Likewise.
12003 (read_cutu_die_from_dwo): Likewise.
12004 (init_cutu_and_read_dies): Likewise.
12005 (init_cutu_and_read_dies_no_follow): Likewise.
12006 (process_psymtab_comp_unit_reader): Likewise.
12007 (partial_die_parent_scope): Likewise.
12008 (peek_die_abbrev): Likewise.
12009 (process_queue): Likewise.
12010 (dwarf2_physname): Likewise.
12011 (read_namespace_alias): Likewise.
12012 (read_import_statement): Likewise.
12013 (create_dwo_cu_reader): Likewise.
12014 (create_cus_hash_table): Likewise.
12015 (lookup_dwo_cutu): Likewise.
12016 (inherit_abstract_dies): Likewise.
12017 (read_func_scope): Likewise.
12018 (read_call_site_scope): Likewise.
12019 (dwarf2_add_member_fn): Likewise.
12020 (read_common_block): Likewise.
12021 (read_module_type): Likewise.
12022 (read_typedef): Likewise.
12023 (read_subrange_type): Likewise.
12024 (load_partial_dies): Likewise.
12025 (read_partial_die): Likewise.
12026 (find_partial_die): Likewise.
12027 (read_str_index): Likewise.
12028 (dwarf2_string_attr): Likewise.
12029 (build_error_marker_type): Likewise.
12030 (lookup_die_type): Likewise.
12031 (dump_die_shallow): Likewise.
12032 (follow_die_ref): Likewise.
12033 (dwarf2_fetch_die_loc_sect_off): Likewise.
12034 (dwarf2_fetch_constant_bytes): Likewise.
12035 (follow_die_sig): Likewise.
12036 (get_signatured_type): Likewise.
12037 (get_DW_AT_signature_type): Likewise.
12038 (dwarf2_find_containing_comp_unit): Likewise.
12039 (set_die_type): Likewise.
12041 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12043 * arch/aarch64.c: Include "common-defs.h".
12044 * arch/amd64.c: Likewise.
12045 * arch/i386.c: Likewise.
12047 2018-02-21 Tom Tromey <tom@tromey.com>
12049 * value.h: (extract_field_op): Update.
12050 * eval.c (extract_field_op): Return a const char *.
12051 * expression.h (parse_expression_for_completion): Update.
12052 * completer.c (complete_expression): Update.
12053 (add_struct_fields): Make fieldname const.
12054 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12055 (mark_completion_tag, parse_exp_in_context_1): Update.
12056 (parse_expression_for_completion): Change "name" to
12057 unique_xmalloc_ptr*.
12059 2018-02-21 Tom Tromey <tom@tromey.com>
12061 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12063 2018-02-21 Yao Qi <yao.qi@linaro.org>
12065 * avr-tdep.c (avr_read_pc): Change parameter type to
12067 * gdbarch.sh (read_pc): Likewise.
12068 * gdbarch.c: Re-generated.
12069 * gdbarch.h: Re-generated.
12070 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12072 * ia64-tdep.c (ia64_read_pc): Likewise.
12073 * mips-tdep.c (mips_read_pc): Likewise.
12074 * spu-tdep.c (spu_read_pc): Likewise.
12076 2018-02-21 Yao Qi <yao.qi@linaro.org>
12078 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12079 * regcache-dump.c: New file.
12080 * regcache.c: Move register_dump to regcache-dump.c.
12081 (maintenance_print_registers): Likewise.
12082 (maintenance_print_raw_registers): Likewise.
12083 (maintenance_print_cooked_registers): Likewise.
12084 (maintenance_print_register_groups): Likewise.
12085 (maintenance_print_remote_registers): Likewise.
12086 (_initialize_regcache): Likewise.
12087 * regcache.h (register_dump): Moved from regcache.c.
12089 2018-02-21 Yao Qi <yao.qi@linaro.org>
12091 * regcache.c (regcache::regcache): Update.
12092 (regcache::invalidate): Move it to detached_regcache::invalidate.
12093 (get_thread_arch_aspace_regcache): Update.
12094 (regcache::raw_update): Update.
12095 (regcache::cooked_read): Remove some code.
12096 (regcache::cooked_read_value): Likewise.
12097 (regcache::raw_write): Remove assert on m_readonly_p.
12098 (regcache::raw_supply_integer): Move it to
12099 detached_regcache::raw_supply_integer.
12100 (regcache::raw_supply_zeroed): Likewise.
12101 * regcache.h (detached_regcache) <raw_supply_integer>: New
12103 <raw_supply_zeroed, invalidate>: Likewise.
12104 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12105 <invalidate>: Likewise.
12106 <m_readonly_p>: Removed.
12108 2018-02-21 Yao Qi <yao.qi@linaro.org>
12110 * infcmd.c (get_return_value): Let stop_regs point to
12111 get_current_regcache.
12112 * regcache.c (regcache::regcache): Remove.
12113 (register_dump_reg_buffer): New class.
12114 (regcache_print): Adjust.
12115 * regcache.h (regcache): Remove constructors.
12117 2018-02-21 Yao Qi <yao.qi@linaro.org>
12119 * regcache.c (class register_dump): New class.
12120 (register_dump_regcache, register_dump_none): New class.
12121 (register_dump_remote, register_dump_groups): New class.
12122 (regcache_print): Update.
12123 * regcache.h (regcache_dump_what): Move it to regcache.c.
12124 (regcache) <dump>: Remove.
12126 2018-02-21 Yao Qi <yao.qi@linaro.org>
12128 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12130 (jit_unwind_reg_set_impl): Call raw_supply.
12131 (jit_frame_sniffer): Use reg_buffer_rw.
12132 * record-full.c (record_full_core_regbuf): Change its type.
12133 (record_full_core_open_1): Use reg_buffer_rw.
12134 (record_full_close): Likewise.
12135 (record_full_core_fetch_registers): Use regcache->raw_supply.
12136 (record_full_core_store_registers): Likewise.
12137 * regcache.c (regcache::get_register_status): Move it to
12139 (regcache_raw_set_cached_value): Remove.
12140 (regcache::raw_set_cached_value): Remove.
12141 (regcache::raw_write): Call raw_supply.
12142 (regcache::raw_supply): Move it to reg_buffer_rw.
12143 * regcache.h (regcache_raw_set_cached_value): Remove.
12144 (reg_buffer_rw): New class.
12146 2018-02-21 Yao Qi <yao.qi@linaro.org>
12148 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12149 readonly_detached_regcache.
12150 (dummy_frame_prev_register): Use regcache->cooked_read.
12151 * frame.c (frame_save_as_regcache): Change return type.
12152 (frame_pop): Update.
12153 * frame.h (frame_save_as_regcache): Update declaration.
12154 * inferior.h (get_infcall_suspend_state_regcache): Update
12156 * infrun.c (infcall_suspend_state) <registers>: use
12157 readonly_detached_regcache.
12158 (save_infcall_suspend_state): Don't use regcache_dup.
12159 (get_infcall_suspend_state_regcache): Change return type.
12160 * linux-fork.c (struct fork_info) <savedregs>: Change to
12161 readonly_detached_regcache.
12163 (fork_save_infrun_state): Don't use regcache_dup.
12164 (info_checkpoints_command): Adjust.
12165 * mi/mi-main.c (register_changed_p): Update declaration.
12166 (mi_cmd_data_list_changed_registers): Use
12167 readonly_detached_regcache.
12168 (register_changed_p): Change parameter type to
12169 readonly_detached_regcache.
12170 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12171 readonly_detached_regcache.
12172 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12173 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12175 (regcache::save): Move it to reg_buffer.
12176 (regcache::restore): Change parameter type.
12177 (regcache_dup): Remove.
12178 * regcache.h (reg_buffer) <save>: New method.
12179 (readonly_detached_regcache): New class.
12180 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12181 readonly_detached_regcache.
12182 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12184 2018-02-21 Yao Qi <yao.qi@linaro.org>
12186 * frame.c (frame_save_as_regcache): Use regcache method save.
12187 (frame_pop): Use regcache method restore.
12188 * infrun.c (restore_infcall_suspend_state): Likewise.
12189 * linux-fork.c (fork_load_infrun_state): Likewise.
12190 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12192 * regcache.c (regcache_save): Remove.
12193 (regcache::restore): More asserts.
12194 (regcache_cpy): Remove.
12195 * regcache.h (regcache_save): Remove the declaration.
12196 (regcache::restore): Move from private to public.
12197 Remove the friend declaration of regcache_cpy.
12198 (regcache_cpy): Remove declaration.
12200 2018-02-21 Yao Qi <yao.qi@linaro.org>
12202 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12203 parameter type to 'readable_regcache *'.
12204 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12205 * arm-tdep.c (arm_neon_quad_read): Likewise.
12206 (arm_pseudo_read): Likewise.
12207 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12208 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12209 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12210 * gdbarch.c: Re-generated.
12211 * gdbarch.h: Re-generated.
12212 * gdbarch.sh (pseudo_register_read): Change parameter type to
12213 'readable_regcache *'.
12214 (pseudo_register_read_value): Likewise.
12215 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12216 (h8300_pseudo_register_read): Likewise.
12217 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12218 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12219 (i386_pseudo_register_read_into_value): Likewise.
12220 (i386_pseudo_register_read_value): Likewise.
12221 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12223 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12224 * m32c-tdep.c (m32c_raw_read): Likewise.
12225 (m32c_read_flg): Likewise.
12226 (m32c_banked_register): Likewise.
12227 (m32c_banked_read): Likewise.
12228 (m32c_sb_read): Likewise.
12229 (m32c_part_read): Likewise.
12230 (m32c_cat_read): Likewise.
12231 (m32c_r3r2r1r0_read): Likewise.
12232 (m32c_pseudo_register_read): Likewise.
12233 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12234 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12235 (mep_pseudo_cr64_read): Likewise.
12236 (mep_pseudo_register_read): Likewise.
12237 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12238 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12239 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12240 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12241 (regcache::cooked_read): Likewise.
12242 (regcache::cooked_read_value): Likewise.
12243 (regcache_cooked_read_signed):
12244 (regcache::cooked_read): Likewise.
12245 * regcache.h (readable_regcache): New class.
12246 (regcache): Inherit readable_regcache. Move some methods to
12248 * rl78-tdep.c (rl78_pseudo_register_read): Change
12249 parameter type to 'readable_regcache *'.
12250 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12251 (e500_pseudo_register_read): Change parameter type to
12252 'readable_regcache *'.
12253 (dfp_pseudo_register_read): Likewise.
12254 (vsx_pseudo_register_read): Likewise.
12255 (efpr_pseudo_register_read): Likewise.
12256 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12257 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12258 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12259 (sh64_pseudo_register_read): Likewise.
12260 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12261 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12262 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12263 (spu_pseudo_register_read): Likewise.
12264 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12265 (xtensa_pseudo_register_read): Likewise.
12267 2018-02-21 Yao Qi <yao.qi@linaro.org>
12269 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12270 (regcache::arch): Move it to reg_buffer::arch.
12271 (regcache::register_buffer): Likewise.
12272 (regcache::assert_regnum): Likewise.
12273 (regcache::num_raw_registers): Likewise.
12274 * regcache.h (reg_buffer): New class.
12275 (regcache): Inherit reg_buffer.
12277 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12279 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12280 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12282 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12284 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12286 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12288 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12289 (SFILES): Remove common/*.c files.
12290 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12291 * common/common.host: Add common reference.
12292 * configure.ac: Likewise.
12293 * configure: Regenerate.
12295 2018-02-16 Yao Qi <yao.qi@linaro.org>
12297 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12298 (block_initialize_namespace): Use new.
12299 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12300 (dwarf2_free_objfile): Use delete.
12301 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12302 (copy_type_recursive): Use new.
12303 * gdb_obstack.h (allocate_on_obstack): New.
12305 2018-02-15 Yao Qi <yao.qi@linaro.org>
12308 * inferior.c (exit_inferior_1): Reset inf->control.
12310 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12312 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12315 2018-02-14 Pedro Alves <palves@redhat.com>
12317 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12318 frame_cleanup_after_sniffer on exception.
12320 2018-02-14 Tom Tromey <tom@tromey.com>
12322 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12324 (solib_bfd_open): Make pathname const.
12325 * solib.c (solib_bfd_open): Make pathname const.
12326 * solib-spu.c (spu_bfd_fopen): Make name const.
12327 (spu_bfd_open): Make pathname const.
12328 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12329 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12331 2018-02-14 Tom Tromey <tom@tromey.com>
12333 * symfile.c (symfile_bfd_open): Update.
12334 * source.h (openp, source_full_path_of, find_and_open_source):
12335 Change argument type to unique_xmalloc_ptr.
12336 * source.c (openp): Take a unique_xmalloc_ptr.
12337 (source_full_path_of, find_and_open_source): Likewise.
12338 (open_source_file, symtab_to_fullname): Update.
12339 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12340 unique_xmalloc_ptr.
12341 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12342 (exec_file_find): Update.
12343 * psymtab.c (psymtab_to_fullname): Update.
12344 * nto-tdep.h (nto_find_and_open_solib): Update.
12345 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12346 unique_xmalloc_ptr.
12347 * exec.c (exec_file_attach): Update.
12348 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12349 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12351 2018-02-14 Tom Tromey <tom@tromey.com>
12353 * solib.c: Include source.h.
12354 * nto-tdep.c: Include source.h.
12355 * mi/mi-cmd-env.c: Include source.h.
12356 * infcmd.c: Include source.h.
12357 * exec.c: Include source.h.
12358 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12359 (add_path, directory_switch, source_path, init_source_path): Move
12361 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12362 (add_path, directory_switch, source_path, init_source_path):
12365 2018-02-14 Tom Tromey <tom@tromey.com>
12367 * solist.h (exec_file_find, solib_find): Return
12368 unique_xmalloc_ptr.
12369 (solib_bfd_fopen): Take a const char *.
12370 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12371 (exec_file_find, solib_find): Likewise.
12372 (solib_bfd_fopen): Do not take ownership of "pathname".
12373 (solib_bfd_open): Use unique_xmalloc_ptr.
12374 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12375 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12376 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12377 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12379 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12381 * ada-lang.c (name_match_type_from_name): Remove reference to
12382 ada_name_for_lookup in function's documentation.
12383 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12385 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12387 * defs.h (enum openp_flags): New enum.
12388 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12389 Move to enum openp_flags.
12390 (openp_flags): New enum flags.
12391 (openp): Change parameter type to openp_flags.
12392 * source.c (openp): Change parameter type to openp_flags.
12393 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12394 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12396 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12398 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12401 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12403 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12405 (class dwarf2_queue_guard): ...the destructor of this new class.
12406 (dw2_do_instantiate_symtab): Create instance of the new class
12407 dwarf2_queue_guard, remove cleanup.
12409 2018-02-09 Tom Tromey <tom@tromey.com>
12411 * source.c (find_source_lines): Don't reference past the end of
12414 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12416 * remote.c (remote_btrace_maybe_reopen): Change error message.
12417 * btrace.c (btrace_enable): Likewise.
12418 (parse_xml_btrace): Likewise.
12419 (parse_xml_btrace_conf): Likewise.
12421 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12423 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12424 (linux_enable_pt, linux_enable_bts): Call
12425 diagnose_perf_event_open_fail.
12427 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12429 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12430 Remove parameter and change return type. Update callers. Move it.
12431 (linux_enable_bts, linux_enable_pt): Improve error message.
12432 (linux_enable_pt): Remove zero buffer size check.
12433 (linux_enable_btrace): Improve error messages. Remove NULL return
12436 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12438 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12439 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12440 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12441 (linux_supports_pt, linux_supports_btrace): Remove.
12442 (linux_enable_bts): Call cpu_supports_bts.
12443 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12444 * remote.c (remote_supports_btrace): Remove.
12445 (init_remote_ops): Remove remote_supports_btrace.
12446 * target-delegates.c: Regenerated.
12447 * target.c (target_supports_btrace): Remove.
12448 * target.h (target_ops) <to_supports_btrace>: Remove
12449 (target_supports_btrace): Remove.
12450 * x86-linux-nat.c (x86_linux_create_target): Remove
12451 linux_supports_btrace.
12453 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12455 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12457 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12458 exception and use message in own exception.
12460 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12462 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12463 (perf_event_pt_event_type): Use gdb_file_up.
12464 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12465 scoped_fd, and scoped_mmap.
12467 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12469 * common/scoped_mmap.h: New.
12470 * unittests/scoped_mmap-selftest.c: New.
12471 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12472 unittests/scoped_mmap-selftest.c.
12474 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12476 * common/scoped_fd.h: New.
12477 * unittests/scoped_fd-selftest.c: New.
12478 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12479 unittests/scoped_fd-selftest.c.
12481 2018-02-09 Tom Tromey <tom@tromey.com>
12483 * auto-load.c (auto_load_section_scripts): Use
12484 gdb::unique_xmalloc_ptr.
12486 2018-02-09 Tom Tromey <tom@tromey.com>
12488 * auto-load.c (execute_script_contents): Use std::string.
12490 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12492 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12493 Python function, rather than a new command.
12495 2018-02-08 Tom Tromey <tom@tromey.com>
12497 * solib.c (solib_find_1): Use std::string.
12498 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12500 2018-02-08 Tom Tromey <tom@tromey.com>
12502 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12504 2018-02-08 Tom Tromey <tom@tromey.com>
12506 * source.c (find_source_lines): Use gdb::def_vector.
12508 2018-02-08 Tom Tromey <tom@tromey.com>
12510 * macrocmd.c (struct temporary_macro_definition): New.
12511 (macro_define_command): Use temporary_macro_definition. Remove
12513 (free_macro_definition_ptr): Remove.
12515 2018-02-08 Tom Tromey <tom@tromey.com>
12517 * macroexp.c (maybe_expand): Use std::string.
12519 2018-02-08 Tom Tromey <tom@tromey.com>
12521 * macroexp.c (struct macro_buffer): Add initializers for some
12523 (init_buffer, init_shared_buffer, free_buffer)
12524 (free_buffer_return_text): Remove.
12525 (macro_buffer): New constructors.
12526 (~macro_buffer): New destructor.
12527 (macro_buffer::set_shared): New method.
12528 (macro_buffer::resize_buffer, macro_buffer::appendc)
12529 (macro_buffer::appendmem): Now methods, not free functions.
12530 (set_token, append_tokens_without_splicing, stringify)
12531 (macro_stringify): Update.
12532 (gather_arguments): Change return type. Remove argc_p argument,
12533 add args_ptr argument. Use std::vector.
12534 (substitute_args): Remove argc argument. Accept std::vector.
12535 (expand): Update. Use std::vector.
12536 (scan, macro_expand, macro_expand_next): Update.
12538 2018-02-08 Tom Tromey <tom@tromey.com>
12540 * symtab.c (default_collect_symbol_completion_matches_break_on):
12541 Use unique_xmalloc_ptr.
12542 * macroscope.h: (sal_macro_scope, user_macro_scope)
12543 (default_macro_scope): Return unique_xmalloc_ptr.
12544 * macroscope.c (sal_macro_scope, user_macro_scope)
12545 (default_macro_scope): Return unique_xmalloc_ptr.
12546 * macroexp.h (macro_expand, macro_expand_once): Return
12547 unique_xmalloc_ptr.
12548 * macroexp.c (macro_expand, macro_expand_once): Return
12549 unique_xmalloc_ptr.
12550 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12551 (info_macro_command, info_macros_command): Use
12552 unique_xmalloc_ptr.
12553 * compile/compile-c-support.c (write_macro_definitions): Use
12554 unique_xmalloc_ptr.
12555 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12557 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12559 * value.c (value_static_field): Assign field type instead of
12560 containing type when returning an optimized out value.
12562 2018-02-06 Yao Qi <yao.qi@linaro.org>
12564 * ft32-tdep.c (ft32_read_pc): Remove.
12565 (ft32_write_pc): Remove.
12566 (ft32_gdbarch_init): Update.
12567 * m32r-tdep.c (m32r_read_pc): Remove.
12568 (m32r_gdbarch_init): Update.
12569 * mep-tdep.c (mep_read_pc): Remove.
12570 (mep_gdbarch_init): Update.
12571 * microblaze-tdep.c (microblaze_write_pc): Remove.
12572 (microblaze_gdbarch_init): Update.
12573 * mn10300-tdep.c (mn10300_read_pc): Remove.
12574 (mn10300_write_pc): Remove.
12575 (mn10300_gdbarch_init): Update.
12576 * moxie-tdep.c (moxie_read_pc): Remove.
12577 (moxie_write_pc): Remove.
12578 (moxie_gdbarch_init): Update.
12580 2018-02-06 Yao Qi <yao.qi@linaro.org>
12582 * expprint.c (print_subexp_standard): Handle
12583 OP_F77_UNDETERMINED_ARGLIST.
12584 (dump_subexp_body_standard): Likewise.
12586 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12588 * target-descriptions.c (tdesc_element_visitor) Add empty
12590 (tdesc_type): Move make_gdb_type from here.
12591 (tdesc_type_builtin): Likewise.
12592 (tdesc_type_vector): Likewise.
12593 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12594 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12595 (make_gdb_type_union): Likewise.
12596 (make_gdb_type_flags): Likewise.
12597 (make_gdb_type_enum): Likewise.
12598 (make_gdb_type): New function.
12599 (tdesc_register_type): Use static make_gdb_type.
12601 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12603 * infcmd.c (default_print_one_register_info): Align natural-format
12604 column values consistently one under another.
12605 (pad_to_column): New function.
12607 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12609 * dwarf2read.c (dwarf2_physname): Move commment.
12611 2018-02-01 Leszek Swirski <leszeks@google.com>
12613 * varobj.c (varobj_formatted_print_options): Allow recursive
12614 pretty printing if pretty printing is enabled.
12616 2018-02-01 Leszek Swirski <leszeks@google.com>
12618 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12619 names after a structop as a filename.
12621 2018-02-01 Yao Qi <yao.qi@linaro.org>
12623 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12624 (arm_record_coproc_data_proc): Likewise.
12626 2018-02-01 Yao Qi <yao.qi@linaro.org>
12628 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12630 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12632 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12633 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12635 2018-01-31 Pedro Alves <palves@redhat.com>
12637 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12638 * inflow.c (child_terminal_save_inferior): Wrap reference to
12639 tcgetpgrp in HAVE_TERMIOS_H.
12640 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12642 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12643 always iterate over all inferiors.
12644 (gdbsim_cntrl_c): Adjust.
12645 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12647 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12649 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12650 index type is objfile-owned if the element type is as well.
12652 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12656 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12658 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12659 "features/s390x-linux64.c".
12660 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12661 s390_linux32 and s390x_linux64.
12662 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12664 * s390-tdep.c: Include "features/s390-linux32.c" and
12665 "features/s390x-linux64.c".
12666 (s390_tdesc_valid): Add check for tdesc_has_registers.
12667 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12668 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12669 tdesc_s390x_linux64.
12670 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12671 tdesc_s390x_linux64 to...
12672 * s390-tdep.h: ...here.
12674 2018-01-30 Pedro Alves <palves@redhat.com>
12677 * config.in, configure: Regenerate.
12678 * configure.ac: Check for getpgid.
12679 * go32-nat.c (go32_pass_ctrlc): New.
12680 (go32_target): Install it.
12681 * inf-child.c (inf_child_target): Install
12682 child_terminal_save_inferior, child_pass_ctrlc and
12684 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12685 (inf_ptrace_target): No longer install it.
12686 * infcmd.c (interrupt_target_1): Adjust.
12687 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12688 (child_interrupt): Declare.
12689 (inferior::terminal_state): New.
12690 * inflow.c (struct terminal_info): Update comments.
12691 (inferior_process_group): Delete.
12692 (terminal_is_ours): Delete.
12693 (gdb_tty_state): New.
12694 (child_terminal_init): Adjust.
12695 (is_gdb_terminal, sharing_input_terminal_1)
12696 (sharing_input_terminal): New functions.
12697 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12698 Set the process's actual process group in the foreground if
12699 possible. Handle is_ours_for_output/is_ours distinction. Don't
12700 mark terminal as the inferior's if not sharing GDB's terminal.
12701 Don't check attach_flag.
12702 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12703 pass down a target_terminal_state.
12704 (child_terminal_save_inferior): New, factored out from ...
12705 (child_terminal_ours_1): ... this. Handle
12706 target_terminal_state::is_ours_for_output.
12707 (child_interrupt, child_pass_ctrlc): New.
12708 (inflow_inferior_exit): Clear the inferior's terminal_state.
12709 (copy_terminal_info): Copy the inferior's terminal state.
12710 (_initialize_inflow): Remove reference to terminal_is_ours.
12711 * inflow.h (inferior_process_group): Delete.
12712 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12713 * procfs.c (procfs_target): Don't install procfs_interrupt.
12714 (procfs_interrupt): Delete.
12715 * remote.c (remote_serial_quit_handler): Adjust.
12716 (remote_interrupt): Remove ptid parameter. Adjust.
12717 * target-delegates.c: Regenerate.
12718 * target.c: Include "terminal.h".
12719 (target_terminal::terminal_state): Rename to ...
12720 (target_terminal::m_terminal_state): ... this.
12721 (target_terminal::init): Adjust.
12722 (target_terminal::inferior): Adjust to per-inferior
12724 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12725 (target_terminal::ours, target_terminal::ours_for_output): Use
12726 target_terminal_is_ours_kind.
12727 (target_interrupt): Remove ptid parameter. Adjust.
12728 (default_target_pass_ctrlc): Adjust.
12729 * target.h (target_ops::to_terminal_save_inferior): New field.
12730 (target_ops::to_interrupt): Remove ptid_t parameter.
12731 (target_interrupt): Remove ptid_t parameter. Update comment.
12732 (target_pass_ctrlc): Update comment.
12733 * target/target.h (target_terminal_state): New scoped enum,
12734 factored out of ...
12735 (target_terminal::terminal_state): ... here.
12736 (target_terminal::inferior): Update comments.
12737 (target_terminal::restore_inferior): New.
12738 (target_terminal::is_inferior, target_terminal::is_ours)
12739 (target_terminal::is_ours_for_output): Adjust.
12740 (target_terminal::scoped_restore_terminal_state): Adjust to
12741 rename, and call restore_inferior() instead of inferior().
12742 (target_terminal::scoped_restore_terminal_state::m_state): Change
12744 (target_terminal::terminal_state): Rename to ...
12745 (target_terminal::m_terminal_state): ... this and change type.
12747 2018-01-30 Pedro Alves <palves@redhat.com>
12749 * linux-nat.c (wait_for_signal): New function.
12750 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12752 (async_terminal_is_ours)
12753 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12754 (linux_nat_add_target): Don't override
12755 to_terminal_inferior/to_terminal_ours.
12757 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12759 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12761 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12763 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12764 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12765 dwarf2_per_objfile_free here.
12766 (dwarf2_per_objfile_free): Remove.
12767 (_initialize_dwarf2_read): Don't register
12768 dwarf2_per_objfile_free as a registry cleanup.
12770 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12772 Avoid compilation errors in MinGW native builds
12774 The error is triggered by including python-internal.h, and the
12777 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12778 from build-gnulib/import/math.h:27,
12779 from d:/usr/Python26/include/pyport.h:235,
12780 from d:/usr/Python26/include/Python.h:58,
12781 from python/python-internal.h:94,
12782 from python/py-arch.c:24:
12783 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12787 This happens because Python headers define 'hypot' to expand t
12788 '_hypot' in the Windows builds.
12789 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12790 'hypoth'. This avoids a compilation error.
12792 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12794 * MAINTAINERS (Write After Approval): Fix ordering.
12796 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12798 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12800 2018-01-26 Alan Modra <amodra@gmail.com>
12802 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12803 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12804 Remove nop. Make const. Comment.
12805 (powerpc32_plt_stub_so_2): New.
12806 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12807 Correct count. Update uses.
12808 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12809 Move common code reading PLT entry word. Correct
12810 powerpc32_plt_stub PLT address calculation.
12811 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12812 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12813 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12814 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12815 (ppc64_standard_linkage8): Likewise.
12816 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12817 Correct insns description.
12818 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12820 2018-01-24 Pedro Alves <palves@redhat.com>
12822 GCC PR libstdc++/83906
12823 * gdbtypes.c (operator==(const dynamic_prop &,
12824 const dynamic_prop &)): New.
12825 (operator==(const range_bounds &, const range_bounds &)): New.
12826 (check_types_equal): Use them instead of memcmp.
12827 * gdbtypes.h (operator==(const dynamic_prop &,
12828 const dynamic_prop &)): Declare.
12829 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12830 (operator==(const range_bounds &, const range_bounds &)): Declare.
12831 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12833 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12835 * s390-linux-tdep.c (s390_record_address_mask)
12836 (s390_record_calc_disp_common, s390_record_calc_disp)
12837 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12838 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12839 (s390_process_record): Move to s390-tdep.c.
12840 (s390_linux_init_abi_any): Adjust.
12841 * s390-tdep.c (s390_record_address_mask)
12842 (s390_record_calc_disp_common, s390_record_calc_disp)
12843 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12844 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12845 (s390_process_record): Moved from s390-linux-tdep.c
12846 (s390_gdbarch_init): Adjust.
12848 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12850 * s390-linux-nat.c (s390-tdep.h): New include.
12851 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12852 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12853 (ALLDEPFILES): Add s390-tdep.c.
12854 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12855 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12856 * s390-tdep.h: ...this. New file.
12857 * s390-linux-tdep.c (s390-tdep.h): New include.
12858 (_initialize_s390_tdep): Rename to...
12859 (_initialize_s390_linux_tdep): ...this and adjust.
12860 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12861 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12863 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12864 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12865 (s390_is_partial_instruction, s390_software_single_step)
12866 (is_non_branch_ril, s390_displaced_step_copy_insn)
12867 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12868 (s390_prologue_data, s390_addr, s390_store, s390_load)
12869 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12870 (s390_register_call_saved, s390_guess_tracepoint_registers)
12871 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12872 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12873 (s390_pseudo_register_name, s390_pseudo_register_type)
12874 (s390_pseudo_register_read, s390_pseudo_register_write)
12875 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12876 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12877 (s390_addr_bits_remove, s390_address_class_type_flags)
12878 (s390_address_class_type_flags_to_name)
12879 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12880 (s390_function_arg_float, s390_function_arg_vector)
12881 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12882 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12883 (s390_frame_align, s390_register_return_value, s390_return_value)
12884 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12885 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12886 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12887 (s390_trad_frame_prev_register, s390_unwind_cache)
12888 (s390_prologue_frame_unwind_cache)
12889 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12890 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12891 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12892 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12893 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12894 (s390_frame_base_address, s390_local_base_address)
12895 (s390_frame_base, s390_gcc_target_options)
12896 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12897 (s390_validate_reg_range, s390_tdesc_valid)
12898 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12899 * s390-tdep.c: ...this. New file.
12901 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12903 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12904 (s390_process_record, s390_gdbarch_tdep_alloc)
12905 (s390_linux_init_abi_any): Use/set new hook.
12907 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12909 * s390-linux-tdep.c (osabi.h): New include.
12910 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12911 (s390_linux_init_abi_any): New functions.
12912 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12914 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12916 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12917 tdesc_has_registers check
12919 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12921 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12922 (s390_validate_reg_range): New macro.
12923 (s390_gdbarch_init): Adjust.
12925 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12927 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12928 (s390_gdbarch_tdep_alloc): Adjust.
12929 (s390_gdbarch_init): Adjust.
12931 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12933 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12934 <have_tdb>: Change type to bool.
12935 (s390_gdbarch_tdep_alloc): Adjust.
12936 (s390_gdbarch_init): Adjust.
12938 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12940 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
12941 (gdbarch_tdep) <have_upper, have_vx>: New fields.
12942 (s390_gdbarch_tdep_alloc): New function.
12943 (s390_gdbarch_init): Allocate tdep at start and use its fields
12944 instead of separate variables.
12946 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12948 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
12949 when looking for cached gdbarch and add comment for remaining.
12951 2018-01-22 Pedro Alves <palves@redhat.com>
12952 Sergio Durigan Junior <sergiodj@redhat.com>
12954 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
12957 2018-01-22 Maciej W. Rozycki <macro@mips.com>
12959 * MAINTAINERS: Update my company e-mail address.
12961 2018-01-22 Yao Qi <yao.qi@linaro.org>
12963 * regcache.c (cooked_write_test): New function.
12964 (_initialize_regcache): Register the test.
12966 2018-01-22 Yao Qi <yao.qi@linaro.org>
12968 * ia64-tdep.c (ia64_pseudo_register_read): Call
12969 regcache->cooked_read instead of regcache_cooked_read_unsigned.
12970 * m32c-tdep.c (m32c_cat_read): Likewise.
12971 (m32c_r3r2r1r0_read): Likewise.
12972 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12973 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12975 2018-01-22 Yao Qi <yao.qi@linaro.org>
12977 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
12978 method raw_read instead of regcache_raw_read.
12979 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12980 * arm-tdep.c (arm_neon_quad_read): Likewise.
12981 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12982 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12983 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12984 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
12985 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12986 (i386_pseudo_register_read_into_value): Likewise.
12987 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12988 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12989 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12990 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
12991 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
12992 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12993 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12994 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12995 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
12997 2018-01-22 Yao Qi <yao.qi@linaro.org>
12999 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13000 * configure.tgt: Remove target mt.
13001 * mt-tdep.c: Remove.
13002 * regcache.c (cooked_read_test): Remove the check for mt.
13004 2018-01-22 Yao Qi <yao.qi@linaro.org>
13006 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13007 instead of gdbarch_pseudo_register_read_value.
13009 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13011 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13014 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13016 * linespec.c (create_sals_line_offset): Remove code that preserved
13017 the symtab_and_line's line number.
13019 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13021 * varobj.c (varobj_create): Don't set valid_block when creating a
13024 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13026 * varobj.c (varobj_create): Remove out of date comment.
13028 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13031 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13032 updating innermost block.
13033 * parse.c (innermost_block_tracker::update): Take extra type
13034 parameter, and check types match before updating innermost block.
13035 (write_dollar_variable): Update innermost block for registers.
13036 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13037 (innermost_block_tracker::innermost_block_tracker): Initialise
13039 (innermost_block_tracker::reset): Take type parameter.
13040 (innermost_block_tracker::update): Take type parameter, and pass
13041 type through as needed.
13042 (innermost_block_tracker::m_types): New member.
13043 * varobj.c (varobj_create): Pass type when reseting innermost
13046 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13048 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13049 * ada-lang.c (resolve_subexp): Likewise.
13050 * breakpoint.c (set_breakpoint_condition) Likewise.
13051 (watch_command_1) Likewise.
13052 * c-exp.y (variable): Likewise.
13053 * d-exp.y (PrimaryExpression): Likewise.
13054 * f-exp.y (variable): Likewise.
13055 * go-exp.y (variable): Likewise.
13056 * m2-exp.y (variable): Likewise.
13057 * objfiles.c (objfile::~objfile): Likewise.
13058 * p-exp.y (variable): Likewise.
13059 * parse.c (innermost_block): Change type.
13060 * parser-defs.h (class innermost_block_tracker): New.
13061 (innermost_block): Change to innermost_block_tracker.
13062 * printcmd.c (display_command): Switch to innermost_block API.
13063 (do_one_display): Likewise.
13064 * rust-exp.y (do_one_display): Likewise.
13065 * symfile.c (clear_symtab_users): Likewise.
13066 * varobj.c (varobj_create): Switch to innermost_block API, replace
13067 use of innermost_block with block stored on varobj object.
13069 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13071 * expression.h (innermost_block): Remove declaration.
13072 * varobj.c: Add 'parser-defs.h' include.
13074 2018-01-19 Tom Tromey <tom@tromey.com>
13076 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13077 symbols in the static and global blocks.
13079 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13081 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13082 gdb_ptrace.h, and move including gdb_wait.h ...
13083 * nat/linux-ptrace.h: ... to here.
13085 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13087 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13088 inf_ptrace_detach_success.
13089 (inf_ptrace_detach_success): Add inferior parameter, use it
13090 instead of inferior_ptid, pass it to detach_inferior.
13091 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13093 * inferior.c (detach_inferior): Add overload that takes an
13095 * inferior.h (detach_inferior): Likewise.
13096 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13097 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13098 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13100 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13102 * target.h (struct target_ops) <to_detach>: Add inferior
13104 (target_detach): Likewise.
13105 * target.c (dispose_inferior): Pass inferior down.
13106 (target_detach): Pass inferior down. Assert that it is equal to
13107 the current inferior.
13108 * aix-thread.c (aix_thread_detach): Pass inferior down.
13109 * corefile.c (core_file_command): Pass current_inferior() down.
13110 * corelow.c (core_detach): Add inferior parameter.
13111 * darwin-nat.c (darwin_detach): Likewise.
13112 * gnu-nat.c (gnu_detach): Likewise.
13113 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13114 * infcmd.c (detach_command): Pass current_inferior() down to
13116 * infrun.c (follow_fork_inferior): Pass parent_inf to
13118 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13120 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13121 * linux-thread-db.c (thread_db_detach): Likewise.
13122 * nto-procfs.c (procfs_detach): Likewise.
13123 * procfs.c (procfs_detach): Likewise.
13124 * record.c (record_detach): Likewise.
13125 * record.h (struct inferior): Forward-declare.
13126 (record_detach): Add inferior parameter.
13127 * remote-sim.c (gdbsim_detach): Likewise.
13128 * remote.c (remote_detach_1): Likewise.
13129 (remote_detach): Likewise.
13130 (extended_remote_detach): Likewise.
13131 * sol-thread.c (sol_thread_detach): Likewise.
13132 * target-debug.h (target_debug_print_inferior_p): New macro.
13133 * target-delegates.c: Re-generate.
13134 * top.c (kill_or_detach): Pass inferior down to target_detach.
13135 * windows-nat.c (windows_detach): Add inferior parameter.
13137 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13139 * target.h (struct target_ops) <to_detach>: Remove args
13141 (target_detach): Likewise.
13142 * target.c (dispose_inferior): Adjust.
13143 (target_detach): Remove args parameter, adjust.
13144 * aix-thread.c (aix_thread_detach): Adjust.
13145 * corefile.c (core_file_command): Adjust.
13146 * corelow.c (core_detach): Adjust.
13147 * darwin-nat.c (darwin_detach): Adjust.
13148 * gnu-nat.c (gnu_detach): Adjust.
13149 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13150 * infcmd.c (detach_command): Adjust
13151 * infrun.c (follow_fork_inferior): Adjust.
13152 (handle_vfork_child_exec_or_exit): Adjust.
13153 * linux-fork.c (linux_fork_detach): Remove args parameter.
13154 * linux-fork.h (linux_fork_detach): Likewise.
13155 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13156 * linux-thread-db.c (thread_db_detach): Likewise.
13157 * nto-procfs.c (procfs_detach): Likewise.
13158 * procfs.c (procfs_detach): Likewise.
13159 (do_detach): Remove signo parameter.
13160 * record.c (record_detach): Remove args parameter.
13161 * record.h (record_detach): Likewise.
13162 * remote-sim.c (gdbsim_detach): Likewise.
13163 * remote.c (remote_detach_1): Likewise.
13164 (remote_detach): Likewise.
13165 (extended_remote_detach): Likewise.
13166 * sol-thread.c (sol_thread_detach): Likewise.
13167 * target-delegates.c: Re-generate.
13168 * top.c (struct qt_args) <args>: Remove field.
13169 (kill_or_detach): Don't pass args.
13170 (quit_force): Don't set args.
13171 * windows-nat.c (windows_detach): Remove args parameter.
13173 2018-01-19 Yao Qi <yao.qi@linaro.org>
13175 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13176 (arm_linux_init_abi): Install it.
13178 2018-01-19 Yao Qi <yao.qi@linaro.org>
13180 * osabi.c (gdb_osabi_names): Extend the regexp for
13181 arm-linux-gnueabihf.
13183 2018-01-18 Yao Qi <yao.qi@linaro.org>
13185 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13187 (abbrev_table::add_abbrev): Update.
13188 (abbrev_table::lookup_abbrev): Update.
13190 2018-01-18 Yao Qi <yao.qi@linaro.org>
13192 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13194 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13196 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13199 2018-01-17 Tom Tromey <tom@tromey.com>
13201 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13203 2018-01-17 Tom Tromey <tom@tromey.com>
13205 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13206 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13207 (create_array_type_with_stride): Update.
13208 * dwarf2read.c (set_die_type): Update.
13210 2018-01-17 Tom Tromey <tom@tromey.com>
13212 * dwarf2read.c (delayed_method_info): Remove typedef.
13213 (dwarf2_cu::method_info): Now a std::vector.
13214 (add_to_method_list): Update.
13215 (free_delayed_list): Remove.
13216 (compute_delayed_physnames): Update.
13217 (process_full_comp_unit, process_full_type_unit): Clear the method
13218 list. Remove cleanups.
13219 (psymtab_include_file_name): Add name_holder parameter. Use
13220 unique_xmalloc_ptr.
13221 (dwarf_decode_lines): Update.
13223 2018-01-17 Tom Tromey <tom@tromey.com>
13224 Simon Marchi <simon.marchi@ericsson.com>
13226 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13227 (dwarf2_per_objfile::free_cached_comp_units)
13228 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13229 (init_cutu_and_read_dies_no_follow): Update.
13230 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13231 (dwarf2_cu::~dwarf2_cu): New.
13232 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13233 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13235 2018-01-17 Tom Tromey <tom@tromey.com>
13236 Simon Marchi <simon.marchi@ericsson.com>
13238 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13239 (struct die_reader_specs) <abbrev_table>: New member.
13240 (struct abbrev_table): Add constructor.
13241 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13242 <abbrev_obstack>: Now an auto_obstack.
13243 (abbrev_table_up): New typedef.
13244 (init_cu_die_reader): Add abbrev_table parameter.
13245 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13246 Add result_dwo_abbrev_table.
13247 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13248 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13250 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13252 (skip_children): Update.
13253 (abbrev_table::alloc_abbrev): Rename from
13254 abbrev_table_alloc_abbrev.
13255 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13256 (abbrev_table::lookup_abbrev): Rename from
13257 abbrev_table_lookup_abbrev.
13258 (abbrev_table_read_table): Return abbrev_table_up.
13259 (abbrev_table_free, abbrev_table_free_cleanup)
13260 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13261 (load_partial_dies): Update.
13263 2018-01-17 Tom Tromey <tom@tromey.com>
13265 * dwarf2read.c (dwarf2_compute_name): Update comment.
13266 (read_func_scope, read_variable): Update.
13267 (new_symbol): Remove.
13268 (new_symbol_full): Rename to new_symbol.
13270 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13273 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13274 a warning instead of throwing an error, set section size to 0 and return
13276 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13278 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13280 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13282 (linux_ptrace_attach_fail_reason_string): Likewise.
13283 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13285 (linux_ptrace_attach_fail_reason_string): Likewise.
13286 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13288 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13290 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13292 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13295 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13296 checking for fs_base/gs_base fields in struct user_regs_struct.
13297 * configure: Regenerate.
13299 2018-01-17 Yao Qi <yao.qi@linaro.org>
13301 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13303 (aarch64_linux_init_abi): Install it to gdbarch hook
13304 gcc_target_options.
13306 2018-01-15 Pedro Alves <palves@redhat.com>
13308 * common/signals-state-save-restore.c
13309 (save_original_signals_state): Fix typos.
13311 2017-01-12 Tom Tromey <tom@tromey.com>
13312 Sergio Durigan Junior <sergiodj@redhat.com>
13314 * Makefile.in (install-only): Install gdb-add-index.
13316 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13318 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13320 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13322 * infrun.c (keep_going_pass_signal): Clear step-over info when
13323 insert_breakpoints fails.
13325 2018-01-11 Pedro Alves <palves@redhat.com>
13328 * infrun.c (resume): Rename to ...
13329 (resume_1): ... this.
13330 (resume): Reimplement as wrapper around resume_1.
13332 2018-01-11 Pedro Alves <palves@redhat.com>
13335 * remote.c (remote_parse_stop_reply): Default to the last-set
13336 general thread instead of to 'magic_null_ptid'.
13338 2018-01-10 Pedro Alves <palves@redhat.com>
13340 * language.h (language_get_symbol_name_matcher): Rename ...
13341 (get_symbol_name_matcher): ... this.
13342 * language.c (language_get_symbol_name_matcher): Ditto.
13343 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13346 2018-01-10 Pedro Alves <palves@redhat.com>
13350 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13351 Adjust to use language_get_symbol_name_matcher instead of
13352 language_defn::la_get_symbol_name_matcher.
13353 * language.c (language_get_symbol_name_matcher): If in Ada mode
13354 and the lookup name is a verbatim match, return Ada's matcher.
13355 * language.h (language_get_symbol_name_matcher): Adjust comment.
13356 (ada_lookup_name_info::verbatim_p):: New method.
13358 2018-01-10 Pedro Alves <palves@redhat.com>
13361 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13362 minsym's language is language_auto or language_cplus, pass down
13363 language_ada instead.
13364 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13366 2018-01-10 Pedro Alves <palves@redhat.com>
13369 * minsyms.c (linkage_name_str): New function.
13370 (iterate_over_minimal_symbols): Use it.
13372 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13374 * NEWS: Document that 'info proc' now works on FreeBSD.
13376 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13378 * configure.ac: Check for kinfo_getfile in libutil.
13379 * configure: Regenerate.
13380 * config.in: Regenerate.
13381 * fbsd-nat.c: Include "fbsd-tdep.h".
13382 (fbsd_fetch_cmdline): New.
13383 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13384 rather than calling error.
13385 (fbsd_info_proc): New.
13386 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13387 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13388 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13390 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13392 * fbsd-nat.c (struct free_deleter): Remove.
13393 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13395 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13397 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13398 NULL for an empty pathname.
13400 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13402 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13403 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13404 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13405 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13406 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13407 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13408 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13409 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13410 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13411 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13412 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13413 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13414 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13415 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13416 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13418 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13420 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13421 (gnu_xfer_auxv): New function.
13422 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13423 TARGET_OBJECT_AUXV.
13425 2018-01-08 Yao Qi <yao.qi@linaro.org>
13426 Simon Marchi <simon.marchi@ericsson.com>
13428 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13430 (COMMON_OBS): Remove selftest.o.
13431 * configure.ac: Append selftest-arch.c and common/selftest.c to
13432 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13433 * configure: Re-generated.
13434 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13436 (maintenance_info_selftests): Likewise.
13438 2018-01-08 Xavier Roirand <roirand@adacore.com>
13440 * ada-valprint.c (val_print_packed_array_elements): Use
13441 proper number of elements when printing an array indexed
13442 by an enumeration type.
13444 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13446 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13447 (dw2_get_file_names_reader): Adjust.
13448 (lookup_dwo_signatured_type): Adjust.
13449 (lookup_dwp_signatured_type): Adjust.
13450 (lookup_signatured_type): Adjust.
13451 (create_type_unit_group): Adjust.
13452 (get_type_unit_group): Adjust.
13453 (process_psymtab_comp_unit_reader): Adjust.
13454 (build_type_psymtabs_reader): Adjust.
13455 (scan_partial_symbols): Adjust.
13456 (add_partial_symbol): Adjust.
13457 (add_partial_subprogram): Adjust.
13458 (peek_die_abbrev): Adjust.
13459 (fixup_go_packaging): Adjust.
13460 (process_imported_unit_die): Adjust.
13461 (dwarf2_compute_name): Adjust.
13462 (dwarf2_physname): Adjust.
13463 (read_import_statement): Adjust.
13464 (handle_DW_AT_stmt_list): Adjust.
13465 (read_file_scope): Adjust.
13466 (read_func_scope): Adjust.
13467 (read_lexical_block_scope): Adjust.
13468 (read_call_site_scope): Adjust.
13469 (read_variable): Adjust.
13470 (dwarf2_rnglists_process): Adjust.
13471 (dwarf2_ranges_process): Adjust.
13472 (dwarf2_ranges_read): Adjust.
13473 (dwarf2_get_pc_bounds): Adjust.
13474 (dwarf2_record_block_ranges): Adjust.
13475 (dwarf2_add_field): Adjust.
13476 (dwarf2_add_member_fn): Adjust.
13477 (read_structure_type): Adjust.
13478 (process_structure_scope): Adjust.
13479 (read_enumeration_type): Adjust.
13480 (read_array_type): Adjust.
13481 (mark_common_block_symbol_computed): Adjust.
13482 (read_common_block): Adjust.
13483 (read_namespace_type): Adjust.
13484 (read_namespace): Adjust.
13485 (read_module_type): Adjust.
13486 (read_tag_pointer_type): Adjust.
13487 (read_tag_ptr_to_member_type): Adjust.
13488 (read_tag_string_type): Adjust.
13489 (read_subroutine_type): Adjust.
13490 (read_typedef): Adjust.
13491 (read_base_type): Adjust.
13492 (attr_to_dynamic_prop): Adjust.
13493 (read_subrange_type): Adjust.
13494 (read_unspecified_type): Adjust.
13495 (dwarf2_read_abbrevs): Adjust.
13496 (load_partial_dies): Adjust.
13497 (read_partial_die): Adjust.
13498 (find_partial_die): Adjust.
13499 (guess_partial_die_structure_name): Adjust.
13500 (fixup_partial_die): Adjust.
13501 (read_attribute_value): Adjust.
13502 (read_addr_index): Adjust.
13503 (read_addr_index_from_leb128): Adjust.
13504 (read_str_index): Adjust.
13505 (dwarf2_string_attr): Adjust.
13506 (get_debug_line_section): Adjust.
13507 (dwarf_decode_line_header): Adjust.
13508 (lnp_state_machine::check_line_address): Adjust.
13509 (dwarf_decode_lines_1): Adjust.
13510 (dwarf_decode_lines): Adjust.
13511 (dwarf2_start_symtab): Adjust.
13512 (var_decode_location): Adjust.
13513 (new_symbol_full): Adjust.
13514 (dwarf2_const_value_data): Adjust.
13515 (dwarf2_const_value_attr): Adjust.
13516 (dwarf2_const_value): Adjust.
13517 (die_type): Adjust.
13518 (die_containing_type): Adjust.
13519 (build_error_marker_type): Adjust.
13520 (lookup_die_type): Adjust.
13521 (guess_full_die_structure_name): Adjust.
13522 (anonymous_struct_prefix): Adjust.
13523 (determine_prefix): Adjust.
13524 (dwarf2_name): Adjust.
13525 (follow_die_ref_or_sig): Adjust.
13526 (follow_die_offset): Adjust.
13527 (follow_die_ref): Adjust.
13528 (follow_die_sig_1): Adjust.
13529 (follow_die_sig): Adjust.
13530 (get_signatured_type): Adjust.
13531 (get_DW_AT_signature_type): Adjust.
13532 (decode_locdesc): Adjust.
13533 (dwarf_decode_macros): Adjust.
13534 (cu_debug_loc_section): Adjust.
13535 (fill_in_loclist_baton): Adjust.
13536 (dwarf2_symbol_mark_computed): Adjust.
13537 (init_one_comp_unit): Don't assign
13538 dwarf2_cu::dwarf2_per_objfile.
13539 (set_die_type): Adjust.
13541 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13543 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13544 <dwarf2_per_objfile>: New field.
13545 (dwarf2_per_objfile): Remove global.
13546 (get_dwarf2_per_objfile): New function.
13547 (set_dwarf2_per_objfile): New function.
13548 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13549 dwarf2_per_objfile.
13550 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13551 (read_abbrev_offset): Likewise.
13552 (read_indirect_string): Likewise.
13553 (read_indirect_line_string): Likewise.
13554 (read_indirect_string_at_offset): Likewise.
13555 (read_indirect_string_from_dwz): Likewise.
13556 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13557 dwarf2_per_objfile.
13558 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13559 (create_all_comp_units): Change objfile parameter to
13560 dwarf2_per_objfile.
13561 (create_all_type_units): Likewise.
13562 (process_queue): Add dwarf2_per_objfile parameter.
13563 (read_and_check_comp_unit_head): Likewise.
13564 (lookup_dwo_unit_in_dwp): Likewise.
13565 (get_dwp_file): Likewise.
13566 (process_cu_includes): Likewise.
13567 (struct free_dwo_file_cleanup_data): New struct.
13568 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13569 set_dwarf2_per_objfile.
13570 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13571 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13572 context, adjust calls.
13573 (dw2_instantiate_symtab): Likewise.
13574 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13575 (dw2_get_cu): Likewise.
13576 (create_cu_from_index_list): Change objfile parameter to
13577 dwarf2_per_objfile.
13578 (create_cus_from_index_list): Get dwarf2_per_objfile from
13579 context, adjust calls.
13580 (create_cus_from_index): Likewise.
13581 (create_signatured_type_table_from_index): Change objfile
13582 parameter to dwarf2_per_objfile.
13583 (create_signatured_type_table_from_debug_names): Change objfile
13584 parameter to dwarf2_per_objfile.
13585 (create_addrmap_from_index): Likewise.
13586 (create_addrmap_from_aranges): Likewise.
13587 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13588 (dw2_setup): Remove.
13589 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13591 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13592 get_dwarf2_per_objfile.
13593 (dw2_forget_cached_source_info): Likewise.
13594 (dw2_map_symtabs_matching_filename): Likewise.
13595 (struct dw2_symtab_iterator) <index>: Remove.
13596 <dwarf2_per_objfile>: New field.
13597 (dw2_symtab_iter_init): Replace index parameter with
13598 dwarf2_per_objfile.
13599 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13600 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13601 (dw2_print_stats): Likewise.
13602 (dw2_dump): Likewise.
13603 (dw2_expand_symtabs_for_function): Likewise.
13604 (dw2_expand_all_symtabs): Likewise.
13605 (dw2_expand_symtabs_with_fullname): Likewise.
13606 (dw2_expand_marked_cus): Replace index and objfile parameters
13607 with dwarf2_per_objfile.
13608 (dw_expand_symtabs_matching_file_matcher): Add
13609 dwarf2_per_objfile parameter and adjust calls.
13610 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13612 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13613 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13615 (create_cus_from_debug_names_list): Replace objfile parameter
13616 with dwarf2_per_objfile and adjust calls.
13617 (create_cus_from_debug_names): Likewise.
13618 (dwarf2_read_debug_names): Likewise.
13619 (mapped_debug_names::namei_to_name): Adjust call.
13620 (dw2_debug_names_iterator::next): Likewise.
13621 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13622 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13623 (dw2_debug_names_dump): Likewise.
13624 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13625 (dw2_debug_names_expand_symtabs_matching): Likewise.
13626 (dwarf2_initialize_objfile): Likewise.
13627 (dwarf2_build_psymtabs): Likewise.
13628 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13630 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13631 (read_and_check_comp_unit_head): Likewise.
13632 (read_abbrev_offset): Likewise.
13633 (create_debug_type_hash_table): Likewise.
13634 (create_debug_types_hash_table): Likewise.
13635 (create_all_type_units): Replace objfile parameter with
13636 dwarf2_per_objfile.
13637 (add_type_unit): Add dwarf2_per_objfile parameter.
13638 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13639 with dwarf2_per_objfile.
13640 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13641 (lookup_dwp_signatured_type): Likewise.
13642 (lookup_signatured_type): Likewise.
13643 (read_cutu_die_from_dwo): Likewise.
13644 (init_tu_and_read_dwo_dies): Likewise.
13645 (init_cutu_and_read_dies): Likewise.
13646 (init_cutu_and_read_dies_no_follow): Likewise.
13647 (allocate_type_unit_groups_table): Add objfile parameter.
13648 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13649 (get_type_unit_group): Likewise.
13650 (process_psymtab_comp_unit): Update call.
13651 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13652 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13653 (print_tu_stats): Likewise.
13654 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13655 in void* parameter.
13656 (build_type_psymtabs): Change objfile parameter to
13657 dwarf2_per_objfile.
13658 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13659 passed in void* parameter.
13660 (process_skeletonless_type_units): Change objfile parameter to
13661 dwarf2_per_objfile.
13662 (set_partial_user): Likewise.
13663 (dwarf2_build_psymtabs_hard): Likewise.
13664 (read_comp_units_from_section): Likewise.
13665 (create_all_comp_units): Likewise.
13666 (scan_partial_symbols): Update calls.
13667 (add_partial_symbol): Likewise.
13668 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13669 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13670 (process_queue): Add dwarf2_per_objfile parameter.
13671 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13672 (compute_compunit_symtab_includes): Likewise.
13673 (process_cu_includes): Add dwarf2_per_objfile parameter.
13674 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13675 (process_full_type_unit): Likewise.
13676 (process_imported_unit_die): Update call.
13677 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13678 (read_file_scope): Likewise.
13679 (allocate_dwo_file_hash_table): Add objfile parameter.
13680 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13681 (create_cus_hash_table): Likewise.
13682 (create_dwp_hash_table): Likewise.
13683 (create_dwo_unit_in_dwp_v1): Likewise.
13684 (create_dwp_v2_section): Likewise.
13685 (create_dwo_unit_in_dwp_v2): Likewise.
13686 (lookup_dwo_unit_in_dwp): Likewise.
13687 (try_open_dwop_file): Likewise.
13688 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13689 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13690 cleanup to include a reference to dwarf2_per_objfile.
13691 (open_dwp_file): Add dwarf2_per_objfile parameter.
13692 (open_and_init_dwp_file): Likewise.
13693 (get_dwp_file): Likewise.
13694 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13695 (queue_and_load_all_dwo_tus): Update call.
13696 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13698 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13699 (dwarf2_ranges_process): Likewise.
13700 (dwarf2_get_pc_bounds): Likewise.
13701 (mark_common_block_symbol_computed): Likewise.
13702 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13703 (dwarf2_read_abbrevs): Update call.
13704 (read_partial_die): Use dwarf2_per_objfile from cu.
13705 (find_partial_die): Likewise.
13706 (fixup_partial_die): Likewise.
13707 (read_attribute_value): Likewise.
13708 (read_indirect_string_at_offset_from): Add objfile parameter.
13709 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13711 (read_indirect_string_from_dwz): Add objfile parameter.
13712 (read_indirect_string): Add objfile parameter.
13713 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13714 (read_addr_index): Use dwarf2_per_objfile from cu.
13715 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13717 (read_str_index): Use dwarf2_per_objfile from cu.
13718 (get_debug_line_section): Likewise.
13719 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13720 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13721 (new_symbol_full): Use dwarf2_per_objfile from cu.
13722 (build_error_marker_type): Likewise.
13723 (lookup_die_type): Likewise.
13724 (determine_prefix): Likewise.
13725 (follow_die_offset): Likewise.
13726 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13727 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13728 (dwarf2_fetch_die_type_sect_off): Likewise.
13729 (dwarf2_get_die_type): Likewise.
13730 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13731 (get_signatured_type): Likewise.
13732 (get_DW_AT_signature_type): Likewise.
13733 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13734 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13735 (cu_debug_loc_section): Likewise.
13736 (fill_in_loclist_baton): Likewise.
13737 (dwarf2_symbol_mark_computed): Likewise.
13738 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13739 dwarf2_per_objfile.
13740 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13742 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13743 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13744 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13745 (set_die_type): Use dwarf2_free_objfile from cu.
13746 (get_die_type_at_offset): Likewise.
13747 (dwarf2_per_objfile_free): Don't assign global variable.
13748 (debug_names) <constructor>: Add dwarf2_per_objfile
13749 parameter, update m_debugstrlookup construction.
13750 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13752 <m_dwarf2_per_objfile>: New field.
13753 <lookup>: Use m_dwarf2_per_objfile.
13754 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13755 (psyms_seen_size): Likewise.
13756 (write_gdbindex): Replace objfile parameter with
13757 dwarf2_per_objfile.
13758 (write_debug_names): Likewise.
13759 (write_psymtabs_to_index): Likewise.
13760 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13763 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13765 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13766 <dwarf2_per_objfile>: New field.
13767 (struct dwarf2_per_cu_data) <objfile>: Remove.
13768 <dwarf2_per_objfile>: New field.
13769 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13771 (create_signatured_type_table_from_index): Likewise.
13772 (create_debug_type_hash_table): Likewise.
13773 (fill_in_sig_entry_from_dwo_entry): Likewise.
13774 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13775 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13777 (create_partial_symtab): Access objfile through
13778 dwarf2_per_objfile.
13779 (process_psymtab_comp_unit_reader): Likewise.
13780 (read_comp_units_from_section): Likewise.
13781 (scan_partial_symbols): Likewise.
13782 (add_partial_symbol): Likewise.
13783 (add_partial_subprogram): Likewise.
13784 (peek_die_abbrev): Likewise.
13785 (fixup_go_packaging): Likewise.
13786 (process_full_comp_unit): Likewise.
13787 (process_full_type_unit): Likewise.
13788 (process_imported_unit_die): Likewise.
13789 (dwarf2_compute_name): Likewise.
13790 (dwarf2_physname): Likewise.
13791 (read_import_statement): Likewise.
13792 (create_cus_hash_table): Assign dwarf2_physname instead of
13794 (read_func_scope): Access objfile through dwarf2_per_objfile.
13795 (read_lexical_block_scope): Likewise.
13796 (read_call_site_scope): Likewise.
13797 (read_variable): Likewise.
13798 (dwarf2_rnglists_process): Likewise.
13799 (dwarf2_ranges_process): Likewise.
13800 (dwarf2_ranges_read): Likewise.
13801 (dwarf2_record_block_ranges): Likewise.
13802 (dwarf2_add_field): Likewise.
13803 (dwarf2_add_member_fn): Likewise.
13804 (read_structure_type): Likewise.
13805 (process_structure_scope): Likewise.
13806 (read_enumeration_type): Likewise.
13807 (read_array_type): Likewise.
13808 (read_common_block): Likewise.
13809 (read_namespace_type): Likewise.
13810 (read_namespace): Likewise.
13811 (read_module_type): Likewise.
13812 (read_tag_pointer_type): Likewise.
13813 (read_tag_ptr_to_member_type): Likewise.
13814 (read_tag_string_type): Likewise.
13815 (read_subroutine_type): Likewise.
13816 (read_typedef): Likewise.
13817 (read_base_type): Likewise.
13818 (attr_to_dynamic_prop): Likewise.
13819 (read_subrange_type): Likewise.
13820 (read_unspecified_type): Likewise.
13821 (load_partial_dies): Likewise.
13822 (read_partial_die): Likewise.
13823 (find_partial_die): Likewise.
13824 (guess_partial_die_structure_name): Likewise.
13825 (fixup_partial_die): Likewise.
13826 (read_attribute_value): Likewise.
13827 (read_addr_index_from_leb128): Likewise.
13828 (dwarf2_read_addr_index): Likewise.
13829 (dwarf2_string_attr): Likewise.
13830 (lnp_state_machine::check_line_address): Likewise.
13831 (dwarf_decode_lines_1): Likewise.
13832 (dwarf_decode_lines): Likewise.
13833 (dwarf2_start_symtab): Likewise.
13834 (var_decode_location): Likewise.
13835 (new_symbol_full): Likewise.
13836 (dwarf2_const_value_data): Likewise.
13837 (dwarf2_const_value_attr): Likewise.
13838 (dwarf2_const_value): Likewise.
13839 (die_type): Likewise.
13840 (die_containing_type): Likewise.
13841 (lookup_die_type): Likewise.
13842 (guess_full_die_structure_name): Likewise.
13843 (anonymous_struct_prefix): Likewise.
13844 (dwarf2_name): Likewise.
13845 (follow_die_ref_or_sig): Likewise.
13846 (follow_die_offset): Likewise.
13847 (follow_die_ref): Likewise.
13848 (dwarf2_fetch_die_loc_sect_off): Likewise.
13849 (dwarf2_fetch_constant_bytes): Likewise.
13850 (dwarf2_fetch_die_type_sect_off): Likewise.
13851 (dwarf2_get_die_type): Likewise.
13852 (follow_die_sig): Likewise.
13853 (decode_locdesc): Likewise.
13854 (dwarf2_per_cu_objfile): Likewise.
13855 (dwarf2_per_cu_text_offset): Likewise.
13856 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13858 (set_die_type): Access objfile through
13859 dwarf2_per_objfile.
13861 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13863 * valprint.c (converted_character_d): Remove typedef.
13864 (DEF_VEC_O (converted_character_d)): Remove.
13865 (count_next_character): Use std::vector.
13866 (print_converted_chars_to_obstack): Likewise.
13867 (generic_printstr): Likewise.
13869 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13871 * xml-support.h (struct gdb_xml_value): Add constructor.
13872 <value>: Change type to unique_xmalloc_ptr.
13873 (gdb_xml_value_s): Remove typedef.
13874 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13875 (gdb_xml_element_start_handler): Change parameter type to
13877 (xml_find_attribute): Likewise.
13878 * xml-support.c (xml_find_attribute): Change parameter type to
13879 std::vector and adjust.
13880 (gdb_xml_values_cleanup): Remove.
13881 (gdb_xml_parser::start_element): Adjust to std::vector.
13882 (xinclude_start_include): Change paraeter type to std::vector
13884 * btrace.c (check_xml_btrace_version): Likewise.
13885 (parse_xml_btrace_block): Likewise.
13886 (parse_xml_btrace_pt_config_cpu): Likewise.
13887 (parse_xml_btrace_pt): Likewise.
13888 (parse_xml_btrace_conf_bts): Likewise.
13889 (parse_xml_btrace_conf_pt): Likewise.
13890 * memory-map.c (memory_map_start_memory): Likewise.
13891 (memory_map_start_property): Likewise.
13892 * osdata.c (osdata_start_osdata): Likewise.
13893 (osdata_start_item): Likewise.
13894 (osdata_start_column): Likewise.
13895 * remote.c (start_thread): Likewise.
13896 * solib-aix.c (library_list_start_library): Likewise.
13897 (library_list_start_list): Likewise.
13898 * solib-svr4.c (library_list_start_library): Likewise.
13899 (svr4_library_list_start_list): Likewise.
13900 * solib-target.c (library_list_start_segment): Likewise.
13901 (library_list_start_section): Likewise.
13902 (library_list_start_library): Likewise.
13903 (library_list_start_list): Likewise.
13904 * tracepoint.c (traceframe_info_start_memory): Likewise.
13905 (traceframe_info_start_tvar): Likewise.
13906 * xml-syscall.c (syscall_start_syscall): Likewise.
13907 * xml-tdesc.c (tdesc_start_target): Likewise.
13908 (tdesc_start_feature): Likewise.
13909 (tdesc_start_reg): Likewise.
13910 (tdesc_start_union): Likewise.
13911 (tdesc_start_struct): Likewise.
13912 (tdesc_start_flags): Likewise.
13913 (tdesc_start_enum): Likewise.
13914 (tdesc_start_field): Likewise.
13915 (tdesc_start_enum_value): Likewise.
13916 (tdesc_start_vector): Likewise.
13918 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13920 * extension.h (struct xmethod_worker) <clone>: Remove.
13921 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13923 (python_xmethod_worker::clone): Remove.
13924 * valops.c (find_overload_match): Use std::move instead of
13927 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13929 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13930 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13931 <free_xmethod_worker_data>: Remove.
13932 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13933 <get_xmethod_arg_types>: Remove.
13934 <get_xmethod_result_type>: Remove.
13935 <invoke_xmethod>: Remove.
13936 * extension.c (new_xmethod_worker): Remove.
13937 (clone_xmethod_worker): Remove.
13938 (get_matching_xmethod_workers): Return void, pass std::vector by
13940 (get_xmethod_arg_types): Rename to...
13941 (xmethod_worker::get_arg_types): ... this, and adjust.
13942 (get_xmethod_result_type): Rename to...
13943 (xmethod_worker::get_result_type): ... this, and adjust.
13944 (invoke_xmethod): Remove.
13945 (free_xmethod_worker): Remove.
13946 (free_xmethod_worker_vec): Remove.
13947 * extension.h (enum ext_lang_rc): Move here from
13949 (struct xmethod_worker): Add constructor and destructor.
13952 <invoke, clone, do_get_result_type, do_get_arg_types>: New
13953 virtual pure methods.
13954 <get_arg_types, get_result_type>: New methods.
13955 (xmethod_worker_ptr): Remove typedef.
13956 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
13957 (xmethod_worker_vec): Remove typedef.
13958 (xmethod_worker_up): New typedef.
13959 (invoke_xmethod): Remove.
13960 (clone_xmethod_worker): Remove.
13961 (free_xmethod_worker): Remove.
13962 (free_xmethod_worker_vec): Remove.
13963 (get_xmethod_arg_types): Remove.
13964 (get_xmethod_result_type): Remove.
13965 * valops.c (find_method_list): Use std::vector, don't use
13966 intermediate vector.
13967 (value_find_oload_method_list): Use std::vector.
13968 (find_overload_match): Use std::vector.
13969 (find_oload_champ): Use std::vector.
13970 * value.c (value_free): Use operator delete.
13971 (value_of_xmethod): Rename to...
13972 (value_from_xmethod): ... this. Don't assign
13973 xmethod_worker::value, take rvalue-reference.
13974 (result_type_of_xmethod): Adjust.
13975 (call_xmethod): Adjust.
13976 * value.h: Include extension.h.
13977 (struct xmethod_worker): Don't forward-declare.
13978 (value_of_xmethod): Rename to...
13979 (value_from_xmethod): ... this, take rvalue-reference.
13980 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
13981 (struct python_xmethod_worker): ... this, add constructor and
13983 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
13984 (gdbpy_free_xmethod_worker_data): Rename to...
13985 (python_xmethod_worker::~python_xmethod_worker): ... this and
13987 (gdbpy_clone_xmethod_worker_data): Rename to...
13988 (python_xmethod_worker::clone): ... this and adjust.
13989 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
13991 (gdbpy_get_xmethod_arg_types): Rename to...
13992 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
13993 (gdbpy_get_xmethod_result_type): Rename to...
13994 (python_xmethod_worker::do_get_result_type): ... this and
13996 (gdbpy_invoke_xmethod): Rename to...
13997 (python_xmethod_worker::invoke): ... this and adjust.
13998 (new_python_xmethod_worker): Rename to...
13999 (python_xmethod_worker::python_xmethod_worker): ... this and
14001 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14003 (gdbpy_free_xmethod_worker_data): Remove.
14004 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14005 (gdbpy_get_xmethod_arg_types): Remove.
14006 (gdbpy_get_xmethod_result_type): Remove.
14007 (gdbpy_invoke_xmethod): Remove.
14008 * python/python.c (python_extension_ops): Remove obsolete
14011 2018-01-05 Pedro Alves <palves@redhat.com>
14014 * common/signals-state-save-restore.c
14015 (save_original_signals_state): New parameter 'quiet'. Warn if we
14016 find a custom handler preinstalled, instead of internal erroring.
14017 But only warn if !quiet.
14018 * common/signals-state-save-restore.h
14019 (save_original_signals_state): New parameter 'quiet'.
14020 * main.c (captured_main_1): Move save_original_signals_state call
14021 after option handling, and pass QUIET.
14023 2018-01-05 Pedro Alves <palves@redhat.com>
14025 * spu-tdep.c (spu_catch_start): Pass
14026 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14028 2018-01-05 Pedro Alves <palves@redhat.com>
14031 * ada-lang.c (literal_symbol_name_matcher): New function.
14032 (ada_get_symbol_name_matcher): Use it for
14033 symbol_name_match_type::SEARCH_NAME.
14034 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14035 it down instead of assuming symbol_name_match_type::FULL.
14036 * block.h (block_lookup_symbol): New parameter 'match_type'.
14037 * c-valprint.c (print_unpacked_pointer): Use
14038 lookup_symbol_search_name instead of lookup_symbol.
14039 * compile/compile-object-load.c (get_out_value_type): Pass down
14040 symbol_name_match_type::SEARCH_NAME.
14041 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14042 symbol_name_match_type::FULL.
14043 * cp-support.c (cp_get_symbol_name_matcher): Handle
14044 symbol_name_match_type::SEARCH_NAME.
14045 * infrun.c (insert_exception_resume_breakpoint): Use
14046 lookup_symbol_search_name.
14047 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14048 * psymtab.c (maintenance_check_psymtabs): Use
14049 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14050 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14051 SYMBOL_SEARCH_NAME.
14052 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14053 if symbol_name_match_type::SEARCH_NAME.
14054 (lookup_symbol_in_language): Pass down
14055 symbol_name_match_type::FULL.
14056 (lookup_symbol_search_name): New.
14057 (lookup_language_this): Pass down
14058 symbol_name_match_type::SEARCH_NAME.
14059 (lookup_symbol_aux, lookup_local_symbol): New parameter
14060 'match_type'. Pass it down.
14061 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14062 (lookup_symbol_search_name): New declaration.
14063 (lookup_symbol_in_block): New 'match_type' parameter.
14065 2018-01-05 Pedro Alves <palves@redhat.com>
14068 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14070 (ada_lookup_symbol): Reimplement in terms of
14071 ada_lookup_symbol_list, bits factored out from
14072 ada_lookup_encoded_symbol.
14074 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14076 * ada-exp.y (write_object_renaming): When subscripting an array
14077 using a symbol as the index, pass the block in call to
14078 ada_lookup_encoded_symbol when looking that symbol up.
14080 2018-01-05 Jerome Guitton <guitton@adacore.com>
14082 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14085 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14087 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14088 the case where VALUE_LVAL (val0) is not lval_memory.
14090 2018-01-05 Xavier Roirand <roirand@adacore.com>
14092 * ada-valprint.c (print_optional_low_bound): Handle
14093 character-indexed array printing like boolean-indexed array
14096 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14098 * NEWS: Create a new section for the next release branch.
14099 Rename the section of the current branch, now that it has
14102 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14104 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14105 * version.in: Bump version to 8.1.50.DATE-git.
14107 2018-01-03 Xavier Roirand <roirand@adacore.com>
14109 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14111 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14113 (default_exception_support_info) <catch_handlers_sym>: Add field.
14114 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14115 (ada_exception_name_addr_1): Add "catch handlers" handling.
14116 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14117 Update all callers.
14118 (create_excep_cond_exprs) <ex>: Add parameter.
14119 (re_set_exception): Update create_excep_cond_exprs call.
14120 (print_it_exception, print_one_exception, print_mention_exception)
14121 (print_recreate_exception): Add "catch handler" handling.
14122 (allocate_location_catch_handlers, re_set_catch_handlers)
14123 (check_status_catch_handlers, print_it_catch_handlers)
14124 (print_one_catch_handlers, print_mention_catch_handlers)
14125 (print_recreate_catch_handlers): New function.
14126 (catch_handlers_breakpoint_ops): New variable.
14127 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14128 Add parameter. Add "catch handler" handling.
14129 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14130 Add "catch handler" handling.
14131 (ada_exception_catchpoint_cond_string): Add "catch handler"
14133 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14135 (catch_ada_handlers_command): New function.
14136 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14137 operations structure.
14138 (_initialize_ada_language): Add "catch handlers" command entry.
14139 * NEWS: Document "catch handlers" feature.
14141 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14143 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14144 account when creating the array type of the slice.
14145 (ada_value_slice): Likewise.
14147 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14149 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14151 (create_array_type_with_stride): Add byte_stride_prop parameter.
14152 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14153 New parameter. Update all callers in this file.
14154 (array_type_has_dynamic_stride): New function.
14155 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14156 of arrays with dynamic byte strides.
14157 * dwarf2read.c (read_array_type): Add support for dynamic
14158 DW_AT_byte_stride attributes.
14160 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14162 * dwarf2read.c (read_unspecified_type): Treat
14163 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14165 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14167 Update copyright year range in all GDB files.
14169 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14171 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14172 and gdb/testsuite/gdb.base/step-line.c.
14174 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14176 * copyright.py (main): Dump the contents of
14177 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14178 even if BY_HAND is empty.
14180 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14182 * top.c (print_gdb_version): Update Copyright year in version
14185 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14187 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14189 For older changes see ChangeLog-2017.
14195 version-control: never