1 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * MAINTAINERS (Write After Approval): Add self.
5 2018-10-03 Tom Tromey <tom@tromey.com>
7 * guile/scm-value.c (gdbscm_value_to_string): Initialize
9 * coffread.c (coff_symtab_read): Initialize "newobj".
11 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
13 * dwarf2read.c (read_func_scope): Remove struct keyword in
16 2018-10-03 Tom Tromey <tom@tromey.com>
18 * README: Mention --enable-ubsan.
19 * NEWS: Mention --enable-ubsan.
20 * acinclude.m4: Include sanitize.m4.
22 * configure.ac: Call AM_GDB_UBSAN.
23 * sanitize.m4: New file.
25 2018-10-03 Tom Tromey <tom@tromey.com>
27 * expression.h (enum exp_opcode): Use uint8_t as base type.
28 * expprint.c (op_name): Handle invalid opcodes.
30 2018-10-03 Tom Tromey <tom@tromey.com>
32 * parse.c (prefixify_expression): Add assert.
33 (parse_exp_in_context_1): Throw exception if the expression is
36 2018-10-03 Tom Tromey <tom@tromey.com>
38 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
40 2018-10-03 Tom Tromey <tom@tromey.com>
42 * c-exp.y (parse_number): Work in unsigned. Remove casts.
44 2018-10-03 Tom Tromey <tom@tromey.com>
46 * dwarf2read.c (read_subrange_type): Make "negative_mask"
49 2018-10-03 Tom Tromey <tom@tromey.com>
51 * findvar.c (extract_integer): Do work in an unsigned type.
53 2018-10-03 Tom Tromey <tom@tromey.com>
55 * common/enum-flags.h (enum_flags::operator~): Add static assert.
56 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
58 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
59 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
61 * c-lang.h (enum c_string_type_values): Use unsigned as base
63 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
65 2018-10-03 Tom Tromey <tom@tromey.com>
67 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
68 <~dwarf2_frame_state_reg_info>: Update.
69 <dwarf2_frame_state_reg_info>: Update.
70 <alloc_regs>: Add assertion. Update.
71 <reg>: Now a std::vector.
74 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
75 (execute_cfa_program_test, dwarf2_frame_cache): Update.
77 2018-10-03 Tom Tromey <tom@tromey.com>
79 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
81 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
83 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
85 2018-10-02 Tom Tromey <tom@tromey.com>
87 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
89 2018-10-02 John Darrington <john@darrington.wattle.id.au>
91 * NEWS: Mention changed commands.
92 * ser-uds.c: New file.
93 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
94 * configure: Regenerate.
95 * Makefile.in: Add new file.
96 * serial.c (serial_open): Check if filename is a socket
97 and lookup the appropriate interface accordingly.
99 2018-10-01 Alan Hayward <alan.hayward@arm.com>
101 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
103 (AARCH64_EXTRA_MAGIC): Likewise.
104 (AARCH64_FPSIMD_MAGIC): Likewise.
105 (AARCH64_SVE_MAGIC): Likewise.
106 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
107 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
108 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
109 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
110 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
111 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
112 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
113 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
114 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
115 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
116 (read_aarch64_ctx): Add function.
117 (aarch64_linux_sigframe_init): Detect FP registers.
119 2018-10-01 Alan Hayward <alan.hayward@arm.com>
121 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
122 (AARCH64_D0_REGNUM): Likewise.
123 (AARCH64_S0_REGNUM): Likewise.
124 (AARCH64_H0_REGNUM): Likewise.
125 (AARCH64_B0_REGNUM): Likewise.
126 (AARCH64_SVE_V0_REGNUM): Likewise.
127 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
128 (AARCH64_D0_REGNUM): Likewise.
129 (AARCH64_S0_REGNUM): Likewise.
130 (AARCH64_H0_REGNUM): Likewise.
131 (AARCH64_B0_REGNUM): Likewise.
132 (AARCH64_SVE_V0_REGNUM): Likewise.
134 2018-10-01 Gary Benson <gbenson@redhat.com>
136 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
137 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
138 prfpregset_t instead of gdb_prfpregset_t.
139 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
140 * configure, config.in: Rebuild.
142 2018-10-01 Gary Benson <gbenson@redhat.com>
144 * common/gdb_proc_service.h: New file, factored out from...
145 * gdb_proc_service.h: Moved common code to the above file.
146 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
148 2018-10-01 Gary Benson <gbenson@redhat.com>
150 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
151 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
153 2018-10-01 Gary Benson <gbenson@redhat.com>
155 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
156 (AC_CHECK_HEADERS): Check for linux/elf.h.
157 * configure, config.in: Rebuild.
158 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
159 doesn't define elf_fpregset_t.
161 2018-10-01 Gary Benson <gbenson@redhat.com>
163 * gdb_proc_service.h: Whitespace change.
165 2018-10-01 Tom Tromey <tom@tromey.com>
167 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
168 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
169 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
171 2018-10-01 Tom Tromey <tom@tromey.com>
173 * README: Minor change.
175 2018-09-30 Pedro Alves <palves@redhat.com>
177 * darwin-nat-info.c (darwin_debug_regions_recurse)
178 (info_mach_exceptions_command): Remove unused local variables.
179 * darwin-nat.c (darwin_decode_notify_message)
180 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
181 (darwin_stop_inferior, darwin_setup_exceptions)
182 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
183 (darwin_nat_target::attach, darwin_nat_target::detach)
184 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
186 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
189 2018-09-29 Tom Tromey <tom@tromey.com>
191 * README: Remove some leftover text.
193 2018-09-29 Tom Tromey <tom@tromey.com>
198 2018-09-28 John Baldwin <jhb@FreeBSD.org>
200 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
201 case with explicit breakpoint kind.
202 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
203 'additional_info' and related logic.
204 (riscv_debug_breakpoints): New variable.
205 (riscv_breakpoint_kind_from_pc): Use the length of the existing
206 instruction to determine the breakpoint kind.
207 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
208 flag. Update description of 'set/show riscv
209 use-compressed-breakpoints' flag.
211 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
213 (NEWS): Mention changes to frame related commands.
214 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
215 (add_prefix_cmd_suppress_notification): New function.
216 (add_com_suppress_notification): Call
217 add_cmd_suppress_notification.
218 * command.h (add_cmd_suppress_notification): Declare.
219 (add_prefix_cmd_suppress_notification): Declare.
220 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
221 (parse_frame_specification): Moved from stack.c, with
222 simplification to handle a single argument.
223 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
224 switch to the selected frame. Add a header comment.
225 * stack.c: Remove 'safe-ctype.h' include.
226 (find_frame_for_function): Add declaration.
227 (find_frame_for_address): New function.
228 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
229 (frame_selection_by_function_completer): New function.
230 (info_frame_command): Rename to...
231 (info_frame_command_core): ...this, and update parameter types.
232 (select_frame_command): Rename to...
233 (select_frame_command_core): ...this, and update parameter types.
234 (frame_command): Rename to...
235 (frame_command_core): ...this, and update parameter types.
236 (class frame_command_helper): New class to wrap implementations of
237 frame related sub-commands.
238 (frame_apply_cmd_list): New static global.
239 (frame_cmd_list): Make static.
240 (select_frame_cmd_list): New global for sub-commands.
241 (info_frame_cmd_list): New global for sub-commands.
242 (_initialize_stack): Register sub-commands for 'frame',
243 'select-frame', and 'info frame'. Update 'frame apply' commands
244 to use frame_apply_cmd_list. Move function local static
245 frame_apply_list to file static frame_apply_cmd_list for
247 * stack.h (select_frame_command): Delete declarationn.
248 (select_frame_for_mi): Declare new function.
250 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
252 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
253 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
256 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
258 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
260 2018-09-26 Tom Tromey <tom@tromey.com>
262 * valops.c (auto_abandon): Remove dead code.
264 2018-09-26 Tom Tromey <tom@tromey.com>
266 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
268 2018-09-24 Tom Tromey <tom@tromey.com>
270 * common/pathstuff.c (get_standard_cache_dir): Make
271 "xdg_cache_home" and "home" const.
272 * top.c (init_history): Make "tmpenv" const.
273 * main.c (get_init_files): Make "homedir" const.
275 2018-09-23 Tom Tromey <tom@tromey.com>
278 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
280 2018-09-23 Tom Tromey <tom@tromey.com>
282 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
283 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
284 * python/python-internal.h (gdbpy_handle_exception): Declare.
285 * python/py-utils.c (gdbpy_handle_exception): New function.
287 2018-09-23 Tom Tromey <tom@tromey.com>
290 * python/py-type.c (typy_template_argument): Check for negative
293 2018-09-23 Tom Tromey <tom@tromey.com>
296 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
298 2018-09-23 Tom Tromey <tom@tromey.com>
301 * python/py-value.c (valpy_int): Allow conversion from pointer
304 2018-09-23 Tom Tromey <tom@tromey.com>
307 * python/py-value.c (valpy_int): Respect type sign.
309 2018-09-23 Tom Tromey <tom@tromey.com>
312 * python/py-value.c (valpy_float): Allow conversions from int or
314 (valpy_int, valpy_long): Allow conversions from float.
316 2018-09-23 Tom Tromey <tom@tromey.com>
318 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
319 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
321 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
323 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
325 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
327 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
329 * windows-nat.c (windows_nat_target::wait): Remove a spurious
330 target_terminal::ours().
332 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
334 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
337 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
339 * breakpoint.c (update_inserted_breakpoint_locations): Remove
342 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
344 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
346 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
347 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
348 * sol-thread.c (ps_pdmodel): Don't guard definition.
350 * procfs.c: Fix formatting.
352 * procfs.c (sysset_t_alloc): Remove.
353 (create_procinfo): Use XNEW instead of sysset_t_alloc.
354 (procfs_debug_inferior): Likewise.
355 (procfs_set_exec_trap): Likewise.
356 (proc_set_traced_sysentry): Don't allocate argp dynamically.
357 (proc_set_traced_sysexit): Likewise.
359 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
360 (dead_procinfo): Likewise.
361 (proc_warn): Likewise.
362 (proc_error): Likewise.
363 (proc_get_LDT_entry): Likewise.
364 (do_attach): Likewise.
365 (procfs_target::pid_to_str): Likewise.
366 (iterate_over_mappings): Likewise.
368 * procfs.c (create_procinfo): Fix ARI warning.
369 (proc_get_status): Likewise.
370 (proc_stop_process): Likewise.
371 (proc_run_process): Likewise.
372 (proc_kill): Likewise.
373 (proc_get_LDT_entry): Likewise.
374 (procfs_find_LDT_entry): Likewise.
375 (proc_update_threads): Likewise.
376 (proc_iterate_over_threads): Likewise.
377 (do_attach): Likewise.
378 (procfs_xfer_memory): Likewise.
379 (invalidate_cache): Likewise.
380 (procfs_target::resume): Likewise.
381 (procfs_init_inferior): Likewise.
382 (procfs_set_exec_trap): Likewise.
383 (procfs_target::thread_alive): Likewise.
384 (procfs_target::pid_to_exec_file): Likewise.
385 (iterate_over_mappings): Likewise.
386 (procfs_target::make_corefile_notes): Likewise.
387 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
389 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
390 (procfs_find_LDT_entry): Likewise.
391 * sol-thread.c (ps_lgetLDT): Likewise.
393 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
396 * procfs.c (procfs_target): Declare pid_to_exec_file.
397 (procfs_target::pid_to_exec_file): New.
399 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
401 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
403 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
404 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
406 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
408 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
409 (supply_fpregset, fill_fpregset): Move ...
410 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
411 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
412 Remove references to ioctl-based procfs.
414 Remove PR_MODEL_NATIVE guards.
415 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
416 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
418 2018-09-19 Xavier Roirand <roirand@adacore.com>
421 * solib-darwin.c (darwin_get_dyld_bfd): New function.
422 (darwin_solib_get_all_image_info_addr_at_init): Update call.
423 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
425 2018-09-19 John Baldwin <jhb@FreeBSD.org>
427 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
428 (fbsd_print_sockaddr_in6): Likewise.
430 2018-09-19 Richard Bunt <richard.bunt@arm.com>
431 Chris January <chris.january@arm.com>
433 * eval.c (skip_undetermined_arglist): Skip argument list helper.
434 (evaluate_subexp_standard): Return a dummy type when
435 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
436 OP_F77_UNDETERMINED_ARGLIST case.
437 * expression.h (enum noside): Update comment.
439 2018-09-19 George Vasick <george.vasick@oracle.com>
441 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
443 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
444 April Chin <april.chin@oracle.com>
445 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
447 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
449 (create_procinfo): Print pids in /proc without leading zeros.
451 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
453 * nios2-tdep.c (nios2_gcc_target_options): New.
454 (nios2_gdb_arch_init): Install new hook.
456 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
458 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
460 * update-gnulib.sh: Apply patch.
461 * configure: Re-generate.
463 2018-09-18 John Baldwin <jhb@FreeBSD.org>
465 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
466 description. Make "info proc" command descriptions more
469 2018-09-18 John Baldwin <jhb@FreeBSD.org>
471 * NEWS: Mention 'info proc files' command.
473 2018-09-18 John Baldwin <jhb@FreeBSD.org>
475 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
476 descriptors for IP_FILES and IP_ALL.
478 2018-09-18 John Baldwin <jhb@FreeBSD.org>
480 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
481 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
482 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
483 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
484 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
485 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
486 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
487 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
488 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
489 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
490 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
491 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
492 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
493 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
494 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
495 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
496 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
497 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
498 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
499 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
500 (struct fbsd_sockaddr_un): New types.
501 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
502 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
503 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
504 (fbsd_core_info_proc_files): New functions.
505 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
507 * fbsd-tdep.h (fbsd_info_proc_files_header)
508 (fbsd_info_proc_files_entry): New.
510 2018-09-18 John Baldwin <jhb@FreeBSD.org>
512 * defs.h (enum info_proc_what) [IP_FILES]: New value.
513 * infcmd.c (info_proc_cmd_files): New function.
514 (_initialize_infcmd): Register 'info proc files' command.
516 2018-09-18 John Baldwin <jhb@FreeBSD.org>
518 * gnulib/aclocal-m4-deps.mk: Re-generate.
519 * gnulib/aclocal.m4: Re-generate.
520 * gnulib/config.in: Re-generate.
521 * gnulib/configure: Re-generate.
522 * gnulib/import/Makefile.am: Re-generate.
523 * gnulib/import/Makefile.in: Re-generate.
524 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
525 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
526 * gnulib/import/arpa_inet.in.h: New file.
527 * gnulib/import/inet_ntop.c: New file.
528 * gnulib/import/m4/arpa_inet_h.m4: New file.
529 * gnulib/import/m4/inet_ntop.m4: New file.
530 * gnulib/import/m4/netinet_in_h.m4: New file.
531 * gnulib/import/m4/socklen.m4: New file.
532 * gnulib/import/m4/sockpfaf.m4: New file.
533 * gnulib/import/m4/stdalign.m4: New file.
534 * gnulib/import/m4/sys_uio_h.m4: New file.
535 * gnulib/import/netinet_in.in.h: New file.
536 * gnulib/import/stdalign.in.h: New file.
537 * gnulib/import/sys_socket.c: New file.
538 * gnulib/import/sys_socket.in.h: New file.
539 * gnulib/import/sys_uio.in.h: New file.
540 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
543 2018-09-18 John Baldwin <jhb@FreeBSD.org>
545 * gnulib/aclocal-m4-deps.mk: New file.
546 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
549 2018-09-18 John Baldwin <jhb@FreeBSD.org>
551 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
554 2018-09-18 Tom Tromey <tom@tromey.com>
556 * compile/compile-object-load.c (struct
557 link_hash_table_cleanup_data): Add constructor and destructor.
558 Use DISABLE_COPY_AND_ASSIGN.
559 (~link_hash_table_cleanup_data): Rename from
560 link_hash_table_free. Now a destructor.
561 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
563 2018-09-18 Tom Tromey <tom@tromey.com>
565 * compile/compile-object-run.c (do_module_cleanup): Use delete.
566 * compile/compile-object-load.c (struct munmap_list): Move to
568 (munmap_list::add): Rename from munmap_list_add; rewrite.
569 (munmap_list::~munmap_list): Rename from munmap_list_free.
570 (munmap_listp_free_cleanup): Remove.
571 (compile_object_load): Update.
572 * compile/compile-object-load.h (struct munmap_list): Move from
573 compile-object-load.c. Rewrite.
575 2018-09-18 Alan Hayward <alan.hayward@arm.com>
577 * aarch64-tdep.c (pass_in_v): Use register size.
578 (aarch64_extract_return_value): Likewise.
579 (aarch64_store_return_value): Likewise.
581 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
583 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
586 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
588 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
591 2018-09-17 Tom Tromey <tom@tromey.com>
594 * configure: Rebuild.
595 * configure.ac: Conditionally use -DNDEBUG for Python.
597 2018-09-17 Tom Tromey <tom@tromey.com>
599 * configure: Rebuild.
600 * configure.ac: Use gmp as a library dependency when checking for
603 2018-09-17 Pedro Alves <palves@redhat.com>
605 * python/py-inferior.c (find_inferior_object): Delete.
607 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
609 * compile/compile-cplus-types.c
610 (compile_cplus_instance::enter_scope): Don't use new_scope after
613 2018-09-17 Tom Tromey <tom@tromey.com>
615 * common/pathstuff.c (get_standard_cache_dir): Use
616 ~/Library/Caches on macOS.
617 * common/pathstuff.h (get_standard_cache_dir): Update comment.
619 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
622 * breakpoint.c (commands_cmd_element): New.
623 (_initialize_breakpoint): Assign commands_cmd_element.
624 * breakpoint.h (commands_cmd_element): New.
625 * cli/cli-script.c (while_cmd_element, if_command,
626 define_cmd_element): New.
627 (command_name_equals): Remove.
628 (process_next_line): Compare commands by pointer, not by name.
629 (_initialize_cli_script): Assign the various cmd_list_element
631 * compile/compile.c (compile_cmd_element): New.
632 (_initialize_compile): Assign compile_cmd_element.
633 * compile/compile.h (compile_cmd_element): New.
634 * guile/guile.c (guile_cmd_element): New.
635 (install_gdb_commands): Assign guile_cmd_element.
636 * guile/guile.h (guile_cmd_element): New.
637 * python/python.c (python_cmd_element): New.
638 (_initialize_python): Assign python_cmd_element.
639 * python/python.h (python_cmd_element): New.
640 * tracepoint.c (while_stepping_cmd_element): New.
641 (_initialize_tracepoint): Assign while_stepping_cmd_element.
642 * tracepoint.h (while_stepping_cmd_element): New.
644 2018-09-17 Tom Tromey <tom@tromey.com>
646 * infrun.c (save_infcall_suspend_state): Return
647 infcall_suspend_state_up.
648 (save_infcall_control_state): Return infcall_control_state_up.
649 * inferior.h (save_infcall_suspend_state)
650 (save_infcall_control_state): Declare later. Return unique
653 2018-09-17 Tom Tromey <tom@tromey.com>
655 * infrun.c (struct stop_context): Declare constructor,
656 destructor, "changed" method.
657 (stop_context::stop_context): Rename from save_stop_context.
658 (stop_context::~stop_context): Rename from
659 release_stop_context_cleanup.
660 (normal_stop): Update.
661 (stop_context::changed): Rename from stop_context_changed. Return
664 2018-09-17 Tom Tromey <tom@tromey.com>
666 * inferior.h (struct infcall_suspend_state_deleter): New.
667 (infcall_suspend_state_up): New typedef.
668 (struct infcall_control_state_deleter): New.
669 (infcall_control_state_up): New typedef.
670 (make_cleanup_restore_infcall_suspend_state)
671 (make_cleanup_restore_infcall_control_state): Don't declare.
672 * infcall.c (call_function_by_hand_dummy): Update.
673 * infrun.c (do_restore_infcall_suspend_state_cleanup)
674 (make_cleanup_restore_infcall_suspend_state): Remove.
675 (do_restore_infcall_control_state_cleanup)
676 (make_cleanup_restore_infcall_control_state): Remove.
678 2018-09-17 Tom Tromey <tom@tromey.com>
680 * gdbthread.h (struct thread_control_state): Add initializer.
681 (class thread_info) <control>: Remove initializer.
682 * inferior.h (struct inferior_control_state): Add initializer.
683 (class inferior) <control>: Remove initializer.
684 (exit_inferior_1): Update.
685 * infrun.c (struct infcall_control_state): Add constructors.
686 (save_infcall_control_state): Use new.
687 (restore_infcall_control_state, discard_infcall_control_state):
690 2018-09-17 Tom Tromey <tom@tromey.com>
692 * infrun.c (struct infcall_suspend_state) <registers>: Now a
694 <siginfo_data>: Now a unique_xmalloc_ptr.
695 (save_infcall_suspend_state, restore_infcall_suspend_state)
696 (discard_infcall_suspend_state)
697 (get_infcall_suspend_state_regcache): Update.
699 2018-09-17 Tom Tromey <tom@tromey.com>
701 * gdbthread.h (struct thread_suspend_state): Add initializers.
702 (class thread_info) <suspend>: Remove initializer.
703 * infrun.c (struct infcall_suspend_state): Add initializers.
704 (save_infcall_suspend_state): Use new.
705 (discard_infcall_suspend_state): Use delete.
707 2018-09-16 Tom Tromey <tom@tromey.com>
709 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
711 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
712 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
713 (py_varobj_iter_new): Likewise.
714 (py_varobj_get_iterator): Use gdbpy_ref.
716 2018-09-16 Tom Tromey <tom@tromey.com>
718 * python/py-threadevent.c (py_get_event_thread): Simplify.
719 * python/py-inferior.c (infpy_thread_from_thread_handle):
720 Return immediately after calling thread_to_thread_object. Use
722 (thread_to_thread_object): Set the exception on a NULL return.
724 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
726 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
728 2018-09-16 Tom Tromey <tom@tromey.com>
730 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
733 2018-09-16 Tom Tromey <tom@tromey.com>
735 * python/python-internal.h (thread_to_thread_object): Change
737 * python/py-inferior.c (thread_to_thread_object): Return a new
739 (infpy_thread_from_thread_handle): Update.
740 * python/py-infthread.c (gdbpy_selected_thread): Update.
741 * python/py-stopevent.c (create_stop_event_object): Update.
742 * python/py-threadevent.c (py_get_event_thread): Return a new
744 (py_get_event_thread): Update.
745 * python/py-event.h (py_get_event_thread): Change return type.
746 * python/py-continueevent.c (create_continue_event_object):
749 2018-09-16 Tom Tromey <tom@tromey.com>
751 * python/py-progspace.c (pspy_get_objfiles): Update.
752 * python/python-internal.h (objfile_to_objfile_object): Change
754 * python/py-newobjfileevent.c (create_new_objfile_event_object):
756 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
758 * python/python.c (gdbpy_get_current_objfile): Update.
759 (gdbpy_objfiles): Update.
760 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
762 (objfile_to_objfile_object): Return a new reference.
763 * python/py-symtab.c (stpy_get_objfile): Update.
764 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
767 2018-09-16 Tom Tromey <tom@tromey.com>
769 * python/py-inferior.c (infpy_get_progspace): Update.
770 * python/python-internal.h (pspace_to_pspace_object): Change
772 * python/py-newobjfileevent.c
773 (create_clear_objfiles_event_object): Update.
774 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
776 * python/python.c (gdbpy_get_current_progspace): Update.
777 (gdbpy_progspaces): Update.
778 * python/py-progspace.c (pspace_to_pspace_object): Return a new
780 * python/py-objfile.c (objfpy_get_progspace): Update.
781 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
784 2018-09-16 Tom Tromey <tom@tromey.com>
786 * python/lib/gdb/__init__.py (current_progspace, objfiles)
787 (solib_name, block_for_pc, find_pc_line): New functions.
788 (execute_unwinders): Update.
789 * python/py-block.c (gdbpy_block_for_pc): Remove.
790 * python/py-inferior.c (infpy_get_progspace): New function.
791 (inferior_object_getset) <progspace>: Add.
792 * python/py-progspace.c (pspy_objfiles): Rewrite.
793 (pspy_solib_name, pspy_block_for_pc)
794 (pspy_find_pc_line, pspy_is_valid): New functions.
795 (progspace_object_methods): Add entries for solib_name,
796 block_for_pc, find_pc_line, is_valid.
797 * python/python-internal.h (gdbpy_block_for_pc)
798 (build_objfiles_list): Don't declare.
799 * python/python.c: Don't include solib.h.
800 (gdbpy_solib_name, gdbpy_find_pc_line)
801 (gdbpy_get_current_progspace, build_objfiles_list)
802 (gdbpy_objfiles): Remove.
803 (GdbMethods) <current_progspace, objfiles, block_for_pc,
804 solib_name, find_pc_line>: Remove entries.
806 2018-09-16 Tom Tromey <tom@tromey.com>
808 * top.c (new_ui_command): Use GNU style for metasyntactic
810 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
812 * maint.c (maintenance_translate_address): Remove "<>" around
814 * interps.c (interpreter_exec_cmd): Use GNU style for
815 metasyntactic variables.
816 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
817 metasyntactic variables.
818 * tracepoint.c (tfind_range_command): Use GNU style for
819 metasyntactic variables.
820 (tfind_outside_command): Likewise.
821 (_initialize_tracepoint): Likewise.
822 * remote.c (extended_remote_target::create_inferior): Use GNU
823 style for metasyntactic variables.
824 * sparc64-tdep.c (adi_examine_command): Use GNU style for
825 metasyntactic variables.
826 (adi_assign_command): Likewise.
828 2018-09-16 Tom Tromey <tom@tromey.com>
830 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
831 metasyntactic variables. Print message if no disassembler options
834 2018-09-15 Tom Tromey <tom@tromey.com>
836 * infcmd.c (get_inferior_args): Return const char *.
837 * inferior.h (get_inferior_args): Return type now const.
838 * linux-tdep.c (linux_fill_prpsinfo): Update.
839 * procfs.c (procfs_target::make_corefile_notes): Update.
841 2018-09-07 Tom Tromey <tom@tromey.com>
843 * python/python.c (execute_gdb_command): Call bpstat_do_actions
846 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
848 * nios2-tdep.c (nios2_type_align): New.
849 (nios2_gdb_arch_init): Install type_align hook.
851 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
853 * eval.c (fake_method::fake_method): Call xzalloc directly for a
854 type that is neither object file owned, nor gdbarch owned.
855 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
857 (alloc_type_instance): Allocate non-objfile owned types on the
859 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
860 using TYPE_ALLOC to ensure memory is allocated on the correct
862 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
863 obstack, or the gdbarch obstack.
864 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
866 2018-09-14 Tom Tromey <tom@tromey.com>
868 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
871 2018-09-14 Tom Tromey <tom@tromey.com>
873 * nat/fork-inferior.c (get_startup_shell): Remove "static".
875 2018-09-13 Tom Tromey <tom@tromey.com>
877 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
880 2018-09-13 Tom Tromey <tom@tromey.com>
882 * exec.c (try_open_exec_file): Use std::string.
884 2018-09-13 Tom Tromey <tom@tromey.com>
886 * utils.h (gdb_bfd_errmsg): Return std::string.
887 * exec.c (exec_file_attach): Update.
888 * compile/compile-object-load.c (compile_object_load): Update.
889 * utils.c (gdb_bfd_errmsg): Return std::string.
891 2018-09-13 Tom Tromey <tom@tromey.com>
893 * procfs.c (struct procinfo_deleter): New.
894 (procinfo_up): New typedef.
895 (do_destroy_procinfo_cleanup): Remove.
896 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
898 2018-09-13 Tom Tromey <tom@tromey.com>
900 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
902 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
903 2018-09-13 Tom Tromey <tom@tromey.com>
905 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
906 (pspy_get_objfiles): New function.
907 (progspace_object_methods): New.
908 (pspace_object_type): Add tp_methods callback.
909 * python/python-internal.h (build_objfiles_list): New
911 * python/python.c (build_objfiles_list): New function.
912 (gdbpy_objfiles): Implement using build_objfiles_list.
913 * NEWS: Mention the Progspace.objfiles method.
915 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
917 * python/py-inferior.c (infpy_get_progspace): New function.
918 (inferior_object_getset): Add progspace property.
919 * NEWS: Mention the new property.
921 2018-09-13 Tom Tromey <tom@tromey.com>
924 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
926 2018-09-13 Tom Tromey <tom@tromey.com>
929 * rust-lang.c (rust_enum_variant): Now static.
930 (rust_empty_enum_p): New function.
931 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
934 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
936 * python/py-inferior.c (infpy_repr): New.
937 (inferior_object_type): Register infpy_repr.
938 * python/py-objfile.c (objfpy_repr): New.
939 (objfile_object_type): Register objfpy_repr.
941 2018-09-12 John Baldwin <jhb@FreeBSD.org>
943 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
945 2018-09-12 John Baldwin <jhb@FreeBSD.org>
947 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
950 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
952 * common/common-utils.c: Don't include '<sys/stat.h>'.
953 (is_regular_file): Move to...
954 * common/filestuff.c (is_regular_file): ... here.
955 * common/common-utils.h (is_regular_file): Move to...
956 * common/filestuff.h (is_regular_file): ... here.
958 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
960 * skip.c (debug_skip): New variable.
961 (skiplist_entry::do_skip_file_p): Add debug output.
962 (skiplist_entry::do_skip_gfile_p): Likewise.
963 (skiplist_entry::skip_function_p): Likewise.
964 (_initialize_step_skip): Create debug command.
965 * NEWS: Mention set/show debug skip.
967 2018-09-11 Xavier Roirand <roirand@adacore.com>
969 * darwin-nat.c (should_disable_startup_with_shell):
971 (darwin_nat_target::create_inferior): Add call.
973 2018-09-11 Xavier Roirand <roirand@adacore.com>
975 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
976 inf_port, msg_state>: Initialize.
977 (struct darwin_thread_info) <signaled, single_step>: Change
979 (struct darwin_thread_info) <event>: Initialize.
981 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
985 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
988 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
991 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
995 * gnulib/aclocal.m4: Regenerate.
996 * gnulib/config.in: Regenerate.
997 * gnulib/configure: Regenerate.
998 * gnulib/import/Makefile.am: Update.
999 * gnulib/import/Makefile.in: Update.
1000 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1001 * gnulib/import/_Noreturn.h: ... this.
1002 * gnulib/import/alloca.in.h: Update.
1003 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1004 * gnulib/import/arg-nonnull.h: ... this.
1005 * gnulib/import/assure.h: Update.
1006 * gnulib/import/at-func.c: Update.
1007 * gnulib/import/basename-lgpl.c: Update.
1008 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1009 * gnulib/import/c++defs.h: ... this.
1010 * gnulib/import/canonicalize-lgpl.c: Update.
1011 * gnulib/import/cdefs.h: Update.
1012 * gnulib/import/chdir-long.c: Update.
1013 * gnulib/import/chdir-long.h: Update.
1014 * gnulib/import/cloexec.c: Update.
1015 * gnulib/import/cloexec.h: Update.
1016 * gnulib/import/close.c: Update.
1017 * gnulib/import/closedir.c: Update.
1018 * gnulib/import/config.charset: Update.
1019 * gnulib/import/dirent-private.h: Update.
1020 * gnulib/import/dirent.in.h: Update.
1021 * gnulib/import/dirfd.c: Update.
1022 * gnulib/import/dirname-lgpl.c: Update.
1023 * gnulib/import/dirname.h: Update.
1024 * gnulib/import/dosname.h: Update.
1025 * gnulib/import/dup-safer-flag.c: Update.
1026 * gnulib/import/dup-safer.c: Update.
1027 * gnulib/import/dup.c: Update.
1028 * gnulib/import/dup2.c: Update.
1029 * gnulib/import/errno.in.h: Update.
1030 * gnulib/import/error.c: Update.
1031 * gnulib/import/error.h: Update.
1032 * gnulib/import/exitfail.c: Update.
1033 * gnulib/import/exitfail.h: Update.
1034 * gnulib/import/extra/update-copyright: Update.
1035 * gnulib/import/fchdir.c: Update.
1036 * gnulib/import/fcntl.c: Update.
1037 * gnulib/import/fcntl.in.h: Update.
1038 * gnulib/import/fd-hook.c: Update.
1039 * gnulib/import/fd-hook.h: Update.
1040 * gnulib/import/fd-safer-flag.c: Update.
1041 * gnulib/import/fd-safer.c: Update.
1042 * gnulib/import/fdopendir.c: Update.
1043 * gnulib/import/filename.h: Update.
1044 * gnulib/import/filenamecat-lgpl.c: Update.
1045 * gnulib/import/filenamecat.h: Update.
1046 * gnulib/import/flexmember.h: Update.
1047 * gnulib/import/float+.h: Update.
1048 * gnulib/import/float.c: Update.
1049 * gnulib/import/float.in.h: Update.
1050 * gnulib/import/fnmatch.c: Update.
1051 * gnulib/import/fnmatch.in.h: Update.
1052 * gnulib/import/fnmatch_loop.c: Update.
1053 * gnulib/import/fpucw.h: Update.
1054 * gnulib/import/frexp.c: Update.
1055 * gnulib/import/frexpl.c: Update.
1056 * gnulib/import/fstat.c: Update.
1057 * gnulib/import/fstatat.c: Update.
1058 * gnulib/import/getcwd-lgpl.c: Update.
1059 * gnulib/import/getcwd.c: Update.
1060 * gnulib/import/getdtablesize.c: Update.
1061 * gnulib/import/getlogin_r.c: Update.
1062 * gnulib/import/getprogname.c: Update.
1063 * gnulib/import/getprogname.h: Update.
1064 * gnulib/import/gettext.h: Update.
1065 * gnulib/import/gettimeofday.c: Update.
1066 * gnulib/import/glob-libc.h: Update.
1067 * gnulib/import/glob.c: Update.
1068 * gnulib/import/glob.in.h: Update.
1069 * gnulib/import/glob_internal.h: Update.
1070 * gnulib/import/glob_pattern_p.c: Update.
1071 * gnulib/import/globfree.c: Update.
1072 * gnulib/import/hard-locale.c: Update.
1073 * gnulib/import/hard-locale.h: Update.
1074 * gnulib/import/intprops.h: Update.
1075 * gnulib/import/inttypes.in.h: Update.
1076 * gnulib/import/isnan.c: Update.
1077 * gnulib/import/isnand-nolibm.h: Update.
1078 * gnulib/import/isnand.c: Update.
1079 * gnulib/import/isnanl-nolibm.h: Update.
1080 * gnulib/import/isnanl.c: Update.
1081 * gnulib/import/itold.c: Update.
1082 * gnulib/import/libc-config.h: Update.
1083 * gnulib/import/limits.in.h: Update.
1084 * gnulib/import/localcharset.c: Update.
1085 * gnulib/import/localcharset.h: Update.
1086 * gnulib/import/localtime-buffer.c: Update.
1087 * gnulib/import/localtime-buffer.h: Update.
1088 * gnulib/import/lstat.c: Update.
1089 * gnulib/import/m4/00gnulib.m4: Update.
1090 * gnulib/import/m4/__inline.m4: Update.
1091 * gnulib/import/m4/absolute-header.m4: Update.
1092 * gnulib/import/m4/alloca.m4: Update.
1093 * gnulib/import/m4/builtin-expect.m4: Update.
1094 * gnulib/import/m4/canonicalize.m4: Update.
1095 * gnulib/import/m4/chdir-long.m4: Update.
1096 * gnulib/import/m4/close.m4: Update.
1097 * gnulib/import/m4/closedir.m4: Update.
1098 * gnulib/import/m4/configmake.m4: Update.
1099 * gnulib/import/m4/d-ino.m4: Update.
1100 * gnulib/import/m4/d-type.m4: Update.
1101 * gnulib/import/m4/dirent_h.m4: Update.
1102 * gnulib/import/m4/dirfd.m4: Update.
1103 * gnulib/import/m4/dirname.m4: Update.
1104 * gnulib/import/m4/double-slash-root.m4: Update.
1105 * gnulib/import/m4/dup.m4: Update.
1106 * gnulib/import/m4/dup2.m4: Update.
1107 * gnulib/import/m4/eealloc.m4: Update.
1108 * gnulib/import/m4/environ.m4: Update.
1109 * gnulib/import/m4/errno_h.m4: Update.
1110 * gnulib/import/m4/error.m4: Update.
1111 * gnulib/import/m4/exponentd.m4: Update.
1112 * gnulib/import/m4/exponentl.m4: Update.
1113 * gnulib/import/m4/extensions.m4: Update.
1114 * gnulib/import/m4/extern-inline.m4: Update.
1115 * gnulib/import/m4/fchdir.m4: Update.
1116 * gnulib/import/m4/fcntl-o.m4: Update.
1117 * gnulib/import/m4/fcntl.m4: Update.
1118 * gnulib/import/m4/fcntl_h.m4: Update.
1119 * gnulib/import/m4/fdopendir.m4: Update.
1120 * gnulib/import/m4/filenamecat.m4: Update.
1121 * gnulib/import/m4/flexmember.m4: Update.
1122 * gnulib/import/m4/float_h.m4: Update.
1123 * gnulib/import/m4/fnmatch.m4: Update.
1124 * gnulib/import/m4/fnmatch_h.m4: Update.
1125 * gnulib/import/m4/fpieee.m4: Update.
1126 * gnulib/import/m4/frexp.m4: Update.
1127 * gnulib/import/m4/frexpl.m4: Update.
1128 * gnulib/import/m4/fstat.m4: Update.
1129 * gnulib/import/m4/fstatat.m4: Update.
1130 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1131 * gnulib/import/m4/getcwd-path-max.m4: Update.
1132 * gnulib/import/m4/getcwd.m4: Update.
1133 * gnulib/import/m4/getdtablesize.m4: Update.
1134 * gnulib/import/m4/getlogin.m4: Update.
1135 * gnulib/import/m4/getlogin_r.m4: Update.
1136 * gnulib/import/m4/getpagesize.m4: Update.
1137 * gnulib/import/m4/getprogname.m4: Update.
1138 * gnulib/import/m4/gettimeofday.m4: Update.
1139 * gnulib/import/m4/glibc21.m4: Update.
1140 * gnulib/import/m4/glob.m4: Update.
1141 * gnulib/import/m4/glob_h.m4: Update.
1142 * gnulib/import/m4/gnulib-cache.m4: Update.
1143 * gnulib/import/m4/gnulib-common.m4: Update.
1144 * gnulib/import/m4/gnulib-comp.m4: Update.
1145 * gnulib/import/m4/gnulib-tool.m4: Update.
1146 * gnulib/import/m4/hard-locale.m4: Update.
1147 * gnulib/import/m4/include_next.m4: Update.
1148 * gnulib/import/m4/inttypes-pri.m4: Update.
1149 * gnulib/import/m4/inttypes.m4: Update.
1150 * gnulib/import/m4/isnand.m4: Update.
1151 * gnulib/import/m4/isnanl.m4: Update.
1152 * gnulib/import/m4/largefile.m4: Update.
1153 * gnulib/import/m4/limits-h.m4: Update.
1154 * gnulib/import/m4/localcharset.m4: Update.
1155 * gnulib/import/m4/locale-fr.m4: Update.
1156 * gnulib/import/m4/locale-ja.m4: Update.
1157 * gnulib/import/m4/locale-zh.m4: Update.
1158 * gnulib/import/m4/localtime-buffer.m4: Update.
1159 * gnulib/import/m4/longlong.m4: Update.
1160 * gnulib/import/m4/lstat.m4: Update.
1161 * gnulib/import/m4/malloc.m4: Update.
1162 * gnulib/import/m4/malloca.m4: Update.
1163 * gnulib/import/m4/math_h.m4: Update.
1164 * gnulib/import/m4/mbrtowc.m4: Update.
1165 * gnulib/import/m4/mbsinit.m4: Update.
1166 * gnulib/import/m4/mbsrtowcs.m4: Update.
1167 * gnulib/import/m4/mbstate_t.m4: Update.
1168 * gnulib/import/m4/memchr.m4: Update.
1169 * gnulib/import/m4/memmem.m4: Update.
1170 * gnulib/import/m4/mempcpy.m4: Update.
1171 * gnulib/import/m4/memrchr.m4: Update.
1172 * gnulib/import/m4/mkdir.m4: Update.
1173 * gnulib/import/m4/mkstemp.m4: Update.
1174 * gnulib/import/m4/mmap-anon.m4: Update.
1175 * gnulib/import/m4/mode_t.m4: Update.
1176 * gnulib/import/m4/msvc-inval.m4: Update.
1177 * gnulib/import/m4/msvc-nothrow.m4: Update.
1178 * gnulib/import/m4/multiarch.m4: Update.
1179 * gnulib/import/m4/nocrash.m4: Update.
1180 * gnulib/import/m4/off_t.m4: Update.
1181 * gnulib/import/m4/onceonly.m4: Update.
1182 * gnulib/import/m4/open-cloexec.m4: Update.
1183 * gnulib/import/m4/open.m4: Update.
1184 * gnulib/import/m4/openat.m4: Update.
1185 * gnulib/import/m4/opendir.m4: Update.
1186 * gnulib/import/m4/pathmax.m4: Update.
1187 * gnulib/import/m4/rawmemchr.m4: Update.
1188 * gnulib/import/m4/readdir.m4: Update.
1189 * gnulib/import/m4/readlink.m4: Update.
1190 * gnulib/import/m4/realloc.m4: Update.
1191 * gnulib/import/m4/rename.m4: Update.
1192 * gnulib/import/m4/rewinddir.m4: Update.
1193 * gnulib/import/m4/rmdir.m4: Update.
1194 * gnulib/import/m4/save-cwd.m4: Update.
1195 * gnulib/import/m4/secure_getenv.m4: Update.
1196 * gnulib/import/m4/setenv.m4: Update.
1197 * gnulib/import/m4/signal_h.m4: Update.
1198 * gnulib/import/m4/ssize_t.m4: Update.
1199 * gnulib/import/m4/stat-time.m4: Update.
1200 * gnulib/import/m4/stat.m4: Update.
1201 * gnulib/import/m4/std-gnu11.m4: Update.
1202 * gnulib/import/m4/stdbool.m4: Update.
1203 * gnulib/import/m4/stddef_h.m4: Update.
1204 * gnulib/import/m4/stdint.m4: Update.
1205 * gnulib/import/m4/stdio_h.m4: Update.
1206 * gnulib/import/m4/stdlib_h.m4: Update.
1207 * gnulib/import/m4/strchrnul.m4: Update.
1208 * gnulib/import/m4/strdup.m4: Update.
1209 * gnulib/import/m4/strerror.m4: Update.
1210 * gnulib/import/m4/string_h.m4: Update.
1211 * gnulib/import/m4/strstr.m4: Update.
1212 * gnulib/import/m4/strtok_r.m4: Update.
1213 * gnulib/import/m4/sys_socket_h.m4: Update.
1214 * gnulib/import/m4/sys_stat_h.m4: Update.
1215 * gnulib/import/m4/sys_time_h.m4: Update.
1216 * gnulib/import/m4/sys_types_h.m4: Update.
1217 * gnulib/import/m4/tempname.m4: Update.
1218 * gnulib/import/m4/time_h.m4: Update.
1219 * gnulib/import/m4/unistd-safer.m4: Update.
1220 * gnulib/import/m4/unistd_h.m4: Update.
1221 * gnulib/import/m4/warn-on-use.m4: Update.
1222 * gnulib/import/m4/wchar_h.m4: Update.
1223 * gnulib/import/m4/wchar_t.m4: Update.
1224 * gnulib/import/m4/wctype_h.m4: Update.
1225 * gnulib/import/m4/wint_t.m4: Update.
1226 * gnulib/import/malloc.c: Update.
1227 * gnulib/import/malloc/scratch_buffer.h: Update.
1228 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1229 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1230 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1231 * gnulib/import/malloca.c: Update.
1232 * gnulib/import/malloca.h: Update.
1233 * gnulib/import/malloca.valgrind: Update.
1234 * gnulib/import/math.in.h: Update.
1235 * gnulib/import/mbrtowc.c: Update.
1236 * gnulib/import/mbsinit.c: Update.
1237 * gnulib/import/mbsrtowcs-impl.h: Update.
1238 * gnulib/import/mbsrtowcs-state.c: Update.
1239 * gnulib/import/mbsrtowcs.c: Update.
1240 * gnulib/import/memchr.c: Update.
1241 * gnulib/import/memmem.c: Update.
1242 * gnulib/import/mempcpy.c: Update.
1243 * gnulib/import/memrchr.c: Update.
1244 * gnulib/import/mkdir.c: Update.
1245 * gnulib/import/mkstemp.c: Update.
1246 * gnulib/import/msvc-inval.c: Update.
1247 * gnulib/import/msvc-inval.h: Update.
1248 * gnulib/import/msvc-nothrow.c: Update.
1249 * gnulib/import/msvc-nothrow.h: Update.
1250 * gnulib/import/open.c: Update.
1251 * gnulib/import/openat-die.c: Update.
1252 * gnulib/import/openat-priv.h: Update.
1253 * gnulib/import/openat-proc.c: Update.
1254 * gnulib/import/openat.c: Update.
1255 * gnulib/import/openat.h: Update.
1256 * gnulib/import/opendir.c: Update.
1257 * gnulib/import/pathmax.h: Update.
1258 * gnulib/import/pipe-safer.c: Update.
1259 * gnulib/import/rawmemchr.c: Update.
1260 * gnulib/import/readdir.c: Update.
1261 * gnulib/import/readlink.c: Update.
1262 * gnulib/import/realloc.c: Update.
1263 * gnulib/import/ref-add.sin: Update.
1264 * gnulib/import/ref-del.sin: Update.
1265 * gnulib/import/rename.c: Update.
1266 * gnulib/import/rewinddir.c: Update.
1267 * gnulib/import/rmdir.c: Update.
1268 * gnulib/import/same-inode.h: Update.
1269 * gnulib/import/save-cwd.c: Update.
1270 * gnulib/import/save-cwd.h: Update.
1271 * gnulib/import/scratch_buffer.h: Update.
1272 * gnulib/import/secure_getenv.c: Update.
1273 * gnulib/import/setenv.c: Update.
1274 * gnulib/import/signal.in.h: Update.
1275 * gnulib/import/stat-time.c: Update.
1276 * gnulib/import/stat-time.h: Update.
1277 * gnulib/import/stat-w32.c: Update.
1278 * gnulib/import/stat-w32.h: Update.
1279 * gnulib/import/stat.c: Update.
1280 * gnulib/import/stdbool.in.h: Update.
1281 * gnulib/import/stddef.in.h: Update.
1282 * gnulib/import/stdint.in.h: Update.
1283 * gnulib/import/stdio.in.h: Update.
1284 * gnulib/import/stdlib.in.h: Update.
1285 * gnulib/import/str-two-way.h: Update.
1286 * gnulib/import/strchrnul.c: Update.
1287 * gnulib/import/strdup.c: Update.
1288 * gnulib/import/streq.h: Update.
1289 * gnulib/import/strerror-override.c: Update.
1290 * gnulib/import/strerror-override.h: Update.
1291 * gnulib/import/strerror.c: Update.
1292 * gnulib/import/string.in.h: Update.
1293 * gnulib/import/stripslash.c: Update.
1294 * gnulib/import/strnlen1.c: Update.
1295 * gnulib/import/strnlen1.h: Update.
1296 * gnulib/import/strstr.c: Update.
1297 * gnulib/import/strtok_r.c: Update.
1298 * gnulib/import/sys_stat.in.h: Update.
1299 * gnulib/import/sys_time.in.h: Update.
1300 * gnulib/import/sys_types.in.h: Update.
1301 * gnulib/import/tempname.c: Update.
1302 * gnulib/import/tempname.h: Update.
1303 * gnulib/import/time.in.h: Update.
1304 * gnulib/import/unistd--.h: Update.
1305 * gnulib/import/unistd-safer.h: Update.
1306 * gnulib/import/unistd.in.h: Update.
1307 * gnulib/import/unsetenv.c: Update.
1308 * gnulib/import/verify.h: Update.
1309 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1310 * gnulib/import/wchar.in.h: Update.
1311 * gnulib/import/wctype.in.h: Update.
1312 * gnulib/import/xalloc-oversized.h: Update.
1313 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1314 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1316 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1318 * record-btrace.c (get_thread_current_frame): Remove
1321 2018-09-10 Jerome Guitton <guitton@adacore.com>
1323 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1324 with check_tag to 1 if and only if the type is tagged and the
1325 component being searched cannot been found in the current
1326 view. Otherwise, always call ada_to_fixed_type with
1329 2018-09-10 Xavier Roirand <roirand@adacore.com>
1331 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1333 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1334 * ada-varobj.c (ada_varobj_get_number_of_children,
1335 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1337 2018-09-10 Xavier Roirand <roirand@adacore.com>
1339 * ada-valprint.c (ada_value_print): Use type instead of
1342 2018-09-10 Xavier Roirand <roirand@adacore.com>
1344 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1345 an array of access to unconstrained array.
1347 2018-09-10 Xavier Roirand <roirand@adacore.com>
1349 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1350 (ada_check_typedef): Use it.
1352 2018-09-10 Xavier Roirand <roirand@adacore.com>
1354 * ada-varobj.c (ada_varobj_describe_struct_child)
1355 (ada_varobj_describe_child): Handle union case like struct one.
1357 2018-09-10 Tom Tromey <tom@tromey.com>
1360 * python/python.c (_initialize_python): Make example in "python"
1361 help work in Python 3.
1363 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1365 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1366 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1367 $(EXEEXT) to the script, as it is not a program.
1369 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1371 * python/py-prettyprint.c (pretty_print_one_value): Return
1373 (print_string_repr): Adjust.
1374 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1375 * python/python-internal.h (apply_varobj_pretty_printer): Return
1377 * varobj.c (varobj_value_get_print_value): Adjust.
1379 2018-09-08 Tom Tromey <tom@tromey.com>
1382 * python/py-prettyprint.c (pretty_print_one_value): Check for
1385 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1387 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1388 replace_operator_with_call.
1390 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1392 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1394 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1396 * ada-typeprint.c (print_range): Print the bounds using TYPE
1397 rather than its TYPE_TARGET_TYPE.
1399 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1401 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1402 call to ada_to_fixed_value_create.
1404 2018-09-08 Jerome Guitton <guitton@adacore.com>
1406 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1408 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1410 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1413 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1415 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1416 Move update of loop variable "fi".
1418 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1420 * ada-lang.c (value_assign_to_component): In the case of
1421 big-endian targets, extract the bits of the given VAL
1422 using an src_offset of zero if container is not a scalar.
1424 2018-09-06 Simon Ser <contact@emersion.fr>
1427 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1428 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1429 * fbsd-tdep.c (fbsd_make_note_desc): New.
1430 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1431 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1432 * target.h (enum target_object) Add FreeBSD-specific
1433 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1435 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1437 * compile/compile-c.h (generate_c_for_variable_locations):
1438 Change reference to pointer.
1439 * compile/compile-c-support.c (compile_program) <compute>:
1441 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1442 (generate_c_for_for_one_variable): Likewise
1443 (generate_c_for_variable_locations): Likewise
1444 * compile/compile-c-types.c (compile_c_instance::convert_type):
1446 * compile/compile-cplus-symbols.c (convert_one_symbol):
1447 std::move the scope passed to enter_scope.
1448 * compile/compile-cplus-types.c
1449 (compile_cplus_instance::enter_scope): Make parameter
1451 (compile_cplus_instance::new_scope): Change reference to
1453 (compile_cplus_instance::convert_type): Likewise
1454 (compile_cplus_convert_typedef): std::move the scope passed to
1456 (compile_cplus_convert_struct_or_union): Likewise.
1457 (compile_cplus_convert_enum): Likewise.
1458 (compile_cplus_convert_namespace): Likewise.
1459 * compile/compile-cplus.h (compile_cplus_instance)
1460 <enter_scope>: Make parameter rvalue-reference.
1461 * compile/compile-internal.h (compile_instance)
1462 <get_cached_type>: Likewise
1463 * compile/compile-loc2c.c (push): Likewise
1467 (print_label): Likewise
1468 (pushf_register_address): Likewise
1469 (pushf_register): Likewise
1470 (do_compile_dwarf_expr_to_c): Likewise
1471 (compile_dwarf_expr_to_c): Likewise
1472 (compile_dwarf_bounds_to_c): Likewise
1473 * compile/compile.c (compile_instance::get_cached_type):
1475 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1476 (compile_dwarf_bounds_to_c): Likewise
1477 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1478 (dwarf2_compile_property_to_c): Likewise
1479 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1480 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1483 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1485 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1486 * tui/tui-data.c (init_content_element): Don't initialize it.
1488 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1490 * tui/tui-data.h (struct tui_win_info)
1491 <detail::opaque>: Remove.
1492 * tui/tui-data.c (init_win_info): Remove assignment.
1494 2018-09-05 Tom Tromey <tom@tromey.com>
1496 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1497 -Wformat-nonliteral.
1498 * target-float.c (host_float_ops<T>::to_string)
1499 (host_float_ops<T>::from_string): Use
1500 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1501 * configure: Rebuild.
1503 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1505 * printcmd.c (printf_c_string): Use
1506 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1507 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1509 2018-09-05 Tom Tromey <tom@tromey.com>
1511 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1513 2018-09-05 Tom de Vries <tdevries@suse.de>
1515 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1516 with resolve_abstract_p == true.
1517 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1518 defaulting to false. Propagate resolve_abstract_p to
1519 dwarf2_fetch_die_loc_sect_off.
1520 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1521 parameter, defaulting to false.
1522 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1523 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1525 * dwarf2read.h (struct die_info): Forward-declare.
1526 (die_info_ptr): New typedef.
1527 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1529 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1533 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1534 Pedro Alves <palves@redhat.com>
1536 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1537 "aclocal-m4-deps.mk". Include file here.
1538 $(srcdir)/aclocal.m4: Add "configure.ac".
1539 * gnulib/aclocal-m4-deps.mk: New file.
1540 * gnulib/update-gnulib.sh: Automatically update
1541 "aclocal-m4-deps.mk".
1543 2018-09-04 Tom Tromey <tom@tromey.com>
1545 * configure: Rebuild.
1546 * configure.ac: Remove multi-ice code.
1548 2018-09-04 Tom Tromey <tom@tromey.com>
1550 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1551 (ada-exp.o): Update.
1553 2018-09-04 Tom Tromey <tom@tromey.com>
1555 * Makefile.in (printcmd.o, target-float.o): Remove.
1556 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1558 2018-09-04 Tom Tromey <tom@tromey.com>
1560 * gnulib/Makefile.in: Remove obsolete comment.
1561 * Makefile.in: Remove obsolete comment.
1563 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1565 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1568 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1570 * riscv-tdep.c: Add 'prologue-value.h' include.
1571 (struct riscv_unwind_cache): New struct.
1572 (riscv_debug_unwinder): New global.
1573 (riscv_scan_prologue): Update arguments, capture register details
1575 (riscv_skip_prologue): Reformat arguments line, move end of
1576 prologue calculation into riscv_scan_prologue.
1577 (riscv_frame_cache): Update return type, create
1578 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1580 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1581 (riscv_frame_prev_register): Use the trad_frame within the
1583 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1586 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1588 * trad-frame.h (trad_frame_set_realreg): Declare.
1589 (trad_frame_set_addr): Declare.
1590 * trad-frame.c (trad_frame_set_realreg): Define new function.
1591 (trad_frame_set_addr): Define new function.
1592 (trad_frame_set_reg_realreg): Use new function.
1593 (trad_frame_set_reg_addr): Use new function.
1595 2018-09-01 Keith Seitz <keiths@redhat.com>
1597 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1598 pulongest instead of "%lld".
1599 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1602 2018-08-31 Tom Tromey <tom@tromey.com>
1604 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1607 2018-08-31 Pedro Alves <palves@redhat.com>
1609 * gdbarch.h: Regenerate.
1611 2018-08-31 Pedro Alves <palves@redhat.com>
1613 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1614 * target.h (Hardware watchpoint interfaces): Describe
1615 continuable/steppable/non-steppable watchpoints.
1616 * gdbarch.h, gdbarch.c: Regenerate.
1618 2018-08-31 Pedro Alves <palves@redhat.com>
1620 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1623 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1624 * target.h (target_ops::have_continuable_watchpoint): Delete.
1625 (target_have_continuable_watchpoint): Delete.
1626 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1627 * target-delegates.c: Regenerate.
1629 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1631 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1632 the files present in "gnulib/import/m4/".
1634 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1636 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1637 c.sw, c.swsp, and c.sdsp.
1639 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1641 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1642 (riscv_read_misa_reg): Don't cache value read into inferior data.
1643 (riscv_new_inferior_data): Delete.
1644 (riscv_inferior_data_cleanup): Delete.
1645 (riscv_inferior_data): Delete.
1646 (riscv_invalidate_inferior_data): Delete.
1647 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1649 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1651 * compile/compile-cplus-types.c
1652 (compile_cplus_instance::leave_scope): Take the address of scope
1654 (compile_cplus_instance::convert_qualified_base): Compare quals
1657 2018-08-30 Keith Seitz <keiths@redhat.com>
1659 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1660 Use "%s" and host_address_to_string instead of "%p" in printf.
1662 2018-08-29 Keith Seitz <keiths@redhat.com>
1664 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1665 and compile-cplus-types.c.
1666 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1667 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1668 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1670 * compile/compile-c-support.c: Include compile-cplus.h.
1671 (load_libcompile): Templatize.
1672 (get_compile_context): "New" function.
1673 (c_get_compile_context): Use get_compile_context.
1674 (cplus_get_compile_context): New function.
1675 (cplus_push_user_expression, cplus_pop_user_expression)
1676 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1677 (cplus_compute_program): Define new structs/functions.
1678 * compile/compile-cplus-symmbols.c: New file.
1679 * compile/compile-cplus-types.c: New file.
1680 * compile/compile-cplus.h: New file.
1681 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1683 * compile/compile-object-load.c (get_out_value_type): Use
1684 strncmp_iw when comparing symbol names.
1685 (compile_object_load): Add mst_bss and mst_data.
1686 * compile/compile.c (_initialize_compile): Remove
1687 -Wno-implicit-function-declaration from `compile_args'.
1688 * compile/gcc-cp-plugin.h: New file.
1689 * NEWS: Mention C++ compile support and new debug options.
1691 2018-08-29 Keith Seitz <keiths@redhat.com>
1693 * linespec.c (collect_info::add_symbol): Make virtual.
1694 (struct symbol_searcher_collect_info): New struct.
1695 (symbol_searcher::find_all_symbols): New method.
1696 * symtab.h (class symbol_searcher): New class.
1698 2018-08-29 Keith Seitz <keiths@redhat.com>
1700 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1701 Change to vector of block_symbol. Update all users.
1702 (struct collect_info) <symbols>: Likewise.
1703 (collect_info::add_symbol): Take block_symbol as argument.
1705 (decode_compound_collector) <m_symbols>: Change type to vector
1706 of block_symbol. Update all users.
1707 (decode_compound_collector::operator ()): Change parameter type
1709 (find_method, find_function_symbols, find_linespec_symbols)
1710 (find_label_symbols_in_block, find_label_symbols): Change symbol
1711 vectors to block_symbol vectors.
1712 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1715 2018-08-29 Keith Seitz <keiths@redhat.com>
1717 * linespec.c (symbolp): Remove typedef and VEC definitions.
1718 (bound_minimal_symbol_d): Likewise.
1720 2018-08-29 Keith Seitz <keiths@redhat.com>
1722 * linespec.c (decode_compound_collector::decode_compound_collector):
1723 Remove initialization for `m_symtabs'.
1724 (decode_compound_collector::release_symbols): Change return type
1725 to std::vector. Update all callers.
1726 (class decode_compound_collector) <m_symbols>: Change type to
1728 (lookup_prefix_sym): Change return type to std::vector. Update all
1730 (compare_symbols): Remove.
1731 (std_compare_symbols): Rename to `compare_symbols'.
1732 (find_method): Change `sym_classes' parameter to std::vector.
1733 Update all callers. Use std::sort to sort sym_classes.
1734 (find_linespec_symbols): Remove cleanup.
1736 2018-08-29 Keith Seitz <keiths@redhat.com>
1738 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1739 std::vector. Update all users.
1740 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1741 (struct collect_info) <minimal_symbols>: Likewise.
1742 (compare_msymbols): Return bool. Change parameters to const
1743 bound_minimal_symbol references.
1744 (find_method, find_function_symbols, find_linespec_symbols): Change
1745 `minsyms' parameter to std::vector. Update all callers.
1747 2018-08-29 Keith Seitz <keiths@redhat.com>
1749 * linespec.c (struct linespec) <label_symbols>: Change type to
1750 std::vector. Update all users.
1751 (find_label_symbols_in_block): Change `result' parameter to
1752 std::vector. Update all callers.
1753 (find_label_symbols): Return std::vector. Update all callers.
1755 2018-08-29 Keith Seitz <keiths@redhat.com>
1757 * linespec.c (struct linespec) <function_symbols>: Change type to
1758 std::vector. Update all users.
1759 (struct collect_info) <function_symbols>: Likewise.
1760 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1761 (std_compare_symbols): New function.
1762 (find_method, find_function_symbols, find_linespec_symbols)
1763 (find_label_symbols_in_block): Change `symbols' parameter to
1764 std::vector. Update all callers.
1765 (find_label_symbols): Likewise for `function_symbols' and
1768 2018-08-29 Keith Seitz <keiths@redhat.com>
1770 * linespec.c (symtab_vector_up): Define.
1771 (struct linespec) <file_symtabs>: Change type to std::vector *.
1773 (struct collect_info) <file_symtabs>: Likewise.
1774 (collect_symtabs_from_filename): Return symtab_vector_up.
1776 (decode_objc): Remove cleanup.
1777 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1778 (symtab_collector::release_symtabs): Return symtab_vector_up.
1780 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1782 (collect_symtabs_from_filename, symtabs_from_filename): Return
1783 symtab_vector_up. Update all callers.
1785 2018-08-29 Tom Tromey <tom@tromey.com>
1787 * csky-tdep.c (csky_analyze_prologue): Use
1788 core_addr_to_string_nz.
1790 2018-08-29 Tom Tromey <tom@tromey.com>
1792 * windows-nat.c (struct xlate_exception) <them>: Change type to
1794 (xlate): Fix formatting. Remove last entry.
1795 (struct xlate_exception, xlate): Comment out.
1796 (windows_nat_target::resume): Use ranged for.
1798 2018-08-29 Jim Wilson <jimw@sifive.com>
1800 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1801 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1803 (riscv_linux_nat_target::store_registers): Likewise.
1805 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1809 * gnulib/aclocal.m4: Regenerate.
1810 * gnulib/config.in: Regenerate.
1811 * gnulib/configure: Regenerate.
1812 * gnulib/import/Makefile.am: Update.
1813 * gnulib/import/Makefile.in: Update.
1814 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1815 * gnulib/import/_Noreturn.h: ... this.
1816 * gnulib/import/alloca.in.h: Update.
1817 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1818 * gnulib/import/arg-nonnull.h: ... this.
1819 * gnulib/import/assure.h: Update.
1820 * gnulib/import/at-func.c: Update.
1821 * gnulib/import/basename-lgpl.c: Update.
1822 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1823 * gnulib/import/c++defs.h: ... this.
1824 * gnulib/import/canonicalize-lgpl.c: Update.
1825 * gnulib/import/cdefs.h: Update.
1826 * gnulib/import/chdir-long.c: Update.
1827 * gnulib/import/chdir-long.h: Update.
1828 * gnulib/import/cloexec.c: Update.
1829 * gnulib/import/cloexec.h: Update.
1830 * gnulib/import/close.c: Update.
1831 * gnulib/import/closedir.c: Update.
1832 * gnulib/import/config.charset: Update.
1833 * gnulib/import/dirent-private.h: Update.
1834 * gnulib/import/dirent.in.h: Update.
1835 * gnulib/import/dirfd.c: Update.
1836 * gnulib/import/dirname-lgpl.c: Update.
1837 * gnulib/import/dirname.h: Update.
1838 * gnulib/import/dosname.h: Update.
1839 * gnulib/import/dup-safer-flag.c: Update.
1840 * gnulib/import/dup-safer.c: Update.
1841 * gnulib/import/dup.c: Update.
1842 * gnulib/import/dup2.c: Update.
1843 * gnulib/import/errno.in.h: Update.
1844 * gnulib/import/error.c: Update.
1845 * gnulib/import/error.h: Update.
1846 * gnulib/import/exitfail.c: Update.
1847 * gnulib/import/exitfail.h: Update.
1848 * gnulib/import/extra/update-copyright: Update.
1849 * gnulib/import/fchdir.c: Update.
1850 * gnulib/import/fcntl.c: Update.
1851 * gnulib/import/fcntl.in.h: Update.
1852 * gnulib/import/fd-hook.c: Update.
1853 * gnulib/import/fd-hook.h: Update.
1854 * gnulib/import/fd-safer-flag.c: Update.
1855 * gnulib/import/fd-safer.c: Update.
1856 * gnulib/import/fdopendir.c: Update.
1857 * gnulib/import/filename.h: Update.
1858 * gnulib/import/filenamecat-lgpl.c: Update.
1859 * gnulib/import/filenamecat.h: Update.
1860 * gnulib/import/flexmember.h: Update.
1861 * gnulib/import/float+.h: Update.
1862 * gnulib/import/float.c: Update.
1863 * gnulib/import/float.in.h: Update.
1864 * gnulib/import/fnmatch.c: Update.
1865 * gnulib/import/fnmatch.in.h: Update.
1866 * gnulib/import/fnmatch_loop.c: Update.
1867 * gnulib/import/fpucw.h: Update.
1868 * gnulib/import/frexp.c: Update.
1869 * gnulib/import/frexpl.c: Update.
1870 * gnulib/import/fstat.c: Update.
1871 * gnulib/import/fstatat.c: Update.
1872 * gnulib/import/getcwd-lgpl.c: Update.
1873 * gnulib/import/getcwd.c: Update.
1874 * gnulib/import/getdtablesize.c: Update.
1875 * gnulib/import/getlogin_r.c: Update.
1876 * gnulib/import/getprogname.c: Update.
1877 * gnulib/import/getprogname.h: Update.
1878 * gnulib/import/gettext.h: Update.
1879 * gnulib/import/gettimeofday.c: Update.
1880 * gnulib/import/glob-libc.h: Update.
1881 * gnulib/import/glob.c: Update.
1882 * gnulib/import/glob.in.h: Update.
1883 * gnulib/import/glob_internal.h: Update.
1884 * gnulib/import/glob_pattern_p.c: Update.
1885 * gnulib/import/globfree.c: Update.
1886 * gnulib/import/hard-locale.c: Update.
1887 * gnulib/import/hard-locale.h: Update.
1888 * gnulib/import/intprops.h: Update.
1889 * gnulib/import/inttypes.in.h: Update.
1890 * gnulib/import/isnan.c: Update.
1891 * gnulib/import/isnand-nolibm.h: Update.
1892 * gnulib/import/isnand.c: Update.
1893 * gnulib/import/isnanl-nolibm.h: Update.
1894 * gnulib/import/isnanl.c: Update.
1895 * gnulib/import/itold.c: Update.
1896 * gnulib/import/libc-config.h: Update.
1897 * gnulib/import/limits.in.h: Update.
1898 * gnulib/import/localcharset.c: Update.
1899 * gnulib/import/localcharset.h: Update.
1900 * gnulib/import/localtime-buffer.c: Update.
1901 * gnulib/import/localtime-buffer.h: Update.
1902 * gnulib/import/lstat.c: Update.
1903 * gnulib/import/m4/00gnulib.m4: Update.
1904 * gnulib/import/m4/__inline.m4: Update.
1905 * gnulib/import/m4/absolute-header.m4: Update.
1906 * gnulib/import/m4/alloca.m4: Update.
1907 * gnulib/import/m4/builtin-expect.m4: Update.
1908 * gnulib/import/m4/canonicalize.m4: Update.
1909 * gnulib/import/m4/chdir-long.m4: Update.
1910 * gnulib/import/m4/close.m4: Update.
1911 * gnulib/import/m4/closedir.m4: Update.
1912 * gnulib/import/m4/configmake.m4: Update.
1913 * gnulib/import/m4/d-ino.m4: Update.
1914 * gnulib/import/m4/d-type.m4: Update.
1915 * gnulib/import/m4/dirent_h.m4: Update.
1916 * gnulib/import/m4/dirfd.m4: Update.
1917 * gnulib/import/m4/dirname.m4: Update.
1918 * gnulib/import/m4/double-slash-root.m4: Update.
1919 * gnulib/import/m4/dup.m4: Update.
1920 * gnulib/import/m4/dup2.m4: Update.
1921 * gnulib/import/m4/eealloc.m4: Update.
1922 * gnulib/import/m4/environ.m4: Update.
1923 * gnulib/import/m4/errno_h.m4: Update.
1924 * gnulib/import/m4/error.m4: Update.
1925 * gnulib/import/m4/exponentd.m4: Update.
1926 * gnulib/import/m4/exponentl.m4: Update.
1927 * gnulib/import/m4/extensions.m4: Update.
1928 * gnulib/import/m4/extern-inline.m4: Update.
1929 * gnulib/import/m4/fchdir.m4: Update.
1930 * gnulib/import/m4/fcntl-o.m4: Update.
1931 * gnulib/import/m4/fcntl.m4: Update.
1932 * gnulib/import/m4/fcntl_h.m4: Update.
1933 * gnulib/import/m4/fdopendir.m4: Update.
1934 * gnulib/import/m4/filenamecat.m4: Update.
1935 * gnulib/import/m4/flexmember.m4: Update.
1936 * gnulib/import/m4/float_h.m4: Update.
1937 * gnulib/import/m4/fnmatch.m4: Update.
1938 * gnulib/import/m4/fnmatch_h.m4: Update.
1939 * gnulib/import/m4/fpieee.m4: Update.
1940 * gnulib/import/m4/frexp.m4: Update.
1941 * gnulib/import/m4/frexpl.m4: Update.
1942 * gnulib/import/m4/fstat.m4: Update.
1943 * gnulib/import/m4/fstatat.m4: Update.
1944 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1945 * gnulib/import/m4/getcwd-path-max.m4: Update.
1946 * gnulib/import/m4/getcwd.m4: Update.
1947 * gnulib/import/m4/getdtablesize.m4: Update.
1948 * gnulib/import/m4/getlogin.m4: Update.
1949 * gnulib/import/m4/getlogin_r.m4: Update.
1950 * gnulib/import/m4/getpagesize.m4: Update.
1951 * gnulib/import/m4/getprogname.m4: Update.
1952 * gnulib/import/m4/gettimeofday.m4: Update.
1953 * gnulib/import/m4/glibc21.m4: Update.
1954 * gnulib/import/m4/glob.m4: Update.
1955 * gnulib/import/m4/glob_h.m4: Update.
1956 * gnulib/import/m4/gnulib-cache.m4: Update.
1957 * gnulib/import/m4/gnulib-common.m4: Update.
1958 * gnulib/import/m4/gnulib-comp.m4: Update.
1959 * gnulib/import/m4/gnulib-tool.m4: Update.
1960 * gnulib/import/m4/hard-locale.m4: Update.
1961 * gnulib/import/m4/include_next.m4: Update.
1962 * gnulib/import/m4/inttypes-pri.m4: Update.
1963 * gnulib/import/m4/inttypes.m4: Update.
1964 * gnulib/import/m4/isnand.m4: Update.
1965 * gnulib/import/m4/isnanl.m4: Update.
1966 * gnulib/import/m4/largefile.m4: Update.
1967 * gnulib/import/m4/limits-h.m4: Update.
1968 * gnulib/import/m4/localcharset.m4: Update.
1969 * gnulib/import/m4/locale-fr.m4: Update.
1970 * gnulib/import/m4/locale-ja.m4: Update.
1971 * gnulib/import/m4/locale-zh.m4: Update.
1972 * gnulib/import/m4/localtime-buffer.m4: Update.
1973 * gnulib/import/m4/longlong.m4: Update.
1974 * gnulib/import/m4/lstat.m4: Update.
1975 * gnulib/import/m4/malloc.m4: Update.
1976 * gnulib/import/m4/malloca.m4: Update.
1977 * gnulib/import/m4/math_h.m4: Update.
1978 * gnulib/import/m4/mbrtowc.m4: Update.
1979 * gnulib/import/m4/mbsinit.m4: Update.
1980 * gnulib/import/m4/mbsrtowcs.m4: Update.
1981 * gnulib/import/m4/mbstate_t.m4: Update.
1982 * gnulib/import/m4/memchr.m4: Update.
1983 * gnulib/import/m4/memmem.m4: Update.
1984 * gnulib/import/m4/mempcpy.m4: Update.
1985 * gnulib/import/m4/memrchr.m4: Update.
1986 * gnulib/import/m4/mkdir.m4: Update.
1987 * gnulib/import/m4/mkstemp.m4: Update.
1988 * gnulib/import/m4/mmap-anon.m4: Update.
1989 * gnulib/import/m4/mode_t.m4: Update.
1990 * gnulib/import/m4/msvc-inval.m4: Update.
1991 * gnulib/import/m4/msvc-nothrow.m4: Update.
1992 * gnulib/import/m4/multiarch.m4: Update.
1993 * gnulib/import/m4/nocrash.m4: Update.
1994 * gnulib/import/m4/off_t.m4: Update.
1995 * gnulib/import/m4/onceonly.m4: Update.
1996 * gnulib/import/m4/open-cloexec.m4: Update.
1997 * gnulib/import/m4/open.m4: Update.
1998 * gnulib/import/m4/openat.m4: Update.
1999 * gnulib/import/m4/opendir.m4: Update.
2000 * gnulib/import/m4/pathmax.m4: Update.
2001 * gnulib/import/m4/rawmemchr.m4: Update.
2002 * gnulib/import/m4/readdir.m4: Update.
2003 * gnulib/import/m4/readlink.m4: Update.
2004 * gnulib/import/m4/realloc.m4: Update.
2005 * gnulib/import/m4/rename.m4: Update.
2006 * gnulib/import/m4/rewinddir.m4: Update.
2007 * gnulib/import/m4/rmdir.m4: Update.
2008 * gnulib/import/m4/save-cwd.m4: Update.
2009 * gnulib/import/m4/secure_getenv.m4: Update.
2010 * gnulib/import/m4/setenv.m4: Update.
2011 * gnulib/import/m4/signal_h.m4: Update.
2012 * gnulib/import/m4/ssize_t.m4: Update.
2013 * gnulib/import/m4/stat-time.m4: Update.
2014 * gnulib/import/m4/stat.m4: Update.
2015 * gnulib/import/m4/std-gnu11.m4: Update.
2016 * gnulib/import/m4/stdbool.m4: Update.
2017 * gnulib/import/m4/stddef_h.m4: Update.
2018 * gnulib/import/m4/stdint.m4: Update.
2019 * gnulib/import/m4/stdio_h.m4: Update.
2020 * gnulib/import/m4/stdlib_h.m4: Update.
2021 * gnulib/import/m4/strchrnul.m4: Update.
2022 * gnulib/import/m4/strdup.m4: Update.
2023 * gnulib/import/m4/strerror.m4: Update.
2024 * gnulib/import/m4/string_h.m4: Update.
2025 * gnulib/import/m4/strstr.m4: Update.
2026 * gnulib/import/m4/strtok_r.m4: Update.
2027 * gnulib/import/m4/sys_socket_h.m4: Update.
2028 * gnulib/import/m4/sys_stat_h.m4: Update.
2029 * gnulib/import/m4/sys_time_h.m4: Update.
2030 * gnulib/import/m4/sys_types_h.m4: Update.
2031 * gnulib/import/m4/tempname.m4: Update.
2032 * gnulib/import/m4/time_h.m4: Update.
2033 * gnulib/import/m4/unistd-safer.m4: Update.
2034 * gnulib/import/m4/unistd_h.m4: Update.
2035 * gnulib/import/m4/warn-on-use.m4: Update.
2036 * gnulib/import/m4/wchar_h.m4: Update.
2037 * gnulib/import/m4/wchar_t.m4: Update.
2038 * gnulib/import/m4/wctype_h.m4: Update.
2039 * gnulib/import/m4/wint_t.m4: Update.
2040 * gnulib/import/malloc.c: Update.
2041 * gnulib/import/malloc/scratch_buffer.h: Update.
2042 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2043 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2044 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2045 * gnulib/import/malloca.c: Update.
2046 * gnulib/import/malloca.h: Update.
2047 * gnulib/import/malloca.valgrind: Update.
2048 * gnulib/import/math.in.h: Update.
2049 * gnulib/import/mbrtowc.c: Update.
2050 * gnulib/import/mbsinit.c: Update.
2051 * gnulib/import/mbsrtowcs-impl.h: Update.
2052 * gnulib/import/mbsrtowcs-state.c: Update.
2053 * gnulib/import/mbsrtowcs.c: Update.
2054 * gnulib/import/memchr.c: Update.
2055 * gnulib/import/memmem.c: Update.
2056 * gnulib/import/mempcpy.c: Update.
2057 * gnulib/import/memrchr.c: Update.
2058 * gnulib/import/mkdir.c: Update.
2059 * gnulib/import/mkstemp.c: Update.
2060 * gnulib/import/msvc-inval.c: Update.
2061 * gnulib/import/msvc-inval.h: Update.
2062 * gnulib/import/msvc-nothrow.c: Update.
2063 * gnulib/import/msvc-nothrow.h: Update.
2064 * gnulib/import/open.c: Update.
2065 * gnulib/import/openat-die.c: Update.
2066 * gnulib/import/openat-priv.h: Update.
2067 * gnulib/import/openat-proc.c: Update.
2068 * gnulib/import/openat.c: Update.
2069 * gnulib/import/openat.h: Update.
2070 * gnulib/import/opendir.c: Update.
2071 * gnulib/import/pathmax.h: Update.
2072 * gnulib/import/pipe-safer.c: Update.
2073 * gnulib/import/rawmemchr.c: Update.
2074 * gnulib/import/readdir.c: Update.
2075 * gnulib/import/readlink.c: Update.
2076 * gnulib/import/realloc.c: Update.
2077 * gnulib/import/ref-add.sin: Update.
2078 * gnulib/import/ref-del.sin: Update.
2079 * gnulib/import/rename.c: Update.
2080 * gnulib/import/rewinddir.c: Update.
2081 * gnulib/import/rmdir.c: Update.
2082 * gnulib/import/same-inode.h: Update.
2083 * gnulib/import/save-cwd.c: Update.
2084 * gnulib/import/save-cwd.h: Update.
2085 * gnulib/import/scratch_buffer.h: Update.
2086 * gnulib/import/secure_getenv.c: Update.
2087 * gnulib/import/setenv.c: Update.
2088 * gnulib/import/signal.in.h: Update.
2089 * gnulib/import/stat-time.c: Update.
2090 * gnulib/import/stat-time.h: Update.
2091 * gnulib/import/stat-w32.c: Update.
2092 * gnulib/import/stat-w32.h: Update.
2093 * gnulib/import/stat.c: Update.
2094 * gnulib/import/stdbool.in.h: Update.
2095 * gnulib/import/stddef.in.h: Update.
2096 * gnulib/import/stdint.in.h: Update.
2097 * gnulib/import/stdio.in.h: Update.
2098 * gnulib/import/stdlib.in.h: Update.
2099 * gnulib/import/str-two-way.h: Update.
2100 * gnulib/import/strchrnul.c: Update.
2101 * gnulib/import/strdup.c: Update.
2102 * gnulib/import/streq.h: Update.
2103 * gnulib/import/strerror-override.c: Update.
2104 * gnulib/import/strerror-override.h: Update.
2105 * gnulib/import/strerror.c: Update.
2106 * gnulib/import/string.in.h: Update.
2107 * gnulib/import/stripslash.c: Update.
2108 * gnulib/import/strnlen1.c: Update.
2109 * gnulib/import/strnlen1.h: Update.
2110 * gnulib/import/strstr.c: Update.
2111 * gnulib/import/strtok_r.c: Update.
2112 * gnulib/import/sys_stat.in.h: Update.
2113 * gnulib/import/sys_time.in.h: Update.
2114 * gnulib/import/sys_types.in.h: Update.
2115 * gnulib/import/tempname.c: Update.
2116 * gnulib/import/tempname.h: Update.
2117 * gnulib/import/time.in.h: Update.
2118 * gnulib/import/unistd--.h: Update.
2119 * gnulib/import/unistd-safer.h: Update.
2120 * gnulib/import/unistd.in.h: Update.
2121 * gnulib/import/unsetenv.c: Update.
2122 * gnulib/import/verify.h: Update.
2123 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2124 * gnulib/import/wchar.in.h: Update.
2125 * gnulib/import/wctype.in.h: Update.
2126 * gnulib/import/xalloc-oversized.h: Update.
2127 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2128 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2130 2018-08-16 Gary Benson <gbenson@redhat.com>
2133 * gdb/main.c (captured_main_1): Exit with nonzero status
2134 in batch mode if the last command to be executed failed.
2135 * NEWS: Mention the above.
2137 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2139 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2140 end of warning message.
2142 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2145 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2146 (aarch64_extract_return_value): Use
2147 aapcs_is_vfp_call_or_return_candidate.
2148 (aarch64_return_in_memory): Likewise.
2149 (aarch64_store_return_value): Likewise.
2151 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2154 (aapcs_is_vfp_call_or_return_candidate): Make static
2155 (pass_in_v_or_stack): Remove function.
2156 (pass_in_v_vfp_candidate): New function.
2157 (aarch64_push_dummy_call): Check for float register candidates.
2159 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2161 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2162 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2163 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2165 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2168 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2169 (struct ipa_sym_addresses): Rename to...
2170 (struct ipa_sym_addresses_common): ... this.
2171 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2173 2018-08-28 Tom Tromey <tom@tromey.com>
2175 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2176 (token_fifo): Now a std::vector.
2177 (yylex, c_parse): Update.
2178 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2179 (token_fifo): Now a std::vector.
2180 (yylex, d_parse): Update.
2181 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2182 (token_fifo): Now a std::vector.
2183 (yylex, go_parse): Update.
2185 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2187 * parser-defs.h (struct type_stack) <elements>: Change type to
2188 std::vector<union type_stack_elt>.
2189 <depth, size>: Remove.
2190 * parse.c (parse_exp_in_context_1): Adjust.
2191 (type_stack_reserve): Remove.
2192 (check_type_stack_depth): Remove.
2193 (insert_into_type_stack): Adjust to std::vector.
2194 (insert_type): Likewise.
2195 (push_type): Likewise.
2196 (push_type_int): Likewise.
2197 (insert_type_address_space): Likewise.
2198 (pop_type): Likewise.
2199 (pop_type_int): Likewise.
2200 (pop_typelist): Likewise.
2201 (pop_type_stack): Likewise.
2202 (append_type_stack): Likewise.
2203 (push_type_stack): Likewise.
2204 (get_type_stack): Likewise.
2205 (type_stack_cleanup): Likewise.
2206 (push_typelist): Likewise.
2207 (follow_types): Likewise.
2208 (_initialize_parse): Likewise.
2210 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2212 * NEWS: Mention csky target.
2214 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2215 Hafiz Abid Qadeer <abidh@codesourcery.com>
2216 Don Breazeal <donb@codesourcery.com>
2218 * csky-linux-tdep.c: New file.
2219 * csky-tdep.c: Likewise.
2220 * csky-tdep.h: Likewise.
2221 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2223 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2224 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2225 * configure.tgt: Add csky support.
2227 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2229 * python/py-framefilter.c (py_print_frame): Print frame architecture
2230 when printing on an MI output.
2232 2018-08-27 Tom Tromey <tom@tromey.com>
2235 * configure: Rebuild.
2236 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2238 2018-08-27 Tom Tromey <tom@tromey.com>
2240 * aarch64-linux-tdep.c
2241 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2244 2018-08-27 Tom Tromey <tom@tromey.com>
2246 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2248 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2249 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2250 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2251 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2254 2018-08-27 Tom Tromey <tom@tromey.com>
2256 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2257 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2259 2018-08-27 Tom Tromey <tom@tromey.com>
2261 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2262 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2264 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2266 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2268 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2269 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2270 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2272 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2273 (ppc64_linux_sigaction_tramp_frame)
2274 (ppc32_linux_sighandler_tramp_frame)
2275 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2276 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2277 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2278 * mn10300-linux-tdep.c (am33_linux_sigframe)
2279 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2280 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2281 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2282 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2283 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2284 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2285 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2286 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2287 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2288 * microblaze-linux-tdep.c
2289 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2290 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2291 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2292 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2293 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2294 * common/common-types.h (ULONGEST_MAX): New define.
2295 (CORE_ADDR_MAX): Fix formatting.
2296 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2297 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2298 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2299 (arm_linux_rt_sigreturn_tramp_frame)
2300 (arm_eabi_linux_sigreturn_tramp_frame)
2301 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2302 (thumb2_eabi_linux_sigreturn_tramp_frame)
2303 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2304 (arm_linux_restart_syscall_tramp_frame)
2305 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2306 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2307 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2309 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2311 2018-08-27 Tom Tromey <tom@tromey.com>
2313 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2315 * mips-tdep.c (mips_deal_with_atomic_sequence)
2316 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2317 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2318 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2319 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2321 * aarch64-tdep.c (aarch64_software_single_step): Use
2324 2018-08-27 Tom Tromey <tom@tromey.com>
2326 * linespec.c (complete_linespec_component): Add cast to "char".
2327 * completer.c (completion_tracker::build_completion_result): Add
2330 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2332 * solist.h (struct solist, struct target_so_ops): Fix
2335 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2337 * ada-tasks.c (ada_task_info_s): Remove typedef.
2338 (DEF_VEC_O(ada_task_info_s)): Remove.
2339 (struct ada_tasks_inferior_data): Initialize fields.
2340 <task_list>: Make an std::vector.
2341 (get_ada_tasks_inferior_data): Allocate with new.
2342 (ada_get_task_number): Adjust.
2343 (get_task_number_from_id): Likewise.
2344 (valid_task_id): Likewise.
2345 (ada_get_task_info_from_ptid): Likewise.
2346 (iterate_over_live_ada_tasks): Likewise.
2347 (add_ada_task): Likewise.
2348 (read_known_tasks): Likewise.
2349 (ada_build_task_list): Likewise.
2350 (print_ada_task_info): Likewise.
2351 (info_task): Likewise.
2352 (task_command_1): Likewise.
2354 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2356 * ada-lang.c (add_angle_brackets): Return std::string.
2358 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2360 * python/py-threadevent.c (py_get_event_thread): Initialize
2363 2018-08-24 Pedro Alves <palves@redhat.com>
2365 * python/py-bpevent.c (create_breakpoint_event_object): Use
2366 copy-initialization.
2367 * python/py-continueevent.c (emit_continue_event): Use
2368 copy-initialization.
2369 * python/py-exitedevent.c (create_exited_event_object): Return a
2371 (emit_exited_event): Use copy-initialization.
2372 * python/py-inferior.c (python_new_inferior)
2373 (python_inferior_deleted, add_thread_object): Use
2374 copy-initialization.
2375 * python/py-infevents.c (create_inferior_call_event_object)
2376 (create_register_changed_event_object)
2377 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2378 (emit_inferior_call_event, emit_memory_changed_event)
2379 (emit_register_changed_event): Use copy-initialization.
2380 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2381 Return a gdbpy_ref<>.
2382 (emit_new_objfile_event): Use copy-initialization.
2383 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2384 (emit_clear_objfiles_event): Use copy-initialization.
2385 * python/py-signalevent.c (create_signal_event_object): Use
2386 copy-initialization.
2387 * python/py-threadevent.c (create_thread_event_object): Use
2388 copy-initialization.
2390 2018-08-24 Pedro Alves <palves@redhat.com>
2391 Simon Marchi <simon.marchi@ericsson.com>
2394 * python/py-continueevent.c: Include "gdbthread.h".
2395 (create_continue_event_object): Add intro comment. Add 'ptid'
2396 parameter. Use it to find thread to pass to
2397 create_thread_event_object.
2398 (emit_continue_event): Pass PTID down to
2399 create_continue_event_object.
2400 * python/py-event.h (py_get_event_thread): Declare.
2401 (create_thread_event_object): Remove default from 'thread'
2403 * python/py-stopevent.c (create_stop_event_object): Use
2404 py_get_event_thread.
2405 * python/py-threadevent.c (get_event_thread): Rename to ...
2406 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2407 and use it to find the thread.
2408 (create_thread_event_object): Assert that THREAD isn't null.
2409 Don't find the event thread here.
2411 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2413 * block.h (blockrange, blockranges): New struct declarations.
2414 (struct block): Add new field named `ranges'.
2415 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2416 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2417 macros for accessing ranges in struct block.
2418 (make_blockranges): New declaration.
2419 block.c (make_blockranges): New function.
2420 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2422 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2423 * blockframe.c (cache_pc_function_block): New static global.
2424 (clear_pc_function_cache): Clear cache_pc_function_block.
2425 (find_pc_partial_function): Move comment to symtab.h. Add
2426 support for non-contiguous blocks.
2427 * cli/cli-cmds.c (block.h): Include.
2428 (print_disassembly): Handle printing of non-contiguous blocks.
2429 (disassemble_current_function): Likewise.
2430 (disassemble_command): Likewise.
2432 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2434 * blockframe.c (get_pc_function_start): Likewise.
2435 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2436 (gcc_symbol_address): Likewise.
2437 * compile/compile-object-run.c (compile_object_run): Likewise.
2438 * compile/compile.c (get_expr_block_and_pc): Likewise.
2439 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2440 (func_addr_to_tail_call_list): Likewise.
2441 * findvar.c (default_read_var_value): Likewise.
2442 * inline-frame.c (inline_frame_this_id): Likewise.
2443 (skip-inline_frames): Likewise.
2444 * infcmd.c (until_next_command): Likewise.
2445 * linespec.c (convert_linespec_to_sals): Likewise.
2446 * parse.c (parse_exp_in_context_1): Likewise.
2447 * printcmd.c (build_address_symbolic): likewise.
2448 (info_address_command): Likewise.
2449 symtab.c (find_function_start_sal): Likewise.
2450 (skip_prologue_sal): Likewise.
2451 (find_function_alias_target): Likewise.
2452 (find_gnu_ifunc): Likewise.
2453 * stack.c (find_frame_funname): Likewise.
2454 * symtab.c (fixup_symbol_section): Likewise.
2455 (find_function_start_sal): Likewise.
2456 (skip_prologue_sal): Likewsie.
2457 (find_function_alias_target): Likewise.
2458 (find_gnu_ifunc): Likewise.
2459 * tracepoint.c (info_scope_command): Likewise.
2460 * value.c (value_fn_field): Likewise.
2462 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2463 in place of find_pc_partial_function.
2464 * blockframe.c (find_function_entry_range_from_pc): New function.
2465 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2466 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2467 for each range in a block.
2470 2018-08-23 Xavier Roirand <roirand@adacore.com>
2472 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2475 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2477 * solib-svr4.c (read_program_headers_from_bfd): Return
2478 gdb::optional<gdb::byte_vector>.
2479 (svr4_exec_displacement): Adjust.
2481 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2483 * solib-svr4.c (read_program_header): Return
2484 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2485 (find_program_interpreter): Return
2486 gdb::optional<gdb::byte_vector>.
2487 (scan_dyntag_auxv): Adjust.
2488 (enable_break): Adjust.
2489 (svr4_exec_displacement): Adjust.
2491 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2493 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2494 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2496 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2498 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2500 * guile/scm-utils.c (gdbscm_printf): Likewise.
2501 * serial.c (serial_printf): Likewise.
2502 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2504 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2506 * stack.c (print_frame): Print frame architecture when printing on
2508 * NEWS: Mention new "arch" attribute in frame output.
2510 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2512 * arch/aarch64.h (aarch64_regnum): Update comment.
2514 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2516 * NEWS: Add SVE to 8.2 section.
2518 2018-08-21 Pedro Alves <palves@redhat.com>
2520 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2521 out from gdbscm_parse_function_args.
2522 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2523 gdbscm_parse_function_args_1.
2525 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2528 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2531 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2533 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2535 2018-08-19 Michael Spang <spang@google.com>
2538 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2539 for PT_TLS segments.
2541 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2543 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2544 dwarf_variable_value.
2545 * dwarf2-frame.c (class dwarf_expr_executor):
2546 Add override for dwarf_variable_value.
2547 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2548 (class symbol_needs_eval_context): Likewise.
2549 (indirect_synthetic_pointer): Add forward declaration.
2550 (sect_variable_value): New function.
2551 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2552 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2553 for DW_OP_GNU_variable_value.
2555 2018-08-16 Tom Tromey <tom@tromey.com>
2557 * top.c (read_command_file): Update.
2558 (command_line_input): Remove "repeat" argument.
2559 * ada-lang.c (get_selections): Update.
2560 * linespec.c (decode_line_2): Update.
2561 * defs.h (command_line_input): Remove argument.
2562 * cli/cli-script.c (read_next_line): Update.
2563 * python/py-gdb-readline.c: Update.
2565 2018-08-17 Tom Tromey <tom@tromey.com>
2567 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2570 2018-08-15 Tom Tromey <tom@tromey.com>
2572 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2574 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2576 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2577 If used, use find_pc_partial_function to find address range
2579 * mi/mi-main.c (mi_cmd_list_features): Report
2580 "data-disassemble-a-option" feature.
2581 * NEWS: Mention new -data-disassemble option -a.
2583 2018-08-13 Tom Tromey <tom@tromey.com>
2585 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2587 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2589 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2590 (aarch64_linux_collect_sve_regset): Likewise.
2591 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2592 * regcache.h (regcache_map_entry_size): New function.
2594 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2596 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2597 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2598 (SVE_HEADER_VL_LENGTH): Likewise.
2599 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2600 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2601 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2602 (SVE_HEADER_SIZE_OFFSET): Likewise.
2603 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2604 (SVE_HEADER_VL_OFFSET): Likewise.
2605 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2606 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2607 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2608 (SVE_HEADER_SIZE): Likewise.
2609 (aarch64_linux_core_read_vq): Add function.
2610 (aarch64_linux_core_read_description): Check for SVE section.
2612 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2614 * aarch64-fbsd-tdep.c
2615 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2617 * aarch64-linux-tdep.c
2618 (aarch64_linux_iterate_over_regset_sections): Likewise.
2619 * alpha-linux-tdep.c
2620 (alpha_linux_iterate_over_regset_sections):
2622 (alphanbsd_iterate_over_regset_sections): Likewise.
2624 (amd64fbsd_iterate_over_regset_sections): Likewise.
2625 * amd64-linux-tdep.c
2626 (amd64_linux_iterate_over_regset_sections): Likewise.
2628 (armbsd_iterate_over_regset_sections): Likewise.
2630 (arm_fbsd_iterate_over_regset_sections): Likewise.
2632 (arm_linux_iterate_over_regset_sections): Likewise.
2633 * corelow.c (get_core_registers_cb): Likewise.
2634 (core_target::fetch_registers): Likewise.
2635 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2636 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2637 * gdbarch.h (void): Regenerate.
2638 * gdbarch.sh: Add supply_size and collect_size.
2639 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2640 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2641 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2642 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2643 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2644 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2645 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2646 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2647 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2648 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2649 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2650 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2651 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2652 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2653 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2654 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2655 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2656 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2657 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2658 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2659 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2660 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2661 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2662 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2663 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2664 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2665 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2666 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2667 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2668 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2670 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2672 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2675 2018-08-10 Keith Seitz <keiths@redhat.com>
2677 * compile/compile-c-support.c (add_code_header, add_code_footer):
2678 Move into policy class.
2679 (c_push_user_expression, pop_user_expression_nop)
2680 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2681 (compile_program): New host class.
2682 (c_compile_program): New typedef.
2683 (c_compute_porgram): Use c_compile_program.
2685 2018-08-10 Keith Seitz <keiths@redhat.com>
2687 * compile/compile-internal.h (compile_instance::~compile_instance):
2688 Remove calls to htab_delete.
2689 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2690 * compile.c (compile_instance::compile_instance): Initialize
2691 htab unique pointers.
2692 (compile_instance::get_cached_type, compile_instance::insert_type)
2693 (compile_instance::error_symbol_once): Update for unique_ptr.
2695 2018-08-10 Keith Seitz <keiths@redhat.com>
2697 * compile/compile-c-symbols.c (struct symbol_error)
2698 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2699 (compile_instance::insert_symbol_error)
2700 (compile_instance::error_symbol_once): Move to ...
2701 * compile/compile.c: ... here.
2703 2018-08-10 Keith Seitz <keiths@redhat.com>
2705 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2706 instead of `new_compile_instance'.
2707 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2709 If the symbol error map is not initialized, create it.
2710 (generate_c_for_for_one_symbol): Do not check/initialize
2711 the symbol error map.
2712 * compile/compile-c-types.c (compile_c_instance): Make a class.
2714 (compile_instance::compile_instance): Initialize the type cache.
2715 (get_cached_type): New function.
2716 (insert_type): Update description.
2717 (compile_c_instance::m_default_cflags): Define.
2718 (convert_type): Update description. Use get_cached_type.
2719 (delete_instance): Moved to destructor.
2720 (new_compile_instance): Moved to constructor.
2721 * compile/compile-c.h (compile_c_instance): Make class inheriting
2722 from compile_instance.
2723 <base>: Remove field.
2724 <type_map, symbol_err_map>: Move to base class.
2725 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2726 * compile/compile-internal.h (compile_instance): Make class.
2727 <type_map_t, symbol_err_map_t>: Define.
2728 <fe>: Rename to `m_gcc_fe'.
2729 <scope, block, gcc_target_options>: Add `m_' prefix.
2730 <m_type_map, m_symbol_err_map>: New fields, moved from
2733 (convert_type, new_compile_instance): Remove.
2734 * compile/compile.c (cleanup_compile_instance): Remove.
2735 (compile_to_object): Use unique_ptr to eliminate cleanups.
2736 (compile_instance::set_print_callback, compile_instance::version)
2737 (compile_instance::set_verbose)
2738 (compile_instance::set_driver_filename)
2739 (compile_instance::set_triplet_regexp)
2740 (compile_instance::set_arguments)
2741 (compile_instance::set_source_file)
2742 (compile_instance::compile): Define.
2744 2018-08-10 Keith Seitz <keiths@redhat.com>
2746 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2747 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2748 gcc-c-fe.def to define C plugin.
2749 (delete_instance): Delete `c_plugin'.
2750 (new_compile_instance): Initialize `c_plugin'.
2751 * compile/compile-c.h: Include gcc_c_plugin.h.
2752 (struct compile_c_instance) <c_plugin>: New member.
2753 * gcc-c-plugin.h: New file.
2754 Update all callers with API change.
2756 2018-08-10 Keith Seitz <keiths@redhat.com>
2758 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2759 (HFILES_NO_SRCDIR): ... to here.
2760 Add compile-internal.h and compile-c.h.
2761 * compile/compile-c-support.c: Include compile-c.h.
2762 * compile/compile-c-symbols.c: Include compile-c.h.
2763 (generate_c_for_variable_locations): Update comment.
2764 * compile/compile-c-types.c: Include compile-c.h.
2765 * compile/compile-c.h: New file -- moved C language declarations
2766 from other files here.
2767 * compile/compile-internal.h: Do not include hashtab.h or
2768 common/enum-flags.h.
2769 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2770 (gcc_convert_symbol, gcc_symbol_address)
2771 (generate_c_for_variable_locations, c_get_mode_for_size)
2772 (c_get_range_decl_name): Definitions moved to compile-c.h.
2773 * compile/compile-loc2c.c: Include compile-c.h.
2775 2018-08-10 Keith Seitz <keiths@redhat.com>
2777 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2778 (c_symbol_substitution_name): ... this.
2781 2018-08-10 Keith Seitz <keiths@redhat.com>
2783 * compile/compile-c-support.c (c_compute_program): Use
2784 unique_xmalloc_ptr to eliminate cleanup.
2785 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2786 Return a unique_xmalloc_ptr and eliminate cleanup.
2787 * compile/compile-internal.h (generate_c_for_variable_locations):
2788 Return unique_xmalloc_ptr and update description.
2790 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2792 * corelow.c (core_target::get_core_register_section): Rename
2793 min_size to section_min_size.
2795 2018-08-09 Jim Wilson <jimw@sifive.com>
2797 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2798 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2799 * NEWS: Mention new GNU/Linux RISC-V target.
2800 * configure.host: Add riscv*-*-linux*.
2801 * configure.nat: Add riscv*.
2802 * configure.tgt: Add riscv*-*-linux*.
2803 * riscv-linux-nat.c: New file.
2804 * riscv-linux-tdep.c: New file.
2806 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2808 * infrun.c (resume): Make static, add forward declaration.
2809 (proceed): Update header comment.
2810 * infrun.h (resume): Delete declaration.
2812 2018-08-09 Tom Tromey <tom@tromey.com>
2814 * riscv-tdep.h: Minor formatting fixes.
2816 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2818 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2819 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2820 (test_mkdir_recursive): Likewise.
2821 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2823 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2825 * valarith.c (value_subscripted_rvalue): If an array is not in
2826 memory, and we don't know the upper bound, then we can't know that
2827 the requested element exists or not.
2829 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2831 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2832 (target_options_to_string): Add comment.
2834 2018-08-08 Tom Tromey <tom@tromey.com>
2836 * unittests/scoped_mmap-selftests.c: Check result of "write".
2838 2018-08-08 Jim Wilson <jimw@sifive.com>
2840 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2841 (decode_register_index_short): New.
2842 (decode_j_type_insn, decode_cj_type_insn): New.
2843 (decode_b_type_insn, decode_cb_type_insn): New.
2844 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2845 local xlen. Check xlen when decoding ambiguous compressed insns. In
2846 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2847 is_c_sw_insn instead of is_sw_insn.
2848 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2849 (riscv_software_single_step): New.
2850 * riscv-tdep.h (riscv_software_single_step): Declare.
2852 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2853 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2855 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2858 * target.c (dispose_inferior): Don't dispose of inferiors that are
2861 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2863 * remote.c (remote_target::download_tracepoint): Change char* to
2866 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2868 * target.h (target_options_to_string): Return an std::string.
2869 * target.c (str_comma_list_concat_elem): Return void, use
2871 (do_option): Likewise.
2872 (target_options_to_string): Return an std::string.
2873 * linux-nat.c (linux_nat_target::wait): Adjust.
2874 * target-debug.h (target_debug_print_options): Adjust.
2876 2018-08-07 Tom Tromey <tom@tromey.com>
2878 * Makefile.in (CPPFLAGS): New variable.
2879 (INTERNAL_CPPFLAGS): Use it.
2881 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2883 * NEWS: Mention the index cache.
2885 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2887 * common/pathstuff.h (get_standard_cache_dir): New.
2888 * common/pathstuff.c (get_standard_cache_dir): New.
2889 * build-id.h (build_id_to_string): New.
2890 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2891 DEBUG_STR_SUFFIX): Move to here.
2892 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2893 DEBUG_STR_SUFFIX): Move from there.
2894 (write_psymtabs_to_index): Make non-static, add basename
2895 parameter. Write to temporary files, rename when done.
2896 (save_gdb_index_command): Adjust call to
2897 write_psymtabs_to_index.
2898 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2900 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2901 (get_gdb_index_contents_from_cache): New.
2902 (get_gdb_index_contents_from_cache_dwz): New.
2903 (dwarf2_initialize_objfile): Read index from cache.
2904 (dwarf2_build_psymtabs): Save to index.
2905 * dwarf-index-cache.h: New file.
2906 * dwarf-index-cache.c: New file.
2907 * dwarf-index-write.h: New file.
2909 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2911 * gnulib/aclocal.m4: Re-generate.
2912 * gnulib/config.in: Re-generate.
2913 * gnulib/configure: Re-generate.
2914 * gnulib/import/Makefile.am: Re-generate.
2915 * gnulib/import/Makefile.in: Re-generate.
2916 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2917 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2918 * gnulib/import/m4/mkdir.m4: New file.
2919 * gnulib/import/mkdir.c: New file.
2920 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2923 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2925 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2926 * common/scoped_mmap.c: New file.
2927 * common/scoped_mmap.h (destroy): New method.
2928 (~scoped_mmap, reset): Use destroy.
2929 (scoped_mmap): New move constructor.
2930 (mmap_file): New declaration.
2931 * unittests/scoped_mmap-selftests.c (test_normal,
2932 test_invalid_filename, run_tests): New functions.
2933 (_initialize_scoped_mmap_selftests): Register selftest.
2935 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2937 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2938 (read_gdb_index_from_buffer): ... this. Remove section
2939 parameter, add buffer parameter.
2940 (get_gdb_index_contents_ftype,
2941 get_gdb_index_contents_dwz_ftype): New typedefs.
2942 (dwarf2_read_gdb_index): Add callback parameters to get the
2944 (get_gdb_index_contents_from_section): New.
2945 (dwarf2_initialize_objfile): Update call to
2946 dwarf2_read_gdb_index.
2948 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2950 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2951 (gdb_open_cloexec): Likewise.
2952 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2953 (commandline_from_pid): Likewise.
2954 (linux_xfer_osdata_threads): Likewise.
2955 (linux_xfer_osdata_fds): Likewise.
2956 * ada-lang.c (is_package_name): Likewise.
2957 * auxv.c (procfs_xfer_auxv): Likewise.
2958 * breakpoint.c (print_one_breakpoint_location): Use
2960 (print_one_catch_solib): Use string_printf.
2961 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2962 (add_pe_forwarded_sym): Likewise.
2963 * dwarf2read.c (create_type_unit_group): Likewise.
2964 (build_error_marker_type): Likewise.
2965 * infcall.c (get_function_name): Likewise.
2966 * valprint.c (print_converted_chars_to_obstack): Likewise.
2967 * xtensa-tdep.c (xtensa_register_type): Likewise.
2969 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2971 * remote.c (remote_target::download_tracepoint): Fix format
2974 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2976 * tracefile.c: Include common/byte-vector.h.
2977 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2978 with trace_regblock_size if needed. Update uses of buf.
2980 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2982 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2983 std::vector<unsigned char>.
2984 * tracepoint.c (collection_list::collection_list): Remove
2985 m_regs_mask initializer from initializer list. Resize
2986 m_regs_mask using the largest remote register number.
2987 (collection_list::add_remote_register): Remove size check on
2988 m_regs_mask. Use at to access element.
2989 (collection_list::stringify): Change type of temp_buf to
2990 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2991 stringify the register mask. Use pack_hex_byte for the register
2994 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2996 * tracepoint.h (class collection_list) <add_register>: Remove.
2997 <add_remote_register, add_ax_registers, add_local_register>:
2999 <add_memrange>: Add scope parameter.
3000 * tracepoint.c (encode_actions_1): Likewise.
3001 (collection_list::add_register): Rename to ...
3002 (collection_list::add_remote_register): ... this. Update
3004 (collection_list::add_ax_registers, add_local_register): New
3006 (collection_list::add_memrange): Add scope parameter. Call
3007 add_local_register instead of add_register.
3008 (finalize_tracepoint_aexpr): New function.
3009 (collection_list::collect_symbol): Update calls to add_memrange.
3010 Call add_local_register instead of add_register. Call
3011 add_ax_registers. Call finalize_tracepoint_aexpr.
3012 (encode_actions_1): Get remote regnos for $reg action. Call
3013 add_remote_register, add_ax_registers, and add_local_register.
3014 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3015 (validate_actionline): Call finalize_tracepoint_aexpr.
3017 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3019 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3020 Replace array buf with gdb::char_vector buf, of size
3021 get_remote_packet_size (). Replace references to buf and
3022 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3023 and xsnprintf with snprintf. Raise errors if the buffer is too
3026 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3028 * remote.c (remote_target::download_tracepoint): Fix the has_more
3029 predicate in the QTDP action list iteration.
3031 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3033 * remote.c (remote_target::download_tracepoint): Fix indentation
3036 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3038 * proc-api.c (_initialize_proc_api): Remove c, unused.
3039 * procfs.c (procfs_init_inferior): Remove signals, unused.
3040 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3043 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3044 Andrew Burgess <andrew.burgess@embecosm.com>
3046 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3047 'W_STOPCODE (0)' as this could be ambiguous.
3049 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3051 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3052 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3055 2018-08-02 Tom Tromey <tom@tromey.com>
3058 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3060 (process_structure_scope): Likewise.
3062 2018-08-02 Xavier Roirand <roirand@adacore.com>
3065 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3068 2018-08-02 Tom Tromey <tom@tromey.com>
3070 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3071 (darwin_suspend_inferior, darwin_resume_inferior)
3072 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3073 (darwin_check_new_threads): Check result of get_darwin_inferior.
3075 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3079 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3081 * varobj.c (varobj_get_path_expr_parent): Report an error if
3082 parent is a dynamic varobj.
3084 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3086 * gnulib/aclocal.m4: Re-generate.
3087 * gnulib/config.in: Re-generate.
3088 * gnulib/configure: Re-generate.
3089 * gnulib/import/Makefile.in: Re-generate.
3090 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3091 * gnulib/import/m4/onceonly.m4: Re-generate.
3093 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3095 * target-descriptions.c (struct xml_test_tdesc): New.
3096 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3097 (record_xml_tdesc): Update.
3098 (maintenance_check_xml_descriptions): Update.
3099 * target-descriptions.h (record_xml_tdesc): Update comment.
3101 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3103 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3104 checking array bounds are defined.
3106 2018-07-30 Tom Tromey <tom@tromey.com>
3108 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3109 irreflexivity violation.
3111 2018-07-30 Tom Tromey <tom@tromey.com>
3113 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3114 * value.c (unpack_long): Remove lint code.
3115 * valops.c (value_ind): Remove lint code.
3116 * valarith.c (value_x_binop, value_x_unop, value_equal)
3117 (value_pos): Remove lint code.
3119 2018-07-28 Tom de Vries <tdevries@suse.de>
3121 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3122 with undefined upper bound as <optimized out>.
3124 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3126 * gcore.in: Rename variable "name" to "prefix". Expand
3129 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3131 * windows-nat.c (windows_nat_target::create_inferior): Update to
3132 call close() in global namespace.
3134 2018-07-26 Tom Tromey <tom@tromey.com>
3136 * dwarf-index-write.c (add_address_entry): Don't add objfile
3138 * dbxread.c (find_stab_function): Rename from
3139 find_stab_function_addr. Return a bound_minimal_symbol.
3140 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3141 Don't add objfile offsets.
3142 (end_psymtab): Use raw_text_low, raw_text_high,
3143 MSYMBOL_VALUE_RAW_ADDRESS.
3144 (read_ofile_symtab): Update.
3145 (process_one_symbol): Update.
3146 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3148 (dw2_relocate): Remove.
3149 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3151 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3153 (process_psymtab_comp_unit_reader, add_partial_symbol)
3154 (add_partial_subprogram, dwarf2_ranges_read): Update.
3155 (load_partial_dies): Update.
3156 (add_address_entry): Don't add objfile offsets.
3157 (dwarf2_build_include_psymtabs): Update.
3158 (create_addrmap_from_aranges): Don't add objfile offsets.
3159 (dw2_find_pc_sect_compunit_symtab): Update.
3160 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3161 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3163 (parse_partial_symbols): Don't add objfile offsets. Use
3164 raw_text_low, raw_text_high. Update.
3165 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3166 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3167 or call 'relocate' quick function. Clear psymbol_map.
3168 * psympriv.h (struct partial_symbol) <address>: Add section
3170 <set_unrelocated_address>: Rename from set_address.
3171 <raw_text_low, raw_text_high>: New methods.
3172 <text_low, text_high>: Add objfile parameter.
3173 (add_psymbol_to_bcache): Add 'section' parameter. Call
3174 set_unrelocated_address.
3175 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3176 (find_pc_psymbol): Update.
3177 (fixup_psymbol_section, relocate_psymtabs): Remove.
3178 (dump_psymtab, psym_functions): Update.
3179 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3181 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3182 (start_psymtab_common): Update.
3183 * symfile-debug.c (debug_qf_relocate): Remove.
3184 (debug_sym_quick_functions): Update.
3185 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3186 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3189 2018-07-26 Tom Tromey <tromey@redhat.com>
3191 * dbxread.c (end_psymtab): Use text_high_valid and
3193 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3194 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3195 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3197 <text_low_valid, text_high_valid>: New fields.
3198 <set_text_low, set_text_high>: Update.
3199 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3201 2018-07-26 Tom Tromey <tom@tromey.com>
3203 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3205 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3206 textlow and texthigh fields.
3207 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3209 * mdebugread.c (parse_lines, parse_partial_symbols)
3210 (psymtab_to_symtab_1): Update.
3211 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3212 Rename fields. Update comment. Now private.
3213 <text_low, text_high, set_text_low, set_text_high>: New methods.
3214 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3215 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3216 (start_psymtab_common, maintenance_info_psymtabs)
3217 (maintenance_check_psymtabs): Update.
3218 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3220 (scan_xcoff_symtab): Update.
3222 2018-07-26 Tom Tromey <tromey@redhat.com>
3224 * psympriv.h (struct partial_symbol) <unrelocated_address,
3225 address, set_address>: New methods.
3226 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3227 (fixup_psymbol_section, relocate_psymtabs): Update.
3228 (print_partial_symbols): Add 'objfile' parameter. Update.
3229 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3232 2018-07-26 Tom Tromey <tom@tromey.com>
3234 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3235 (debug_names::write_psymbols): Update.
3236 * psympriv.h (struct partial_symbol): Derive from
3237 general_symbol_info.
3238 <obj_section>: New method.
3239 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3240 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3241 (find_pc_sect_psymbol, fixup_psymbol_section)
3242 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3243 (print_partial_symbols, recursively_search_psymtabs)
3244 (compare_psymbols, psymbol_hash, psymbol_compare)
3245 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3246 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3248 2018-07-26 Tom Tromey <tromey@redhat.com>
3250 * dbxread.c (end_psymtab): Remove dead code.
3252 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3254 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3255 DWARF unwinders are disabled.
3256 * dwarf2-frame.c: Add dwarf2read.h include.
3257 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3259 (dwarf2_frame_unwinders_enabled_p): Define.
3260 (show_dwarf_unwinders_enabled_p): New function.
3261 (_initialize_dwarf2_frame): Register switch to control DWARF
3263 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3264 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3265 (show_dwarf_cmdlist): Remove static keyword.
3266 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3267 (show_dwarf_cmdlist): Declare.
3268 * NEWS: Document new feature.
3270 2018-07-26 Tom de Vries <tdevries@suse.de>
3272 PR breakpoints/23366
3273 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3275 2018-07-26 Tom de Vries <tdevries@suse.de>
3277 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3278 DW_AT_count can't be translated to a dynamic prop.
3280 2018-07-25 Tom de Vries <tdevries@suse.de>
3282 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3285 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3287 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3289 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3291 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3293 2018-07-24 Keith Seitz <keiths@redhat.comt
3296 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3297 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3298 instead of add_symbol_to_list.
3299 (read_file_scope): Call prepare_one_comp_unit before reading
3302 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3304 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3306 2018-07-24 Tom Tromey <tom@tromey.com>
3308 * utils.c (malloc, realloc, free): Don't declare.
3309 * configure, config.in: Rebuild.
3310 * configure.ac: Don't check for declarations of free, malloc, or
3313 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3315 * aarch64-linux-nat.c
3316 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3318 * arm-linux-nat.c (fetch_regs): Likewise.
3319 (store_regs): Likewise.
3320 (fetch_vfp_regs): Likewise.
3321 (store_vfp_regs): Likewise.
3322 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3323 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3324 (arm_linux_nat_target::insert_watchpoint): Likewise.
3325 (arm_linux_nat_target::remove_watchpoint): Likewise.
3326 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3328 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3330 * ppc-linux-nat.c (fetch_register): Likewise.
3331 (fetch_all_gp_regs): Likewise.
3332 (fetch_ppc_registers): Likewise.
3333 (store_all_gp_regs): Likewise.
3334 (store_ppc_registers): Likewise.
3335 (hwdebug_insert_point): Likewise.
3336 (can_use_watchpoint_cond_accel): Likewise.
3337 * remote-sim.c (gdb_os_write_stdout): Likewise.
3339 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3340 Tom Tromey <tom@tromey.com>
3342 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3344 * configure: Rebuild.
3346 2018-07-22 Tom Tromey <tom@tromey.com>
3348 * regformats/regdat.sh: Define xmltarget_${name} inside
3349 #ifndef IN_PROCESS_AGENT.
3351 2018-07-22 Tom Tromey <tom@tromey.com>
3353 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3355 2018-07-22 Tom Tromey <tom@tromey.com>
3357 * symfile.c (reread_symbols): Notify iter, not objfile.
3359 2018-07-22 Tom Tromey <tom@tromey.com>
3361 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3363 (ravenscar_thread_target::prepare_to_store): Likewise.
3365 2018-07-22 Tom Tromey <tom@tromey.com>
3367 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3368 unused variable. Call value_fetch_lazy when needed.
3369 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3370 Remove unused variable. Call value_fetch_lazy when needed.
3372 2018-07-22 Tom Tromey <tom@tromey.com>
3374 * m32c-tdep.c (mark_dma): Return void.
3375 (make_regs): Remove unused declarations.
3377 2018-07-22 Tom Tromey <tom@tromey.com>
3379 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3380 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3381 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3382 bkscm_get_valid_block_smob_arg_unsafe for effect.
3384 2018-07-22 Tom Tromey <tom@tromey.com>
3386 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3389 2018-07-22 Tom Tromey <tom@tromey.com>
3391 * windows-nat.c (saved_context): Conditionally define.
3392 * remote.c (remote_target::remote_btrace_maybe_reopen):
3393 Conditionally declare "warned".
3394 * inflow.c (sigquit_ours): Conditionally define.
3395 (new_tty): Move "tty" declaration inside #if.
3396 * guile/guile.c (guile_datadir): Conditionally define.
3397 * charset.c (set_be_le_names): Move some declarations inside #if.
3398 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3400 (parse_xml_btrace_conf): Likewise.
3402 2018-07-22 Tom Tromey <tom@tromey.com>
3404 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3406 2018-07-22 Tom Tromey <tom@tromey.com>
3408 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3409 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3410 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3411 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3412 * stack.c (frame_apply_level_command): Remove unused variable.
3413 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3414 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3415 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3417 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3418 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3419 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3421 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3422 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3424 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3425 Remove unused variable.
3426 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3428 * common/tdesc.c (print_xml_feature::visit): Remove unused
3430 * compile/compile-object-load.c (store_regs): Remove unused
3432 * complaints.c (clear_complaints): Remove unused variable.
3433 * corelow.c (core_target_open): Remove unused variable.
3434 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3436 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3438 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3440 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3442 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3444 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3446 * ia64-tdep.c (examine_prologue): Remove unused variable.
3447 * infcall.c (run_inferior_call): Remove unused variable.
3448 * inferior.c (exit_inferior): Remove unused variable.
3449 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3450 * linespec.c (decode_line_2): Remove unused variable.
3451 * linux-nat.c (super_close): Remove.
3452 * linux-tdep.c (linux_info_proc): Remove unused variable.
3453 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3454 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3455 Remove unused variable.
3456 * parse.c (find_minsym_type_and_address): Remove unused variable.
3457 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3459 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3461 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3463 * record-btrace.c (record_btrace_target::store_registers): Remove
3465 (cmd_show_record_btrace_cpu): Remove unused variable.
3466 * riscv-tdep.c (riscv_register_reggroup_p)
3467 (riscv_push_dummy_call, riscv_return_value): Remove unused
3469 * rust-exp.y (literal): Remove unused variable.
3470 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3472 <STRUCTOP_ANONYMOUS>: Likewise.
3473 * s390-linux-tdep.c (s390_linux_init_abi_31)
3474 (s390_linux_init_abi_64): Remove unused variable.
3475 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3476 (file_select_thread, net_windows_open, _initialize_ser_windows):
3477 Remove unused variables.
3478 * symtab.c (find_pc_sect_line): Remove unused variable.
3479 * target-memory.c (compute_garbled_blocks): Remove unused
3481 (target_write_memory_blocks): Remove unused variable.
3482 * target.c (target_stack::unpush): Remove unused variables.
3483 * tracepoint.c (start_tracing, all_tracepoint_actions)
3484 (merge_uploaded_trace_state_variables)
3485 (print_one_static_tracepoint_marker): Remove unused variable.
3486 * unittests/basic_string_view/element_access/char/1.cc (test01):
3487 Remove unused variable.
3488 * windows-nat.c (windows_continue, windows_add_all_dlls)
3489 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3490 Remove unused variables.
3492 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3494 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3495 attr_profile in HAVE_ELF.
3496 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3499 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3501 * frame.c (frame_register_unwind): Change parameter name.
3502 (frame_unwind_register): Likewise.
3503 (frame_unwind_register_value): Likewise.
3504 (frame_unwind_register_signed): Likewise.
3505 (frame_unwind_register_unsigned): Likewise.
3506 * frame.h (frame_register_unwind): Likewise.
3507 (frame_unwind_register): Likewise.
3508 (frame_unwind_register_value): Likewise.
3509 (frame_unwind_register_signed): Likewise.
3510 (frame_unwind_register_unsigned): Likewise.
3511 (frame_unwind_arch): Likewise.
3513 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3515 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3518 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3520 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3521 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3524 2018-07-20 Keith Seitz <keiths@redhat.com>
3526 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3527 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3528 m_compunit_symtab, m_language>: Add "m_" prefix.
3530 * buildsym.c: Update all uses.
3532 2018-07-20 Tom Tromey <tom@tromey.com>
3534 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3535 * buildsym.h (record_line_ftype): Remove typedef.
3537 2018-07-20 Tom Tromey <tom@tromey.com>
3539 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3540 (end_expandable_symtab): Likewise.
3541 (end_symtab_get_static_block): Likewise.
3542 (end_symtab_from_static_block): Likewise.
3543 * buildsym-legacy.c (augment_type_symtab): Remove.
3544 (end_expandable_symtab): Remove.
3545 (end_symtab_get_static_block): Remove.
3546 (end_symtab_from_static_block): Remove.
3548 2018-07-20 Tom Tromey <tom@tromey.com>
3550 * dwarf2read.c: Include buildsym.h.
3551 (struct dwarf2_cu) <builder>: New method.
3552 (fixup_go_packaging): Update.
3553 (process_full_comp_unit, process_full_type_unit): Update. Don't
3554 use scoped_free_pendings.
3555 (using_directives): Add "cu" parameter, remove "language".
3556 (read_import_statement, setup_type_unit_groups, )
3557 (read_func_scope, read_lexical_block_scope)
3558 (dwarf2_record_block_ranges, read_namespace): Update.
3559 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3560 (lnp_state_machine::handle_end_sequence): Update.
3561 (class lnp_state_machine) <m_cu>: New member.
3562 <m_record_line_callback>: Remove.
3563 <m_currently_recording_lines>: New member.
3564 (lnp_state_machine::handle_set_file): Update.
3565 (noop_record_line): Remove.
3566 (dwarf_record_line_p): Add cu parameter.
3567 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3568 (lnp_state_machine::record_line)
3569 (lnp_state_machine::lnp_state_machine)
3570 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3571 (dwarf_decode_lines): Update.
3572 (dwarf2_start_subfile): Add cu parameter.
3573 (dwarf2_start_symtab, new_symbol): Update.
3574 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3575 Remove dwarf2_per_objfile parameter.
3576 (dwarf_decode_macros): Update.
3578 2018-07-20 Tom Tromey <tom@tromey.com>
3580 * stabsread.c (define_symbol): Update.
3581 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3582 * dwarf2read.c (new_symbol): Update.
3583 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3584 * cp-namespace.c: Include buildsym.h.
3585 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3586 * buildsym-legacy.c (get_buildsym_compunit): New function.
3588 2018-07-20 Tom Tromey <tom@tromey.com>
3590 * xcoffread.c: Include buildsym-legacy.h.
3591 * windows-nat.c: Include buildsym-legacy.h.
3592 * stabsread.c: Include buildsym-legacy.h.
3593 * mdebugread.c: Include buildsym-legacy.h.
3594 * buildsym-legacy.h: New file.
3595 * buildsym-legacy.c: New file, from buildsym.c.
3596 * go32-nat.c: Include buildsym-legacy.h.
3597 * dwarf2read.c: Include buildsym-legacy.h.
3598 * dbxread.c: Include buildsym-legacy.h.
3599 * cp-namespace.c: Include buildsym-legacy.h.
3600 * coffread.c: Include buildsym-legacy.h.
3601 * buildsym.h: Move some contents to buildsym-legacy.h.
3602 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3604 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3606 2018-07-20 Tom Tromey <tom@tromey.com>
3608 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3609 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3610 (buildsym_compunit::buildsym_compunit)
3611 (buildsym_compunit::~buildsym_compunit)
3612 (buildsym_compunit::get_macro_table): Define.
3614 2018-07-20 Tom Tromey <tom@tromey.com>
3616 * buildsym.c (reset_symtab_globals): Remove.
3617 (buildsym_compunit::end_symtab_from_static_block): Update.
3618 (buildsym_compunit::augment_type_symtab): Update.
3619 (end_symtab_from_static_block): Call free_buildsym_compunit.
3620 (augment_type_symtab, end_symtab, end_expandable_symtab):
3623 2018-07-20 Tom Tromey <tom@tromey.com>
3625 * arch-utils.c: Do not include buildsym.h.
3626 * mipsread.c: Do not include buildsym.h.
3627 * machoread.c: Do not include buildsym.h.
3628 * elfread.c: Do not include buildsym.h.
3630 2018-07-20 Tom Tromey <tom@tromey.com>
3632 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3634 (buildsym_compunit): Add new constructor.
3635 (struct buildsym_compunit) <get_last_source_file, finish_block,
3636 record_block_range, start_subfile, patch_subfile_names,
3637 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3638 set_last_source_start_addr, get_last_source_start_addr,
3639 get_local_using_directives, set_local_using_directives,
3640 get_global_using_directives, outermost_context_p,
3641 get_current_context_stack, get_context_stack_depth,
3642 get_current_subfile, get_local_symbols, get_file_symbols,
3643 get_global_symbols, record_debugformat, record_producer,
3644 push_context, pop_context, end_symtab_get_static_block,
3645 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3647 <record_pending_block, finish_block_internal, make_blockvector,
3648 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3652 2018-05-22 Tom Tromey <tom@tromey.com>
3654 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3656 (finish_block_internal): Update.
3658 2018-07-20 Tom Tromey <tom@tromey.com>
3660 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3662 (finish_block_internal): Update.
3664 2018-07-20 Tom Tromey <tom@tromey.com>
3666 * buildsym.h (EXTERN): Don't define or undef.
3667 * buildsym.c (EXTERN): Don't define.
3669 2018-07-20 Tom Tromey <tom@tromey.com>
3671 * buildsym.c: Remove TODO comment.
3673 2018-07-20 Tom Tromey <tom@tromey.com>
3675 * coffread.c (coff_symtab_read): Update.
3676 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3677 (xcoff_new_init): Update.
3678 * mipsread.c (mipscoff_new_init): Update.
3679 * mdebugread.c (mdebug_build_psymtabs): Update.
3680 * elfread.c (elf_new_init): Update.
3681 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3683 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3684 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3685 (stabsect_build_psymtabs): Update.
3686 * buildsym.h (buildsym_init): Don't declare.
3687 * buildsym.c: Update comment.
3688 (prepare_for_building): Remove.
3689 (start_symtab, restart_symtab): Update.
3690 (reset_symtab_globals): Update comment.
3691 (buildsym_init): Remove.
3693 2018-07-20 Tom Tromey <tom@tromey.com>
3695 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3696 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3697 (read_enum_type, common_block_start, common_block_end)
3698 (cleanup_undefined_types_1, finish_global_stabs): Update.
3699 * mdebugread.c (psymtab_to_symtab_1): Update.
3700 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3701 (read_lexical_block_scope, new_symbol): Update.
3702 * dbxread.c (process_one_symbol): Update.
3703 * coffread.c (coff_symtab_read, process_coff_symbol)
3704 (coff_read_enum_type): Update.
3705 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3707 (get_local_symbols, get_file_symbols, get_global_symbols): New
3709 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3711 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3712 (~scoped_free_pendings): Update.
3713 (finish_block, prepare_for_building, reset_symtab_globals)
3714 (end_symtab_get_static_block, end_symtab_with_blockvector)
3715 (augment_type_symtab, push_context): Update.
3716 (get_local_symbols, get_file_symbols, get_global_symbols): New
3718 (buildsym_init): Update.
3720 2018-07-20 Tom Tromey <tom@tromey.com>
3722 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3723 (process_full_type_unit): Likewise.
3724 (dwarf2_start_symtab): Set list_in_scope.
3726 2018-07-20 Tom Tromey <tom@tromey.com>
3728 * dwarf2read.c (process_psymtab_comp_unit_reader)
3729 (build_type_psymtabs_reader): Do not set list_in_scope.
3731 2018-07-20 Tom Tromey <tom@tromey.com>
3733 * buildsym.c (free_pendings): Remove.
3734 (add_symbol_to_list, scoped_free_pendings)
3735 (finish_block_internal, buildsym_init): Update.
3737 2018-07-20 Tom Tromey <tom@tromey.com>
3739 * xcoffread.c (read_xcoff_symtab): Update.
3740 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3742 * dbxread.c (process_one_symbol): Update.
3743 * coffread.c (coff_symtab_read): Update.
3744 * buildsym.h (finish_block): Update.
3745 * buildsym.c (finish_block): Remove "listhead" argument.
3746 (end_symtab_get_static_block): Update.
3748 2018-07-20 Tom Tromey <tom@tromey.com>
3750 * buildsym.h (class scoped_free_pendings): Remove constructor.
3751 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3753 <m_pending_block_obstack, m_pending_blocks>: New members.
3754 (pending_block_obstack, pending_blocks): Remove.
3755 (scoped_free_pendings::scoped_free_pendings): Default.
3756 (~scoped_free_pendings): Update.
3757 (free_pending_blocks): Remove.
3758 (finish_block_internal, record_pending_block, make_blockvector)
3759 (end_symtab_get_static_block, augment_type_symtab, push_context)
3760 (buildsym_init): Update.
3762 2018-07-20 Tom Tromey <tom@tromey.com>
3764 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3765 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3767 (pending_addrmap, pending_addrmap_obstack)
3768 (pending_addrmap_interesting): Remove.
3769 (scoped_free_pendings, record_block_range, make_blockvector)
3770 (prepare_for_building, reset_symtab_globals, buildsym_init):
3773 2018-07-20 Tom Tromey <tom@tromey.com>
3775 * xcoffread.c (process_linenos): Update.
3776 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3777 * mdebugread.c (psymtab_to_symtab_1): Update.
3778 * dwarf2read.c (setup_type_unit_groups)
3779 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3780 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3781 * dbxread.c (process_one_symbol): Update.
3782 * coffread.c (coff_symtab_read, enter_linenos)
3783 (process_coff_symbol): Update.
3784 * buildsym.h (current_subfile): Don't declare.
3785 (get_current_subfile): Declare.
3786 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3788 (start_subfile, free_buildsym_compunit, push_subfile)
3789 (prepare_for_building, start_symtab): Update.
3790 (get_current_subfile): New function.
3792 2018-07-20 Tom Tromey <tom@tromey.com>
3794 * coffread.c (coff_symtab_read): Update.
3795 * xcoffread.c (read_xcoff_symtab): Update.
3796 * dwarf2read.c (new_symbol): Update.
3797 (read_func_scope, read_lexical_block_scope): Update.
3798 * dbxread.c (process_one_symbol): Update.
3799 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3800 (outermost_context_p): Remove macro.
3801 (outermost_context_p, get_current_context_stack)
3802 (get_context_stack_depth): Declare.
3803 (pop_context): Return struct context_stack.
3804 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3806 (context_stack_size): Remove.
3807 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3808 (prepare_for_building, end_symtab_get_static_block)
3809 (augment_type_symtab, push_context): Update.
3810 (pop_context): Return struct context_stack.
3811 (outermost_context_p, get_current_context_stack)
3812 (get_context_stack_depth): New functions.
3813 (buildsym_init): Update.
3815 2018-07-20 Tom Tromey <tom@tromey.com>
3817 * rust-exp.y: Now a pure parser. Update all rules.
3818 (%union): Move earlier.
3819 (current_parser, work_obstack): Remove globals.
3820 (rust_parser, ~rust_parser): Update.
3821 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3822 lex_character, lex_number, lex_string, lex_identifier,
3823 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3824 convert_name, convert_params_to_expression,
3825 convert_ast_to_expression, ast_basic_type, ast_operation,
3826 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3827 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3828 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3829 ast_array_type, ast_slice_type, ast_reference_type,
3830 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3831 (rust_parse): Update.
3832 (rustyyerror, rustyylex): Add parser parameter.
3833 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3834 (rust_lex_stringish_test, rust_lex_test_sequence)
3835 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3836 (rust_lex_test_push_back, rust_lex_tests): Update.
3838 2018-07-19 Pedro Alves <palves@redhat.com>
3840 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3841 gdb::unique_xmalloc_ptr.
3842 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3843 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3844 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3845 copy-initialization.
3846 * guile/scm-pretty-print.c (ppscm_print_children): Use
3847 gdb::unique_xmalloc_ptr instead of cleanups.
3848 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3849 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3850 gdb::unique_xmalloc_ptr.
3851 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3852 Adjust to use gdb::unique_xmalloc_ptr.
3853 * guile/scm-utils.c (extract_arg): Adjust.
3854 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3855 gdb::unique_xmalloc_ptr instead of a cleanup.
3857 2018-07-19 Tom Tromey <tom@tromey.com>
3859 * utils.c (do_value_free_to_mark)
3860 (make_cleanup_value_free_to_mark): Remove.
3861 * utils.h (make_cleanup_value_free_to_mark): Remove.
3863 2018-07-19 Pedro Alves <palves@redhat.com>
3865 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3866 forwarding reference.
3868 2018-07-18 Pedro Alves <palves@redhat.com>
3870 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3871 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3874 2018-07-18 Pedro Alves <palves@redhat.com>
3876 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3878 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3880 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3881 directly instead of a cleanup.
3882 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3883 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3884 (vlscm_binop_gdbthrow): New, factored out from ...
3885 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3886 (vlscm_rich_compare): Use gdbscm_wrap.
3887 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3888 instead of a cleanup.
3889 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3891 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3892 Use xfree directly instead of a cleanup.
3893 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3894 Adjust to use gdbscm_wrap and scoped_value_mark.
3895 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3896 (gdbscm_value_address, gdbscm_value_dereference)
3897 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3899 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3900 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3902 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3903 gdbscm_wrap and scoped_value_mark.
3904 (gdbscm_value_to_string): Use xfree directly instead of a
3905 cleanup. Move 'buffer' unique_ptr to TRY scope.
3906 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3907 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3909 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3910 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3912 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3915 2018-07-18 Tom de Vries <tdevries@suse.de>
3917 * findvar.c (default_read_var_value): Also resolve dynamic type for
3918 LOC_OPTIMIZED_OUT vars.
3920 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3922 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3925 2018-07-17 Tom Tromey <tom@tromey.com>
3927 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3928 (compute_enum_list, pascm_set_param_value_x)
3929 (gdbscm_parameter_value): Update.
3930 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3931 (gdbscm_scm_to_host_string): Update.
3932 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3934 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3935 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3936 * guile/scm-string.c (gdbscm_scm_to_string): Return
3938 (gdbscm_scm_to_host_string): Likewise.
3940 2018-07-17 Tom Tromey <tom@tromey.com>
3942 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3943 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3944 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3945 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3948 2018-07-17 Tom Tromey <tom@tromey.com>
3950 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3951 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3953 * guile/scm-cmd.c (cmdscm_function): Update.
3954 * guile/scm-pretty-print.c
3955 (ppscm_print_exception_unless_memory_error): Update.
3956 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3957 Return unique_xmalloc_ptr.
3959 2018-07-17 Tom Tromey <tom@tromey.com>
3961 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3964 2018-07-17 Jim Wilson <jimw@sifive.com>
3966 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3967 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3968 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3969 unecessary braces after EF_RISCV_RVC test. Delete call to
3970 set_gdbarch_decr_pc_after_break.
3972 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3973 RISCV_LAST_FP_REGNUM + 1.
3974 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3976 2018-07-17 Tom Tromey <tom@tromey.com>
3978 * configure.ac: Remove --disable-gdbcli.
3979 * configure: Rebuild.
3980 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3981 (SUBDIR_CLI_CFLAGS): Remove.
3982 (SFILES): Use SUBDIR_CLI_SRCS.
3983 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3985 2018-07-17 Tom Tromey <tom@tromey.com>
3988 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3990 2018-07-16 Jim Wilson <jimw@sifive.com>
3992 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3994 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3996 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3998 (libunwind_frame_sniffer): Likewise.
3999 (libunwind_frame_prev_register): Likewise.
4000 (libunwind_sigtramp_frame_sniffer): Likewise.
4001 * ia64-tdep.c (ia64_access_reg): Likewise.
4002 (ia64_access_rse_reg): Likewise.
4003 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4004 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4006 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4008 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4010 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4012 * remote-sim.c (gdbsim_target::close,
4013 gdbsim_target::mourn_inferior): Remove unused variables.
4015 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4017 * ia64-tdep.c (ktab_buf): New global.
4018 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4019 (get_kernel_table): Adjust.
4021 2018-07-16 Tom Tromey <tom@tromey.com>
4023 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4024 * dwarf2read.c (using_directives, new_symbol): Use
4025 outermost_context_p.
4026 * dbxread.c (process_one_symbol): Use outermost_context_p.
4027 * coffread.c (coff_symtab_read): Use outermost_context_p.
4029 2018-07-16 Tom Tromey <tom@tromey.com>
4031 * dwarf2read.c (using_directives, read_func_scope)
4032 (read_lexical_block_scope): Update.
4033 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4034 * buildsym.h (local_using_directives, global_using_directives):
4036 (get_local_using_directives, set_local_using_directives)
4037 (get_global_using_directives): Declare.
4038 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4039 m_global_using_directives>: New members.
4040 (finish_block_internal, prepare_for_building)
4041 (reset_symtab_globals, end_symtab_get_static_block)
4042 (push_context): Update.
4043 (get_local_using_directives, set_local_using_directives)
4044 (get_global_using_directives): New functions.
4045 (buildsym_init): Update.
4047 2018-07-16 Tom Tromey <tom@tromey.com>
4049 * xcoffread.c (xcoff_initial_scan): Don't call
4050 free_pending_blocks.
4051 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4052 * buildsym.h (class scoped_free_pendings): Add constructor.
4053 (free_pending_blocks): Don't declare.
4054 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4055 (free_pending_blocks): Now static.
4057 2018-07-16 Tom Tromey <tom@tromey.com>
4059 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4060 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4062 (struct subfile_stack): Remove.
4063 (subfile_stack): Remove.
4064 (push_subfile, pop_subfile, buildsym_init): Update.
4066 2018-07-16 Tom Tromey <tom@tromey.com>
4068 * buildsym.c (push_subfile): Use gdb_assert.
4069 (pop_subfile): Use gdb_assert.
4071 2018-07-16 Tom Tromey <tom@tromey.com>
4073 * buildsym.h (merge_symbol_lists): Remove.
4074 * buildsym.c (merge_symbol_lists): Remove.
4076 2018-07-16 Tom Tromey <tom@tromey.com>
4078 * stabsread.c (scan_file_globals): Update comment.
4079 * stabsread.h (scan_file_globals): Move from buildsym.h.
4080 * buildsym.h (scan_file_globals): Move to stabsread.h.
4082 2018-07-16 Tom Tromey <tom@tromey.com>
4084 * xcoffread.c (xcoff_new_init): Update.
4085 * mipsread.c (mipscoff_new_init): Update.
4086 * mdebugread.c (mdebug_build_psymtabs): Update.
4087 * elfread.c (elf_new_init): Update.
4088 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4089 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4090 * buildsym.h (buildsym_new_init): Don't declare.
4091 * buildsym.c (buildsym_new_init): Remove.
4093 2018-07-16 Tom Tromey <tom@tromey.com>
4095 * stabsread.h (within_function): Move from buildsym.h.
4096 * stabsread.c (start_stabs): Clear within_function.
4097 * coffread.c (coff_start_symtab): Clear within_function.
4098 * buildsym.h (within_function): Move to stabsread.h.
4099 * buildsym.c (prepare_for_building): Update.
4101 2018-07-16 Tom Tromey <tom@tromey.com>
4103 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4104 * dwarf2read.c (dwarf2_start_symtab): Don't set
4105 processing_gcc_compilation.
4106 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4108 2018-07-16 Tom Tromey <tom@tromey.com>
4110 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4111 (next_symbol_text_func): Move from buildsym.h.
4112 * stabsread.c (hashname): Move from buildsym.c.
4113 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4114 (next_symbol_text_func, hashname): Move to stabsread.h.
4115 * buildsym.c: Don't include bcache.h
4116 (hashname): Move to stasbread.c.
4118 2018-07-16 Tom Tromey <tom@tromey.com>
4120 * buildsym.h (context_stack_size): Don't declare.
4121 * buildsym.c (context_stack_size): New global.
4123 2018-07-16 Tom Tromey <tom@tromey.com>
4125 * dbxread.c (processing_acc_compilation): New global.
4126 * buildsym.h (processing_acc_compilation): Don't declare.
4128 2018-07-16 Tom Tromey <tom@tromey.com>
4130 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4131 * dbxread.c (read_ofile_symtab): Update.
4132 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4133 * buildsym.h (last_source_start_addr): Remove.
4134 (set_last_source_start_addr, get_last_source_start_addr):
4136 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4138 (struct buildsym_compunit) <m_last_source_start_addr>: New
4140 (prepare_for_building): Remove start_addr parameter.
4141 (start_symtab, restart_symtab, end_symtab_get_static_block)
4142 (end_symtab_with_blockvector): Update.
4143 (set_last_source_start_addr, get_last_source_start_addr): New
4146 2018-07-16 Tom Tromey <tom@tromey.com>
4148 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4150 (have_line_numbers): Remove.
4151 (record_line, prepare_for_building, end_symtab_get_static_block)
4152 (augment_type_symtab): Update.
4154 2018-07-16 Tom Tromey <tom@tromey.com>
4156 * buildsym.c (~buildsym_compunit): Free the macro table.
4157 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4159 <m_pending_macros>: New member.
4160 (pending_macros): Remove.
4161 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4162 (reset_symtab_globals, end_symtab_get_static_block)
4163 (end_symtab_with_blockvector, augment_type_symtab)
4164 (buildsym_init): Update.
4166 2018-07-16 Tom Tromey <tom@tromey.com>
4168 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4170 (buildsym_compunit::set_last_source_file): New method.
4171 <m_last_source_file>: New member.
4172 (prepare_for_building): Remove "name" parameter.
4173 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4174 (last_source_file): Remove.
4175 (set_last_source_file, get_last_source_file): Update.
4177 2018-07-16 Tom Tromey <tom@tromey.com>
4179 * buildsym.c (prepare_for_building): Add assert.
4181 2018-07-16 Tom Tromey <tom@tromey.com>
4183 * buildsym.c (~buildsym_compunit): Update.
4184 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4185 (start_subfile, patch_subfile_names)
4186 (end_symtab_with_blockvector): Update.
4188 2018-07-16 Tom Tromey <tom@tromey.com>
4190 * buildsym.c (struct buildsym_compunit): Add constructor,
4191 destructor, initializers.
4192 (start_buildsym_compunit): Remove.
4193 (free_buildsym_compunit): Use "delete".
4194 (start_symtab, restart_symtab): Use "new".
4196 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4198 * symfile.c (set_objfile_default_section_offset): Remove struct
4201 2018-07-14 Stafford Horne <shorne@gmail.com>
4203 * (Responsible Maintainers): Add myself as or1k maintainer.
4205 2018-07-13 Tom Tromey <tom@tromey.com>
4207 * symfile.c (set_objfile_default_section_offset): Use extra braces
4210 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4212 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4215 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4217 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4218 unittests/cli-utils-selftests.c
4219 * unittests/cli-utils-selftests.c: New file.
4221 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4223 * NEWS: Mention new commands. Mention change to 'thread apply'.
4225 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4227 * thread.c (thr_try_catch_cmd): New function.
4228 (thread_apply_all_command): Handle qcs flags.
4229 (thread_apply_command): Handle qcs flags.
4230 (taas_command): New function.
4231 (tfaas_command): New function.
4232 (_initialize_thread): Update to setup the new commands 'taas
4233 and 'tfaas'. Change doc string for 'thread apply'.
4235 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4237 * stack.c: (trailing_outermost_frame): New function, mostly
4238 extracted from backtrace_command_1.
4239 (leading_innermost_frame): New function.
4240 (backtrace_command_1): Update to call trailing_outermost_frame.
4241 (frame_apply_command_count): New function.
4242 (frame_apply_level_command): New function.
4243 (frame_apply_all_command): New function.
4244 (frame_apply_command): New function.
4245 (faas_command): New function.
4246 (frame_cmd_list): New variable.
4247 (_initialize_stack): Update to setup the new commands 'frame apply'
4250 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4252 * cli-utils.c (number_or_range_parser::get_number): Only handle
4253 numbers or convenience var as numbers.
4254 (parse_flags): New function.
4255 (parse_flags_qcs): New function.
4256 (number_or_range_parser::finished): Ensure parsing end is detected
4257 before end of string.
4258 * cli-utils.h (parse_flags): New function.
4259 (parse_flags_qcs): New function.
4260 (number_or_range_parser): Remove m_finished bool.
4261 (number_or_range_parser::skip_range): Set m_in_range to false.
4263 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4265 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4268 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4269 Jan Kratochvil <jan.kratochvil@redhat.com>
4270 Paul Fertser <fercerpav@gmail.com>
4271 Tsutomu Seki <sekiriki@gmail.com>
4272 Pedro Alves <palves@redhat.com>
4274 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4275 'unittests/parse-connection-spec-selftests.c'.
4276 (COMMON_SFILES): Add 'common/netstuff.c'.
4277 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4278 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4279 * common/netstuff.c: New file.
4280 * common/netstuff.h: New file.
4281 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4282 (wait_for_connect): Update comment. New parameter
4283 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4284 Use 'sock' directly instead of 'scb->fd'.
4285 (try_connect): New function, with code from 'net_open'.
4286 (net_open): Rewrite main loop to deal with multiple
4287 sockets/addresses. Handle IPv6-style hostnames; implement
4288 support for IPv6 connections.
4289 * unittests/parse-connection-spec-selftests.c: New file.
4291 2018-07-11 Pedro Alves <palves@redhat.com>
4294 * remote.c (remote_target::remote_detach_pid): Call
4295 set_current_process.
4297 2018-07-11 Pedro Alves <palves@redhat.com>
4299 * h8300-tdep.c (h8300_gdbarch_init): Remove
4300 set_gdbarch_ecoff_reg_to_regnum calls.
4302 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4305 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4306 offsets/sizes for static members of a class/struct.
4308 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4310 * target-descriptions.c (tdesc_register_bitsize): Rename.
4311 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4312 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4313 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4315 2018-07-10 Tom Tromey <tom@tromey.com>
4317 * breakpoint.c (moribund_locations): Now static and a
4319 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4320 (build_bpstat_chain, update_global_location_list)
4321 (breakpoint_retire_moribund): Update.
4322 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4325 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4327 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4328 (riscv_register_reggroup_p): Use new function, remove unneeded
4330 (riscv_push_dummy_call): Extend assert to compare against xlen or
4331 flen based on register type.
4333 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4335 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4337 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4339 * remote.c (show_hardware_watchpoint_limit): New function.
4340 (show_hardware_watchpoint_length_limit): New function.
4341 (show_hardware_breakpoint_limit): New function.
4342 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4343 where appropriate, update help text.
4345 2018-07-09 Tom Tromey <tom@tromey.com>
4347 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4348 (CLIBS): Don't mention NAT_CLIBS.
4350 2018-07-09 Tom Tromey <tom@tromey.com>
4352 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4353 (LIBGDB_OBS, clean mostlyclean): Update.
4354 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4356 2018-07-09 Tom Tromey <tom@tromey.com>
4358 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4359 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4360 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4362 2018-07-09 Tom Tromey <tom@tromey.com>
4364 * Makefile.in (ALLDEPFILES): Remove exec.c.
4365 (COMMON_OBS): Remove exec.o.
4366 (COMMON_SFILES): Add exec.c.
4368 2018-07-09 Tom Tromey <tom@tromey.com>
4370 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4372 2018-07-09 Tom Tromey <tom@tromey.com>
4374 * Makefile.in (clean mostlyclean): Remove stamp-version.
4375 (version.c): Depend on stamp-version.
4376 (stamp-version): New rule, from version.c rule.
4378 2018-07-09 Tom Tromey <tom@tromey.com>
4380 * Makefile.in (init.c): Depend on stamp-init.
4381 (stamp-init): New rule, from init.c rule.
4382 (clean mostlyclean): Remove stamp-init.
4384 2018-07-09 Tom Tromey <tom@tromey.com>
4386 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4387 SUBDIR_GCC_COMPILE_SRCS.
4389 2018-07-09 Tom Tromey <tom@tromey.com>
4391 * Makefile.in (init.c): Remove some unused sed rules.
4393 2018-07-09 Tom Tromey <tom@tromey.com>
4395 * Makefile.in (TSOBS): Remove.
4396 (INIT_FILES): Update.
4397 (LIBGDB_OBS): Update.
4398 (COMMON_SFILES): Add inflow.c.
4399 (SFILES): Remove inflow.c.
4401 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4403 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4405 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4407 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4408 get_saveloc_name, is_signal_frame_name, step_name,
4409 init_remote_name, create_addr_space_name,
4410 destroy_addr_space_name, search_unwind_table_name,
4411 find_dyn_list_name): Constify.
4413 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4415 * darwin-nat.c (darwin_pthread_kill): New function.
4416 (darwin_resume_thread): Use darwin_pthread_kill.
4418 2018-07-05 Tom de Vries <tdevries@suse.de>
4420 * macroexp.c (macro_buffer) <operator=>: New member function.
4422 2018-07-04 Tom Tromey <tom@tromey.com>
4424 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4426 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4428 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4429 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4430 * maint.c: Likewise.
4433 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4435 * NEWS: Create a new section for the next release branch.
4436 Rename the section of the current branch, now that it has
4439 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4441 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4442 * version.in: Bump version to 8.2.50.DATE-git.
4444 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4445 Pedro Alves <palves@redhat.com>
4447 * linux-nat.c (linux_init_ptrace): Rename to ...
4448 (linux_init_ptrace_procfs): ... this. Call
4449 linux_proc_init_warnings.
4450 (linux_nat_target::post_attach)
4451 (linux_nat_target::post_startup_inferior): Adjust.
4452 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4453 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4455 2018-07-04 Tom de Vries <tdevries@suse.de>
4457 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4459 (read_comp_unit_head): ... here.
4461 2018-07-03 Tom Tromey <tom@tromey.com>
4463 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4464 (stop_tracing, tstatus_command)
4465 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4466 (print_one_static_tracepoint_marker): Update.
4467 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4469 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4471 (all_tracepoints, static_tracepoints_here): Return std::vector.
4473 2018-07-03 Tom Tromey <tom@tromey.com>
4475 * common/ptid.c (ptid_equal): Remove.
4476 * common/ptid.h (ptid_equal): Don't declare.
4477 * ada-tasks.c: Update.
4478 * breakpoint.c: Update.
4479 * common/agent.c: Update.
4480 * corelow.c: Update.
4481 * darwin-nat-info.c: Update.
4482 * darwin-nat.c: Update.
4484 * dtrace-probe.c: Update.
4485 * dummy-frame.c: Update.
4486 * fbsd-nat.c: Update.
4488 * gdbthread.h: Update.
4489 * gnu-nat.c: Update.
4490 * go32-nat.c: Update.
4491 * inf-loop.c: Update.
4492 * inf-ptrace.c: Update.
4493 * infcall.c: Update.
4497 * linux-fork.c: Update.
4498 * linux-nat.c: Update.
4499 * linux-thread-db.c: Update.
4500 * mi/mi-cmd-var.c: Update.
4501 * mi/mi-interp.c: Update.
4502 * mi/mi-main.c: Update.
4503 * nto-procfs.c: Update.
4504 * ppc-linux-tdep.c: Update.
4506 * python/py-inferior.c: Update.
4507 * python/py-record-btrace.c: Update.
4508 * python/py-record.c: Update.
4509 * ravenscar-thread.c: Update.
4510 * regcache.c: Update.
4511 * remote-sim.c: Update.
4513 * sol-thread.c: Update.
4516 * tui/tui-stack.c: Update.
4518 * windows-nat.c: Update.
4519 * windows-tdep.c: Update.
4521 2018-07-03 Tom Tromey <tom@tromey.com>
4523 * common/ptid.c (ptid_match): Remove.
4524 * common/ptid.h (ptid_match): Don't declare.
4525 * fbsd-nat.c: Update.
4528 * linux-nat.c: Update.
4529 * record-btrace.c: Update.
4530 * regcache.c: Update.
4533 2018-07-03 Tom Tromey <tom@tromey.com>
4535 * common/ptid.c (ptid_tid_p): Remove.
4536 * common/ptid.h (ptid_tid_p): Don't declare.
4537 * sol-thread.c: Update.
4539 2018-07-03 Tom Tromey <tom@tromey.com>
4541 * common/ptid.c (ptid_lwp_p): Remove.
4542 * common/ptid.h (ptid_lwp_p): Don't declare.
4543 * fbsd-nat.c: Update.
4544 * linux-nat.c: Update.
4545 * nat/linux-procfs.c: Update.
4546 * nat/x86-linux-dregs.c: Update.
4547 * sol-thread.c: Update.
4549 2018-07-03 Tom Tromey <tom@tromey.com>
4551 * common/ptid.c (ptid_is_pid): Remove.
4552 * common/ptid.h (ptid_is_pid): Don't declare.
4554 * linux-nat.c: Update.
4555 * mi/mi-interp.c: Update.
4559 2018-07-03 Tom Tromey <tom@tromey.com>
4561 * common/ptid.c (ptid_get_tid): Remove.
4562 * common/ptid.h (ptid_get_tid): Don't declare.
4563 * ada-tasks.c: Update.
4564 * aix-thread.c: Update.
4565 * bsd-uthread.c: Update.
4566 * darwin-nat.c: Update.
4567 * fbsd-nat.c: Update.
4568 * i386-darwin-nat.c: Update.
4570 * linux-tdep.c: Update.
4571 * nto-procfs.c: Update.
4572 * ppc-ravenscar-thread.c: Update.
4573 * python/py-infthread.c: Update.
4574 * ravenscar-thread.c: Update.
4575 * sol-thread.c: Update.
4576 * sparc-ravenscar-thread.c: Update.
4577 * windows-nat.c: Update.
4579 2018-07-03 Tom Tromey <tom@tromey.com>
4581 * common/ptid.c (ptid_get_lwp): Remove.
4582 * common/ptid.h (ptid_get_lwp): Don't declare.
4583 * aarch64-linux-nat.c: Update.
4584 * ada-tasks.c: Update.
4585 * aix-thread.c: Update.
4586 * amd64-linux-nat.c: Update.
4587 * arm-linux-nat.c: Update.
4588 * corelow.c: Update.
4589 * fbsd-nat.c: Update.
4590 * fbsd-tdep.c: Update.
4591 * gnu-nat.c: Update.
4592 * i386-cygwin-tdep.c: Update.
4593 * i386-gnu-nat.c: Update.
4594 * i386-linux-nat.c: Update.
4595 * ia64-linux-nat.c: Update.
4596 * inf-ptrace.c: Update.
4598 * linux-fork.c: Update.
4599 * linux-nat.c: Update.
4600 * linux-tdep.c: Update.
4601 * linux-thread-db.c: Update.
4602 * mips-linux-nat.c: Update.
4603 * nat/aarch64-linux-hw-point.c: Update.
4604 * nat/aarch64-linux.c: Update.
4605 * nat/linux-btrace.c: Update.
4606 * nat/linux-osdata.c: Update.
4607 * nat/linux-procfs.c: Update.
4608 * nat/x86-linux-dregs.c: Update.
4609 * obsd-nat.c: Update.
4610 * ppc-fbsd-nat.c: Update.
4611 * ppc-linux-nat.c: Update.
4613 * python/py-infthread.c: Update.
4614 * ravenscar-thread.c: Update.
4616 * s390-linux-nat.c: Update.
4617 * sol-thread.c: Update.
4618 * sol2-tdep.c: Update.
4619 * spu-linux-nat.c: Update.
4620 * x86-linux-nat.c: Update.
4621 * xtensa-linux-nat.c: Update.
4623 2018-07-03 Tom Tromey <tom@tromey.com>
4625 * common/ptid.c (ptid_get_pid): Remove.
4626 * common/ptid.h (ptid_get_pid): Don't declare.
4627 * aarch64-linux-nat.c: Update.
4628 * ada-lang.c: Update.
4629 * aix-thread.c: Update.
4630 * alpha-bsd-nat.c: Update.
4631 * amd64-fbsd-nat.c: Update.
4632 * amd64-linux-nat.c: Update.
4633 * arm-linux-nat.c: Update.
4634 * arm-nbsd-nat.c: Update.
4636 * break-catch-syscall.c: Update.
4637 * breakpoint.c: Update.
4638 * bsd-uthread.c: Update.
4639 * corelow.c: Update.
4641 * darwin-nat.c: Update.
4642 * fbsd-nat.c: Update.
4643 * fbsd-tdep.c: Update.
4645 * gnu-nat.c: Update.
4646 * hppa-nbsd-nat.c: Update.
4647 * hppa-obsd-nat.c: Update.
4648 * i386-fbsd-nat.c: Update.
4649 * ia64-linux-nat.c: Update.
4650 * inf-ptrace.c: Update.
4652 * inferior.c: Update.
4653 * inferior.h: Update.
4656 * linux-fork.c: Update.
4657 * linux-nat.c: Update.
4658 * linux-tdep.c: Update.
4659 * linux-thread-db.c: Update.
4660 * m68k-bsd-nat.c: Update.
4661 * mi/mi-interp.c: Update.
4662 * mi/mi-main.c: Update.
4663 * mips-linux-nat.c: Update.
4664 * mips-nbsd-nat.c: Update.
4665 * mips64-obsd-nat.c: Update.
4666 * nat/aarch64-linux-hw-point.c: Update.
4667 * nat/aarch64-linux.c: Update.
4668 * nat/linux-btrace.c: Update.
4669 * nat/linux-osdata.c: Update.
4670 * nat/linux-procfs.c: Update.
4671 * nat/x86-linux-dregs.c: Update.
4672 * nto-procfs.c: Update.
4673 * obsd-nat.c: Update.
4674 * ppc-linux-nat.c: Update.
4675 * ppc-nbsd-nat.c: Update.
4676 * ppc-obsd-nat.c: Update.
4677 * proc-service.c: Update.
4679 * python/py-inferior.c: Update.
4680 * python/py-infthread.c: Update.
4681 * ravenscar-thread.c: Update.
4683 * remote-sim.c: Update.
4685 * rs6000-nat.c: Update.
4686 * s390-linux-nat.c: Update.
4687 * sh-nbsd-nat.c: Update.
4688 * sol-thread.c: Update.
4689 * sparc-nat.c: Update.
4690 * sparc64-tdep.c: Update.
4691 * spu-linux-nat.c: Update.
4692 * spu-tdep.c: Update.
4693 * target-debug.h: Update.
4696 * tid-parse.c: Update.
4697 * tracefile-tfile.c: Update.
4698 * vax-bsd-nat.c: Update.
4699 * windows-nat.c: Update.
4700 * x86-linux-nat.c: Update.
4701 * x86-nat.c: Update.
4703 2018-07-03 Tom Tromey <tom@tromey.com>
4705 * common/ptid.c (pid_to_ptid): Remove.
4706 * common/ptid.h (pid_to_ptid): Don't declare.
4707 * aix-thread.c: Update.
4708 * arm-linux-nat.c: Update.
4709 * common/ptid.c: Update.
4710 * common/ptid.h: Update.
4711 * corelow.c: Update.
4713 * darwin-nat.c: Update.
4714 * fbsd-nat.c: Update.
4715 * fork-child.c: Update.
4716 * gnu-nat.c: Update.
4717 * go32-nat.c: Update.
4718 * inf-ptrace.c: Update.
4720 * inferior.c: Update.
4722 * linux-fork.c: Update.
4723 * linux-nat.c: Update.
4724 * nat/aarch64-linux-hw-point.c: Update.
4725 * nat/fork-inferior.c: Update.
4726 * nat/x86-linux-dregs.c: Update.
4727 * nto-procfs.c: Update.
4728 * obsd-nat.c: Update.
4730 * progspace.c: Update.
4732 * rs6000-nat.c: Update.
4733 * s390-linux-nat.c: Update.
4734 * sol-thread.c: Update.
4735 * spu-linux-nat.c: Update.
4738 * tracefile-tfile.c: Update.
4739 * windows-nat.c: Update.
4741 2018-07-03 Tom Tromey <tom@tromey.com>
4743 * common/ptid.h (ptid_build): Don't declare.
4744 * common/ptid.c (ptid_build): Remove.
4745 * aix-thread.c: Update.
4746 * bsd-kvm.c: Update.
4747 * bsd-uthread.c: Update.
4748 * common/agent.c: Update.
4749 * common/ptid.c: Update.
4750 * common/ptid.h: Update.
4751 * corelow.c: Update.
4752 * darwin-nat.c: Update.
4753 * fbsd-nat.c: Update.
4754 * gnu-nat.c: Update.
4755 * linux-fork.c: Update.
4756 * linux-nat.c: Update.
4757 * linux-thread-db.c: Update.
4758 * nat/linux-osdata.c: Update.
4759 * nat/linux-procfs.c: Update.
4760 * nto-procfs.c: Update.
4761 * obsd-nat.c: Update.
4762 * proc-service.c: Update.
4764 * ravenscar-thread.c: Update.
4765 * remote-sim.c: Update.
4767 * sol-thread.c: Update.
4769 * windows-nat.c: Update.
4771 2018-07-03 Tom Tromey <tom@tromey.com>
4773 * infrun.c (follow_exec): Use exit_inferior_silent.
4774 * inferior.c (exit_inferior_num_silent): Remove.
4775 * inferior.h (exit_inferior_num_silent): Don't declare.
4777 2018-07-03 Tom Tromey <tom@tromey.com>
4780 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4781 inferior_ptid on error.
4783 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4784 Simon Marchi <simon.marchi@polymtl.ca>
4787 * disasm.h (gdb_disassembler): Add
4788 `m_disassembler_options_holder'. member
4789 * disasm.c (get_all_disassembler_options): New function.
4790 (gdb_disassembler::gdb_disassembler): Use it.
4791 (gdb_buffered_insn_length_init_dis): Likewise.
4792 (gdb_buffered_insn_length): Adjust accordingly.
4793 (set_disassembler_options): Handle options with arguments.
4794 (show_disassembler_options_sfunc): Likewise. Add a leading new
4795 line if showing options with descriptions.
4796 (disassembler_options_completer): Adapt to using the
4797 `disasm_options_and_args_t' structure.
4798 * mips-tdep.c (mips_disassembler_options): New variable.
4799 (mips_disassembler_options_o32): Likewise.
4800 (mips_disassembler_options_n32): Likewise.
4801 (mips_disassembler_options_n64): Likewise.
4802 (gdb_print_insn_mips): Don't set `disassembler_options'.
4803 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4805 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4806 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4807 `gdbarch_disassembler_options_implicit' and
4808 `gdbarch_valid_disassembler_options'.
4809 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4810 `disasm_options_and_args_t' structure.
4811 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4813 (valid_disassembler_options): Switch from `disasm_options_t' to
4814 the `disasm_options_and_args_t' structure.
4815 * NEWS: Document `set disassembler-options' support for the MIPS
4817 * gdbarch.h: Regenerate.
4818 * gdbarch.c: Regenerate.
4820 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4822 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4824 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4826 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4827 parameter in call to amd64_target_description.
4828 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4829 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4830 (amd64fbsd_init_abi): Likewise.
4831 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4832 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4833 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4834 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4836 2018-06-29 Pedro Alves <palves@redhat.com>
4838 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4839 "segments" parameter.
4840 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4841 (_initialize_amd64_tdep): Update call to
4842 amd64_create_target_description.
4843 (amd64_target_description): Add "segments" parameter. Adjust
4844 the implementation to use it.
4845 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4846 call to amd64_create_target_description.
4847 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4848 * gdb/arch/amd64.h (amd64_create_target_description): Add
4849 "segments" register.
4850 * gdb/arch/amd64.c (amd64_create_target_description): Add
4851 "segments" parameter. Call create_feature_i386_64bit_segments
4852 only if SEGMENTS is true.
4853 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4854 call to amd64_create_target_description.
4856 2018-06-29 Pedro Alves <palves@redhat.com>
4858 * thread.c (thread_target_id_str): New, factored out from ...
4859 (print_thread_info_1): ... here. Use it to compute the max
4860 "Target Id" column width.
4862 2018-06-29 Pedro Alves <palves@redhat.com>
4864 * remote.c (remote_target::extra_thread_info): Delete
4865 'display_buf' and 'n' locals. from the cache, regardless of
4866 packet mechanims is in use. Use cache for qThreadExtra and qP
4869 2018-06-29 Pedro Alves <palves@redhat.com>
4871 * blockframe.c (find_pc_sect_containing_function): New function.
4872 * breakpoint.c (print_breakpoint_location): Don't call
4873 find_pc_sect_function.
4874 * linespec.c (create_sals_line_offset): Record the location's
4876 * linespec.c (convert_address_location_to_sals): Fill in sal's
4877 symbol with find_pc_sect_containing_function.
4878 * symtab.c (find_function_start_sal): Rename to ...
4879 (find_function_start_sal_1): ... this.
4880 (find_function_start_sal): Reimplement as wrapper around
4881 find_function_start_sal_1, and use
4882 find_pc_sect_containing_function to fill in the sal's symbol.
4883 (find_function_start_sal(symbol*, bool)): Adjust.
4884 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4886 (find_pc_sect_containing_function): Declare.
4888 2018-06-29 Pedro Alves <palves@redhat.com>
4890 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4891 true if the the location has no symbol.
4893 2018-06-28 Tom Tromey <tom@tromey.com>
4895 * NEWS: Mention --enable-codesign.
4896 * silent-rules.mk (ECHO_SIGN): New variable.
4897 * configure.ac: Add --enable-codesign.
4898 * configure: Rebuild.
4899 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4900 (gdb$(EXEEXT)): Optionally invoke codesign.
4902 2018-06-28 Pedro Alves <palves@redhat.com>
4904 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4906 (switch_to_thread_no_regs): Adjust comment.
4907 * infcmd.c (stop_pc): Delete.
4908 (post_create_inferior, info_program_command): Replace references
4909 to stop_pc with references to thread_info->suspend.stop_pc.
4910 * inferior.h (stop_pc): Delete declaration.
4911 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4912 (handle_inferior_event_1, handle_signal_stop)
4913 (process_event_stop_test, keep_going_stepped_thread)
4914 (handle_step_into_function, handle_step_into_function_backward)
4915 (print_stop_location): Replace references to stop_pc with
4916 references to thread_info->suspend.stop_pc.
4917 (struct infcall_suspend_state) <stop_pc>: Delete field.
4918 (save_infcall_suspend_state, restore_infcall_suspend_state):
4919 Remove references to inf_stat->stop_pc.
4920 * linux-fork.c (fork_load_infrun_state): Likewise.
4921 * record-btrace.c (record_btrace_set_replay): Likewise.
4922 * record-full.c (record_full_goto_entry): Likewise.
4923 * remote.c (print_one_stopped_thread): Likewise.
4924 * target.c (target_resume): Extend comment.
4925 * thread.c (set_executing_thread): New.
4926 (set_executing): Use it.
4927 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4928 Remove references to stop_pc.
4930 2018-06-28 Pedro Alves <palves@redhat.com>
4932 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4933 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4935 2018-06-28 Tom Tromey <tom@tromey.com>
4937 * coffread.c (coff_symfile_finish): Update.
4938 * xcoffread.c (xcoff_symfile_finish): Update.
4939 * elfread.c (elf_symfile_finish): Update.
4940 * symfile.h (dwarf2_free_objfile): Don't declare.
4941 * dwarf2read.c (_initialize_dwarf2_read): Use
4942 register_objfile_data_with_cleanup.
4943 (dwarf2_free_objfile): Now static. Change signature.
4945 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4947 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4948 option "-o" to add-symbol-file-load to add an offset to each
4949 section's load address.
4950 * symfile.c (set_objfile_default_section_offset): New function.
4952 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4954 * symfile.c (add_symbol_file_command): Make sure that sections
4955 with the same name are sorted in the same order.
4957 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4959 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4960 require the second argument. If omitted, load sections at the
4961 addresses specified in the file.
4963 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4965 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4966 (_initialize_symfile): Add option "-o" to symbol-file to add an
4967 offset to each section of the symbol file.
4969 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4971 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4973 2018-06-27 Tom Tromey <tom@tromey.com>
4975 * stack.c (_initialize_stack): Update "func" help text.
4977 2018-06-27 Tom Tromey <tom@tromey.com>
4979 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4981 (unwind_infopy_str, pyuw_create_unwind_info)
4982 (unwind_infopy_add_saved_register, pyuw_sniffer)
4983 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4985 (struct saved_reg): Add constructor.
4986 <value>: Now a gdbpy_ref<>.
4988 2018-06-27 Tom Tromey <tom@tromey.com>
4990 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4992 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4994 * gdb-gdb.py.in: Format using autopep8.
4996 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4998 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4999 (type_lookup_function): Recognize CORE_ADDR values.
5001 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5003 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5006 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5008 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5011 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5013 * gdb-gdb.py: Move to...
5014 * gdb-gdb.py.in: ... here.
5015 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5016 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5018 (distclean): Remove gdb-gdb.py when cleaning.
5019 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5020 * configure: Re-generate.
5022 2018-06-27 Pedro Alves <palves@redhat.com>
5024 * proc-service.c (get_ps_regcache): New.
5025 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5026 (ps_lsetfpregs): Use it.
5028 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5031 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5032 (dwarf_decode_lines_1): Adjust.
5034 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5036 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5038 <info_proc>: Likewise.
5040 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5042 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5043 to windows_fetch_one_register, and only handle the case of
5044 fetching one register. Move the code that reloads the context
5045 and iterates over all registers if R is negative to...
5046 (windows_nat_target::fetch_registers): ... here.
5047 (do_windows_store_inferior_registers): Rename to
5048 windows_store_one_register, and only handle the case of storing
5049 one register. Move the code that handles the case where r is
5051 (windows_nat_target::store_registers) ... here.
5053 2018-06-26 Tom Tromey <tom@tromey.com>
5056 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5057 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5059 (rust_internal_print_type): Add podata parameter.
5060 (rust_print_type): Update.
5062 2018-06-26 Tom Tromey <tom@tromey.com>
5064 * typeprint.h (struct print_offset_data) <update, finish,
5065 maybe_print_hole>: New methods.
5066 <indentation>: New constant.
5067 * typeprint.c (print_offset_data::indentation): Define.
5068 (print_offset_data::maybe_print_hole, print_offset_data::update)
5069 (print_offset_data::finish): Move from c-typeprint.c and rename.
5070 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5071 (print_spaces_filtered_with_print_options): Update.
5072 (c_print_type_union_field_offset, maybe_print_hole)
5073 (c_print_type_struct_field_offset): Move to typeprint.c and
5075 (c_type_print_base_struct_union): Update.
5077 2018-06-25 Pedro Alves <palves@redhat.com>
5079 * gdbthread.h (thread_info_ref, delete_thread)
5080 (delete_thread_silent, first_thread_of_inferior)
5081 (any_thread_of_inferior, switch_to_thread)
5082 (enable_thread_stack_temporaries)
5083 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5084 (get_last_thread_stack_temporary)
5085 (value_in_thread_stack_temporaries, can_access_registers_thread):
5086 Spell out "struct thread_info" instead of just "thread_info".
5087 * inferior.h (notice_new_inferior): Likewise.
5089 2018-06-25 Pedro Alves <palves@redhat.com>
5091 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5092 pass thread_info pointer to delete_thread.
5093 (windows_nat_target::detach): Pass inferior pointer to
5095 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5097 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5098 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5099 and pass a thread_info pointer to delete_thread.
5100 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5101 pass thread_info pointer to delete_thread.
5102 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5103 delete_thread_silent call.
5104 * procfs.c (procfs_target::detach): Pass inferior pointer to
5106 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5107 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5108 delete_thread_silent call.
5109 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5110 pass thread_info pointer to delete_thread.
5111 (windows_nat_target::detach): Pass inferior pointer to
5114 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5116 * regcache.c (readable_regcache::read_part): Fix asserts.
5117 (reg_buffer::raw_collect_part): New function.
5118 (regcache::write_part): Fix asserts.
5119 (reg_buffer::raw_supply_part): New function.
5120 (regcache::transfer_regset_register): New helper function.
5121 (regcache::transfer_regset): Call new functions.
5122 (regcache_supply_regset): Use gdb_byte*.
5123 (regcache::supply_regset): Likewise.
5124 (regcache_collect_regset): Likewise.
5125 (regcache::collect_regset): Likewise.
5126 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5127 (reg_buffer::raw_supply_part): Likewise.
5128 (regcache::transfer_regset_register): Likewise.
5129 (regcache::transfer_regset): Use gdb_byte*.
5131 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5133 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5135 2018-06-21 Pedro Alves <palves@redhat.com>
5137 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5138 instead of a ptid_t. All callers adjusted.
5139 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5141 (print_ada_task_info, display_current_task_id, task_command_1):
5143 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5145 (breakpoint_kind): Adjust.
5146 (remove_breakpoints_pid): Rename to ...
5147 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5148 pointer. All callers adjusted.
5149 (bpstat_clear_actions): Use inferior_thread.
5150 (get_bpstat_thread): New.
5151 (bpstat_do_actions): Use it.
5152 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5153 to take a thread_info pointer. All callers adjusted.
5154 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5155 (breakpoint_re_set_thread): Use inferior_thread.
5156 * breakpoint.h (struct inferior): Forward declare.
5157 (bpstat_stop_status): Update.
5158 (remove_breakpoints_pid): Delete.
5159 (remove_breakpoints_inf): New.
5160 * bsd-uthread.c (bsd_uthread_target::wait)
5161 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5162 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5163 (maint_btrace_packet_history_cmd)
5164 (maint_btrace_clear_packet_history_cmd): Adjust.
5165 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5167 * cli/cli-interp.c: Include "inferior.h".
5168 * common/refcounted-object.h (struct
5169 refcounted_object_ref_policy): New.
5170 * compile/compile-object-load.c: Include gdbthread.h.
5171 (store_regs): Use inferior_thread.
5172 * corelow.c (core_target::close): Use current_inferior.
5173 (core_target_open): Adjust to use first_thread_of_inferior and use
5174 the current inferior.
5175 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5176 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5177 <thread>: ... this new field. All references adjusted.
5178 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5179 Take a thread_info pointer instead of a ptid_t.
5180 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5181 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5182 thread_info pointer instead of a ptid_t.
5183 * elfread.c: Include "inferior.h".
5184 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5185 Use inferior_thread.
5186 * eval.c (evaluate_subexp): Likewise.
5187 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5189 * gdb_proc_service.h (struct thread_info): Forward declare.
5190 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5191 <thread>: ... this new field. All references adjusted.
5192 * gdbarch.h, gdbarch.c: Regenerate.
5193 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5194 'thread' parameter. All implementations and callers adjusted.
5195 * gdbthread.h (thread_info) <set_running>: New method.
5196 (delete_thread, delete_thread_silent): Take a thread_info pointer
5198 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5199 (first_thread_of_process): Delete, replaced by ...
5200 (first_thread_of_inferior): ... this new function. All callers
5202 (any_live_thread_of_process): Delete, replaced by ...
5203 (any_live_thread_of_inferior): ... this new function. All callers
5205 (switch_to_thread, switch_to_no_thread): Declare.
5206 (is_executing): Delete.
5207 (enable_thread_stack_temporaries): Update comment.
5208 <enable_thread_stack_temporaries>: Take a thread_info pointer
5209 instead of a ptid_t. Incref the thread.
5210 <~enable_thread_stack_temporaries>: Decref the thread.
5213 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5214 (get_last_thread_stack_temporary)
5215 (value_in_thread_stack_temporaries, can_access_registers_thread):
5216 Take a thread_info pointer instead of a ptid_t. All callers
5218 * infcall.c (get_call_return_value): Use inferior_thread.
5219 (run_inferior_call): Work with thread pointers instead of ptid_t.
5220 (call_function_by_hand_dummy): Work with thread pointers instead
5221 of ptid_t. Use thread_info_ref.
5222 * infcmd.c (proceed_thread_callback): Access thread's state
5224 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5225 access thread's state directly.
5226 (continue_command): Use inferior_thread.
5227 (info_program_command): Use find_thread_ptid and access thread
5229 (proceed_after_attach_callback): Use thread state directly.
5230 (notice_new_inferior): Take a thread_info pointer instead of a
5231 ptid_t. All callers adjusted.
5232 (exit_inferior): Take an inferior pointer instead of a pid. All
5234 (exit_inferior_silent): New.
5235 (detach_inferior): Delete.
5236 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5237 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5238 (detach_inferior_command, kill_inferior_command): Use
5239 find_inferior_id instead of valid_gdb_inferior_id and
5240 gdb_inferior_id_to_pid.
5241 (inferior_command): Use inferior and thread pointers.
5242 * inferior.h (struct thread_info): Forward declare.
5243 (notice_new_inferior): Take a thread_info pointer instead of a
5244 ptid_t. All callers adjusted.
5245 (detach_inferior): Delete declaration.
5246 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5247 instead of a pid. All callers adjusted.
5248 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5249 (valid_gdb_inferior_id): Delete.
5250 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5251 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5252 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5254 <inf>: ... this new field.
5255 <step_ptid>: Delete, replaced by ...
5256 <step_thread>: ... this new field.
5257 (get_displaced_stepping_state): Take an inferior pointer instead
5258 of a pid. All callers adjusted.
5259 (displaced_step_in_progress_any_inferior): Adjust.
5260 (displaced_step_in_progress_thread): Take a thread pointer instead
5261 of a ptid_t. All callers adjusted.
5262 (displaced_step_in_progress, add_displaced_stepping_state): Take
5263 an inferior pointer instead of a pid. All callers adjusted.
5264 (get_displaced_step_closure_by_addr): Adjust.
5265 (remove_displaced_stepping_state): Take an inferior pointer
5266 instead of a pid. All callers adjusted.
5267 (displaced_step_prepare_throw, displaced_step_prepare)
5268 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5269 All callers adjusted.
5270 (start_step_over): Adjust.
5271 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5272 displaced step queue.
5273 (do_target_resume): Adjust.
5274 (fetch_inferior_event): Use inferior_thread.
5275 (context_switch, get_inferior_stop_soon): Take an
5276 execution_control_state pointer instead of a ptid_t. All callers
5278 (switch_to_thread_cleanup): Delete.
5279 (stop_all_threads): Use scoped_restore_current_thread.
5280 * inline-frame.c: Include "gdbthread.h".
5281 (inline_state) <inline_state>: Take a thread pointer instead of a
5282 ptid_t. All callers adjusted.
5283 <ptid>: Delete, replaced by ...
5284 <thread>: ... this new field.
5285 (find_inline_frame_state): Take a thread pointer instead of a
5286 ptid_t. All callers adjusted.
5287 (skip_inline_frames, step_into_inline_frame)
5288 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5289 pointer instead of a ptid_t. All callers adjusted.
5290 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5291 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5292 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5294 * linux-nat.c (get_detach_signal): Likewise.
5295 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5296 (thread_db_notice_clone): Adjust.
5297 (thread_db_find_new_threads_silently)
5298 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5299 a thread pointer instead of a ptid_t. All callers adjusted.
5300 * mi/mi-cmd-var.c: Include "inferior.h".
5301 (mi_cmd_var_update_iter): Update to use thread pointers.
5302 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5304 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5306 (mi_output_running): ... this new function.
5307 (mi_on_resume_1): Adjust to use it.
5308 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5309 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5311 (interrupt_thread_callback): : Adjust to use thread and inferior
5313 * proc-service.c: Include "gdbthread.h".
5314 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5315 * progspace-and-thread.c: Include "inferior.h".
5316 * progspace.c: Include "inferior.h".
5317 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5318 hold a reference to an inferior_object.
5319 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5321 * python/py-inferior.c (struct inferior_object): Give the type a
5322 tag name instead of a typedef.
5323 (python_on_normal_stop): No need to check if the current thread is
5325 (inferior_to_inferior_object): Change return type to
5326 inferior_object. All callers adjusted.
5327 (find_thread_object): Delete, bits factored out to ...
5328 (thread_to_thread_object): ... this new function.
5329 * python/py-infthread.c (create_thread_object): Use
5330 inferior_to_inferior_object.
5331 (thpy_is_stopped): Use thread pointer directly.
5332 (gdbpy_selected_thread): Use inferior_thread.
5333 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5334 field, replaced with ...
5335 <thread>: ... this new field. All users adjusted.
5336 (btpy_insn_or_gap_new): Drop const.
5337 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5339 * python/py-record.c: Include "gdbthread.h".
5340 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5341 a ptid_t. All callers adjusted.
5342 (gdbpy_current_recording): Use inferior_thread.
5343 * python/py-record.h (recpy_record_object) <ptid>: Delete
5344 field, replaced with ...
5345 <thread>: ... this new field. All users adjusted.
5346 (recpy_element_object) <ptid>: Delete
5347 field, replaced with ...
5348 <thread>: ... this new field. All users adjusted.
5349 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5350 a ptid_t. All callers adjusted.
5351 * python/py-threadevent.c: Include "gdbthread.h".
5352 (get_event_thread): Use thread_to_thread_object.
5353 * python/python-internal.h (struct inferior_object): Forward
5355 (find_thread_object, find_inferior_object): Delete declarations.
5356 (thread_to_thread_object, inferior_to_inferior_object): New
5358 * record-btrace.c: Include "inferior.h".
5359 (require_btrace_thread): Use inferior_thread.
5360 (record_btrace_frame_sniffer)
5361 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5362 (get_thread_current_frame): Use scoped_restore_current_thread and
5364 (get_thread_current_frame): Use thread pointer directly.
5365 (record_btrace_replay_at_breakpoint): Use thread's inferior
5367 * record-full.c: Include "inferior.h".
5368 * regcache.c: Include "gdbthread.h".
5369 (get_thread_arch_regcache): Use the inferior's address space
5371 (get_thread_regcache, registers_changed_thread): New.
5372 * regcache.h (get_thread_regcache(thread_info *thread)): New
5374 (registers_changed_thread): New.
5375 (remote_target) <remote_detach_1>: Swap order of parameters.
5376 (remote_add_thread): <remote_add_thread>: Return the new thread.
5377 (get_remote_thread_info(ptid_t)): New overload.
5378 (remote_target::remote_notice_new_inferior): Use thread pointers
5380 (remote_target::process_initial_stop_replies): Use
5381 thread_info::set_running.
5382 (remote_target::remote_detach_1, remote_target::detach)
5383 (extended_remote_target::detach): Adjust.
5384 * stack.c (frame_show_address): Use inferior_thread.
5385 * target-debug.h (target_debug_print_thread_info_pp): New.
5386 * target-delegates.c: Regenerate.
5387 * target.c (default_thread_address_space): Delete.
5388 (memory_xfer_partial_1): Use current_inferior.
5389 (target_detach): Use current_inferior.
5390 (target_thread_address_space): Delete.
5391 (generic_mourn_inferior): Use current_inferior.
5392 * target.h (struct target_ops) <thread_address_space>: Delete.
5393 (target_thread_address_space): Delete.
5394 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5396 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5397 thread pointer instead of a ptid_t. Adjust all callers.
5398 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5399 (first_thread_of_process): Delete, replaced by ...
5400 (first_thread_of_inferior): ... this new function. All callers
5402 (any_thread_of_process): Rename to ...
5403 (any_thread_of_inferior): ... this, and take an inferior pointer.
5404 (any_live_thread_of_process): Rename to ...
5405 (any_live_thread_of_inferior): ... this, and take an inferior
5407 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5408 (value_in_thread_stack_temporaries)
5409 (get_last_thread_stack_temporary): Take a thread pointer instead
5410 of a ptid_t. Adjust all callers.
5411 (thread_info::set_running): New.
5412 (validate_registers_access): Use inferior_thread.
5413 (can_access_registers_ptid): Rename to ...
5414 (can_access_registers_thread): ... this, and take a thread
5416 (print_thread_info_1): Adjust to compare thread pointers instead
5418 (switch_to_no_thread, switch_to_thread): Make extern.
5419 (scoped_restore_current_thread::~scoped_restore_current_thread):
5420 Use m_thread pointer directly.
5421 (scoped_restore_current_thread::scoped_restore_current_thread):
5422 Use inferior_thread.
5423 (thread_command): Use thread pointer directly.
5424 (thread_num_make_value_helper): Use inferior_thread.
5425 * top.c (execute_command): Use inferior_thread.
5426 * tui/tui-interp.c: Include "inferior.h".
5427 * varobj.c (varobj_create): Use inferior_thread.
5428 (value_of_root_1): Use find_thread_global_id instead of
5429 global_thread_id_to_ptid.
5431 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5433 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5435 (regcache::write_part): Likewise.
5436 (readable_regcache::cooked_read_part): Update comment.
5437 (readable_regcache::cooked_write_part): Likewise.
5438 * regcache.h: (readable_regcache::read_part): Likewise.
5439 (regcache::write_part): Likewise.
5441 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5442 Dirk Schubert <dirk.schubert@arm.com>
5444 * aarch64-linux-nat.c (post_attach): New.
5445 (aarch64_linux_nat_target::post_attach): Override post_attach to
5446 record the number of hardware debug registers.
5448 2018-06-20 Tom Tromey <tom@tromey.com>
5450 * python/py-param.c (add_setshow_generic): Make parameters const.
5451 (parmpy_init): Update.
5453 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5455 * regcache.h (regcache_cooked_read_ftype): Rename to...
5456 (register_read_ftype): ...this, change type to function_view.
5457 (class reg_buffer) <save>: Remove src parameter.
5458 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5459 parameter non-const in first overload. Remove src parameter in
5461 * regcache.c (do_cooked_read): Remove.
5462 (readonly_detached_regcache::readonly_detached_regcache): Make
5463 parameter non-const, adjust call to other constructor.
5464 (reg_buffer::save): Remove src parameter.
5465 * frame.c (do_frame_register_read): Remove.
5466 (frame_save_as_regcache): Use lambda function.
5467 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5468 parameter to ppu2spu_data *.
5469 (ppu2spu_sniffer): Use lambda function.
5471 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5473 * record-full.c (record_full_target::insert_breakpoint): Remove
5474 "struct" keyword, add const.
5476 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5478 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5479 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5480 * configure.ac: Remove AC_PREREQ, add missing quoting.
5481 * gnulib/configure.ac: Modernize usage of
5482 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5483 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5484 (AUTOMAKE_VERSION): Bump to 1.15.1.
5485 * configure: Re-generate.
5486 * config.in: Re-generate.
5487 * aclocal.m4: Re-generate.
5488 * gnulib/aclocal.m4: Re-generate.
5489 * gnulib/config.in: Re-generate.
5490 * gnulib/configure: Re-generate.
5491 * gnulib/import/Makefile.in: Re-generate.
5493 2018-06-19 Pedro Alves <palves@redhat.com>
5495 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5496 (lookup_minimal_symbol_by_pc_section): ... here with
5497 gdb_assert_not_reached added.
5499 2018-06-19 Pedro Alves <palves@redhat.com>
5501 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5502 parameter with a block parameter. Compare location's block symbol
5503 with the frame's block instead of addresses.
5504 (skip_inline_frames): Pass the current block instead of the
5505 frame's address. Break out as soon as we determine the frame
5506 should not be skipped.
5508 2018-06-18 Tom Tromey <tom@tromey.com>
5510 * solib-aix.c (solib_aix_get_section_offsets): Return
5512 (solib_aix_solib_create_inferior_hook): Update.
5514 2018-06-18 Tom Tromey <tom@tromey.com>
5516 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5518 2018-06-18 Tom Tromey <tom@tromey.com>
5520 * solib-frv.c (frv_relocate_main_executable): Use
5522 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5525 2018-06-18 Tom Tromey <tom@tromey.com>
5527 * objfiles.h (inhibit_section_map_updates): Update.
5528 (resume_section_map_updates, resume_section_map_updates_cleanup):
5530 * solib-svr4.c (svr4_handle_solib_event): Update.
5531 * objfiles.c (inhibit_section_map_updates): Return
5532 scoped_restore_tmpl<int>.
5533 (resume_section_map_updates, resume_section_map_updates_cleanup):
5536 2018-06-18 Tom Tromey <tom@tromey.com>
5538 * valprint.h (read_string): Update.
5539 * valprint.c (read_string): Change type of "buffer".
5540 (val_print_string): Update.
5541 * python/py-value.c (valpy_string): Update.
5542 * language.h (struct language_defn) <la_get_string>: Change
5544 (default_get_string, c_get_string): Update.
5545 * language.c (default_get_string): Change type of "buffer".
5546 * guile/scm-value.c (gdbscm_value_to_string): Update.
5547 * c-lang.c (c_get_string): Change type of "buffer".
5549 2018-06-18 Tom Tromey <tom@tromey.com>
5551 * ser-mingw.c (struct pipe_state_destroyer): New.
5552 (pipe_state_up): New typedef.
5553 (cleanup_pipe_state): Remove.
5554 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5556 2018-06-18 Tom Tromey <tom@tromey.com>
5558 * rust-lang.h (rust_yyerror): Don't declare.
5559 * rust-lang.c (rust_language_defn): Update.
5560 * rust-exp.y (yyerror): Now static.
5561 * parse.c (parse_exp_in_context_1): Update.
5562 * p-lang.h (p_yyerror): Don't declare.
5563 * p-lang.c (p_language_defn): Update.
5564 * p-exp.y (yyerror): Now static.
5565 * opencl-lang.c (opencl_language_defn): Update.
5566 * objc-lang.c (objc_language_defn): Update.
5567 * m2-lang.h (m2_yyerror): Don't declare.
5568 * m2-lang.c (m2_language_defn): Update.
5569 * m2-exp.y (yyerror): Now static.
5570 * language.h (struct language_defn) <la_error>: Remove.
5571 * language.c (unk_lang_error): Remove.
5572 (unknown_language_defn, auto_language_defn): Remove.
5573 * go-lang.h (go_yyerror): Don't declare.
5574 * go-lang.c (go_language_defn): Update.
5575 * go-exp.y (yyerror): Now static.
5576 * f-lang.h (f_yyerror): Don't declare.
5577 * f-lang.c (f_language_defn): Update.
5578 * f-exp.y (yyerror): Now static.
5579 * d-lang.h (d_yyerror): Don't declare.
5580 * d-lang.c (d_language_defn): Update.
5581 * d-exp.y (yyerror): Now static.
5582 * c-lang.h (c_yyerror): Don't declare.
5583 * c-lang.c (c_language_defn, cplus_language_defn)
5584 (asm_language_defn, minimal_language_defn): Update.
5585 * c-exp.y (yyerror): Now static.
5586 * ada-lang.h (ada_yyerror): Don't declare.
5587 * ada-lang.c (ada_language_defn): Update.
5588 * ada-exp.y (yyerror): Now static.
5590 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5592 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5593 (store_sveregs_to_thread): Likewise.
5594 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5595 (aarch64_linux_store_inferior_registers): Likewise.
5596 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5598 (aarch64_sve_regs_copy_to_regcache): Likewise.
5599 (aarch64_sve_regs_copy_from_regcache): Likewise.
5600 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5602 (aarch64_sve_regs_copy_to_regcache): Likewise.
5603 (aarch64_sve_regs_copy_from_regcache): Likewise.
5604 (sve_context): Structure from Linux headers.
5605 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5606 (SVE_SIG_ZREG_SIZE): Likewise.
5607 (SVE_SIG_PREG_SIZE): Likewise.
5608 (SVE_SIG_FFR_SIZE): Likewise.
5609 (SVE_SIG_REGS_OFFSET): Likewise.
5610 (SVE_SIG_ZREGS_OFFSET): Likewise.
5611 (SVE_SIG_ZREG_OFFSET): Likewise.
5612 (SVE_SIG_ZREGS_SIZE): Likewise.
5613 (SVE_SIG_PREGS_OFFSET): Likewise.
5614 (SVE_SIG_PREG_OFFSET): Likewise.
5615 (SVE_SIG_PREGS_SIZE): Likewise.
5616 (SVE_SIG_FFR_OFFSET): Likewise.
5617 (SVE_SIG_REGS_SIZE): Likewise.
5618 (SVE_SIG_CONTEXT_SIZE): Likewise.
5619 (SVE_PT_REGS_MASK): Likewise.
5620 (SVE_PT_REGS_FPSIMD): Likewise.
5621 (SVE_PT_REGS_SVE): Likewise.
5622 (SVE_PT_VL_INHERIT): Likewise.
5623 (SVE_PT_VL_ONEXEC): Likewise.
5624 (SVE_PT_REGS_OFFSET): Likewise.
5625 (SVE_PT_FPSIMD_OFFSET): Likewise.
5626 (SVE_PT_FPSIMD_SIZE): Likewise.
5627 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5628 (SVE_PT_SVE_PREG_SIZE): Likewise.
5629 (SVE_PT_SVE_FFR_SIZE): Likewise.
5630 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5631 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5632 (__SVE_SIG_TO_PT): Likewise.
5633 (SVE_PT_SVE_OFFSET): Likewise.
5634 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5635 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5636 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5637 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5638 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5639 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5640 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5641 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5642 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5643 (SVE_PT_SVE_SIZE): Likewise.
5644 (SVE_PT_SIZE): Likewise.
5645 (HAS_SVE_STATE): New define.
5647 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5649 * nat/aarch64-sve-linux-sigcontext.h: New file.
5650 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5652 (SVE_VQ_MIN): Likewise.
5653 (SVE_VQ_MAX): Likewise.
5654 (SVE_VL_MIN): Likewise.
5655 (SVE_VL_MAX): Likewise.
5656 (SVE_NUM_ZREGS): Likewise.
5657 (SVE_NUM_PREGS): Likewise.
5658 (sve_vl_valid): Likewise.
5659 (struct user_sve_header): Likewise.
5661 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5662 Richard Bunt <Richard.Bunt@arm.com>
5664 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5665 was requested by GDB.
5667 2018-06-15 Tom de Vries <tdevries@suse.de>
5669 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5671 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5673 * gnulib/update-gnulib.sh: Print expected versions of
5676 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5678 * arch-utils.c (default_type_align): Use type_length_units.
5679 * gdbtypes.c (type_align): Use type_length_units.
5681 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5683 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5684 of 'define' command.
5686 2018-06-14 Tom de Vries <tdevries@suse.de>
5689 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5690 get_no_prettyformat_print_options.
5692 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5694 * sparc-nat.h: Include target.h.
5695 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5696 <fetch_registers>: Remove this argument in function call.
5697 <store_registers>: Remove this argument in function call, remove
5699 <low_forget_process>: Call sparc64_forget_process instead of
5700 sparc_forget_process.
5702 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5704 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5705 (procfs_target::make_corefile_notes): Adjust to new
5706 target_read_alloc return type.
5708 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5709 Stephen Roberts <stephen.roberts@arm.com>
5712 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5713 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5714 Move should_notify_stop local into more inner scope.
5716 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5717 Stephen Roberts <stephen.roberts@arm.com>
5720 * infrun.c (resume_1): Add call to mark_async_event_handler.
5722 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5724 * infrun.c (do_target_wait): Change old version of $pc printed.
5726 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5728 * dwarf2read.c (read_index_from_section): Rename to...
5729 (read_gdb_index_from_section): ... this, update all callers.
5730 (dwarf2_read_index): Rename to...
5731 (dwarf2_read_gdb_index): ... this, update all callers.
5733 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5735 * gdb/hppa-linux-nat.c
5736 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5737 hppa_linux_nat_target::fetch_registers.
5739 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5741 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5742 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5743 (AARCH64_DWARF_SVE_FFR): Likewise.
5744 (AARCH64_DWARF_SVE_P0): Likewise.
5745 (AARCH64_DWARF_SVE_Z0): Likewise.
5747 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5749 * common/common-regcache.h (raw_compare): New function.
5750 * regcache.c (regcache::raw_compare): Likewise.
5751 * regcache.h (regcache::raw_compare): New declaration.
5753 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5755 * common/common-regcache.h (reg_buffer_common): New structure.
5756 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5757 (reg_buffer::raw_supply): Likewise.
5758 (reg_buffer::raw_supply_integer): Likewise.
5759 (reg_buffer::raw_supply_zeroed): Likewise.
5760 (reg_buffer::raw_collect): Likewise.
5761 (reg_buffer::raw_collect_integer): Likewise.
5762 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5763 (reg_buffer::raw_supply): Likewise.
5764 (reg_buffer::raw_supply_integer): Likewise.
5765 (reg_buffer::raw_supply_zeroed): Likewise.
5766 (reg_buffer::raw_collect): Likewise.
5767 (reg_buffer::raw_collect_integer): Likewise.
5769 2018-06-10 Tom Tromey <tom@tromey.com>
5771 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5772 (class remote_state) <stop_reply_queue>: Now std::vector.
5773 (remote_state::~remote_state)
5774 (remote_target::stop_reply_queue_length): Update.
5775 (struct queue_iter_param, remove_child_of_pending_fork)
5776 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5777 (check_pending_event_prevents_wildcard_vcont_callback)
5778 (remove_stop_reply_for_inferior)
5779 (remove_stop_reply_of_remote_state)
5780 (remote_notif_remove_once_on_match)
5781 (stop_reply_match_ptid_and_ws)
5782 (remote_kill_child_of_pending_fork): Remove.
5783 (remote_target::remove_new_fork_children)
5784 (remote_target::check_pending_events_prevent_wildcard_vcont)
5785 (remote_target::discard_pending_stop_replies)
5786 (remote_target::discard_pending_stop_replies_in_queue)
5787 (remote_target::remote_notif_remove_queued_reply)
5788 (remote_target::queued_stop_reply)
5789 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5790 (remote_target::wait, remote_target::kill_new_fork_children)
5791 (remote_target::async): Update.
5793 2018-06-10 Tom Tromey <tom@tromey.com>
5795 * record-full.c (record_full_arch_list_cleanups): Remove.
5796 (record_full_message): Use try/catch.
5797 (record_full_wait_cleanups): Remove.
5798 (record_full_wait_1): Use try/catch.
5799 (record_full_restore): Likewise.
5801 2018-06-10 Tom Tromey <tom@tromey.com>
5803 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5804 declare VEC. Add constructor.
5805 <in_target_beneath>: Now bool.
5806 (record_full_breakpoints): Now a std::vector, static.
5807 (record_full_sync_record_breakpoints)
5808 (record_full_init_record_breakpoints)
5809 (record_full_target::insert_breakpoint)
5810 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5812 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5814 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5815 * serial.c (serial_interface_lookup): Remove struct keyword.
5817 2018-06-10 Tom Tromey <tom@tromey.com>
5819 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5821 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5823 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5825 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5826 "beneath" as a method.
5827 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5828 Use "beneath" as a method.
5830 2018-06-10 Tom Tromey <tom@tromey.com>
5832 * tracefile.c (struct trace_file_writer_deleter): New.
5833 <operator()>: Rename from trace_file_writer_xfree.
5834 (trace_file_writer_up): New typedef.
5835 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5837 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5839 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5840 <m_registers, m_register_status>: Change type to
5842 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5845 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5847 * common/common-regcache.h (enum register_status): Add
5848 underlying type "signed char".
5849 * regcache.h (reg_buffer) <m_register_status>: Change type to
5851 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5852 register_status instead of signed char.
5853 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5854 (reg_buffer::get_register_status): Remove cast.
5855 (readable_regcache::raw_read): Remove cast.
5856 (readable_regcache::cooked_read): Remove cast.
5858 2018-06-09 Tom Tromey <tom@tromey.com>
5860 * source.c (reverse_search_command, forward_search_command): Use
5863 2018-06-09 Tom Tromey <tom@tromey.com>
5865 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5866 (serial_ops_list): Now static, std::vector.
5867 (serial_interface_lookup, serial_add_interface): Update.
5869 2018-06-09 Tom Tromey <tom@tromey.com>
5871 * dwarf2read.c (process_cu_includes): Update.
5872 (process_full_comp_unit): Update.
5873 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5876 2018-06-08 Paul Koning <paul_koning@dell.com>
5880 * python/python.c (do_start_initialization):
5881 Avoid call to internal Python API.
5882 (init__gdb_module): New function.
5884 2018-06-08 Gary Benson <gbenson@redhat.com>
5886 * linux-thread-db.c (valprint.h): New include.
5887 (struct check_thread_db_info): New structure.
5888 (check_thread_db_on_load, tdb_testinfo): New static globals.
5889 (check_thread_db, check_thread_db_callback): New functions.
5890 (try_thread_db_load_1): Run integrity checks if requested.
5891 (maintenance_check_libthread_db): New function.
5892 (_initialize_thread_db): Register "maint check libthread-db"
5893 and "maint set/show check-libthread-db".
5894 * NEWS: Mention the above new commands.
5896 2018-06-08 Tom Tromey <tom@tromey.com>
5898 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5901 2018-06-08 Tom Tromey <tom@tromey.com>
5903 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5905 2018-06-08 Tom Tromey <tom@tromey.com>
5907 * common/btrace-common.h (struct btrace_data): Add constructor,
5908 destructor, move assignment operator.
5909 <empty, clear, fini>: New methods.
5910 <format>: Initialize.
5911 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5912 (btrace_data_empty): Don't declare.
5913 * common/btrace-common.c (btrace_data_init): Remove.
5914 (btrace_data::fini): Rename from btrace_data_fini.
5915 (btrace_data::empty): Rename from btrace_data_empty.
5916 (btrace_data::clear): Rename from btrace_data_clear. Return
5918 * btrace.h (make_cleanup_btrace_data): Don't declare.
5919 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5920 (parse_xml_btrace): Update.
5921 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5922 (maint_btrace_clear_packet_history_cmd): Update.
5924 2018-06-07 Pedro Alves <palves@redhat.com>
5926 * target.h (target_ops) <beneath>: Now a method. All references
5928 (class target_stack): New.
5929 * target.c (g_target_stack): New.
5930 (g_current_top_target): Delete.
5931 (current_top_target): Get the top target out of g_target_stack.
5932 (target_stack::push, target_stack::unpush): New.
5933 (push_target, unpush_target): Reimplement.
5934 (target_is_pushed): Reimplement in terms of g_target_stack.
5935 (target_ops::beneath, target_stack::find_beneath): New.
5937 2018-06-07 Pedro Alves <palves@redhat.com>
5939 * target.h (find_target_beneath): Delete declaration.
5940 * target.c (find_target_beneath): Delete definition.
5941 * aix-thread.c: All callers of find_target_beneath adjusted to
5942 call target_ops::beneath instead.
5943 * bsd-uthread.c: Likewise.
5944 * linux-thread-db.c: Likewise.
5945 * ravenscar-thread.c: Likewise.
5946 * sol-thread.c: Likewise.
5947 * spu-multiarch.c: Likewise.
5949 2018-06-07 Pedro Alves <palves@redhat.com>
5951 * target.h (target_ops) <beneath>: Now a method. All references
5953 (target_ops) <m_beneath>: New.
5954 * target.c (target_ops::beneath): New.
5955 * corelow.c: Adjust all references to target_ops::beneath.
5956 * linux-thread-db.c: Likewise.
5957 * make-target-delegates: Likewise.
5958 * record-btrace.c: Likewise.
5959 * record-full.c: Likewise.
5960 * remote.c: Likewise.
5961 * target.c: Likewise.
5962 * target-delegates.c: Regenerate.
5964 2018-06-07 Pedro Alves <palves@redhat.com>
5966 * target.h (target_stack): Delete.
5967 (current_top_target): Declare function.
5968 * target.c (target_stack): Delete.
5969 (g_current_top_target): New.
5970 (current_top_target): New function.
5971 * auxv.c: Use current_top_target instead of target_stack
5973 * avr-tdep.c: Likewise.
5974 * breakpoint.c: Likewise.
5975 * corefile.c: Likewise.
5976 * elfread.c: Likewise.
5978 * exceptions.c: Likewise.
5979 * frame.c: Likewise.
5980 * gdbarch-selftests.c: Likewise.
5981 * gnu-v3-abi.c: Likewise.
5982 * ia64-tdep.c: Likewise.
5983 * ia64-vms-tdep.c: Likewise.
5984 * infcall.c: Likewise.
5985 * infcmd.c: Likewise.
5986 * infrun.c: Likewise.
5987 * linespec.c: Likewise.
5988 * linux-tdep.c: Likewise.
5989 * minsyms.c: Likewise.
5990 * ppc-linux-nat.c: Likewise.
5991 * ppc-linux-tdep.c: Likewise.
5992 * procfs.c: Likewise.
5993 * regcache.c: Likewise.
5994 * remote.c: Likewise.
5995 * rs6000-tdep.c: Likewise.
5996 * s390-linux-nat.c: Likewise.
5997 * s390-tdep.c: Likewise.
5998 * solib-aix.c: Likewise.
5999 * solib-darwin.c: Likewise.
6000 * solib-dsbt.c: Likewise.
6001 * solib-spu.c: Likewise.
6002 * solib-svr4.c: Likewise.
6003 * solib-target.c: Likewise.
6004 * sparc-tdep.c: Likewise.
6005 * sparc64-tdep.c: Likewise.
6006 * spu-tdep.c: Likewise.
6007 * symfile.c: Likewise.
6008 * symtab.c: Likewise.
6009 * target-descriptions.c: Likewise.
6010 * target-memory.c: Likewise.
6011 * target.c: Likewise.
6012 * target.h: Likewise.
6013 * tracefile-tfile.c: Likewise.
6014 * tracepoint.c: Likewise.
6015 * valops.c: Likewise.
6016 * valprint.c: Likewise.
6017 * value.c: Likewise.
6018 * windows-tdep.c: Likewise.
6019 * mi/mi-main.c: Likewise.
6021 2018-06-07 Tom Tromey <tom@tromey.com>
6023 * valprint.h (build_address_symbolic): Declare.
6024 * printcmd.c (print_address_symbolic): Update.
6025 (build_address_symbolic): Change "name" and "filename" to
6027 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6029 * defs.h (build_address_symbolic): Remove declaration.
6031 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6033 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6034 (aarch64_vnv_type): Add function.
6035 (aarch64_pseudo_register_name): Add V regs for SVE.
6036 (aarch64_pseudo_register_type): Likewise.
6037 (aarch64_pseudo_register_reggroup_p): Likewise.
6038 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6039 (aarch64_pseudo_read_value): Add V regs for SVE.
6040 (aarch64_pseudo_write_2): Use V0 offset for SVE
6041 (aarch64_pseudo_write): Add V regs for SVE.
6042 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6044 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6046 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6047 (sve_vl_from_vq): Likewise.
6049 2018-06-05 Tom Tromey <tom@tromey.com>
6051 * cli/cli-cmds.c (show_version): Update.
6052 * top.c (print_gdb_version): Add "interactive" parameter.
6054 * main.c (captured_main_1): Update.
6055 * top.h (print_gdb_version): Add "interactive" parameter and a
6058 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6060 * common/enum-flags.h: Add trailing semicolon to example in
6063 2018-06-05 Tom Tromey <tom@tromey.com>
6066 * NEWS: Add entry about pager.
6067 * utils.c (pagination_disabled_for_command): New global.
6068 (prompt_for_continue): Allow "c" response to prompt.
6069 (reinitialize_more_filter): Clear
6070 pagination_disabled_for_command.
6071 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6073 2018-06-04 Tom Tromey <tom@tromey.com>
6075 * ada-lang.h (ada_lookup_symbol_list): Update.
6076 * ada-lang.c (resolve_subexp): Update.
6077 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6079 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6080 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6081 results parameter to std::vector.
6082 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6084 * ada-exp.y (block_lookup): Update.
6085 (select_possible_type_sym): Change type of syms. Remove nsyms
6087 (write_var_or_type, write_name_assoc): Update.
6089 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6091 * windows-nat.c (windows_nat_target::xfer_partial): Return
6092 TARGET_XFER_E_IO if we need to delegate to the target beneath
6093 but BENEATH is NULL.
6095 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6097 * Makefile.in (config.status): Add configure.nat as a
6100 2018-06-04 Tom Tromey <tom@tromey.com>
6102 * cp-name-parser.y (cpname_state): Add method declarations.
6103 (HANDLE_QUAL): Update.
6104 (cpname_state::d_grab, cpname_state::fill_comp)
6105 (cpname_state::make_operator, cpname_state::make_dtor)
6106 (cpname_state::make_builtin_type, cpname_state::make_name)
6107 (cpname_state::d_qualify, cpname_state::d_int_type)
6108 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6109 (%union): Move earlier.
6111 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6113 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6115 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6117 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6118 (aarch64_pseudo_write_1): Likewise.
6119 (aarch64_pseudo_read_value): Use helper.
6120 (aarch64_pseudo_write): Likewise.
6122 2018-06-04 Pedro Alves <palves@redhat.com>
6124 * darwin-nat.c (darwin_ops): Delete.
6125 (darwin_attach_pid): Use get_native_target.
6127 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6129 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6130 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6132 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6134 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6135 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6136 (aarch64_gdbarch_init): Check for SVE.
6137 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6139 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6141 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6142 * aarch64-tdep.h (aarch64_read_description): Likewise.
6143 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6144 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6145 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6146 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6147 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6149 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6151 * value.c (value_fetch_lazy_bitfield): New.
6152 (value_fetch_lazy_memory): New.
6153 (value_fetch_lazy_register): New.
6154 (value_fetch_lazy): Factor out to smaller functions.
6156 2018-06-01 Tom Tromey <tom@tromey.com>
6158 * cp-name-parser.y (backslashable, represented): Now const.
6160 2018-06-01 Tom Tromey <tom@tromey.com>
6162 * cp-name-parser.y: Include parser-defs.h.
6163 (parser_fprintf): Remove declaration.
6165 2018-06-01 Tom Tromey <tom@tromey.com>
6167 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6169 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6170 (global_result): Remove globals.
6171 (struct cpname_state): New.
6172 (yyparse): Don't declare.
6173 (yylex, yyerror): Move declarations after %union.
6174 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6175 (make_name): Add state parameter.
6177 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6179 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6181 (yylex): Add lvalp, state parameters.
6182 (yyerror): Add state parameter.
6183 (cp_demangled_name_to_comp): Update.
6185 2018-06-01 Tom Tromey <tom@tromey.com>
6187 * cp-name-parser.y (parser_fprintf): Declare.
6188 (GDB_YY_REMAP_PREFIX): Define.
6189 Include yy-remap.h. Don't redefine yy* identifiers.
6191 2018-06-01 Tom Tromey <tom@tromey.com>
6193 * python/py-type.c (typy_legacy_template_argument): Update.
6194 * cp-support.h (cp_demangled_name_to_comp): Update.
6195 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6196 parameter to be a "std::string *".
6199 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6201 * ada-lex.l: Include "diagnostics.h" instead of
6202 "common/diagnostics.h".
6203 * unittests/environ-selftests.c: Likewise.
6204 * common/diagnostics.h: Moved to ../include.
6206 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6208 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6209 to language_mode_manual while calling breakpoint_re_set_one.
6211 2018-06-01 Tom Tromey <tom@tromey.com>
6213 * valops.c (value_cast_structs, destructor_name_p): Update.
6214 * symtab.c (gdb_mangle_name): Update.
6215 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6217 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6218 (pascal_object_print_value_fields, pascal_object_print_value):
6220 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6221 * linespec.c (find_methods): Update.
6222 * gdbtypes.h (type_name_no_tag): Remove.
6223 (type_name_or_error): Rename from type_name_no_tag_or_error.
6224 * gdbtypes.c (type_name_no_tag): Remove.
6225 (type_name_or_error): Rename from type_name_no_tag_or_error.
6226 (lookup_struct_elt_type, check_typedef): Update.
6227 * expprint.c (print_subexp_standard): Update.
6228 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6229 * d-namespace.c (d_lookup_nested_symbol): Update.
6230 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6231 (cp_print_class_member): Update.
6232 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6233 * completer.c (add_struct_fields): Update.
6234 * c-typeprint.c (cp_type_print_derivation_info)
6235 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6237 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6238 (ada_prefer_type, ada_is_exception_sym): Update.
6240 2018-06-01 Tom Tromey <tom@tromey.com>
6242 * valops.c (enum_constant_from_type, value_namespace_elt)
6243 (value_maybe_namespace_elt): Update.
6244 * valarith.c (find_size_for_pointer_math): Update.
6245 * target-descriptions.c (make_gdb_type): Update.
6246 * symmisc.c (print_symbol): Update.
6247 * stabsread.c (define_symbol, read_type)
6248 (complain_about_struct_wipeout, add_undefined_type)
6249 (cleanup_undefined_types_1): Update.
6250 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6251 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6252 (rust_internal_print_type, rust_composite_type)
6253 (rust_evaluate_funcall, rust_evaluate_subexp)
6254 (rust_inclusive_range_type_p): Update.
6255 * python/py-type.c (typy_get_tag): Update.
6256 * p-typeprint.c (pascal_type_print_base): Update.
6257 * mdebugread.c (parse_symbol, parse_type): Update.
6258 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6260 * guile/scm-type.c (gdbscm_type_tag): Update.
6261 * go-lang.c (sixg_string_p): Update.
6262 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6264 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6265 (TYPE_TAG_NAME): Remove.
6266 * gdbtypes.c (type_name_no_tag): Simplify.
6267 (check_typedef, check_types_equal, recursive_dump_type)
6268 (copy_type_recursive, arch_composite_type): Update.
6269 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6270 in summary mode when needed.
6271 * eval.c (evaluate_funcall): Update.
6272 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6273 (process_structure_scope, read_enumeration_type)
6274 (read_namespace_type, read_module_type, determine_prefix): Update.
6275 * cp-support.c (inspect_type): Update.
6276 * coffread.c (process_coff_symbol, decode_base_type): Update.
6277 * c-varobj.c (c_is_path_expr_parent): Update.
6278 * c-typeprint.c (c_type_print_base_struct_union): Update.
6279 (c_type_print_base_1): Update. Print struct/class/union/enum in
6280 summary when using C language.
6281 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6282 (gen_maybe_namespace_elt): Update.
6283 * ada-lang.c (ada_type_name): Simplify.
6284 (empty_record, ada_template_to_fixed_record_type_1)
6285 (template_to_static_fixed_type)
6286 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6288 2018-06-01 Tom Tromey <tom@tromey.com>
6290 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6292 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6293 (c_print_type): Update.
6294 (c_print_type): New overload.
6295 (c_type_print_varspec_prefix, c_type_print_args)
6296 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6297 (c_type_print_base_struct_union, c_type_print_base_1)
6298 (cp_type_print_method_args): Add "language" parameter.
6299 (c_type_print_base): Update.
6300 * c-lang.h (c_print_type): Add new overload.
6302 2018-06-01 Tom Tromey <tom@tromey.com>
6304 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6305 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6307 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6309 * aarch64-tdep.c (aarch64_sve_register_names): New const
6311 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6312 (AARCH64_SVE_Z_REGS_NUM): New define.
6313 (AARCH64_SVE_P_REGS_NUM): Likewise.
6314 (AARCH64_SVE_NUM_REGS): Likewise.
6316 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6318 * nat/linux-ptrace.h [__alpha__]
6319 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6322 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6324 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6325 the endianness selected.
6326 * NEWS: Document `set endian auto' mode operation update.
6328 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6330 * Makefile.in: Add new header.
6331 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6332 (sve_vl_from_vg): Likewise.
6333 (sve_vq_from_vl): Likewise.
6334 (sve_vl_from_vq): Likewise.
6335 (sve_vq_from_vg): Likewise.
6336 (sve_vg_from_vq): Likewise.
6337 * configure.nat: Add new c file.
6338 * nat/aarch64-sve-linux-ptrace.c: New file.
6339 * nat/aarch64-sve-linux-ptrace.h: New file.
6341 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6343 * aarch64-linux-nat.c (aarch64_linux_read_description):
6345 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6347 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6348 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6349 (aarch64_gdbarch_init): Add parmeter zero.
6350 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6351 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6352 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6354 * doc/gdb.texinfo: Describe SVE feature
6355 * features/aarch64-sve.c: New file.
6357 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6360 * gdbarch.sh (significant_addr_bit): Default to zero when
6361 not set by target architecture.
6362 * gdbarch.c: Re-generated.
6363 * utils.c (address_significant): Update.
6365 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6367 * stack.c (func_command): Remove trailing newline in call to error.
6369 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6371 * regcache.h (regcache_raw_collect): Remove, update callers to
6372 use regcache::raw_collect.
6373 * regcache.c (regcache_raw_collect): Remove.
6375 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6377 * regcache.h (regcache_raw_supply): Remove, update callers to
6378 use detached_regcache::raw_supply.
6379 * regcache.c (regcache_raw_supply): Remove.
6381 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6383 * regcache.h (regcache_cooked_write_part): Remove, update
6384 callers to use regcache::cooked_write_part.
6385 * regcache.c (regcache_cooked_write_part): Remove.
6387 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6389 * regcache.h (regcache_cooked_read_part): Remove, update callers
6390 to use readable_regcache::cooked_read_part.
6391 * regcache.c (regcache_cooked_read_part): Remove.
6393 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6395 * regcache.h (regcache_cooked_read_value): Remove, update
6396 callers to use readable_regcache::cooked_read_value.
6397 * regcache.c (regcache_cooked_read_value): Remove.
6399 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6401 * regcache.h (regcache_cooked_write): Remove, update callers to
6402 use regcache::cooked_write.
6403 * regcache.c (regcache_cooked_write): Remove.
6405 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6407 * regcache.h (regcache_invalidate): Remove, update callers to
6408 use detached_regcache::invalidate instead.
6409 * regcache.c (regcache_invalidate): Remove.
6411 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6413 * regcache.h (regcache_raw_write_part): Remove, update callers
6414 to use regcache::raw_write_part instead.
6415 * regcache.c (regcache_raw_write_part): Remove.
6417 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6419 * regcache.h (regcache_raw_read_part): Remove, update callers to
6420 use readable_regcache::raw_read_part instead.
6421 * regcache.c (regcache_raw_read_part): Remove.
6423 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6425 * regcache.h (regcache_cooked_read): Remove, update callers to
6426 use readable_regcache::cooked_read instead.
6427 * regcache.c (regcache_cooked_read): Remove.
6429 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6431 * regcache.h (regcache_raw_write): Remove, update callers to use
6432 regcache::raw_write instead.
6433 * regcache.c (regcache_raw_write): Remove.
6435 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6437 * regcache.h (regcache_raw_read): Remove, update callers to use
6438 readable_regcache::raw_read instead.
6439 * regcache.c (regcache_raw_read): Remove.
6441 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6443 * regcache.h (regcache_raw_update): Remove, update callers to
6444 use readable_regcache::raw_update instead.
6445 * regcache.c (regcache_raw_update): Remove.
6447 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6449 * regcache.h (regcache_register_status): Remove, update callers
6450 to use reg_buffer::get_register_status directly instead.
6451 * regcache.c (regcache_register_status): Remove.
6453 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6455 * regcache.h (regcache_get_ptid): Remove, update all callers to
6456 call regcache::ptid instead.
6457 * regcache.c (regcache_get_ptid): Remove.
6459 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6461 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6463 2018-05-30 Pedro Alves <palves@redhat.com>
6465 * common/common-exceptions.h (exception_rethrow): Use
6468 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6470 * breakpoint.c (print_solib_event, check_status_catch_solib):
6471 Remove struct keyword in range-based for loops.
6472 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6473 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6475 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6477 * symfile.c (addr_info_make_relative): Likewise.
6478 * thread.c (value_in_thread_stack_temporaries): Likewise.
6480 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6483 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6484 aggregate type to get its real type before accessing it.
6486 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6488 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6489 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6490 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6491 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6492 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6493 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6494 * printcmd.c (info_address_command): Likewise.
6496 2018-05-29 Tom Tromey <tom@tromey.com>
6498 * windows-nat.c (handle_exception): Update fall-through comment.
6500 2018-05-29 Tom Tromey <tom@tromey.com>
6502 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6503 (struct program_space) <added_solibs>: Now a std::vector.
6504 * breakpoint.c (print_solib_event): Update.
6505 (check_status_catch_solib): Update.
6506 * progspace.c (clear_program_space_solib_cache): Update.
6507 * solib.c (update_solib_list): Update.
6509 2018-05-29 Tom Tromey <tom@tromey.com>
6511 * python/py-type.c (typy_richcompare): Update.
6512 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6513 * gdbtypes.h (types_deeply_equal): Return bool.
6514 (types_equal): Likewise.
6515 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6517 (check_types_equal): Change worklist to std::vector. Return
6519 (struct type_equality_entry): Add constructor.
6520 (compare_maybe_null_strings): Return bool.
6521 (check_types_worklist): Return bool. Change worklist to
6523 (types_deeply_equal): Use std::vector.
6524 (types_equal): Return bool.
6525 (compare_maybe_null_strings): Simplify.
6527 2018-05-29 Tom Tromey <tom@tromey.com>
6529 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6531 2018-05-29 Tom Tromey <tom@tromey.com>
6533 * objc-lang.h: Don't include cp-support.h.
6534 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6537 2018-05-27 Tom Tromey <tom@tromey.com>
6539 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6541 2018-05-25 Tom Tromey <tom@tromey.com>
6543 * value.c (value::location): Initialize.
6545 2018-05-25 Tom Tromey <tom@tromey.com>
6547 * dbxread.c (init_bincl_list): Remove.
6548 (bincl_list): Now a std::vector.
6549 (bincls_allocated, next_bincl): Remove.
6550 (free_bincl_list, do_free_bincl_list_cleanup)
6551 (make_cleanup_free_bincl_list): Remove.
6552 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6554 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6555 (struct header_file_location): Add constructor.
6556 (add_bincl_to_list): Remove.
6558 2018-05-25 Tom Tromey <tom@tromey.com>
6560 * tui/tui.c (tui_enable): Update.
6561 * mi/mi-interp.c (mi_interp::init): Update.
6562 * interps.h (class interp) <name>: New method.
6563 <m_name>: Rename from name.
6564 (~scoped_restore_interp): Update.
6565 * interps.c (interp::interp): Update.
6566 (interp_add, interp_set, interp_lookup_existing)
6567 (current_interp_named_p): Update.
6569 2018-05-25 Tom Tromey <tom@tromey.com>
6571 * interps.c (interp_name): Remove.
6572 * mi/mi-interp.c (mi_interp::init): Update.
6573 * interps.h (interp_name): Remove.
6574 (~scoped_restore_interp): Update.
6575 * tui/tui.c (tui_enable): Update.
6577 2018-05-25 Tom Tromey <tom@tromey.com>
6579 * utils.c (fputs_maybe_filtered): Update.
6580 * linespec.c (decode_line_full): Update.
6581 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6582 (mi_print_breakpoint_for_event, mi_solib_loaded)
6583 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6584 (mi_user_selected_context_changed): Update.
6585 * mi/mi-main.c (mi_execute_command): Update.
6586 * cli/cli-script.c (execute_control_command): Update.
6587 * python/python.c (execute_gdb_command): Update.
6588 * solib.c (info_sharedlibrary_command): Update.
6589 * interps.c (interp_ui_out): Remove.
6590 * interps.h (interp_ui_out): Remove.
6592 2018-05-25 Tom Tromey <tom@tromey.com>
6594 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6595 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6596 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6598 2018-05-25 Tom Tromey <tom@tromey.com>
6600 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6601 * interps.c (interp_exec): Use scoped_restore.
6603 2018-05-25 Tom Tromey <tom@tromey.com>
6605 * remote.c (remote_target::remote_file_get): Use
6607 (remote_target::remote_file_put): Likewise.
6609 2018-05-25 Tom Tromey <tom@tromey.com>
6611 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6613 (get_pe_section_index, add_pe_exported_sym): Update.
6614 (read_pe_exported_syms): Use gdb::def_vector.
6616 2018-05-25 Tom Tromey <tom@tromey.com>
6618 * frame.c (remove_prev_frame): Remove.
6619 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6621 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6623 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6625 * mips-linux-nat.c (supply_fpregset): Always call
6626 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6627 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6628 `mips_fill_fpregset'.
6629 * mips-linux-tdep.c (mips_supply_fpregset)
6630 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6631 (mips_fill_fpregset_wrapper): Remove functions.
6632 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6633 (mips_linux_fpregset): Remove variable.
6634 (mips_linux_iterate_over_regset_sections): Use
6635 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6636 (mips_linux_o32_sigframe_init): Remove comment.
6638 2018-05-25 Pedro Alves <palves@redhat.com>
6640 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6641 (struct readahead_cache, struct packet_reg, struct
6642 remote_arch_state, class remote_state): Move higher up in the
6644 (remote_target::m_remote_state): Now an object instead of a pointer.
6645 (remote_target::get_remote_state): Adjust.
6647 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6649 * stack.c (select_and_print_frame): Delete.
6650 (struct function_bounds): Move struct within function.
6651 (func_command): Most content moved into new function
6652 find_frame_for_function, use new function, print result, add
6654 (find_frame_for_function): New function, now returns a result.
6656 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6658 * stack.c (iterate_over_block_arg_vars): Fix comment.
6659 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6661 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6665 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6667 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6669 * frame.h (class scoped_restore_selected_frame): New class.
6670 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6671 of any exception, use scoped_restore_selected_frame to restore the
6674 2018-05-24 Pedro Alves <palves@redhat.com>
6676 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6679 2018-05-23 Tom Tromey <tom@tromey.com>
6681 * complaints.c (struct complaints): Remove.
6682 (symfile_complaint_book): Remove.
6683 (series): New global.
6684 (complaint_internal): Update.
6685 (clear_complaints): Update.
6687 2018-05-23 Tom Tromey <tom@tromey.com>
6689 * complaints.c (counters): New global.
6690 (struct complain): Remove.
6691 (struct complaints) <root>: Remove.
6692 (complaint_sentinel): Remove.
6693 (symfile_complaint_book): Update.
6694 (find_complaint) Remove.
6695 (complaint_internal, clear_complaints): Update.
6697 2018-05-23 Tom Tromey <tom@tromey.com>
6699 * complaints.c (struct complain) <file, line>: Remove.
6700 (find_complaint): Remove file, line parameters.
6701 (complaint_internal): Update.
6703 2018-05-23 Tom Tromey <tom@tromey.com>
6705 * complaints.c (vcomplaint): Remove.
6706 (complaint_internal) Merge in contents of vcomplaint.
6708 2018-05-23 Tom Tromey <tom@tromey.com>
6710 * complaints.c (struct complaints) <explanation>: Remove.
6711 (symfile_explanations): Remove.
6712 (symfile_complaint_book): Update.
6713 (vcomplaint): Update.
6714 (struct explanation): Remove.
6716 2018-05-23 Tom Tromey <tom@tromey.com>
6718 * complaints.c (symfile_complaints): Remove.
6719 (complaint_internal): Remove "complaints" parameter.
6720 (clear_complaints, vcomplaint): Remove "c" parameter.
6721 (get_complaints): Remove.
6722 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6723 (dwarf2_debug_line_missing_file_complaint)
6724 (dwarf2_debug_line_missing_end_sequence_complaint)
6725 (dwarf2_complex_location_expr_complaint)
6726 (dwarf2_const_value_length_mismatch_complaint)
6727 (dwarf2_section_buffer_overflow_complaint)
6728 (dwarf2_macro_malformed_definition_complaint)
6729 (dwarf2_invalid_attrib_class_complaint)
6730 (create_addrmap_from_index, dw2_symtab_iter_next)
6731 (dw2_expand_marked_cus)
6732 (dw2_debug_names_iterator::find_vec_in_debug_names)
6733 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6734 (create_debug_type_hash_table, init_cutu_and_read_dies)
6735 (partial_die_parent_scope, add_partial_enumeration)
6736 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6737 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6738 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6739 (create_cus_hash_table, create_dwp_hash_table)
6740 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6741 (dwarf2_rnglists_process, dwarf2_ranges_process)
6742 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6743 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6744 (handle_struct_member_die, process_structure_scope)
6745 (read_array_type, read_common_block, read_module_type)
6746 (read_tag_pointer_type, read_typedef, read_base_type)
6747 (read_subrange_type, load_partial_dies, partial_die_info::read)
6748 (partial_die_info::read, partial_die_info::read)
6749 (partial_die_info::read, read_checked_initial_length_and_offset)
6750 (dwarf2_string_attr, read_formatted_entries)
6751 (dwarf_decode_line_header)
6752 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6753 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6754 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6755 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6756 (get_signatured_type, get_DW_AT_signature_type)
6757 (decode_locdesc, file_file_name, consume_improper_spaces)
6758 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6759 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6760 (dwarf2_symbol_mark_computed, set_die_type)
6761 (read_attribute_value): Update.
6762 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6764 * dbxread.c (unknown_symtype_complaint)
6765 (lbrac_mismatch_complaint, repeated_header_complaint)
6766 (set_namestring, function_outside_compilation_unit_complaint)
6767 (read_dbx_symtab, process_one_symbol): Update.
6768 * gdbtypes.c (stub_noname_complaint): Update.
6769 * windows-nat.c (handle_unload_dll): Update.
6770 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6771 (decode_base_type): Update.
6772 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6773 (eb_complaint, record_include_begin, record_include_end)
6774 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6775 (process_xcoff_symbol, read_symbol)
6776 (function_outside_compilation_unit_complaint)
6777 (scan_xcoff_symtab): Update.
6778 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6779 * buildsym.c (finish_block_internal, make_blockvector)
6780 (end_symtab_get_static_block, augment_type_symtab): Update.
6781 * dtrace-probe.c (dtrace_process_dof)
6782 (dtrace_static_probe_ops::get_probes): Update.
6783 * complaints.h (struct complaint): Don't declare.
6784 (symfile_complaints): Remove.
6785 (complaint_internal): Remove "complaints" parameter.
6786 (complaint): Likewise.
6787 (clear_complaints): Likewise.
6788 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6789 (reread_symbols): Update.
6790 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6791 (dwarf2_frame_cache, decode_frame_entry): Update.
6792 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6793 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6794 (info_selectors_command): Update.
6795 * macrotab.c (macro_include, check_for_redefinition)
6796 (macro_undef): Update.
6797 * objfiles.c (filter_overlapping_sections): Update.
6798 * stabsread.c (invalid_cpp_abbrev_complaint)
6799 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6800 (define_symbol, error_type, read_type, rs6000_builtin_type)
6801 (stabs_method_name_from_physname, read_member_functions)
6802 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6803 (attach_fields_to_type, complain_about_struct_wipeout)
6804 (read_range_type, read_args, common_block_start)
6805 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6807 * mdebugread.c (index_complaint, unknown_ext_complaint)
6808 (basic_type_complaint, bad_tag_guess_complaint)
6809 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6810 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6811 (parse_procedure, parse_lines)
6812 (function_outside_compilation_unit_complaint)
6813 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6814 (bad_tag_guess_complaint, reg_value_complaint): Update.
6815 * cp-support.c (demangled_name_complaint): Update.
6816 * macroscope.c (sal_macro_scope): Update.
6817 * dwarf-index-write.c (class debug_names): Update.
6819 2018-05-23 Tom Tromey <tom@tromey.com>
6821 * complaints.c (clear_complaints): Remove "noisy" parameter.
6822 * complaints.h (clear_complaints): Update.
6823 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6824 (reread_symbols): Update.
6826 2018-05-23 Tom Tromey <tom@tromey.com>
6828 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6830 (vcomplaint, clear_complaints): Update.
6831 (symfile_explanations): Remove some messages.
6833 2018-05-23 Tom Tromey <tom@tromey.com>
6835 * complaints.c (internal_complaint): Remove.
6836 * complaints.h (internal_complaint): Remove.
6838 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6840 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6842 2018-05-22 Pedro Alves <palves@redhat.com>
6844 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6845 (remote_fileio_badfd, remote_fileio_return_errno)
6846 (remote_fileio_return_success, remote_fileio_func_open)
6847 (remote_fileio_func_open, remote_fileio_func_close)
6848 (remote_fileio_func_read, remote_fileio_func_write)
6849 (remote_fileio_func_lseek, remote_fileio_func_rename)
6850 (remote_fileio_func_unlink, remote_fileio_func_stat)
6851 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6852 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6853 remote_target parameter.
6854 (remote_fio_func_map) <func>: Add remote_target parameter.
6855 (do_remote_fileio_request, remote_fileio_request):
6856 * remote-fileio.h (remote_fileio_request):
6857 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6858 remote_target parameter.
6859 (remote_notif_process, handle_notification): Adjust to pass down
6861 (remote_notif_state_allocate): Add remote_target parameter. Save
6863 * remote-notif.h (struct remote_target): Forward declare.
6864 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6865 remote_target parameter.
6866 (struct remote_notif_state) <remote>: New field.
6867 (remote_notif_ack, remote_notif_parse): Add remote_target
6869 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6870 remote_target parameter.
6871 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6872 (threads_listing_context, rmt_thread_action, protocol_feature)
6873 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6874 (packet_result, struct threads_listing_context, remote_state):
6875 Move definitions and declarations higher up.
6876 (remote_target) <~remote_target>: Declare.
6877 (remote_download_command_source, remote_file_put, remote_file_get)
6878 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6879 (remote_hostio_pread_vFile, remote_hostio_send_command)
6880 (remote_hostio_set_filesystem, remote_hostio_open)
6881 (remote_hostio_close, remote_hostio_unlink, remote_state)
6882 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6883 (get_memory_write_packet_size, get_memory_read_packet_size)
6884 (append_pending_thread_resumptions, remote_detach_1)
6885 (append_resumption, remote_resume_with_vcont)
6886 (add_current_inferior_and_thread, wait_ns, wait_as)
6887 (process_stop_reply, remote_notice_new_inferior)
6888 (process_initial_stop_replies, remote_add_thread)
6889 (btrace_sync_conf, remote_btrace_maybe_reopen)
6890 (remove_new_fork_children, kill_new_fork_children)
6891 (discard_pending_stop_replies, stop_reply_queue_length)
6892 (check_pending_events_prevent_wildcard_vcont)
6893 (discard_pending_stop_replies_in_queue, stop_reply)
6894 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6895 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6896 (remote_interrupt_as, remote_interrupt_ns)
6897 (remote_get_noisy_reply, remote_query_attached)
6898 (remote_add_inferior, remote_current_thread, get_current_thread)
6899 (set_thread, set_general_thread, set_continue_thread)
6900 (set_general_process, write_ptid)
6901 (remote_unpack_thread_info_response, remote_get_threadinfo)
6902 (parse_threadlist_response, remote_get_threadlist)
6903 (remote_threadlist_iterator, remote_get_threads_with_ql)
6904 (remote_get_threads_with_qxfer)
6905 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6906 (get_offsets, remote_check_symbols, remote_supported_packet)
6907 (remote_query_supported, remote_packet_size)
6908 (remote_serial_quit_handler, remote_detach_pid)
6909 (remote_vcont_probe, remote_resume_with_hc)
6910 (send_interrupt_sequence, interrupt_query)
6911 (remote_notif_get_pending_events, fetch_register_using_p)
6912 (send_g_packet, process_g_packet, fetch_registers_using_g)
6913 (store_register_using_P, store_registers_using_G)
6914 (set_remote_traceframe, check_binary_download)
6915 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6916 (remote_xfer_live_readonly_partial, remote_read_bytes)
6917 (remote_send_printf, remote_flash_write, readchar)
6918 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6919 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6920 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6921 (extended_remote_disable_randomization, extended_remote_run)
6922 (send_environment_packet, extended_remote_environment_support)
6923 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6924 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6925 (packet_command): Now methods of ...
6926 (remote_target): ... this class.
6927 (m_remote_state) <remote_target>: New field.
6928 (struct remote_state) <stop_reply_queue,
6929 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6931 (remote_state::remote_state): Allocate stop_reply_queue.
6932 (remote_state): Delete global.
6933 (get_remote_state_raw): Delete.
6934 (remote_target::get_remote_state): Allocate m_remote_state on
6936 (get_current_remote_target): New.
6937 (remote_ops, extended_remote_ops): Delete.
6938 (wait_forever_enabled_p, remote_async_inferior_event_token):
6939 Delete, moved to struct remote_state.
6940 (remote_target::close): Delete self. Destruction bits split to
6942 (remote_target::~remote_target): ... this.
6943 (show_memory_packet_size): Adjust to use
6944 get_current_remote_target.
6945 (struct protocol_feature) <func>: Add remote_target parameter.
6946 All callers adjusted.
6947 (curr_quit_handler_target): New.
6948 (remote_serial_quit_handler): Reimplement.
6949 (remote_target::open_1): Adjust to use get_current_remote_target.
6950 Heap-allocate remote_target/extended_remote_target instances.
6951 (vcont_builder::vcont_builder): Add remote_target parameter, and
6952 save it in m_remote. All callers adjusted.
6953 (vcont_builder::m_remote): New field.
6954 (vcont_builder::restart, vcont_builder::flush)
6955 (vcont_builder::push_action): Use it.
6956 (remote_target::commit_resume): Use it.
6957 (struct queue_iter_param) <remote>: New field.
6958 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6959 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6960 (check_pending_event_prevents_wildcard_vcont_callback)
6961 (remote_target::check_pending_events_prevent_wildcard_vcont)
6962 (remote_target::discard_pending_stop_replies)
6963 (remote_target::discard_pending_stop_replies_in_queue)
6964 (remote_target::remote_notif_remove_queued_reply): Fill in
6966 (remote_notif_get_pending_events): New.
6967 (remote_target::readchar, remote_target::remote_serial_write):
6968 Save/restore curr_quit_handler_target.
6970 (kill_new_fork_children): Fill in 'remote' field.
6971 (packet_command): Use get_current_remote_target, defer to
6972 remote_target method of same name.
6973 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6974 parameter, and save it in m_remote. All callers adjusted.
6975 (scoped_remote_fd::release): Use m_remote.
6976 (scoped_remote_fd::m_remote): New field.
6977 (remote_file_put, remote_file_get, remote_file_delete): Use
6978 get_current_remote_target, defer to remote_target method of same
6980 (remote_btrace_reset): Add remote_state paremeter. Update all
6982 (remote_async_inferior_event_handler). Pass down 'data'.
6983 (remote_new_objfile): Use get_current_remote_target.
6984 (remote_target::vcont_r_supported): New.
6985 (set_range_stepping): Use get_current_remote_target and
6986 remote_target::vcont_r_supported.
6987 (_initialize_remote): Don't allocate 'remote_state' and
6988 'stop_reply_queue' globals.
6989 * remote.h (struct remote_target): Forward declare.
6990 (getpkt, putpkt, remote_notif_get_pending_events): Add
6991 'remote_target' parameter.
6993 2018-05-22 Pedro Alves <palves@redhat.com>
6995 * remote.c (vcont_builder): Now a class. Make all data members
6997 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6999 (vcont_builder_restart): Rename to ...
7000 (vcont_builder::restart): ... this.
7001 (vcont_builder_flush): Rename to ...
7002 (vcont_builder::flush): ... this.
7003 (vcont_builder_push_action): Rename to ...
7004 (vcont_builder::push_action): ... this.
7005 (remote_target::commit_resume): Adjust.
7007 2018-05-22 Pedro Alves <palves@redhat.com>
7009 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7010 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7011 (get_fixed_memory_packet_size): New.
7012 (get_memory_packet_size): Use it.
7013 (set_memory_packet_size): Don't override the config size with
7014 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7015 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7016 Don't refer to get_memory_packet_size if not connected to a remote
7017 target. Show "(default)" if configured size is 0.
7019 2018-05-22 Pedro Alves <palves@redhat.com>
7021 * remote.c (remote_target::mourn_inferior): Move
7022 discard_pending_stop_replies call here from ...
7023 (_initialize_remote): ... here.
7025 2018-05-22 Pedro Alves <palves@redhat.com>
7027 * remote.c (compare_section_command): Remove set_general_process
7030 2018-05-22 Pedro Alves <palves@redhat.com>
7032 * remote.c (struct packet_reg, struct remote_arch_state):
7033 Move higher up in the file.
7034 (remote_state) <m_arch_states>: Store remote_arch_state values
7035 instead of remote_arch_state pointers.
7036 (remote_state::get_remote_arch_state): Adjust.
7038 2018-05-22 Pedro Alves <palves@redhat.com>
7040 * remote.c: Include <unordered_map>.
7041 (remote_state): Now a class.
7042 (remote_state) <get_remote_arch_state>: Declare method.
7043 <get_remote_arch_state>: New field.
7044 (remote_arch_state) <remote_arch_state>: Declare ctor.
7045 <regs>: Now a unique_ptr.
7046 (remote_gdbarch_data_handle): Delete.
7047 (get_remote_arch_state): Delete.
7048 (remote_state::get_remote_arch_state): New.
7049 (get_remote_state): Adjust to call remote_state's
7050 get_remote_arch_state method.
7051 (init_remote_state): Delete, bits factored out to ...
7052 (remote_arch_state::remote_arch_state): ... this new method.
7053 (get_remote_packet_size, get_memory_packet_size)
7054 (process_g_packet, remote_target::fetch_registers)
7055 (remote_target::prepare_to_store, store_registers_using_G)
7056 (remote_target::store_registers, remote_target::get_trace_status):
7057 Adjust to call remote_state's method.
7058 (_initialize_remote): Remove reference to
7059 remote_gdbarch_data_handle.
7061 2018-05-22 Pedro Alves <palves@redhat.com>
7063 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7064 pread>: New method declarations.
7065 (remote_target::open_1): Adjust.
7066 (readahead_cache_invalidate): Rename to ...
7067 (readahead_cache::invalidate): ... this, and adjust to be a class
7069 (readahead_cache_invalidate_fd): Rename to ...
7070 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7072 (remote_hostio_pwrite): Adjust.
7073 (remote_hostio_pread_from_cache): Rename to ...
7074 (readahead_cache::pread): ... this, and adjust to be a class
7076 (remote_hostio_close): Adjust.
7078 2018-05-22 Pedro Alves <palves@redhat.com>
7080 * remote.c (remote_hostio_close_cleanup): Delete.
7081 (class scoped_remote_fd): New.
7082 (remote_file_put, remote_file_get): Use it.
7084 2018-05-22 Pedro Alves <palves@redhat.com>
7086 (struct vCont_action_support): Use bool and initialize all fields.
7087 (struct readahead_cache): Initialize all fields.
7088 (remote_state): Use bool and initialize all fields.
7089 (remote_state::remote_state, remote_state::~remote_state): New.
7090 (new_remote_state): Delete.
7091 (_initialize_remote): Use new to allocate remote_state.
7093 2018-05-22 Pedro Alves <palves@redhat.com>
7097 * c-exp.y: Include "c-support.h".
7098 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7099 of tolower. Use c_ident_is_alpha to scan names.
7100 * c-lang.c: Include "c-support.h".
7101 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7102 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7103 * c-support.h: New file, with bits factored out from ...
7104 * cp-name-parser.y: ... this file.
7105 Include "c-support.h".
7106 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7107 c-support.h and renamed.
7108 (symbol_end, yylex): Adjust.
7110 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7112 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7113 parameter type to CORE_ADDR.
7114 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7115 parameter type in declaration to CORE_ADDR.
7116 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7117 target_auxv_search to get AT_HWCAP and use the result to get the
7119 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7120 to CORE_ADDR. Remove the cast of the return value to unsigned
7121 long. Fix error predicate of target_auxv_search.
7122 (ppc_linux_nat_target::read_description): Change the type of the
7123 hwcap variable to CORE_ADDR.
7125 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7127 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7128 if the size of fpscr is larger than 32 bits.
7130 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7132 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7133 (ppc32_linux_vsxregmap): New global.
7134 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7135 regcache_supply_regset, and regcache_collect_regset.
7136 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7137 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7138 (fetch_vsx_register, store_vsx_register): Remove.
7139 (fetch_vsx_registers): Add regno parameter. Get regset using
7140 ppc_linux_vsxregset. Use regset to supply registers.
7141 (store_vsx_registers): Add regno parameter. Get regset using
7142 ppc_linux_vsxregset. Use regset to collect registers.
7143 (fetch_register): Call fetch_vsx_registers instead of
7145 (store_register): Call store_vsx_registers instead of
7147 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7148 new regno parameter.
7149 (store_ppc_registers): Call store_vsx_registers with -1 for the
7150 new regno parameter.
7151 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7152 (ppc_collect_vsxregset): Remove.
7154 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7156 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7158 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7159 for vector register offset fields.
7160 (ppc64_fbsd_reg_offsets): Likewise.
7161 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7162 to vector register offset fields.
7163 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7164 to vector register offset fields.
7165 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7166 vector register offset fields.
7167 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7168 initializers for vector register offset fields.
7169 (rs6000_aix64_reg_offsets): Likewise.
7170 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7171 (ppc_supply_vrregset): Remove.
7172 (ppc_collect_vrregset): Remove.
7173 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7174 (ppc_linux_vrregset) : New function.
7175 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7176 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7177 (ppc32_linux_vrregset): Remove.
7178 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7179 and use result instead of ppc32_linux_vrregset.
7180 (ppc32_linux_reg_offsets): Remove initializers for vector register
7182 (ppc64_linux_reg_offsets): Likewise.
7183 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7184 * ppc-linux-nat.c: Include regset.h.
7185 (gdb_vrregset_t): Adjust comment to account for little-endian
7187 (supply_vrregset, fill_vrregset): Remove.
7188 (fetch_altivec_register, store_altivec_register): Remove.
7189 (fetch_altivec_registers): Add regno parameter. Get regset using
7190 ppc_linux_vrregset. Use regset to supply registers.
7191 (store_altivec_registers): Add regno parameter. Get regset using
7192 ppc_linux_vrregset. Use regset to collect registers.
7193 (fetch_register): Call fetch_altivec_registers instead of
7194 fetch_altivec_register.
7195 (store_register): Call store_altivec_registers instead of
7196 store_altivec_register.
7197 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7198 the new regno parameter.
7199 (store_ppc_registers): Call store_altivec_registers with -1 for
7200 the new regno parameter.
7202 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7204 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7205 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7206 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7207 (gdb_vrregset_t): Change array type size to
7208 PPC_LINUX_SIZEOF_VRREGSET.
7209 (gdb_vsxregset_t): Change array type size to
7210 PPC_LINUX_SIZEOF_VSXREGSET.
7211 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7212 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7213 PPC_LINUX_SIZEOF_VSXREGSET.
7215 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7217 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7218 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7220 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7221 ppc_linux_target_wordsize with tid.
7222 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7224 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7225 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7226 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7227 tid parameter. Remove static specifier.
7228 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7229 (ppc_linux_target_wordsize): New declaration.
7231 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7233 * arch/ppc-linux-common.c: New file.
7234 * arch/ppc-linux-common.h: New file.
7235 * arch/ppc-linux-tdesc.h: New file.
7236 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7237 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7238 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7239 arch/ppc-linux-tdesc.h.
7240 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7241 arch/ppc-linux-tdesc.h.
7242 (ppc_linux_nat_target::read_description): Remove target
7243 description matching code. Fill a ppc_linux_features struct and
7244 call ppc_linux_match_description with it. Move comment about ISA
7245 2.05 to ppc-linux-common.c.
7246 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7247 arch/ppc-linux-tdesc.h.
7248 (ppc_linux_core_read_description): Remove target description
7249 matching code. Fill a ppc_linux_features struct and call
7250 ppc_linux_match_description with it.
7251 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7252 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7253 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7254 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7255 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7256 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7257 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7258 (tdesc_powerpc_e500l): Remove.
7260 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7262 * ada-lang.c (catch_assert_command): Pass empty string instead
7263 of NULL for excep_string argument.
7265 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7267 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7268 the width of the requested register exceeds the width of the
7271 2018-05-21 Tom Tromey <tom@tromey.com>
7273 * printcmd.c (output_command): Remove.
7274 (output_command_const): Rename to output_command.
7275 * valprint.h (output_command): Rename from output_command_const.
7276 * tracepoint.c (trace_dump_actions): Call output_command.
7278 2018-05-21 Tom Tromey <tom@tromey.com>
7280 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7281 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7282 * ada-lang.h (create_ada_exception_catchpoint): Update.
7283 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7285 (create_excep_cond_exprs, ~ada_catchpoint)
7286 (should_stop_exception, print_one_exception)
7287 (print_mention_exception, print_recreate_exception): Update.
7288 (ada_get_next_arg): Remove.
7289 (catch_ada_exception_command_split): Use std::string. Change type
7290 of "excep_string", "cond_string".
7291 (catch_ada_exception_command): Update.
7292 (create_ada_exception_catchpoint): Change type of excep_string.
7293 (ada_exception_sal): Remove excep_string parameter.
7294 (~ada_catchpoint): Remove.
7296 2018-05-21 Tom Tromey <tom@tromey.com>
7298 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7301 2018-05-21 Tom Tromey <tom@tromey.com>
7303 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7304 Return unique_xmalloc_ptr.
7305 (print_it_exception): Update.
7307 2018-05-21 Tom Tromey <tom@tromey.com>
7309 * tracepoint.c (trace_dump_actions): Use std::string.
7311 2018-05-21 Tom Tromey <tom@tromey.com>
7313 * symfile.c (reread_symbols): Use std::string for original_name.
7315 2018-05-21 Tom Tromey <tom@tromey.com>
7317 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7318 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7321 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7323 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7325 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7326 * objfiles.c (get_objfile_bfd_data): Allocate
7327 objfile_per_bfd_storage with obstack_new when allocating on
7330 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7332 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7334 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7335 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7336 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7337 (add_pending): Likewise.
7338 (parse_symbol): Likewise.
7339 (parse_partial_symbols): Likewise.
7340 (psymtab_to_symtab_1): Likewise.
7341 (new_psymtab): Likewise.
7342 (elfmdebug_build_psymtabs): Likewise.
7343 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7344 * objfiles.c (get_objfile_bfd_data): Likewise.
7345 (objfile_register_static_link): Likewise.
7346 * psymtab.c (allocate_psymtab): Likewise.
7347 * stabsread.c (read_member_functions): Likewise.
7348 * xcoffread.c (xcoff_end_psymtab): Likewise.
7350 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7352 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7353 compiler supports std::is_trivially_constructible.
7354 * common/poison.h: Include obstack.h.
7355 (IsMallocable): Define to is_trivially_constructible if the
7356 compiler supports it, define to true_type otherwise.
7360 (XOBNEWVEC): Redefine.
7361 * gdb_obstack.h (obstack_zalloc): New.
7362 (OBSTACK_ZALLOC): Redefine.
7363 (obstack_calloc): New.
7364 (OBSTACK_CALLOC): Redefine.
7366 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7367 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7369 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7370 obstack_calloc/obstack_zalloc.
7371 (gdbarch_obstack_zalloc): Remove.
7372 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7374 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7376 * stack.c (backtrace_command_1): Remove useless variable int i.
7378 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7380 * stack.c (print_frame_info): Fix comment.
7382 2018-05-18 Tom Tromey <tom@tromey.com>
7384 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7385 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7386 (~dwarf2_per_objfile): Update
7387 (dwarf2_get_dwz_file): Use new.
7388 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7391 2018-05-18 Tom Tromey <tom@tromey.com>
7393 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7395 * dwarf2read.c (struct dwp_file): Add constructor and
7397 (open_and_init_dwp_file): Return a unique_ptr.
7398 (dwarf2_per_objfile, create_dwp_hash_table)
7399 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7400 (lookup_dwo_unit_in_dwp): Update.
7401 (open_and_init_dwp_file, get_dwp_file): Update.
7403 2018-05-18 Tom Tromey <tom@tromey.com>
7405 * dwarf2read.c (dwarf2_per_objfile): Update.
7406 (struct mapped_index): Add initializers.
7407 (dwarf2_read_index): Use new.
7408 (dw2_symtab_iter_init): Update.
7409 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7412 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7414 * dwarf2read.c (mapped_index) <total_size>: Remove.
7416 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7418 * unittests/format_pieces-selftests.c (test_format_specifier):
7421 2018-05-18 Tom Tromey <tom@tromey.com>
7423 * c-typeprint.c (maybe_print_hole): New function.
7424 (c_print_type_struct_field_offset): Update.
7425 (c_type_print_base_struct_union): Call maybe_print_hole.
7427 2018-05-17 Keith Seitz <keiths@redhat.com>
7429 * breakpoint.c (build_bpstat_chain): New function, moved from
7431 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7432 If no stop chain is passed, call build_bpstat_chain to build it.
7433 * breakpoint.h (build_bpstat_chain): Declare.
7434 (bpstat_stop_status): Move documentation here from breakpoint.c.
7435 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7436 build the stop chain and pass it to skip_inline_frames.
7437 Pass this stop chain to bpstat_stop_status.
7438 * inline-frame.c: Include breakpoint.h.
7439 (stopped_by_user_bp_inline_frame): New function.
7440 (skip_inline_frames): Add parameter `stop_chain'.
7441 Move documention to inline-frame.h.
7442 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7443 whether the frame should be elided.
7444 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7445 Add moved documentation and update for new parameter.
7447 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7450 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7451 unittests/format_pieces-selftests.c.
7452 * common/format.h (format_piece) <operator==>: New.
7453 (format_pieces) <operator[]>: Remove.
7454 * common/format.c (format_pieces::format_pieces): Handle \e.
7455 * unittests/format_pieces-selftests.c: New.
7457 2018-05-17 Tom Tromey <tom@tromey.com>
7460 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7461 (dw2_instantiate_symtab): Add skip_partial parameter.
7462 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7463 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7464 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7465 (dw2_expand_symtabs_matching_one)
7466 (dw2_find_pc_sect_compunit_symtab)
7467 (dw2_debug_names_lookup_symbol)
7468 (dw2_debug_names_expand_symtabs_for_function): Update.
7469 (init_cutu_and_read_dies): Add skip_partial parameter.
7470 (process_psymtab_comp_unit, build_type_psymtabs_1)
7471 (process_skeletonless_type_unit, load_partial_comp_unit)
7472 (psymtab_to_symtab_1): Update.
7473 (load_full_comp_unit): Add skip_partial parameter.
7474 (process_imported_unit_die, dwarf2_read_addr_index)
7475 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7476 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7477 (read_signatured_type): Update.
7479 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7481 * value.c (release_value): Remove unused variable.
7482 (record_latest_value): Likewise.
7483 (access_value_history): Likewise.
7484 (preserve_values): Likewise.
7486 2018-05-17 Tom Tromey <tom@tromey.com>
7488 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7491 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7494 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7495 Also handle registers whose width is not a multiple of
7497 (linux_nat_trad_target::store_register): Likewise.
7499 2018-05-16 Tom Tromey <tom@tromey.com>
7501 * gdbcore.h (core_bfd): Redefine.
7502 * corelow.c (core_target::close): Update.
7503 (core_target_open): Update.
7504 * progspace.h (struct program_space) <cbfd>: Now a
7507 2018-05-16 Tom Tromey <tom@tromey.com>
7510 * symfile-add-flags.h (enum symfile_add_flags)
7511 <SYMFILE_NOT_FILENAME>: New constant.
7512 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7513 objfile name from BFD.
7514 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7515 * minidebug.c (find_separate_debug_file_in_section): Put
7516 ".gnu_debugdata" into BFD's file name.
7518 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7520 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7523 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7526 * aarch64-tdep.c (aarch64_analyze_prologue,
7527 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7528 Indicate not interested in errors.
7530 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7532 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7533 Supply the MIPS_ZERO_REGNUM register.
7535 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7537 * mips-tdep.c (mask_address_var): Make variable static.
7539 2018-05-14 Tom Tromey <tom@tromey.com>
7541 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7543 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7545 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7546 FXSAVE_ADDR for the mxcsr register.
7548 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7550 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7552 2018-05-11 Pedro Alves <palves@redhat.com>
7554 * corelow.c (core_target) <core_target>: No longer inline.
7555 Initialize m_core_gdbarch, m_core_vec and build the section table
7557 <~core_target>: New.
7558 <core_gdbarch, get_core_register_section>: New methods.
7559 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7560 factored out from ...
7561 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7563 (sniff_core_bfd): Add gdbarch parameter.
7564 (core_close): Delete, merged into ...
7565 (core_target::close): ... here. Delete self.
7566 (core_close_cleanup): Delete.
7567 (core_target_open): Allocate a core_target on the heap. Use a
7568 unique_ptr instead of a cleanup. Bits moved into the core_target
7569 ctor. Adjust to use core_target methods instead of globals.
7570 (get_core_register_section): Rename to ...
7571 (core_target::get_core_register_section): ... this and adjust.
7572 (struct get_core_registers_cb_data): New.
7573 (get_core_registers_cb): Use it. Use bool.
7574 (core_target::fetch_registers, core_target::files_info)
7575 (core_target::xfer_partial, core_target::read_description)
7576 (core_target::pid_to, core_target::thread_name): Adjust to
7577 reference class fields instead of globals.
7578 * target.h (struct target_ops_deleter, target_ops_up): New.
7580 2018-05-11 Pedro Alves <palves@redhat.com>
7582 * corefile.c (core_file_command): Move to corelow.c.
7583 * corelow.c (the_core_target): Delete.
7584 (core_file_command): Moved from corefile.c. Check exec_bfd
7585 instead of the_core_target. Use target_detach instead of calling
7586 into the_core_target directly.
7587 (maybe_say_no_core_file_now): New.
7588 (core_target::detach): Use it.
7589 (_initialize_corelow): Remove references to the_core_target.
7590 * gdbcore.h (the_core_target): Delete.
7592 2018-05-11 Tom Tromey <tromey@redhat.com>
7593 Pedro Alves <palves@redhat.com>
7595 * corefile.c (core_bfd): Remove.
7596 * gdbcore.h (core_bfd): Now a macro.
7597 * progspace.h (struct program_space) <cbfd>: New field.
7599 2018-05-11 Tom Tromey <tom@tromey.com>
7601 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7604 2018-05-10 Tom Tromey <tom@tromey.com>
7606 * configure: Rebuild.
7607 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7609 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7612 * regformats/regdat.sh: Adjust script, following the addition
7613 of the new expedite_regs parameter to init_target_desc.
7615 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7618 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7619 set_gdbarch_significant_addr_bit.
7620 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7621 set_gdbarch_significant_addr_bit.
7622 * utils.c (address_significant): Update to sign extend addr.
7624 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7626 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7627 (xtensa_linux_init_abi): Limit tdep->num_regs by
7628 tdep->num_nopriv_regs.
7629 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7630 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7633 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7635 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7637 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7639 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7640 (I387_MXCSR_INIT_VAL): New constant.
7641 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7642 buffer if it was supplied by the inferior.
7643 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7644 (i387_xsave_get_clear_bv): New function.
7645 (i387_supply_xsave): Only read x87 control registers from the
7646 xsave buffer if the feature is enabled, and the state will have
7647 been written, otherwise, provide a suitable default.
7648 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7649 including x87 control registers. Update control registers if they
7650 have changed from the default value, and mark features as enabled
7652 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7654 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7656 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7658 2018-05-07 Tom Tromey <tom@tromey.com>
7660 * configure: Rebuild.
7661 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7663 2018-05-07 Tom Tromey <tom@tromey.com>
7666 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7667 bit. Use correct value for VDIV.
7669 2018-05-04 Tom Tromey <tom@tromey.com>
7671 * configure: Rebuild.
7672 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7674 2018-05-04 Tom Tromey <tom@tromey.com>
7676 * linux-record.c (record_linux_system_call) <case
7677 RECORD_SYS_RECVFROM>: Add "break".
7679 2018-05-04 Tom Tromey <tom@tromey.com>
7681 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7682 Add missing "break".
7683 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7684 Add missing "break".
7686 2018-05-04 Tom Tromey <tom@tromey.com>
7688 * rs6000-tdep.c (ppc_process_record_op4)
7689 (ppc_process_record_op63): Add fall-through comment.
7691 2018-05-04 Tom Tromey <tom@tromey.com>
7693 * i386-tdep.c (i386_process_record): Add fall-through comment.
7695 2018-05-04 Tom Tromey <tom@tromey.com>
7697 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7700 2018-05-04 Tom Tromey <tom@tromey.com>
7702 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7703 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7704 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7706 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7708 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7711 2018-05-04 Tom Tromey <tom@tromey.com>
7713 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7715 2018-05-04 Tom Tromey <tom@tromey.com>
7717 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7718 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7719 * symfile.c (section_is_mapped): Fix fall-through comment.
7720 * stabsread.c (define_symbol, read_member_functions): Fix
7721 fall-through comment.
7722 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7724 * remote.c (remote_wait_as): Fix fall-through comment.
7725 * p-exp.y (yylex): Fix fall-through comment.
7726 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7728 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7729 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7730 * jv-exp.y (yylex): Fix fall-through comment.
7731 * go-exp.y (lex_one_token): Fix fall-through comment.
7732 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7733 fall-through comment.
7734 * f-exp.y (yylex): Fix fall-through comment.
7735 * dwarf2read.c (process_die): Fix fall-through comments.
7736 * dbxread.c (process_one_symbol): Fix fall-through comment.
7737 * d-exp.y (lex_one_token): Fix fall-through comment.
7738 * cp-name-parser.y (yylex): Fix fall-through comment.
7739 * coffread.c (coff_symtab_read): Fix fall-through comment.
7740 * c-exp.y (lex_one_token): Fix fall-through comment.
7741 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7743 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7746 2018-05-04 Tom Tromey <tom@tromey.com>
7749 * NEWS: Mention gdb.execute change.
7750 * gdbcmd.h (execute_control_command): Don't declare.
7751 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7752 execute_control_commands, execute_control_commands_to_string.
7753 * cli/cli-script.h (execute_control_commands)
7754 (execute_control_commands_to_string): Declare.
7755 (execute_control_command): Add from_tty parameter.
7756 * cli/cli-script.c (execute_control_commands)
7757 (execute_control_commands_to_string): New functions.
7758 (execute_user_command): Use execute_control_commands.
7759 (execute_control_command_1): Add "from_tty" parameter. Update.
7760 (execute_control_command): Likewise.
7762 2018-05-04 Tom Tromey <tom@tromey.com>
7765 * NEWS: Mention that breakpoint commands are writable.
7766 * python/py-breakpoint.c (bppy_set_commands): New function.
7767 (breakpoint_object_getset) <"commands">: Use it.
7769 2018-05-04 Tom Tromey <tom@tromey.com>
7771 * tracepoint.c (actions_command): Update.
7772 * mi/mi-cmd-break.c (mi_command_line_array)
7773 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7774 (mi_read_next_line): Remove.
7775 (mi_cmd_break_commands): Update.
7776 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7778 * cli/cli-script.c (get_command_line): Update.
7779 (process_next_line): Use function_view. Constify.
7780 (recurse_read_control_structure, read_command_lines)
7781 (read_command_lines_1): Change argument types to function_view.
7782 (do_define_command, document_command): Update.
7783 * breakpoint.h (check_tracepoint_command): Don't declare.
7784 * breakpoint.c (check_tracepoint_command): Remove.
7785 (commands_command_1, create_tracepoint_from_upload): Update.
7787 2018-05-04 Tom Tromey <tom@tromey.com>
7790 * cli/cli-script.h (enum command_control_type) <define_control>:
7792 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7793 (build_command_line, execute_control_command_1)
7794 (process_next_line): Likewise.
7795 (do_define_command): New function, extracted from define_command.
7796 (define_command): Use it.
7798 2018-05-04 Tom Tromey <tom@tromey.com>
7800 * tracepoint.c (actions_command): Update.
7801 * cli/cli-script.h (read_command_lines): Update.
7802 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7803 (MAX_TMPBUF): Remove define.
7804 (define_command): Use string_printf.
7805 (document_command): Likewise.
7806 * breakpoint.c (commands_command_1): Update.
7808 2018-05-04 Tom Tromey <tom@tromey.com>
7810 * top.c (execute_command): Update.
7811 * cli/cli-script.h (print_command_lines): Now varargs.
7812 * cli/cli-script.c (print_command_lines): Now varargs.
7813 (execute_control_command_1) <case while_control, case if_control>:
7816 2018-05-04 Tom Tromey <tom@tromey.com>
7818 * tracepoint.c (all_tracepoint_actions): Rename from
7819 all_tracepoint_actions_and_cleanup. Change return type.
7820 (actions_command, encode_actions_1, encode_actions)
7821 (trace_dump_actions, tdump_command): Update.
7822 * remote.c (remote_download_command_source): Update.
7823 * python/python.c (gdbpy_eval_from_control_command)
7824 (python_command, python_interactive_command): Update.
7825 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7826 * guile/guile.c (guile_command)
7827 (gdbscm_eval_from_control_command, guile_command): Update.
7828 * compile/compile.c (compile_code_command)
7829 (compile_print_command, compile_to_object): Update.
7830 * cli/cli-script.h (struct command_lines_deleter): New.
7831 (counted_command_line): New typedef.
7832 (struct command_line): Add constructor, destructor.
7833 <body_list>: Remove.
7834 <body_list_0, body_list_1>: New members.
7835 (command_line_up): Remove typedef.
7836 (read_command_lines, read_command_lines_1, get_command_line):
7838 (copy_command_lines): Don't declare.
7839 * cli/cli-script.c (build_command_line): Use "new".
7840 (get_command_line): Return counted_command_line.
7841 (print_command_lines, execute_user_command)
7842 (execute_control_command_1, while_command, if_command): Update.
7843 (realloc_body_list): Remove.
7844 (process_next_line, recurse_read_control_structure): Update.
7845 (read_command_lines, read_command_lines_1): Return counted_command_line.
7846 (free_command_lines): Use "delete".
7847 (copy_command_lines): Remove.
7848 (define_command, document_command, show_user_1): Update.
7849 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7850 a counted_command_line.
7851 * breakpoint.h (counted_command_line): Remove typedef.
7852 (breakpoint_set_commands): Update.
7853 * breakpoint.c (check_no_tracepoint_commands)
7854 (validate_commands_for_breakpoint): Update.
7855 (breakpoint_set_commands): Change commands to be a
7856 counted_command_line.
7857 (commands_command_1, update_dprintf_command_list)
7858 (create_tracepoint_from_upload): Update.
7860 2018-05-04 Tom Tromey <tom@tromey.com>
7862 * cli/cli-decode.h (cmd_list_element): New constructor.
7863 (~cmd_list_element): New destructor.
7864 (struct cmd_list_element): Add initializers.
7865 * cli/cli-decode.c (do_add_cmd): Use "new".
7866 (delete_cmd): Use "delete".
7868 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7869 Pedro Alves <palves@redhat.com>
7871 PR breakpoints/19806 and support for PR external/20207.
7872 * NEWS: Mention Aarch64 watchpoint improvements.
7873 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7874 watchpoints and PR external/20207 watchpoints.
7875 * nat/aarch64-linux-hw-point.c
7876 (kernel_supports_any_contiguous_range): New.
7877 (aarch64_watchpoint_offset): New.
7878 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7879 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7880 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7881 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7882 next_addr_orig_p. Support PR external/20207 watchpoints.
7883 (aarch64_downgrade_regs): New.
7884 (aarch64_dr_state_insert_one_point): New parameters offset and
7886 (aarch64_dr_state_remove_one_point): Likewise.
7887 (aarch64_handle_breakpoint): Update caller.
7888 (aarch64_handle_aligned_watchpoint): Likewise.
7889 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7891 (aarch64_linux_set_debug_regs): Remove const from state. Call
7892 aarch64_downgrade_regs.
7893 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7894 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7895 (DR_CONTROL_MASK): ... this.
7896 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7897 (unsigned int aarch64_watchpoint_offset): New prototype.
7898 (aarch64_linux_set_debug_regs): Remove const from state.
7899 * utils.c (align_up, align_down): Move to ...
7900 * common/common-utils.c (align_up, align_down): ... here.
7901 * utils.h (align_up, align_down): Move to ...
7902 * common/common-utils.h (align_up, align_down): ... here.
7904 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7906 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7907 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7908 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7909 Re-implement to match the ABI as summarized in GCC's
7910 gcc/config/sparc/sparc.c. All callers updated.
7911 (sparc32_store_arguments): Remove assertion.
7913 2018-05-04 Tom Tromey <tom@tromey.com>
7915 * printcmd.c: Don't include tui.h.
7916 (decode_format): Use skip_spaces.
7918 2018-05-04 Tom Tromey <tom@tromey.com>
7921 * printcmd.c (last_count): New global.
7922 (x_command): Use saved count when repeating.
7924 2018-05-04 Tom Tromey <tom@tromey.com>
7926 * nto-procfs.c (do_closedir_cleanup): Remove.
7927 (procfs_pidlist): Use gdb_dir_up.
7928 * procfs.c (do_closedir_cleanup): Remove.
7929 (proc_update_threads): Use gdb_dir_up.
7930 * common/filestuff.h (struct gdb_dir_deleter): New.
7931 (gdb_dir_up): New typedef.
7933 2018-05-04 Tom Tromey <tom@tromey.com>
7935 * ada-lang.c (print_mention_exception): Use std::string.
7937 2018-05-04 Tom Tromey <tom@tromey.com>
7939 * ada-lang.c (create_excep_cond_exprs): Update.
7940 (ada_exception_catchpoint_cond_string): Use std::string.
7942 2018-05-04 Tom Tromey <tom@tromey.com>
7944 * ada-lang.c (xget_renaming_scope): Return std::string.
7945 (old_renaming_is_invisible): Update.
7947 2018-05-04 Tom Tromey <tom@tromey.com>
7949 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7950 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7952 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7954 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7956 2018-05-04 Tom Tromey <tom@tromey.com>
7958 * remote.c (remote_query_supported_append): Change type.
7959 (remote_check_symbols): Update.
7961 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7964 * configure.ac: Prepend libpython.
7965 * python/python-config.py: Likewise.
7966 * configure: Regenerate.
7968 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7970 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7972 2018-05-03 Pedro Alves <palves@redhat.com>
7975 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7976 override. Write 'true' instead of '1'.
7977 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7980 2018-05-02 Pedro Alves <palves@redhat.com>
7982 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7983 add_inf_child_target.
7984 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7985 add_inf_child_target.
7986 * aix-thread.c (aix_thread_target_info): New.
7987 (aix_thread_target) <shortname, longname, doc>: Delete.
7989 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7990 add_inf_child_target.
7991 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7992 add_inf_child_target.
7993 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7994 add_inf_child_target.
7995 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7996 add_inf_child_target.
7997 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7998 add_inf_child_target.
7999 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8000 add_inf_child_target.
8001 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8002 add_inf_child_target.
8003 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8004 add_inf_child_target.
8005 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8006 add_inf_child_target.
8007 * bfd-target.c (target_bfd_target_info): New.
8008 (target_bfd) <shortname, longname, doc>: Delete.
8010 * bsd-kvm.c (bsd_kvm_target_info): New.
8011 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8013 (bsd_kvm_target::open): Rename to ...
8014 (bsd_kvm_target_open): ... this. Adjust.
8015 * bsd-uthread.c (bsd_uthread_target_info): New.
8016 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8018 * corefile.c (core_file_command): Adjust.
8019 * corelow.c (core_target_info): New.
8020 (core_target) <shortname, longname, doc>: Delete.
8022 (core_target::open): Rename to ...
8023 (core_target_open): ... this. Adjust.
8024 * ctf.c (ctf_target_info): New.
8025 (ctf_target) <shortname, longname, doc>: Delete.
8027 (ctf_target::open): Rename to ...
8028 (ctf_target_open): ... this.
8029 (_initialize_ctf): Adjust.
8030 * exec.c (exec_target_info): New.
8031 (exec_target) <shortname, longname, doc>: Delete.
8033 (exec_target::open): Rename to ...
8034 (exec_target_open): ... this.
8035 * gdbcore.h (core_target_open): Declare.
8036 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8037 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8038 add_inf_child_target.
8039 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8040 add_inf_child_target.
8041 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8042 add_inf_child_target.
8043 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8044 add_inf_child_target.
8045 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8046 add_inf_child_target.
8047 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8048 add_inf_child_target.
8049 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8050 add_inf_child_target.
8051 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8052 add_inf_child_target.
8053 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8054 add_inf_child_target.
8055 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8056 add_inf_child_target.
8057 * inf-child.c (inf_child_target_info): New.
8058 (inf_child_target::info): New.
8059 (inf_child_open_target): Remove 'target' parameter. Use
8060 get_native_target instead.
8061 (inf_child_target::open): Delete.
8062 (add_inf_child_target): New.
8063 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8066 (add_inf_child_target): Declare.
8067 (inf_child_open_target): Declare.
8068 * linux-thread-db.c (thread_db_target_info): New.
8069 (thread_db_target) <shortname, longname, doc>: Delete.
8071 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8072 add_inf_child_target.
8073 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8074 add_inf_child_target.
8075 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8076 add_inf_child_target.
8077 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8078 add_inf_child_target.
8079 * make-target-delegates (print_class): Adjust.
8080 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8081 add_inf_child_target.
8082 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8083 add_inf_child_target.
8084 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8085 add_inf_child_target.
8086 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8087 add_inf_child_target.
8088 * nto-procfs.c (nto_native_target_info): New.
8089 (nto_procfs_target_native) <shortname, longname, doc>:
8092 (nto_procfs_target_info): New.
8093 (nto_procfs_target_procfs) <shortname, longname, doc>:
8096 (init_procfs_targets): Adjust.
8097 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8098 add_inf_child_target.
8099 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8100 add_inf_child_target.
8101 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8102 add_inf_child_target.
8103 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8104 add_inf_child_target.
8105 * ravenscar-thread.c (ravenscar_target_info): New.
8106 (ravenscar_thread_target) <shortname, longname, doc>:
8109 * record-btrace.c (record_btrace_target_info):
8110 (record_btrace_target) <shortname, longname, doc>: Delete.
8112 (record_btrace_target::open): Rename to ...
8113 (record_btrace_target_open): ... this. Adjust.
8114 * record-full.c (record_longname, record_doc): New.
8115 (record_full_base_target) <shortname, longname, doc>: Delete.
8117 (record_full_target_info): New.
8118 (record_full_target): <shortname>: Delete.
8120 (record_full_core_open_1, record_full_open_1): Update comments.
8121 (record_full_base_target::open): Rename to ...
8122 (record_full_open): ... this.
8123 (cmd_record_full_restore): Update.
8124 (_initialize_record_full): Update.
8125 * remote-sim.c (remote_sim_target_info): New.
8126 (gdbsim_target) <shortname, longname, doc>: Delete.
8128 (gdbsim_target::open): Rename to ...
8129 (gdbsim_target_open): ... this.
8130 (_initialize_remote_sim): Adjust.
8131 * remote.c (remote_doc): New.
8132 (remote_target_info): New.
8133 (remote_target) <shortname, longname, doc>: Delete.
8135 (extended_remote_target_info): New.
8136 (extended_remote_target) <shortname, longname, doc>: Delete.
8138 (remote_target::open_1): Make static. Adjust.
8139 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8140 * s390-linux-nat.c (_initialize_s390_nat): Use
8141 add_inf_child_target.
8142 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8143 add_inf_child_target.
8144 * sol-thread.c (thread_db_target_info): New.
8145 (sol_thread_target) <shortname, longname, doc>: Delete.
8147 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8148 add_inf_child_target.
8149 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8150 add_inf_child_target.
8151 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8152 add_inf_child_target.
8153 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8154 add_inf_child_target.
8155 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8156 add_inf_child_target.
8157 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8158 add_inf_child_target.
8159 * spu-linux-nat.c (_initialize_spu_nat): Use
8160 add_inf_child_target.
8161 * spu-multiarch.c (spu_multiarch_target_info): New.
8162 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8164 * target-delegates.c: Regenerate.
8165 * target.c: Include <unordered_map>.
8166 (target_ops_p): Delete.
8167 (DEF_VEC_P(target_ops_p)): Delete.
8168 (target_factories): New.
8169 (test_target_info): New.
8170 (test_target_ops::info): New.
8171 (open_target): Adjust to use target_factories.
8172 (add_target_with_completer): Rename to ...
8173 (add_target): ... this. Change prototype. Register target_info
8174 and open callback in target_factories. Register target_info in
8175 command context instead of target_ops.
8176 (add_target): Delete old implementation.
8177 (add_deprecated_target_alias): Change prototype. Adjust.
8178 (the_native_target): New.
8179 (set_native_target, get_native_target): New.
8180 (find_default_run_target): Use the_native_target.
8181 (find_attach_target, find_run_target): Simplify.
8182 (target_ops::open): Delete.
8183 (dummy_target_info): New.
8184 (dummy_target::shortname, dummy_target::longname)
8185 (dummy_target::doc): Delete.
8186 (dummy_target::info): New.
8187 (debug_target::shortname, debug_target::longname)
8188 (debug_target::doc): Delete.
8189 (debug_target::info): New.
8190 * target.h (struct target_info): New.
8191 (target_ops::~target_ops): Add comment.
8192 (target_ops::info): New.
8193 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8194 longer virtual. Implement in terms of target_info.
8195 (set_native_target, get_native_target): Declare.
8196 (target_open_ftype): New.
8197 (add_target, add_target_with_completer)
8198 (add_deprecated_target_alias): Change prototype.
8199 (test_target) <shortname, longname, doc>: Delete.
8201 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8202 add_inf_child_target.
8203 * tracefile-tfile.c (tfile_target_info): New.
8204 (tfile_target) <shortname, longname, doc>: Delete.
8206 (tfile_target::open): Rename to ...
8207 (tfile_target_open): ... this.
8208 (_initialize_tracefile_tfile): Adjust.
8209 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8210 add_inf_child_target.
8211 * windows-nat.c (_initialize_windows_nat): Use
8212 add_inf_child_target.
8213 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8214 add_inf_child_target.
8216 2018-05-02 Pedro Alves <palves@redhat.com>
8218 * linux-nat.h (linux_nat_target) <low_new_thread,
8219 low_delete_thread, low_new_fork, low_forget_process,
8220 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8221 New virtual methods.
8222 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8223 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8224 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8225 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8226 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8228 * linux-fork.c (delete_fork): Adjust to call low method.
8229 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8230 (linux_nat_new_fork, linux_nat_forget_process_hook)
8231 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8232 (linux_nat_status_is_event):
8233 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8234 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8236 (sigtrap_is_event): Rename to ...
8237 (linux_nat_target::low_status_is_event): ... this.
8238 (linux_nat_set_status_is_event): Delete.
8239 (save_stop_reason, linux_nat_wait_1)
8240 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8242 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8243 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8244 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8245 (linux_nat_set_prepare_to_resume): Delete.
8246 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8247 low virtual methods.
8248 * amd64-linux-nat.c: Likewise.
8249 * arm-linux-nat.c: Likewise.
8250 * i386-linux-nat.c: Likewise.
8251 * ia64-linux-nat.c: Likewise.
8252 * mips-linux-nat.c: Likewise.
8253 * ppc-linux-nat.c: Likewise.
8254 * s390-linux-nat.c: Likewise.
8255 * sparc64-linux-nat.c: Likewise.
8256 * x86-linux-nat.c: Likewise.
8257 * x86-linux-nat.h: Include "nat/x86-linux.h".
8258 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8259 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8262 2018-05-02 Pedro Alves <palves@redhat.com>
8264 * target.h (target_ops)
8265 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8266 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8267 stopped_by_watchpoint, have_continuable_watchpoint,
8268 stopped_data_address, watchpoint_addr_within_range,
8269 can_accel_watchpoint_condition, can_run, thread_alive,
8270 has_all_memory, has_memory, has_stack, has_registers,
8271 has_execution, can_async_p, is_async_p, supports_non_stop,
8272 always_non_stop_p, can_execute_reverse, supports_multi_process,
8273 supports_enable_disable_tracepoint,
8274 supports_disable_randomization, supports_string_tracing,
8275 supports_evaluation_of_breakpoint_conditions,
8276 can_run_breakpoint_commands, filesystem_is_local,
8277 can_download_tracepoint, get_trace_state_variable_value,
8278 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8279 record_is_replaying, record_will_replay,
8280 augmented_libraries_svr4_read>: Adjust to return bool.
8281 * aarch64-linux-nat.c: All implementations adjusted.
8282 * aix-thread.c: All implementations adjusted.
8283 * arm-linux-nat.c: All implementations adjusted.
8284 * breakpoint.c: All implementations adjusted.
8285 * bsd-kvm.c: All implementations adjusted.
8286 * bsd-uthread.c: All implementations adjusted.
8287 * corelow.c: All implementations adjusted.
8288 * ctf.c: All implementations adjusted.
8289 * darwin-nat.c: All implementations adjusted.
8290 * darwin-nat.h: All implementations adjusted.
8291 * exec.c: All implementations adjusted.
8292 * fbsd-nat.c: All implementations adjusted.
8293 * fbsd-nat.h: All implementations adjusted.
8294 * gnu-nat.c: All implementations adjusted.
8295 * gnu-nat.h: All implementations adjusted.
8296 * go32-nat.c: All implementations adjusted.
8297 * ia64-linux-nat.c: All implementations adjusted.
8298 * inf-child.c: All implementations adjusted.
8299 * inf-child.h: All implementations adjusted.
8300 * inf-ptrace.c: All implementations adjusted.
8301 * inf-ptrace.h: All implementations adjusted.
8302 * linux-nat.c: All implementations adjusted.
8303 * linux-nat.h: All implementations adjusted.
8304 * mips-linux-nat.c: All implementations adjusted.
8305 * nto-procfs.c: All implementations adjusted.
8306 * ppc-linux-nat.c: All implementations adjusted.
8307 * procfs.c: All implementations adjusted.
8308 * ravenscar-thread.c: All implementations adjusted.
8309 * record-btrace.c: All implementations adjusted.
8310 * record-full.c: All implementations adjusted.
8311 * remote-sim.c: All implementations adjusted.
8312 * remote.c: All implementations adjusted.
8313 * s390-linux-nat.c: All implementations adjusted.
8314 * sol-thread.c: All implementations adjusted.
8315 * spu-multiarch.c: All implementations adjusted.
8316 * target-delegates.c: All implementations adjusted.
8317 * target.c: All implementations adjusted.
8318 * target.h: All implementations adjusted.
8319 * tracefile-tfile.c: All implementations adjusted.
8320 * tracefile.c: All implementations adjusted.
8321 * tracefile.h: All implementations adjusted.
8322 * windows-nat.c: All implementations adjusted.
8323 * x86-linux-nat.h: All implementations adjusted.
8324 * x86-nat.h: All implementations adjusted.
8326 2018-05-02 Pedro Alves <palves@redhat.com>
8328 * make-target-delegates (scan_target_h): Don't trim lines here.
8329 Replace sequences of tabs and/or whitespace with a single
8331 (top level, parsing methods): Trim each line before processing it
8334 2018-05-02 Pedro Alves <palves@redhat.com>
8335 John Baldwin <jhb@freebsd.org>
8337 * target.h (enum strata) <debug_stratum>: New.
8338 (struct target_ops) <all delegation methods>: Replace by C++
8339 virtual methods, and drop "to_" prefix. All references updated
8341 <to_shortname, to_longname, to_doc, to_data,
8342 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8343 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8344 virtual methods. All references updated throughout.
8345 <can_attach, supports_terminal_ours, can_create_inferior,
8346 get_thread_control_capabilities, attach_no_wait>: New
8348 <insert_breakpoint, remove_breakpoint>: Now
8349 TARGET_DEFAULT_NORETURN methods.
8350 <info_proc>: Now returns bool.
8352 (OPS_MAGIC): Delete.
8353 (current_target): Delete. All references replaced by references
8355 (target_stack): ... this. New.
8356 (target_shortname, target_longname): Adjust.
8357 (target_can_run): Now a function declaration.
8358 (default_child_has_all_memory, default_child_has_memory)
8359 (default_child_has_stack, default_child_has_registers)
8360 (default_child_has_execution): Remove target_ops parameter.
8361 (complete_target_initialization): Delete.
8362 (memory_breakpoint_target): New template class.
8363 (test_target_ops): Refactor as a C++ class with virtual methods.
8364 * make-target-delegates (NAME_PART): Tighten.
8365 (POINTER_PART, CP_SYMBOL): New.
8366 (SIMPLE_RETURN_PART): Reimplement.
8367 (VEC_RETURN_PART): Expect less.
8368 (RETURN_PART, VIRTUAL_PART): New.
8369 (METHOD): Adjust to C++ virtual methods.
8370 (scan_target_h): Remove reference to C99.
8371 (dname): Output "target_ops::" prefix.
8372 (write_function_header): Adjust to output a C++ class method.
8373 (write_declaration): New.
8374 (write_delegator): Adjust to output a C++ class method.
8375 (tdname): Output "dummy_target::" prefix.
8376 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8378 (tdefault_names, debug_names): Delete.
8379 (return_types, tdefaults, styles, argtypes_array): New.
8380 (top level): All methods are delegators.
8382 (top level): Print dummy_target and debug_target classes.
8383 * target-delegates.c: Regenerate.
8384 * target-debug.h (target_debug_print_enum_info_proc_what)
8385 (target_debug_print_thread_control_capabilities)
8386 (target_debug_print_thread_info_p): New.
8387 * target.c (dummy_target): Delete.
8388 (the_dummy_target, the_debug_target): New.
8389 (target_stack): Now extern.
8390 (set_targetdebug): Push/unpush debug target.
8391 (default_child_has_all_memory, default_child_has_memory)
8392 (default_child_has_stack, default_child_has_registers)
8393 (default_child_has_execution): Remove target_ops parameter.
8394 (complete_target_initialization): Delete.
8395 (add_target_with_completer): No longer call
8396 complete_target_initialization.
8397 (target_supports_terminal_ours): Use regular delegation.
8398 (update_current_target): Delete.
8399 (push_target): No longer check magic number. Don't call
8400 update_current_target.
8401 (unpush_target): Don't call update_current_target.
8402 (target_is_pushed): No longer check magic number.
8403 (target_require_runnable): Skip for all stratums over
8405 (target_ops::info_proc): New.
8406 (target_info_proc): Use find_target_at and
8407 find_default_run_target.
8408 (target_supports_disable_randomization): Use regular delegation.
8409 (target_get_osdata): Use find_target_at.
8410 (target_ops::open, target_ops::close, target_ops::can_attach)
8411 (target_ops::attach, target_ops::can_create_inferior)
8412 (target_ops::create_inferior, target_ops::can_run)
8413 (target_can_run): New.
8414 (default_fileio_target): Use regular delegation.
8415 (target_ops::fileio_open, target_ops::fileio_pwrite)
8416 (target_ops::fileio_pread, target_ops::fileio_fstat)
8417 (target_ops::fileio_close, target_ops::fileio_unlink)
8418 (target_ops::fileio_readlink): New.
8419 (target_fileio_open_1, target_fileio_unlink)
8420 (target_fileio_readlink): Always call the target method. Handle
8422 (return_zero, return_zero_has_execution): Delete.
8423 (init_dummy_target): Delete.
8424 (dummy_target::dummy_target, dummy_target::shortname)
8425 (dummy_target::longname, dummy_target::doc)
8426 (debug_target::debug_target, debug_target::shortname)
8427 (debug_target::longname, debug_target::doc): New.
8428 (target_supports_delete_record): Use regular delegation.
8429 (setup_target_debug): Delete.
8430 (maintenance_print_target_stack): Skip debug_stratum.
8431 (initialize_targets): Instantiate the_dummy_target and
8433 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8435 (target_auxv_search, fprint_target_auxv): Adjust.
8436 (info_auxv_command): Adjust to use target_stack.
8437 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8438 * exceptions.c (print_flush): Handle a NULL target_stack.
8439 * regcache.c (target_ops_no_register): Refactor as class with
8442 * exec.c (exec_target): New class.
8443 (exec_ops): Now an exec_target.
8444 (exec_open, exec_close_1, exec_get_section_table)
8445 (exec_xfer_partial, exec_files_info, exec_has_memory)
8446 (exec_make_note_section): Refactor as exec_target methods.
8447 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8449 (exec_target::find_memory_regions): New.
8450 (_initialize_exec): Don't call init_exec_ops.
8451 * gdbcore.h (exec_file_clear): Delete.
8453 * corefile.c (core_target): Delete.
8454 (core_file_command): Adjust.
8455 * corelow.c (core_target): New class.
8456 (the_core_target): New.
8457 (core_close): Remove target_ops parameter.
8458 (core_close_cleanup): Adjust.
8459 (core_target::close): New.
8460 (core_open, core_detach, get_core_registers, core_files_info)
8461 (core_xfer_partial, core_thread_alive, core_read_description)
8462 (core_pid_to_str, core_thread_name, core_has_memory)
8463 (core_has_stack, core_has_registers, core_info_proc): Rework as
8464 core_target methods.
8465 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8466 (_initialize_corelow): Initialize the_core_target.
8467 * gdbcore.h (core_target): Delete.
8468 (the_core_target): New.
8470 * ctf.c: (ctf_target): New class.
8471 (ctf_ops): Now a ctf_target.
8472 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8473 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8474 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8476 (init_ctf_ops): Delete.
8477 (_initialize_ctf): Don't call it.
8478 * tracefile-tfile.c (tfile_target): New class.
8479 (tfile_ops): Now a tfile_target.
8480 (tfile_open, tfile_close, tfile_files_info)
8481 (tfile_get_tracepoint_status, tfile_trace_find)
8482 (tfile_fetch_registers, tfile_xfer_partial)
8483 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8484 Refactor as tfile_target methods.
8485 (tfile_xfer_partial_features): Remove target_ops parameter.
8486 (init_tfile_ops): Delete.
8487 (_initialize_tracefile_tfile): Don't call it.
8488 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8489 (tracefile_has_stack, tracefile_has_registers)
8490 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8491 tracefile_target methods.
8492 (init_tracefile_ops): Delete.
8493 (tracefile_target::tracefile_target): New.
8494 * tracefile.h: Include "target.h".
8495 (tracefile_target): New class.
8496 (init_tracefile_ops): Delete.
8498 * spu-multiarch.c (spu_multiarch_target): New class.
8499 (spu_ops): Now a spu_multiarch_target.
8500 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8501 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8502 (spu_search_memory, spu_mourn_inferior): Refactor as
8503 spu_multiarch_target methods.
8504 (init_spu_ops): Delete.
8505 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8506 complete_target_initialization.
8508 * ravenscar-thread.c (ravenscar_thread_target): New class.
8509 (ravenscar_ops): Now a ravenscar_thread_target.
8510 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8511 (ravenscar_thread_alive, ravenscar_pid_to_str)
8512 (ravenscar_fetch_registers, ravenscar_store_registers)
8513 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8514 (ravenscar_stopped_by_hw_breakpoint)
8515 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8516 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8517 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8519 (init_ravenscar_thread_ops): Delete.
8520 (_initialize_ravenscar): Remove references to
8521 init_ravenscar_thread_ops and complete_target_initialization.
8523 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8524 (bsd_uthread_target): New class.
8525 (bsd_uthread_ops): Now a bsd_uthread_target.
8526 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8527 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8528 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8529 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8530 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8531 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8532 (bsd_uthread_target): Delete function.
8533 (_initialize_bsd_uthread): Remove reference to
8534 complete_target_initialization.
8536 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8537 (target_bfd): ... this new class.
8538 (target_bfd_xfer_partial, target_bfd_get_section_table)
8539 (target_bfd_close): Refactor as target_bfd methods.
8540 (target_bfd::~target_bfd): New.
8541 (target_bfd_reopen): Adjust.
8542 (target_bfd::close): New.
8544 * record-btrace.c (record_btrace_target): New class.
8545 (record_btrace_ops): Now a record_btrace_target.
8546 (record_btrace_open, record_btrace_stop_recording)
8547 (record_btrace_disconnect, record_btrace_close)
8548 (record_btrace_async, record_btrace_info)
8549 (record_btrace_insn_history, record_btrace_insn_history_range)
8550 (record_btrace_insn_history_from, record_btrace_call_history)
8551 (record_btrace_call_history_range)
8552 (record_btrace_call_history_from, record_btrace_record_method)
8553 (record_btrace_is_replaying, record_btrace_will_replay)
8554 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8555 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8556 (record_btrace_store_registers, record_btrace_prepare_to_store)
8557 (record_btrace_to_get_unwinder)
8558 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8559 (record_btrace_commit_resume, record_btrace_wait)
8560 (record_btrace_stop, record_btrace_can_execute_reverse)
8561 (record_btrace_stopped_by_sw_breakpoint)
8562 (record_btrace_supports_stopped_by_sw_breakpoint)
8563 (record_btrace_stopped_by_hw_breakpoint)
8564 (record_btrace_supports_stopped_by_hw_breakpoint)
8565 (record_btrace_update_thread_list, record_btrace_thread_alive)
8566 (record_btrace_goto_begin, record_btrace_goto_end)
8567 (record_btrace_goto, record_btrace_stop_replaying_all)
8568 (record_btrace_execution_direction)
8569 (record_btrace_prepare_to_generate_core)
8570 (record_btrace_done_generating_core): Refactor as
8571 record_btrace_target methods.
8572 (init_record_btrace_ops): Delete.
8573 (_initialize_record_btrace): Remove reference to
8574 init_record_btrace_ops.
8575 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8576 the execution_direction global.
8577 (record_full_base_target, record_full_target)
8578 (record_full_core_target): New classes.
8579 (record_full_ops): Now a record_full_target.
8580 (record_full_core_ops): Now a record_full_core_target.
8581 (record_full_target::detach, record_full_target::disconnect)
8582 (record_full_core_target::disconnect)
8583 (record_full_target::mourn_inferior, record_full_target::kill):
8585 (record_full_open, record_full_close, record_full_async): Refactor
8586 as methods of the record_full_base_target class.
8587 (record_full_resume, record_full_commit_resume): Refactor
8588 as methods of the record_full_target class.
8589 (record_full_wait, record_full_stopped_by_watchpoint)
8590 (record_full_stopped_data_address)
8591 (record_full_stopped_by_sw_breakpoint)
8592 (record_full_supports_stopped_by_sw_breakpoint)
8593 (record_full_stopped_by_hw_breakpoint)
8594 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8595 methods of the record_full_base_target class.
8596 (record_full_store_registers, record_full_xfer_partial)
8597 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8598 Refactor as methods of the record_full_target class.
8599 (record_full_can_execute_reverse, record_full_get_bookmark)
8600 (record_full_goto_bookmark, record_full_execution_direction)
8601 (record_full_record_method, record_full_info, record_full_delete)
8602 (record_full_is_replaying, record_full_will_replay)
8603 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8604 (record_full_stop_replaying): Refactor as methods of the
8605 record_full_base_target class.
8606 (record_full_core_resume, record_full_core_kill)
8607 (record_full_core_fetch_registers)
8608 (record_full_core_prepare_to_store)
8609 (record_full_core_store_registers, record_full_core_xfer_partial)
8610 (record_full_core_insert_breakpoint)
8611 (record_full_core_remove_breakpoint)
8612 (record_full_core_has_execution): Refactor
8613 as methods of the record_full_core_target class.
8614 (record_full_base_target::supports_delete_record): New.
8615 (init_record_full_ops): Delete.
8616 (init_record_full_core_ops): Delete.
8617 (record_full_save): Refactor as method of the
8618 record_full_base_target class.
8619 (_initialize_record_full): Remove references to
8620 init_record_full_ops and init_record_full_core_ops.
8622 * remote.c (remote_target, extended_remote_target): New classes.
8623 (remote_ops): Now a remote_target.
8624 (extended_remote_ops): Now an extended_remote_target.
8625 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8626 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8627 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8628 (remote_pass_signals, remote_set_syscall_catchpoint)
8629 (remote_program_signals, )
8630 (remote_thread_always_alive): Remove target_ops parameter.
8631 (remote_thread_alive, remote_thread_name)
8632 (remote_update_thread_list, remote_threads_extra_info)
8633 (remote_static_tracepoint_marker_at)
8634 (remote_static_tracepoint_markers_by_strid)
8635 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8636 (remote_open): Refactor as methods of remote_target.
8637 (extended_remote_open, extended_remote_detach)
8638 (extended_remote_attach, extended_remote_post_attach):
8639 (extended_remote_supports_disable_randomization)
8640 (extended_remote_create_inferior): : Refactor as method of
8641 extended_remote_target.
8642 (remote_set_permissions, remote_open_1, remote_detach)
8643 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8644 (remote_resume, remote_commit_resume, remote_stop)
8645 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8646 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8647 (remote_prepare_to_store, remote_store_registers)
8648 (remote_flash_erase, remote_flash_done, remote_files_info)
8649 (remote_kill, remote_mourn, remote_insert_breakpoint)
8650 (remote_remove_breakpoint, remote_insert_watchpoint)
8651 (remote_watchpoint_addr_within_range)
8652 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8653 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8654 (remote_supports_stopped_by_sw_breakpoint)
8655 (remote_stopped_by_hw_breakpoint)
8656 (remote_supports_stopped_by_hw_breakpoint)
8657 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8658 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8659 (remote_verify_memory): Refactor as methods of remote_target.
8660 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8662 (remote_xfer_partial, remote_get_memory_xfer_limit)
8663 (remote_search_memory, remote_rcmd, remote_memory_map)
8664 (remote_pid_to_str, remote_get_thread_local_address)
8665 (remote_get_tib_address, remote_read_description): Refactor as
8666 methods of remote_target.
8667 (remote_target::fileio_open, remote_target::fileio_pwrite)
8668 (remote_target::fileio_pread, remote_target::fileio_close): New.
8669 (remote_hostio_readlink, remote_hostio_fstat)
8670 (remote_filesystem_is_local, remote_can_execute_reverse)
8671 (remote_supports_non_stop, remote_supports_disable_randomization)
8672 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8673 (remote_supports_enable_disable_tracepoint)
8674 (remote_supports_string_tracing)
8675 (remote_can_run_breakpoint_commands, remote_trace_init)
8676 (remote_download_tracepoint, remote_can_download_tracepoint)
8677 (remote_download_trace_state_variable, remote_enable_tracepoint)
8678 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8679 (remote_trace_start, remote_get_trace_status)
8680 (remote_get_tracepoint_status, remote_trace_stop)
8681 (remote_trace_find, remote_get_trace_state_variable_value)
8682 (remote_save_trace_data, remote_get_raw_trace_data)
8683 (remote_set_disconnected_tracing, remote_core_of_thread)
8684 (remote_set_circular_trace_buffer, remote_traceframe_info)
8685 (remote_get_min_fast_tracepoint_insn_len)
8686 (remote_set_trace_buffer_size, remote_set_trace_notes)
8687 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8688 (remote_disable_btrace, remote_teardown_btrace)
8689 (remote_read_btrace, remote_btrace_conf)
8690 (remote_augmented_libraries_svr4_read, remote_load)
8691 (remote_pid_to_exec_file, remote_can_do_single_step)
8692 (remote_execution_direction, remote_thread_handle_to_thread_info):
8693 Refactor as methods of remote_target.
8694 (init_remote_ops, init_extended_remote_ops): Delete.
8695 (remote_can_async_p, remote_is_async_p, remote_async)
8696 (remote_thread_events, remote_upload_tracepoints)
8697 (remote_upload_trace_state_variables): Refactor as methods of
8699 (_initialize_remote): Remove references to init_remote_ops and
8700 init_extended_remote_ops.
8702 * remote-sim.c (gdbsim_target): New class.
8703 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8704 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8705 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8706 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8707 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8708 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8709 Refactor as methods of gdbsim_target.
8710 (gdbsim_ops): Now a gdbsim_target.
8711 (init_gdbsim_ops): Delete.
8712 (gdbsim_cntrl_c): Adjust.
8713 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8715 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8716 (the_amd64_linux_nat_target): New.
8717 (amd64_linux_fetch_inferior_registers)
8718 (amd64_linux_store_inferior_registers): Refactor as methods of
8719 amd64_linux_nat_target.
8720 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8721 * i386-linux-nat.c: Don't include "linux-nat.h".
8722 (i386_linux_nat_target): New class.
8723 (the_i386_linux_nat_target): New.
8724 (i386_linux_fetch_inferior_registers)
8725 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8726 as methods of i386_linux_nat_target.
8727 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8728 * inf-child.c (inf_child_ops): Delete.
8729 (inf_child_fetch_inferior_registers)
8730 (inf_child_store_inferior_registers): Delete.
8731 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8732 methods of inf_child_target.
8733 (inf_child_target::supports_terminal_ours)
8734 (inf_child_target::terminal_init)
8735 (inf_child_target::terminal_inferior)
8736 (inf_child_target::terminal_ours_for_output)
8737 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8738 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8740 (inf_child_open, inf_child_disconnect, inf_child_close)
8741 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8742 (inf_child_post_startup_inferior, inf_child_can_run)
8743 (inf_child_pid_to_exec_file): Refactor as methods of
8745 (inf_child_follow_fork): Delete.
8746 (inf_child_target::can_create_inferior)
8747 (inf_child_target::can_attach): New.
8748 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8749 (inf_child_target::has_stack, inf_child_target::has_registers)
8750 (inf_child_target::has_execution): New.
8751 (inf_child_fileio_open, inf_child_fileio_pwrite)
8752 (inf_child_fileio_pread, inf_child_fileio_fstat)
8753 (inf_child_fileio_close, inf_child_fileio_unlink)
8754 (inf_child_fileio_readlink, inf_child_use_agent)
8755 (inf_child_can_use_agent): Refactor as methods of
8757 (return_zero, inf_child_target): Delete.
8758 (inf_child_target::inf_child_target): New.
8759 * inf-child.h: Include "target.h".
8760 (inf_child_target): Delete function prototype.
8761 (inf_child_target): New class.
8762 (inf_child_open_target, inf_child_mourn_inferior)
8763 (inf_child_maybe_unpush_target): Delete.
8764 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8765 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8766 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8767 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8768 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8769 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8770 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8771 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8772 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8773 methods of inf_ptrace_target.
8774 (inf_ptrace_target): Delete function.
8775 * inf-ptrace.h: Include "inf-child.h".
8776 (inf_ptrace_target): Delete function declaration.
8777 (inf_ptrace_target): New class.
8778 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8779 * linux-nat.c (linux_target): New.
8780 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8781 (linux_nat_target::~linux_nat_target): New.
8782 (linux_child_post_attach, linux_child_post_startup_inferior)
8783 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8784 (linux_child_remove_fork_catchpoint)
8785 (linux_child_insert_vfork_catchpoint)
8786 (linux_child_remove_vfork_catchpoint)
8787 (linux_child_insert_exec_catchpoint)
8788 (linux_child_remove_exec_catchpoint)
8789 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8790 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8791 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8792 (linux_nat_stopped_data_address)
8793 (linux_nat_stopped_by_sw_breakpoint)
8794 (linux_nat_supports_stopped_by_sw_breakpoint)
8795 (linux_nat_stopped_by_hw_breakpoint)
8796 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8797 (linux_nat_kill, linux_nat_mourn_inferior)
8798 (linux_nat_xfer_partial, linux_nat_thread_alive)
8799 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8800 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8801 (linux_child_static_tracepoint_markers_by_strid)
8802 (linux_nat_is_async_p, linux_nat_can_async_p)
8803 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8804 (linux_nat_supports_multi_process)
8805 (linux_nat_supports_disable_randomization, linux_nat_async)
8806 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8807 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8808 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8809 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8810 methods of linux_nat_target.
8811 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8812 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8814 (check_stopped_by_watchpoint): Adjust.
8815 (linux_xfer_partial): Delete.
8816 (linux_target_install_ops, linux_target, linux_nat_add_target):
8818 (linux_nat_target::linux_nat_target): New.
8819 * linux-nat.h: Include "inf-ptrace.h".
8820 (linux_nat_target): New.
8821 (linux_target, linux_target_install_ops, linux_nat_add_target):
8822 Delete function declarations.
8823 (linux_target): Declare global.
8824 * linux-thread-db.c (thread_db_target): New.
8825 (thread_db_target::thread_db_target): New.
8826 (thread_db_ops): Delete.
8827 (the_thread_db_target): New.
8828 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8829 (thread_db_update_thread_list, thread_db_pid_to_str)
8830 (thread_db_extra_thread_info)
8831 (thread_db_thread_handle_to_thread_info)
8832 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8833 (thread_db_resume): Refactor as methods of thread_db_target.
8834 (init_thread_db_ops): Delete.
8835 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8836 * x86-linux-nat.c: Don't include "linux-nat.h".
8837 (super_post_startup_inferior): Delete.
8838 (x86_linux_nat_target::~x86_linux_nat_target): New.
8839 (x86_linux_child_post_startup_inferior)
8840 (x86_linux_read_description, x86_linux_enable_btrace)
8841 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8842 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8843 methods of x86_linux_nat_target.
8844 (x86_linux_create_target): Delete. Bits folded ...
8845 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8847 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8848 (x86_linux_nat_target): New class.
8849 (x86_linux_create_target): Delete.
8850 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8851 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8852 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8853 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8854 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8855 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8857 (x86_use_watchpoints): Delete.
8858 * x86-nat.h: Include "breakpoint.h" and "target.h".
8859 (x86_use_watchpoints): Delete.
8860 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8861 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8862 (x86_insert_watchpoint, x86_remove_watchpoint)
8863 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8864 (x86_stopped_by_hw_breakpoint): New declarations.
8865 (x86_nat_target): New template class.
8867 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8868 (the_ppc_linux_nat_target): New.
8869 (ppc_linux_fetch_inferior_registers)
8870 (ppc_linux_can_use_hw_breakpoint)
8871 (ppc_linux_region_ok_for_hw_watchpoint)
8872 (ppc_linux_ranged_break_num_registers)
8873 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8874 (ppc_linux_insert_mask_watchpoint)
8875 (ppc_linux_remove_mask_watchpoint)
8876 (ppc_linux_can_accel_watchpoint_condition)
8877 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8878 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8879 (ppc_linux_watchpoint_addr_within_range)
8880 (ppc_linux_masked_watch_num_registers)
8881 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8882 (ppc_linux_read_description): Refactor as methods of
8883 ppc_linux_nat_target.
8884 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8886 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8887 (procfs_target): New class.
8888 (the_procfs_target): New.
8889 (procfs_target): Delete function.
8890 (procfs_auxv_parse, procfs_attach, procfs_detach)
8891 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8892 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8893 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8894 (procfs_create_inferior, procfs_update_thread_list)
8895 (procfs_thread_alive, procfs_pid_to_str)
8896 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8897 (procfs_stopped_data_address, procfs_insert_watchpoint)
8898 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8899 (proc_find_memory_regions, procfs_info_proc)
8900 (procfs_make_note_section): Refactor as methods of procfs_target.
8901 (_initialize_procfs): Adjust.
8902 * sol-thread.c (sol_thread_target): New class.
8903 (sol_thread_ops): Now a sol_thread_target.
8904 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8905 (sol_thread_fetch_registers, sol_thread_store_registers)
8906 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8907 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8908 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8909 (init_sol_thread_ops): Delete.
8910 (_initialize_sol_thread): Adjust. Remove references to
8911 init_sol_thread_ops and complete_target_initialization.
8913 * windows-nat.c (windows_nat_target): New class.
8914 (windows_fetch_inferior_registers)
8915 (windows_store_inferior_registers, windows_resume, windows_wait)
8916 (windows_attach, windows_detach, windows_pid_to_exec_file)
8917 (windows_files_info, windows_create_inferior)
8918 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8919 (windows_close, windows_pid_to_str, windows_xfer_partial)
8920 (windows_get_tib_address, windows_get_ada_task_ptid)
8921 (windows_thread_name, windows_thread_alive): Refactor as
8922 windows_nat_target methods.
8923 (do_initial_windows_stuff): Adjust.
8924 (windows_target): Delete function.
8925 (_initialize_windows_nat): Adjust.
8927 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8928 (darwin_mourn_inferior, darwin_kill_inferior)
8929 (darwin_create_inferior, darwin_attach, darwin_detach)
8930 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8931 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8932 (darwin_supports_multi_process): Refactor as darwin_nat_target
8934 (darwin_resume_to, darwin_files_info): Delete.
8935 (_initialize_darwin_inferior): Rename to ...
8936 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8937 * darwin-nat.h: Include "inf-child.h".
8938 (darwin_nat_target): New class.
8939 (darwin_complete_target): Delete.
8940 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8941 (darwin_target): New.
8942 (i386_darwin_fetch_inferior_registers)
8943 (i386_darwin_store_inferior_registers): Refactor as methods of
8945 (darwin_complete_target): Delete, with ...
8946 (_initialize_i386_darwin_nat): ... bits factored out here.
8948 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8949 (the_alpha_linux_nat_target): New.
8950 (alpha_linux_register_u_offset): Refactor as
8951 alpha_linux_nat_target method.
8952 (_initialize_alpha_linux_nat): Adjust.
8953 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8954 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8955 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8956 methods of linux_nat_trad_target.
8957 (linux_trad_target): Delete.
8958 * linux-nat-trad.h (linux_trad_target): Delete function.
8959 (linux_nat_trad_target): New class.
8960 * mips-linux-nat.c (mips_linux_nat_target): New class.
8961 (super_fetch_registers, super_store_registers, super_close):
8963 (the_mips_linux_nat_target): New.
8964 (mips64_linux_regsets_fetch_registers)
8965 (mips64_linux_regsets_store_registers)
8966 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8967 (mips_linux_register_u_offset, mips_linux_read_description)
8968 (mips_linux_can_use_hw_breakpoint)
8969 (mips_linux_stopped_by_watchpoint)
8970 (mips_linux_stopped_data_address)
8971 (mips_linux_region_ok_for_hw_watchpoint)
8972 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8973 (mips_linux_close): Refactor as methods of mips_linux_nat.
8974 (_initialize_mips_linux_nat): Adjust to C++ification.
8976 * aix-thread.c (aix_thread_target): New class.
8977 (aix_thread_ops): Now an aix_thread_target.
8978 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8979 (aix_thread_fetch_registers, aix_thread_store_registers)
8980 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8981 (aix_thread_thread_alive, aix_thread_pid_to_str)
8982 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8983 Refactor as methods of aix_thread_target.
8984 (init_aix_thread_ops): Delete.
8985 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8986 and complete_target_initialization.
8987 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8988 (rs6000_nat_target): New class.
8989 (the_rs6000_nat_target): New.
8990 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8991 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8992 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8993 (super_create_inferior): Delete.
8994 (_initialize_rs6000_nat): Adjust to C++ification.
8996 * arm-linux-nat.c (arm_linux_nat_target): New class.
8997 (the_arm_linux_nat_target): New.
8998 (arm_linux_fetch_inferior_registers)
8999 (arm_linux_store_inferior_registers, arm_linux_read_description)
9000 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9001 (arm_linux_remove_hw_breakpoint)
9002 (arm_linux_region_ok_for_hw_watchpoint)
9003 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9004 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9005 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9006 arm_linux_nat_target.
9007 (_initialize_arm_linux_nat): Adjust to C++ification.
9009 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9010 (the_aarch64_linux_nat_target): New.
9011 (aarch64_linux_fetch_inferior_registers)
9012 (aarch64_linux_store_inferior_registers)
9013 (aarch64_linux_child_post_startup_inferior)
9014 (aarch64_linux_read_description)
9015 (aarch64_linux_can_use_hw_breakpoint)
9016 (aarch64_linux_insert_hw_breakpoint)
9017 (aarch64_linux_remove_hw_breakpoint)
9018 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9019 (aarch64_linux_region_ok_for_hw_watchpoint)
9020 (aarch64_linux_stopped_data_address)
9021 (aarch64_linux_stopped_by_watchpoint)
9022 (aarch64_linux_watchpoint_addr_within_range)
9023 (aarch64_linux_can_do_single_step): Refactor as methods of
9024 aarch64_linux_nat_target.
9025 (super_post_startup_inferior): Delete.
9026 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9028 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9029 (the_hppa_linux_nat_target): New.
9030 (hppa_linux_fetch_inferior_registers)
9031 (hppa_linux_store_inferior_registers): Refactor as methods of
9032 hppa_linux_nat_target.
9033 (_initialize_hppa_linux_nat): Adjust to C++ification.
9035 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9036 (the_ia64_linux_nat_target): New.
9037 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9038 (ia64_linux_stopped_data_address)
9039 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9040 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9041 ia64_linux_nat_target methods.
9042 (super_xfer_partial): Delete.
9043 (_initialize_ia64_linux_nat): Adjust to C++ification.
9045 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9046 (the_m32r_linux_nat_target): New.
9047 (m32r_linux_fetch_inferior_registers)
9048 (m32r_linux_store_inferior_registers): Refactor as
9049 m32r_linux_nat_target methods.
9050 (_initialize_m32r_linux_nat): Adjust to C++ification.
9052 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9053 (the_m68k_linux_nat_target): New.
9054 (m68k_linux_fetch_inferior_registers)
9055 (m68k_linux_store_inferior_registers): Refactor as
9056 m68k_linux_nat_target methods.
9057 (_initialize_m68k_linux_nat): Adjust to C++ification.
9059 * s390-linux-nat.c (s390_linux_nat_target): New class.
9060 (the_s390_linux_nat_target): New.
9061 (s390_linux_fetch_inferior_registers)
9062 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9063 (s390_insert_watchpoint, s390_remove_watchpoint)
9064 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9065 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9066 (s390_auxv_parse, s390_read_description): Refactor as methods of
9067 s390_linux_nat_target.
9068 (_initialize_s390_nat): Adjust to C++ification.
9070 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9071 (the_sparc_linux_nat_target): New.
9072 (_initialize_sparc_linux_nat): Adjust to C++ification.
9073 * sparc-nat.c (sparc_fetch_inferior_registers)
9074 (sparc_store_inferior_registers): Remove target_ops parameter.
9075 * sparc-nat.h (sparc_fetch_inferior_registers)
9076 (sparc_store_inferior_registers): Remove target_ops parameter.
9077 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9078 (the_sparc64_linux_nat_target): New.
9079 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9081 * spu-linux-nat.c (spu_linux_nat_target): New class.
9082 (the_spu_linux_nat_target): New.
9083 (spu_child_post_startup_inferior, spu_child_post_attach)
9084 (spu_child_wait, spu_fetch_inferior_registers)
9085 (spu_store_inferior_registers, spu_xfer_partial)
9086 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9088 (_initialize_spu_nat): Adjust to C++ification.
9090 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9091 (the_tilegx_linux_nat_target): New.
9092 (fetch_inferior_registers, store_inferior_registers):
9093 Refactor as methods.
9094 (_initialize_tile_linux_nat): Adjust to C++ification.
9096 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9097 (the_xtensa_linux_nat_target): New.
9098 (xtensa_linux_fetch_inferior_registers)
9099 (xtensa_linux_store_inferior_registers): Refactor as
9100 xtensa_linux_nat_target methods.
9101 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9103 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9104 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9105 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9106 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9107 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9108 (fbsd_stopped_by_sw_breakpoint)
9109 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9110 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9111 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9112 (fbsd_post_startup_inferior, fbsd_post_attach)
9113 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9114 (fbsd_set_syscall_catchpoint)
9115 (super_xfer_partial, super_resume, super_wait)
9116 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9117 (fbsd_handle_debug_trap): Remove target_ops parameter.
9118 (fbsd_nat_add_target): Delete.
9119 * fbsd-nat.h: Include "inf-ptrace.h".
9120 (fbsd_nat_add_target): Delete.
9121 (USE_SIGTRAP_SIGINFO): Define.
9122 (fbsd_nat_target): New class.
9124 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9125 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9126 (amd64bsd_target): Delete.
9127 * amd64-bsd-nat.h: New file.
9128 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9130 (amd64_fbsd_nat_target): New class.
9131 (the_amd64_fbsd_nat_target): New.
9132 (amd64fbsd_read_description): Refactor as method of
9133 amd64_fbsd_nat_target.
9134 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9135 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9136 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9137 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9138 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9139 (i386bsd_target): Delete.
9140 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9141 (i386bsd_fetch_inferior_registers)
9142 (i386bsd_store_inferior_registers): Declare.
9143 (i386_bsd_nat_target): New class.
9144 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9145 (the_i386_fbsd_nat_target): New.
9146 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9147 i386_fbsd_nat_target methods.
9148 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9149 (_initialize_i386fbsd_nat): Adjust to C++ification.
9150 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9151 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9152 (_initialize_x86_bsd_nat): Adjust to C++ification.
9153 * x86-bsd-nat.h: Include "x86-nat.h".
9154 (x86bsd_target): Delete declaration.
9155 (x86bsd_nat_target): New class.
9157 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9158 (the_aarch64_fbsd_nat_target): New.
9159 (aarch64_fbsd_fetch_inferior_registers)
9160 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9161 aarch64_fbsd_nat_target.
9162 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9163 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9164 (the_alpha_bsd_nat_target): New.
9165 (alphabsd_fetch_inferior_registers)
9166 (alphabsd_store_inferior_registers): Refactor as
9167 alpha_bsd_nat_target methods.
9168 (_initialize_alphabsd_nat): Refactor as methods of
9169 alpha_bsd_nat_target.
9170 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9171 (the_amd64_nbsd_nat_target): New.
9172 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9173 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9174 (the_amd64_obsd_nat_target): New.
9175 (_initialize_amd64obsd_nat): Adjust to C++ification.
9176 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9177 (the_arm_fbsd_nat_target): New.
9178 (arm_fbsd_fetch_inferior_registers)
9179 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9180 (_initialize_arm_fbsd_nat): Refactor as methods of
9181 arm_fbsd_nat_target.
9182 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9183 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9184 (the_arm_netbsd_nat_target): New.
9185 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9186 arm_netbsd_nat_target.
9187 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9188 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9189 (the_hppa_nbsd_nat_target): New.
9190 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9191 hppa_nbsd_nat_target methods.
9192 (_initialize_hppanbsd_nat): Adjust to C++ification.
9193 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9194 (the_hppa_obsd_nat_target): New.
9195 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9196 methods of hppa_obsd_nat_target.
9197 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9199 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9200 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9202 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9203 (_initialize_i386obsd_nat): Use add_target.
9204 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9205 (the_m68k_bsd_nat_target): New.
9206 (m68kbsd_fetch_inferior_registers)
9207 (m68kbsd_store_inferior_registers): Refactor as methods of
9208 m68k_bsd_nat_target.
9209 (_initialize_m68kbsd_nat): Adjust to C++ification.
9210 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9211 (the_mips_fbsd_nat_target): New.
9212 (mips_fbsd_fetch_inferior_registers)
9213 (mips_fbsd_store_inferior_registers): Refactor as methods of
9214 mips_fbsd_nat_target.
9215 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9217 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9218 (the_mips_nbsd_nat_target): New.
9219 (mipsnbsd_fetch_inferior_registers)
9220 (mipsnbsd_store_inferior_registers): Refactor as methods of
9221 mips_nbsd_nat_target.
9222 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9223 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9224 (the_mips64_obsd_nat_target): New.
9225 (mips64obsd_fetch_inferior_registers)
9226 (mips64obsd_store_inferior_registers): Refactor as methods of
9227 mips64_obsd_nat_target.
9228 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9230 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9232 * nbsd-nat.h: Include "inf-ptrace.h".
9233 (nbsd_nat_target): New class.
9234 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9235 (obsd_wait): Refactor as methods of obsd_nat_target.
9236 (obsd_add_target): Delete.
9237 * obsd-nat.h: Include "inf-ptrace.h".
9238 (obsd_nat_target): New class.
9239 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9240 (the_ppc_fbsd_nat_target): New.
9241 (ppcfbsd_fetch_inferior_registers)
9242 (ppcfbsd_store_inferior_registers): Refactor as methods of
9243 ppc_fbsd_nat_target.
9244 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9246 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9247 (the_ppc_nbsd_nat_target): New.
9248 (ppcnbsd_fetch_inferior_registers)
9249 (ppcnbsd_store_inferior_registers): Refactor as methods of
9250 ppc_nbsd_nat_target.
9251 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9252 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9253 (the_ppc_obsd_nat_target): New.
9254 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9255 methods of ppc_obsd_nat_target.
9256 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9258 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9259 (the_sh_nbsd_nat_target): New.
9260 (shnbsd_fetch_inferior_registers)
9261 (shnbsd_store_inferior_registers): Refactor as methods of
9263 (_initialize_shnbsd_nat): Adjust to C++ification.
9264 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9265 (inf_ptrace_xfer_partial): Delete.
9266 (sparc_xfer_partial, sparc_target): Delete.
9267 * sparc-nat.h (sparc_fetch_inferior_registers)
9268 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9269 (sparc_target): Delete function declaration.
9270 (sparc_target): New template class.
9271 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9272 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9273 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9274 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9276 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9277 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9278 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9279 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9281 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9282 (the_vax_bsd_nat_target): New.
9283 (vaxbsd_fetch_inferior_registers)
9284 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9286 (_initialize_vaxbsd_nat): Adjust to C++ification.
9288 * bsd-kvm.c (bsd_kvm_target): New class.
9289 (bsd_kvm_ops): Now a bsd_kvm_target.
9290 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9291 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9292 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9294 (bsd_kvm_return_one): Delete.
9295 (bsd_kvm_add_target): Adjust to C++ification.
9297 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9298 (nto_procfs_target_procfs): New classes.
9299 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9300 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9301 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9302 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9303 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9304 (procfs_remove_hw_breakpoint, procfs_resume)
9305 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9306 (procfs_kill_inferior, procfs_store_registers)
9307 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9308 as methods of nto_procfs_target.
9309 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9310 (nto_native_ops): Delete.
9311 (procfs_open, procfs_native_open): Delete.
9312 (nto_native_ops): Now an nto_procfs_target_native.
9313 (init_procfs_targets): Adjust to C++ification.
9314 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9315 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9316 Refactor as methods of nto_procfs_target.
9318 * go32-nat.c (go32_nat_target): New class.
9319 (the_go32_nat_target): New.
9320 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9321 (go32_store_registers, go32_xfer_partial, go32_files_info)
9322 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9323 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9324 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9325 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9326 (go32_target): Delete.
9327 (_initialize_go32_nat): Adjust to C++ification.
9329 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9330 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9331 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9332 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9334 (gnu_target): Delete.
9335 * gnu-nat.h (gnu_target): Delete.
9336 (gnu_nat_target): New class.
9337 * i386-gnu-nat.c (gnu_base_target): New.
9338 (i386_gnu_nat_target): New class.
9339 (the_i386_gnu_nat_target): New.
9340 (_initialize_i386gnu_nat): Adjust to C++ification.
9342 2018-05-02 Pedro Alves <palves@redhat.com>
9344 * bfd-target.c (target_bfd_xclose): Rename to ...
9345 (target_bfd_close): ... this.
9346 (target_bfd_reopen): Adjust.
9347 * target.c (target_close): Remove references to to_xclose.
9348 * target.h (target_ops::to_xclose): Delete.
9349 (target_ops::to_close): Update comments.
9351 2018-05-02 Pedro Alves <palves@redhat.com>
9353 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9355 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9356 * inf-ptrace.c (inf_ptrace_register_u_offset)
9357 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9358 (inf_ptrace_store_register, inf_ptrace_store_registers)
9359 (inf_ptrace_trad_target): Move to ...
9360 * linux-nat-trad.c: ... this new file.
9361 * linux-nat-trad.h: New file.
9362 * linux-nat.c (linux_target_install_ops): Make extern.
9363 (linux_trad_target): Delete.
9364 * linux-nat.h (linux_trad_target): Delete declaration.
9365 (linux_target_install_ops): Declare.
9366 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9369 2018-05-02 Pedro Alves <palves@redhat.com>
9371 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9372 procfs_target/add_target here.
9373 * procfs.c (procfs_target): Make static.
9374 (_initialize_procfs): Call add_target here.
9375 * procfs.h (struct target_ops): Remove forward declaration.
9376 (procfs_target): Remove declaration.
9377 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9379 2018-05-02 Pedro Alves <palves@redhat.com>
9381 * procfs.c (procfs_stopped_by_watchpoint)
9382 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9383 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9385 (procfs_use_watchpoints): Delete, move contents...
9386 (procfs_target): ... here.
9387 * procfs.h (procfs_use_watchpoints): Delete declaration.
9388 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9389 procfs_use_watchpoints.
9390 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9391 procfs_use_watchpoints.
9393 2018-05-02 Tom Tromey <tom@tromey.com>
9396 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9397 and var_zuinteger_unlimited.
9398 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9399 and PARAM_ZUINTEGER_UNLIMITED.
9400 (set_parameter_value): Handle var_zuinteger and
9401 var_zuinteger_unlimited.
9402 (add_setshow_generic): Likewise.
9403 (parmpy_init): Likewise.
9405 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9408 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9409 pointer is not null before dereferencing it.
9411 2018-04-30 Tom Tromey <tom@tromey.com>
9413 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9416 2018-04-30 Tom Tromey <tom@tromey.com>
9418 * breakpoint.c (mention): Remove use of is_mi_like_p.
9419 (print_mention_ranged_breakpoint): Likewise.
9420 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9423 2018-04-30 Tom Tromey <tom@tromey.com>
9425 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9427 2018-04-30 Tom Tromey <tom@tromey.com>
9429 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9430 (info_spu_event_command): Remove some uses of is_mi_like_p.
9432 2018-04-30 Tom Tromey <tom@tromey.com>
9434 * python/py-framefilter.c (py_print_single_arg)
9435 (enumerate_locals, py_print_args, py_print_frame): Remove some
9436 uses of is_mi_like_p.
9438 2018-04-30 Tom Tromey <tom@tromey.com>
9441 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9442 * ui-out.h (ui_out::is_mi_like_p): Now const.
9443 (ui_out::do_is_mi_like_p): Now const.
9444 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9446 2018-04-30 Tom Tromey <tom@tromey.com>
9448 * varobj.c (varobj_set_visualizer): Use new_reference.
9449 * python/python.c (gdbpy_decode_line): Use new_reference.
9450 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9453 2018-04-30 Tom Tromey <tom@tromey.com>
9455 * varobj.c (install_new_value): Use new_reference.
9456 * value.h (value_incref): Return void. Swap intro comment with
9458 * value.c (set_value_parent): Use new_reference.
9459 (value_incref): Return void. Update intro comment.
9460 (release_value): Use new_reference.
9461 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9463 2018-04-30 Tom Tromey <tom@tromey.com>
9465 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9466 * gdb_bfd.h (new_bfd_ref): Remove.
9467 (gdb_bfd_open): Update comment.
9468 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9469 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9470 (gdb_bfd_fdopenr): Use new_reference.
9471 * exec.c (exec_file_attach): Use new_reference.
9473 2018-04-30 Tom Tromey <tom@tromey.com>
9475 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9478 2018-04-30 Tom Tromey <tom@tromey.com>
9480 * jit.c (jit_read_code_entry): Use type_align.
9481 * i386-tdep.c (i386_gdbarch_init): Don't call
9482 set_gdbarch_long_long_align_bit.
9483 * gdbarch.sh: Remove long_long_align_bit.
9484 * gdbarch.c, gdbarch.h: Rebuild.
9485 * arc-tdep.c (arc_type_align): New function.
9486 (arc_gdbarch_init): Use arc_type_align. Don't call
9487 set_gdbarch_long_long_align_bit.
9489 2018-04-30 Tom Tromey <tom@tromey.com>
9491 * rust-lang.c (rust_type_alignment): Remove.
9492 (rust_composite_type): Use type_align.
9494 2018-04-30 Tom Tromey <tom@tromey.com>
9496 * NEWS: Mention Type.align.
9497 * python/py-type.c (typy_get_alignof): New function.
9498 (type_object_getset): Add "alignof".
9500 2018-04-30 Tom Tromey <tom@tromey.com>
9504 * std-operator.def (UNOP_ALIGNOF): New operator.
9505 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9507 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9508 * c-lang.c (c_op_print_tab): Add alignof.
9509 * c-exp.y (ALIGNOF): New token.
9510 (exp): Add "ALIGNOF" production.
9511 (ident_tokens): Add _Alignof and alignof.
9513 2018-04-30 Tom Tromey <tom@tromey.com>
9515 * i386-tdep.c (i386_type_align): New function.
9516 (i386_gdbarch_init): Update.
9517 * gdbarch.sh (type_align): New method.
9518 * gdbarch.c, gdbarch.h: Rebuild.
9519 * arch-utils.h (default_type_align): Declare.
9520 * arch-utils.c (default_type_align): New function.
9521 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9522 (struct type) <align_log2>: New field.
9523 <instance_flags>: Now a bitfield.
9524 (TYPE_RAW_ALIGN): New macro.
9525 (type_align, type_raw_align, set_type_align): Declare.
9526 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9528 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9529 (get_alignment, maybe_set_alignment): New functions.
9530 (read_structure_type, read_enumeration_type, read_array_type)
9531 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9532 (read_subrange_type, read_base_type): Set type alignment.
9534 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9536 * dwarf2read.c (read_index_from_section): Use bool.
9538 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9541 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9544 2018-04-29 John Reiser <jreiser@BitWagon.com>
9547 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9548 last step, and do it atomically.
9550 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9552 * compile/compile-c-types.c (convert_int, convert_float):
9555 2018-04-27 Tom Tromey <tom@tromey.com>
9558 * rust-lang.c (rust_inclusive_range_type_p): New function.
9559 (rust_range): Handle inclusive ranges.
9560 (rust_compute_range): Likewise.
9561 * rust-exp.y (struct rust_op) <inclusive>: New field.
9562 (DOTDOTEQ): New constant.
9563 (range_expr): Add "..=" productions.
9564 (operator_tokens): Add "..=" token.
9565 (ast_range): Add "inclusive" parameter.
9566 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9568 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9570 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9571 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9573 * expprint.c (print_subexp_standard): Handle new bounds values.
9574 (dump_subexp_body_standard): Likewise.
9576 2018-04-27 Tom Tromey <tom@tromey.com>
9578 * configure: Rebuild.
9579 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9580 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9582 (class symbol_needs_eval_context): Likewise.
9583 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9584 (mock_mapped_index::symbol_name_at): Use "override". Remove
9586 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9588 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9589 * aarch64-tdep.c (instruction_reader::read): Use "override".
9590 (instruction_reader_test::read): Likewise.
9591 * arm-tdep.c (instruction_reader::read): Use "override".
9592 (instruction_reader_thumb::read): Likewise.
9594 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9597 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9598 instead of remote_send.
9599 (remote_send): Remove.
9601 2018-04-26 Pedro Alves <palves@redhat.com>
9603 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9604 find_function_start_sal instead of find_pc_line.
9606 2018-04-26 Pedro Alves <palves@redhat.com>
9608 * breakpoint.c (set_breakpoint_location_function): Handle
9610 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9611 * elfread.c (elf_symtab_read): Give data symbols with
9612 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9613 (elf_rel_plt_read): Update comment.
9614 * linespec.c (convert_linespec_to_sals): Handle
9616 (minsym_found): Handle mst_data_gnu_ifunc.
9617 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9618 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9619 * parse.c (find_minsym_type_and_address): Handle
9621 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9622 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9623 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9625 <mst_data_gnu_ifunc>: New enumerator.
9627 2018-04-26 Pedro Alves <palves@redhat.com>
9629 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9630 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9631 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9633 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9634 (lookup_minimal_symbol_by_pc): Adjust.
9635 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9636 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9637 * minsyms.h (lookup_msym_prefer): New enum.
9638 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9639 parameter by a lookup_msym_prefer parameter.
9641 2018-04-26 Pedro Alves <palves@redhat.com>
9643 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9644 ends in "@plt" instead of looking at the symbol's section.
9646 2018-04-26 Pedro Alves <palves@redhat.com>
9648 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9650 (find_pc_partial_function_gnu_ifunc): Rename to ...
9651 (find_pc_partial_function): ... this, and remove references to
9653 (find_pc_partial_function): Delete old implementation.
9654 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9656 2018-04-26 Pedro Alves <palves@redhat.com>
9658 * linespec.c (struct bound_minimal_symbol_search_key): New.
9659 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9660 skip first line if we found a GNU ifunc minimal symbol by name.
9661 (compare_msymbols): Change parameters to work with a destructured
9663 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9666 2018-04-26 Pedro Alves <palves@redhat.com>
9668 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9669 ifunc targets here. Instead, if we have an ifunc minsym, use its
9671 (add_location_to_breakpoint): Store the minsym and the objfile in
9672 the breakpoint location.
9673 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9674 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9675 Record the minsym in the sal.
9676 * symtab.h (symtab_and_line) <msymbol>: New field.
9678 2018-04-26 Pedro Alves <palves@redhat.com>
9680 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9681 unless we actually resolved the ifunc.
9683 2018-04-26 Pedro Alves <palves@redhat.com>
9685 * c-exp.y (variable production): Prefer ifunc minsyms over
9686 regular function symbols.
9687 * symtab.c (find_gnu_ifunc): New function.
9688 * minsyms.h (lookup_msym_prefer): New enum.
9689 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9690 parameter by a lookup_msym_prefer parameter.
9691 * symtab.h (find_gnu_ifunc): New declaration.
9693 2018-04-26 Pedro Alves <palves@redhat.com>
9695 * blockframe.c (find_gnu_ifunc_target_type): New function.
9696 (find_function_type): New.
9697 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9698 return a value with a memory address.
9699 (eval_call): For calls to GNU ifunc functions, try to find the
9700 type of the target function from the type that the resolver
9702 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9704 * infcall.c (find_function_return_type): Delete.
9705 (find_function_addr): Add 'function_type' parameter. For calls to
9706 GNU ifunc functions, try to find the type of the target function
9707 from the type that the resolver returns, and return it via
9709 (call_function_by_hand_dummy): Adjust to use the function type
9710 returned by find_function_addr.
9711 (find_function_addr): Add 'function_type' parameter and move
9713 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9716 2018-04-26 Pedro Alves <palves@redhat.com>
9718 * c-exp.y (variable production): Skip finding an alias for ifunc
9721 2018-04-26 Pedro Alves <palves@redhat.com>
9723 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9725 2018-04-25 Pedro Alves <palves@redhat.com>
9727 * infcmd.c (kill_command): Print the pid as string, not the whole
9728 thread's ptid. Add comment. s/has been killed/killed/ in output
9730 * remote.c (remote_detach_1): Print the pid as string, not the
9731 whole thread's ptid.
9733 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9734 Sergio Durigan Junior <sergiodj@redhat.com>
9735 Pedro Alves <palves@redhat.com>
9737 * infcmd.c (kill_command): Print message when inferior has
9739 * inferior.c (print_inferior_events): Remove 'static'. Set as
9741 (add_inferior): Improve message printed when
9742 'print_inferior_events' is on.
9743 (exit_inferior): Remove message printed when
9744 'print_inferior_events' is on.
9745 (detach_inferior): Improve message printed when
9746 'print_inferior_events' is on.
9747 (initialize_inferiors): Use 'add_inferior_silent' to set
9748 'current_inferior_'.
9749 * inferior.h (print_inferior_events): Declare here as
9751 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9752 '[Detaching...]' messages when 'print_inferior_events' is on.
9753 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9754 as prefix/suffix for messages. Remove periods. Fix erroneous
9755 'Detaching after fork from child...', replace it by '... from
9757 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9758 prefix/suffix when printing 'Detaching...' messages. Print
9759 them when 'print_inferior_events' is on.
9760 * remote.c (remote_detach_1): Print message when detaching
9761 from inferior and '!is_fork_parent'.
9763 2018-04-24 Tom Tromey <tom@tromey.com>
9765 * cli-out.h: Reindent.
9767 2018-04-24 Tom Tromey <tom@tromey.com>
9769 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9770 (cli_ui_out::do_field_string): Use fputs_filtered.
9771 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9773 2018-04-23 Tom Tromey <tom@tromey.com>
9775 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9776 gdb::unique_xmalloc_ptr.
9778 2018-04-23 Tom Tromey <tom@tromey.com>
9780 * configure: Rebuild.
9782 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9785 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9786 prepare_for_testing. Set normal_bp to r_debug_state if target
9789 2018-04-21 Pedro Alves <palves@redhat.com>
9790 Rajendra SY <rajendra.sy@gmail.com>
9792 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9793 * remote.c (extended_remote_attach): In all-stop mode, mark the
9794 thread as executing.
9796 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9798 * thread.c (thread_apply_all_command): Fix comment.
9799 (thread_command): Fix comment.
9801 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9803 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9805 * features/aarch64-core.c (create_feature_aarch64_core):
9807 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9809 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9811 * features/i386/32bit-avx512.c
9812 (create_feature_i386_32bit_avx512): Likewise.
9813 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9815 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9817 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9819 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9821 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9823 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9825 * features/i386/64bit-avx512.c
9826 (create_feature_i386_64bit_avx512): Likewise.
9827 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9829 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9831 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9833 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9835 * features/i386/64bit-segments.c
9836 (create_feature_i386_64bit_segments): Likewise.
9837 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9839 * features/i386/x32-core.c
9840 (create_feature_i386_x32_core): Likewise.
9841 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9842 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9843 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9844 * target-descriptions.c: In generated code, don't pass xml
9847 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9849 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9850 (print_xml_feature::visit_post): Likewise.
9851 (print_xml_feature::visit): Likewise.
9852 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9853 (print_xml_feature): Add new class.
9854 * regformats/regdat.sh: Null xmltarget on feature targets.
9855 * target-descriptions.c (struct target_desc): Add xmltarget.
9856 (maintenance_check_tdesc_xml_convert): Add unittest function.
9857 (tdesc_get_features_xml): Add function to get xml.
9858 (maintenance_check_xml_descriptions): Test xml generation.
9859 * xml-tdesc.c (string_read_description_xml): Add function.
9860 * xml-tdesc.h (string_read_description_xml): Add declaration.
9862 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9864 * features/Makefile: Add feature marker to targets with new style
9865 target descriptions.
9866 * regformats/aarch64.dat: Regenerate.
9867 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9868 * regformats/i386/amd64-avx-linux.dat: Likewise.
9869 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9870 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9871 * regformats/i386/amd64-linux.dat: Likewise.
9872 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9873 * regformats/i386/amd64.dat: Likewise.
9874 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9875 * regformats/i386/i386-avx-linux.dat: Likewise.
9876 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9877 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9878 * regformats/i386/i386-linux.dat: Likewise.
9879 * regformats/i386/i386-mmx-linux.dat: Likewise.
9880 * regformats/i386/i386-mpx-linux.dat: Likewise.
9881 * regformats/i386/i386.dat: Likewise.
9882 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9883 * regformats/i386/x32-avx-linux.dat: Likewise.
9884 * regformats/i386/x32-linux.dat: Likewise.
9885 * regformats/tic6x-c62x-linux.dat: Likewise.
9886 * regformats/tic6x-c64x-linux.dat: Likewise.
9887 * regformats/tic6x-c64xp-linux.dat: Likewise.
9888 * regformats/regdat.sh: Parse feature marker.
9890 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9892 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9893 (tdesc_osabi_name): Likewise.
9894 * target-descriptions.c (tdesc_architecture_name): Add new
9896 (tdesc_osabi_name): Likewise.
9898 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9900 * common/tdesc.c (tdesc_predefined_type): Move to here.
9901 (tdesc_named_type): Likewise.
9902 (tdesc_create_vector): Likewise.
9903 (tdesc_create_struct): Likewise.
9904 (tdesc_set_struct_size): Likewise.
9905 (tdesc_create_union): Likewise.
9906 (tdesc_create_flags): Likewise.
9907 (tdesc_create_enum): Likewise.
9908 (tdesc_add_field): Likewise.
9909 (tdesc_add_typed_bitfield): Likewise.
9910 (tdesc_add_bitfield): Likewise.
9911 (tdesc_add_flag): Likewise.
9912 (tdesc_add_enum_value): Likewise.
9913 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9914 (struct tdesc_type_vector): Likewise.
9915 (struct tdesc_type_field): Likewise.
9916 (struct tdesc_type_with_fields): Likewise.
9917 (tdesc_create_enum): Add declaration.
9918 (tdesc_add_typed_bitfield): Likewise.
9919 (tdesc_add_enum_value): Likewise.
9920 * target-descriptions.c (tdesc_type_field): Move from here.
9921 (tdesc_type_builtin): Likewise.
9922 (tdesc_type_vector): Likewise.
9923 (tdesc_type_with_fields): Likewise.
9924 (tdesc_predefined_types): Likewise.
9925 (tdesc_named_type): Likewise.
9926 (tdesc_create_vector): Likewise.
9927 (tdesc_create_struct): Likewise.
9928 (tdesc_set_struct_size): Likewise.
9929 (tdesc_create_union): Likewise.
9930 (tdesc_create_flags): Likewise.
9931 (tdesc_create_enum): Likewise.
9932 (tdesc_add_field): Likewise.
9933 (tdesc_add_typed_bitfield): Likewise.
9934 (tdesc_add_bitfield): Likewise.
9935 (tdesc_add_flag): Likewise.
9936 (tdesc_add_enum_value): Likewise.
9937 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9938 (tdesc_add_typed_bitfield): Likewise.
9939 (tdesc_add_enum_value): Likewise.
9941 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9943 * common/tdesc.c (tdesc_feature::accept): Move to here.
9944 (tdesc_feature::operator==): Likewise.
9945 (tdesc_create_reg): Likewise.
9946 * common/tdesc.h (tdesc_type_kind): Likewise.
9947 (struct tdesc_type): Likewise.
9948 (struct tdesc_feature): Likewise.
9949 * regformats/regdat.sh: Create a feature.
9950 * target-descriptions.c (tdesc_type_kind): Move from here.
9951 (tdesc_type): Likewise.
9952 (tdesc_type_up): Likewise.
9953 (tdesc_feature): Likewise.
9954 (tdesc_create_reg): Likewise.
9956 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9958 * Makefile.in: Add arch/tdesc.c
9959 * common/tdesc.c: New file.
9960 * common/tdesc.h (tdesc_element_visitor): Move to here.
9961 (tdesc_element): Likewise.
9962 (tdesc_reg): Likewise.
9963 (tdesc_reg_up): Likewise.
9964 * regformats/regdef.h (reg): Add offset to constructors.
9965 * target-descriptions.c (tdesc_element_visitor): Move from here.
9966 (tdesc_element): Likewise.
9967 (tdesc_reg): Likewise.
9968 (tdesc_reg_up): Likewise.
9970 2018-04-17 Tom Tromey <tom@tromey.com>
9972 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9975 2018-04-17 Tom Tromey <tom@tromey.com>
9977 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9979 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9981 * symtab.c (print_symbol_info): Skip printing filename and line
9982 number when `last' is NULL.
9983 (symtab_symbol_info): Use empty string instead of NULL for first
9984 invocation of print_symbol_info.
9985 (rbreak_command): Pass NULL to `last' parameter of
9988 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9990 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9993 2018-04-16 Pedro Alves <palves@redhat.com>
9995 * MAINTAINERS (sh): Remove.
9996 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9997 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9998 (ALLDEPFILES): Remove sh64-tdep.c.
9999 * NEWS: Mentions that support for SH-5/SH64 is removed.
10000 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10001 (sh*-*-openbsd*): Ditto.
10002 (sh64-*-elf*): Remove.
10004 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10005 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10006 * sh-tdep.c: No longer include "sh64-tdep.h".
10007 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10008 * sh64-tdep.c, sh64-tdep.h: Remove files.
10010 2018-04-16 Pedro Alves <palves@redhat.com>
10012 * MAINTAINERS: Remove m88k.
10013 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10014 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10015 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10016 * NEWS: Mention that support for m88k was removed.
10017 * configure.host (m88*-*-*): Remove support.
10018 * configure.nat (m88k-*-*): Remove support.
10019 * configure.tgt (m88*-*-openbsd*): Remove.
10020 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10022 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10024 * configure.tgt (x86_tobjs): New variable.
10025 (amd64_tobjs, i386_tobjs): Use it.
10027 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10029 * symtab.c (print_symbol_info): Precede the symbol definition by
10030 the line number when available.
10031 * NEWS: Advertise this enhancement.
10033 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10035 * NEWS (New options): announce set/show record btrace cpu.
10036 * btrace.c: Include record-btrace.h.
10037 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10038 the vendor is unknown.
10039 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10040 Maybe overwrite the btrace configuration's cpu.
10041 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10042 (btrace_fetch): Add cpu parameter. Update callers.
10043 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10044 Maybe overwrite the btrace configuration's cpu. Skip enabling
10045 errata workarounds if the vendor is unknown.
10046 * python/py-record-btrace.c: Include record-btrace.h.
10047 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10048 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10049 * record-btrace.c (record_btrace_cpu_state_kind): New.
10050 (record_btrace_cpu): New.
10051 (set_record_btrace_cpu_cmdlist): New.
10052 (record_btrace_get_cpu): New.
10053 (require_btrace_thread, record_btrace_info)
10054 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10055 (cmd_set_record_btrace_cpu_none): New.
10056 (cmd_set_record_btrace_cpu_auto): New.
10057 (cmd_set_record_btrace_cpu): New.
10058 (cmd_show_record_btrace_cpu): New.
10059 (_initialize_record_btrace): Initialize set/show record btrace cpu
10061 * record-btrace.h (record_btrace_get_cpu): New.
10063 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10065 * record.c (set_record_command): Fix typo in message.
10067 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10069 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10071 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10073 * infrun.c (process_event_stop_test): Call
10074 gdbarch_in_indirect_branch_thunk.
10075 * gdbarch.sh (in_indirect_branch_thunk): New.
10076 * gdbarch.c: Regenerated.
10077 * gdbarch.h: Regenerated.
10080 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10081 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10082 (ALLDEPFILES): Add x86-tdep.c.
10083 * arch-utils.h (default_in_indirect_branch_thunk): New.
10084 * arch-utils.c (default_in_indirect_branch_thunk): New.
10085 * i386-tdep: Include x86-tdep.h.
10086 (i386_in_indirect_branch_thunk): New.
10087 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10089 * amd64-tdep: Include x86-tdep.h.
10090 (amd64_in_indirect_branch_thunk): New.
10091 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10093 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10096 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10097 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10098 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10101 2018-04-12 Tom Tromey <tom@tromey.com>
10103 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10104 (rust_evaluate_subexp): Likewise.
10106 2018-04-12 Pedro Alves <palves@redhat.com>
10108 * procfs.c (procfs_detach): Make forward declaration's prototype
10109 match definition's protototype.
10110 (proc_get_LDT_entry): Remove stale do_cleanups call.
10112 2018-04-12 Pedro Alves <palves@redhat.com>
10114 * target.h (target_ops::to_has_exited): Delete.
10115 (target_has_exited): Delete.
10116 * target-delegates.c: Regenerate.
10118 2018-04-11 Pedro Alves <palves@redhat.com>
10120 * target.c (fileio_fh_t::t): Add comment.
10121 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10122 (target_fileio_close): Handle a NULL target.
10123 (invalidate_fileio_fh): New.
10124 (target_close): Call it.
10125 * remote.c (remote_hostio_send_command): No longer check whether
10126 remote_desc is open.
10128 2018-04-11 Pedro Alves <palves@redhat.com>
10130 * target.c (fileio_fh_t): Make it a named struct instead of a
10132 (fileio_fh_t::is_closed): New method.
10133 (DEF_VEC_O (fileio_fh_t)): Remove.
10134 (fileio_fhandles): Now a std::vector.
10135 (is_closed_fileio_fh): Delete.
10136 (acquire_fileio_fd): Adjust. Rename parameters.
10137 (release_fileio_fd): Adjust.
10138 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10139 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10140 (target_fileio_close): Adjust.
10142 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10144 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10147 2018-04-10 Pedro Alves <palves@redhat.com>
10149 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10150 (scoped_finish_thread_state): New class.
10151 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10153 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10154 (fetch_inferior_event, normal_stop): Likewise.
10155 * thread.c (finish_thread_state_cleanup): Delete.
10157 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10158 Pedro Alves <palves@redhat.com>
10160 * value.c: Include "selftest.h" and "common/array-view.h".
10161 (struct range) <operator ==>: New.
10162 (test_ranges_contain): New.
10163 (check_ranges_vector): New.
10164 (test_insert_into_bit_range_vector): New.
10165 (_initialize_values): Register selftests.
10166 * common/array-view.h (operator==, operator!=): New.
10168 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10170 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10172 * inline-frame.c: Include <algorithm>.
10173 (struct inline_state): Add constructor.
10174 (inline_state_s): Remove.
10175 (DEF_VEC_O(inline_state_s)): Remove.
10176 (inline_states): Change type to std::vector.
10177 (find_inline_frame_state): Adjust to std::vector.
10178 (allocate_inline_frame_state): Remove.
10179 (clear_inline_frame_state): Adjust to std::vector.
10180 (skip_inline_frames): Adjust to std::vector.
10182 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10184 * tracepoint.h (struct trace_state_variable): Add constructor.
10185 <name>: Change type to std::string.
10186 * tracepoint.c (tsv_s): Remove.
10187 (DEF_VEC_O(tsv_s)): Remove.
10188 (tvariables): Change to std::vector.
10189 (create_trace_state_variable): Adjust to std::vector.
10190 (find_trace_state_variable): Likewise.
10191 (find_trace_state_variable_by_number): Likewise.
10192 (delete_trace_state_variable): Likewise.
10193 (trace_variable_command): Adjust to std::string.
10194 (delete_trace_variable_command): Likewise.
10195 (tvariables_info_1): Adjust to std::vector.
10196 (save_trace_state_variables): Likewise.
10197 (start_tracing): Likewise.
10198 (merge_uploaded_trace_state_variables): Adjust to std::vector
10200 * target.h (struct target_ops)
10201 <to_download_trace_state_variable>: Pass reference to
10202 trace_state_variable.
10203 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10204 * target-delegates.c: Re-generate.
10205 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10206 (mi_tsv_deleted): Likewise.
10207 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10208 * remote.c (remote_download_trace_state_variable): Change
10209 pointer to reference and adjust.
10210 * make-target-delegates (parse_argtypes): Handle references.
10211 (write_function_header): Likewise.
10212 (munge_type): Likewise.
10214 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10216 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10217 string_view-selftests.c.
10218 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10220 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10221 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10222 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10223 * unittests/basic_string_view/element_access/char/1.cc:
10225 * unittests/basic_string_view/element_access/char/empty.cc:
10227 * unittests/basic_string_view/element_access/char/front_back.cc:
10229 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10230 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10232 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10234 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10236 * unittests/basic_string_view/operations/compare/char/1.cc:
10238 * unittests/basic_string_view/operations/compare/char/13650.cc:
10240 * unittests/basic_string_view/operations/copy/char/1.cc:
10242 * unittests/basic_string_view/operations/data/char/1.cc:
10244 * unittests/basic_string_view/operations/find/char/1.cc:
10246 * unittests/basic_string_view/operations/find/char/2.cc:
10248 * unittests/basic_string_view/operations/find/char/3.cc:
10250 * unittests/basic_string_view/operations/find/char/4.cc:
10252 * unittests/basic_string_view/operations/rfind/char/1.cc:
10254 * unittests/basic_string_view/operations/rfind/char/2.cc:
10256 * unittests/basic_string_view/operations/rfind/char/3.cc:
10258 * unittests/basic_string_view/operations/substr/char/1.cc:
10260 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10261 * unittests/string_view-selftests.c: New file.
10263 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10265 * unittests/basic_string_view/capacity/1.cc: New file.
10266 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10267 * unittests/basic_string_view/cons/char/1.cc: New file.
10268 * unittests/basic_string_view/cons/char/2.cc: New file.
10269 * unittests/basic_string_view/cons/char/3.cc: New file.
10270 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10271 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10272 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10273 * unittests/basic_string_view/element_access/char/1.cc: New file.
10274 * unittests/basic_string_view/element_access/char/2.cc: New file.
10275 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10276 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10277 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10278 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10279 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10280 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10281 * unittests/basic_string_view/include.cc: New file.
10282 * unittests/basic_string_view/inserters/char/1.cc: New file.
10283 * unittests/basic_string_view/inserters/char/2.cc: New file.
10284 * unittests/basic_string_view/inserters/char/3.cc: New file.
10285 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10286 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10287 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10288 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10289 * unittests/basic_string_view/literals/types.cc: New file.
10290 * unittests/basic_string_view/literals/values.cc: New file.
10291 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10292 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10293 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10294 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10295 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10296 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10297 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10298 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10299 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10300 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10301 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10302 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10303 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10304 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10305 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10306 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10307 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10308 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10309 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10310 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10311 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10312 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10313 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10314 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10315 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10316 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10317 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10318 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10319 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10320 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10321 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10322 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10323 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10324 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10325 * unittests/basic_string_view/operators/char/2.cc: New file.
10326 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10327 * unittests/basic_string_view/range_access/char/1.cc: New file.
10328 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10329 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10330 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10331 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10332 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10333 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10334 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10335 * unittests/basic_string_view/typedefs.cc: New file.
10336 * unittests/basic_string_view/types/1.cc: New file.
10338 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10340 * common/gdb_string_view.h: Remove libstdc++ implementation
10341 details, adjust to gdb reality.
10342 * common/gdb_string_view.tcc: Likewise.
10343 * cli/cli-script.c (struct string_view): Remove.
10344 (user_args) <m_args>: Change element type to gdb::string_view.
10345 (user_args::insert_args): Adjust.
10347 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10349 * common/gdb_string_view.h: New file.
10350 * common/gdb_string_view.tcc: New file.
10352 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10354 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10355 * configure: Re-generate.
10357 2018-04-09 Pedro Alves <palves@redhat.com>
10359 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10360 (set_target_gdbarch): Call
10361 gdb::observers::architecture_changed.notify instead of
10362 observer_notify_architecture_changed.
10364 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10366 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10367 (do_restore_current_traceframe_cleanup): Remove.
10368 (restore_current_traceframe_cleanup_dtor): Remove.
10369 (make_cleanup_restore_current_traceframe): Remove.
10370 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10372 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10373 * infrun.c (fetch_inferior_event): Use
10374 scoped_restore_current_traceframe.
10376 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10378 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10380 <n_allocated_type_units>: Remove.
10381 <all_type_units>: Change to std::vector.
10382 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10383 to std::vector change.
10384 (dwarf2_per_objfile::get_cutu): Likewise.
10385 (dwarf2_per_objfile::get_tu): Likewise.
10386 (create_signatured_type_table_from_index): Likewise.
10387 (create_signatured_type_table_from_debug_names): Likewise.
10388 (dw2_symtab_iter_next): Likewise.
10389 (dw2_print_stats): Likewise.
10390 (dw2_expand_all_symtabs): Likewise.
10391 (dw2_expand_marked_cus): Likewise.
10392 (dw2_debug_names_iterator::next): Likewise.
10393 (dwarf2_initialize_objfile): Likewise.
10394 (add_signatured_type_cu_to_table): Likewise.
10395 (create_all_type_units): Likewise.
10396 (add_type_unit): Likewise.
10397 (struct tu_abbrev_offset): Add constructor.
10398 (build_type_psymtabs_1): Adjust to std::vector change.
10399 (print_tu_stats): Likewise.
10400 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10401 (write_debug_names): Likewise.
10403 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10405 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10406 Make an std::vector.
10407 <n_comp_units>: Remove.
10408 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10409 to std::vector change.
10410 (dwarf2_per_objfile::get_cutu): Likewise.
10411 (dwarf2_per_objfile::get_cu): Likewise.
10412 (create_cus_from_index): Likewise.
10413 (create_addrmap_from_index): Likewise.
10414 (create_addrmap_from_aranges): Likewise.
10415 (dwarf2_read_index): Likewise.
10416 (dw2_find_last_source_symtab): Likewise.
10417 (dw2_map_symtabs_matching_filename): Likewise.
10418 (dw2_symtab_iter_next): Likewise.
10419 (dw2_print_stats): Likewise.
10420 (dw2_expand_all_symtabs): Likewise.
10421 (dw2_expand_symtabs_with_fullname): Likewise.
10422 (dw2_expand_marked_cus): Likewise.
10423 (dw2_map_symbol_filenames): Likewise.
10424 (create_cus_from_debug_names): Likewise.
10425 (dwarf2_read_debug_names): Likewise.
10426 (dw2_debug_names_iterator::next): Likewise.
10427 (dwarf2_initialize_objfile): Likewise.
10428 (set_partial_user): Likewise.
10429 (dwarf2_build_psymtabs_hard): Likewise.
10430 (read_comp_units_from_section): Remove arguments, adjust to
10431 std::vector change.
10432 (create_all_comp_units): Adjust to std::vector and
10433 read_comp_units_from_section changes.
10434 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10436 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10437 (psyms_seen_size): Likewise.
10438 (write_gdbindex): Likewise.
10439 (write_debug_names): Likewise.
10441 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10443 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10444 with dwarf2_per_objfile.
10445 (create_cus_from_index): Likewise.
10446 (create_signatured_type_table_from_index): Likewise.
10447 (dwarf2_read_index): Likewise.
10448 (dwarf2_initialize_objfile): Likewise.
10449 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10450 per_cu rather than get_dwarf2_per_objfile.
10452 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10454 * dwarf2read.h (struct signatured_type): Forward declare.
10455 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10457 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10458 (dw2_get_cutu): ...this.
10459 (dwarf2_per_objfile::get_cu): Rename from...
10460 (dw2_get_cu): ...this.
10461 (dwarf2_per_objfile::get_tu): New.
10462 (create_addrmap_from_index): Adjust.
10463 (create_addrmap_from_aranges): Adjust.
10464 (dw2_find_last_source_symtab): Adjust.
10465 (dw2_map_symtabs_matching_filename): Adjust.
10466 (dw2_symtab_iter_next): Adjust.
10467 (dw2_print_stats): Adjust.
10468 (dw2_expand_all_symtabs): Adjust.
10469 (dw2_expand_symtabs_with_fullname): Adjust.
10470 (dw2_expand_marked_cus): Adjust.
10471 (dw_expand_symtabs_matching_file_matcher): Adjust.
10472 (dw2_map_symbol_filenames): Adjust.
10473 (dw2_debug_names_iterator::next): Adjust.
10474 (dwarf2_initialize_objfile): Adjust.
10475 (set_partial_user): Adjust.
10476 (dwarf2_build_psymtabs_hard): Adjust.
10478 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10480 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10481 Remove unused variables.
10482 (dw2_map_symtabs_matching_filename): Likewise.
10483 (dwarf2_record_block_ranges): Likewise.
10484 (dwarf2_read_addr_index): Likewise.
10485 (follow_die_offset): Likewise.
10487 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10489 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10490 to symbol_file_add_main.
10492 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10495 * mi/mi-console.c (do_fputc_async_safe): New.
10496 (mi_console_file::write_async_safe): New.
10497 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10498 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10500 * ui-file.c (ui_file::putstrn): Adjust call to
10501 fputstrn_unfiltered.
10502 * utils.c (printchar): Replace do_fputs and do_fprintf
10503 parameters by do_fputc.
10504 (fputstr_filtered): Adjust call to printchar.
10505 (fputstr_unfiltered): Likewise.
10506 (fputstrn_filtered): Likewise.
10507 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10509 * utils.h (do_fputc_ftype): New typedef.
10510 (fputstrn_unfiltered): Add do_fputc parameter.
10512 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10514 * regformats/i386/i386-avx.dat: Remove.
10516 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10519 * amd64-tdep.c (amd64_none_init_abi): New function.
10520 (amd64_x32_none_init_abi): New function.
10521 (_initialize_amd64_tdep): Register handlers for x86-64 and
10522 x64_32 with GDB_OSABI_NONE.
10523 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10524 GDB_OSABI_NONE osabi.
10526 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10529 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10531 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10532 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10534 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10536 * common/byte-vector.h (char_vector): New type.
10537 * target.h (target_read_alloc): Return
10538 gdb::optional<byte_vector>.
10539 (target_read_stralloc): Return gdb::optional<char_vector>.
10540 (target_get_osdata): Return gdb::optional<char_vector>.
10541 * target.c (target_read_alloc_1): Templatize. Replacement
10542 manual memory management with vector.
10543 (target_read_alloc): Change return type, adjust.
10544 (target_read_stralloc): Change return type, adjust.
10545 (target_get_osdata): Change return type, adjust.
10546 * auxv.c (struct auxv_info) <length>: Remove.
10547 <data>: Change type to gdb::optional<byte_vector>.
10548 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10549 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10550 (target_auxv_search): Adjust.
10551 (fprint_target_auxv): Adjust.
10552 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10553 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10554 (linux_make_corefile_notes): Adjust.
10555 * osdata.c (get_osdata): Adjust.
10556 * remote.c (remote_get_threads_with_qxfer): Adjust.
10557 (remote_memory_map): Adjust.
10558 (remote_traceframe_info): Adjust.
10559 (btrace_read_config): Adjust.
10560 (remote_read_btrace): Adjust.
10561 (remote_pid_to_exec_file): Adjust.
10562 * solib-aix.c (solib_aix_get_library_list): Adjust.
10563 * solib-dsbt.c (decode_loadmap): Don't free buf.
10564 (dsbt_get_initial_loadmaps): Adjust.
10565 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10566 * solib-target.c (solib_target_current_sos): Adjust.
10567 * tracepoint.c (sdata_make_value): Adjust.
10568 * xml-support.c (xinclude_start_include): Adjust.
10569 (xml_fetch_content_from_file): Adjust.
10570 * xml-support.h (xml_fetch_another): Change return type.
10571 (xml_fetch_content_from_file): Change return type.
10572 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10573 * xml-tdesc.c (file_read_description_xml): Adjust.
10574 (fetch_available_features_from_target): Change return type.
10575 (target_fetch_description_xml): Adjust.
10576 (target_read_description_xml): Adjust.
10578 2018-04-06 Tom Tromey <tom@tromey.com>
10580 * value.c (~value): Update.
10581 (struct value) <contents>: Now unique_xmalloc_ptr.
10582 (value_contents_bits_eq, allocate_value_contents)
10583 (value_contents_raw, value_contents_all_raw)
10584 (value_contents_for_printing, value_contents_for_printing_const)
10585 (set_value_enclosing_type): Update.
10587 2018-04-06 Tom Tromey <tom@tromey.com>
10589 * value.c (range_s): Remove typedef, VEC.
10590 (struct range): Add operator<.
10591 (range_lessthan): Remove.
10592 (ranges_contain): Change type.
10594 (struct value) <unavailable, optimized_out>: Now std::vector.
10595 (value_entirely_available)
10596 (value_entirely_covered_by_range_vector)
10597 (value_entirely_unavailable, value_entirely_optimized_out):
10599 (insert_into_bit_range_vector): Change argument type.
10600 (find_first_range_overlap): Likewise.
10601 (struct ranges_and_idx, value_contents_bits_eq)
10602 (require_not_optimized_out, require_available): Update.
10603 (ranges_copy_adjusted): Change argument types.
10604 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10606 2018-04-06 Tom Tromey <tom@tromey.com>
10608 * value.c (~value): Update.
10609 (struct value) <parent>: Now a value_ref_ptr.
10610 (value_parent, set_value_parent, value_address, value_copy):
10613 2018-04-06 Tom Tromey <tom@tromey.com>
10615 * value.c (struct value): Add constructor, destructor, and member
10617 (allocate_value_lazy, value_decref): Update.
10619 2018-04-06 Tom Tromey <tom@tromey.com>
10621 * value.c (struct value) <released, next>: Remove.
10622 (all_values): Now a std::vector.
10623 (allocate_value_lazy): Update.
10624 (value_next): Remove.
10625 (value_mark, value_free_to_mark, release_value)
10626 (value_release_to_mark): Update.
10628 2018-04-06 Tom Tromey <tom@tromey.com>
10630 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10631 (free_value_chain): Remove.
10632 * value.c (free_value_chain): Remove.
10633 (value_release_to_mark): Return a std::vector.
10634 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10636 (check_condition): Update.
10637 * eval.c (fetch_subexp_value): Change "val_chain" to a
10639 * breakpoint.c (update_watchpoint): Update.
10640 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10642 2018-04-06 Tom Tromey <tom@tromey.com>
10644 * value.h (free_all_values): Remove.
10645 * value.c (free_all_values): Remove.
10647 2018-04-06 Tom Tromey <tom@tromey.com>
10649 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10650 (value_history_chain, value_history_count): Remove.
10651 (value_history): New global.
10652 (record_latest_value, access_value_history, show_values)
10653 (preserve_values): Update.
10655 2018-04-06 Tom Tromey <tom@tromey.com>
10657 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10658 * varobj.c (varobj_set_display_format, varobj_set_value)
10659 (install_default_visualizer, construct_visualizer)
10660 (install_new_value, ~varobj, varobj_get_value_type)
10661 (my_value_of_variable, varobj_editable_p): Update.
10662 * c-varobj.c (c_describe_child, c_value_of_variable)
10663 (cplus_number_of_children, cplus_describe_child): Update.
10664 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10665 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10666 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10668 2018-04-06 Tom Tromey <tom@tromey.com>
10670 * printcmd.c (last_examine_address): Change type to
10672 (do_examine, x_command): Update.
10674 2018-04-06 Tom Tromey <tom@tromey.com>
10676 * value.c (release_value): Update.
10677 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10678 (struct bpstats) <val>: Now a value_ref_ptr.
10679 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10680 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10681 (~watchpoint, print_it_watchpoint, watch_command_1)
10682 (invalidate_bp_value_on_memory_change): Update.
10684 2018-04-06 Tom Tromey <tom@tromey.com>
10686 * varobj.c (varobj_clear_saved_item)
10687 (update_dynamic_varobj_children, install_new_value, ~varobj):
10689 * value.h (value_incref): Move declaration earlier.
10690 (value_decref): Rename from value_free.
10691 (struct value_ref_policy): New.
10692 (value_ref_ptr): New typedef.
10693 (struct value_deleter): Remove.
10694 (gdb_value_up): Remove typedef.
10695 (release_value): Change return type.
10696 (release_value_or_incref): Remove.
10697 * value.c (set_value_parent): Update.
10698 (value_incref): Change return type.
10699 (value_decref): Rename from value_free.
10700 (value_free_to_mark, free_all_values, free_value_chain): Update.
10701 (release_value): Return value_ref_ptr.
10702 (release_value_or_incref): Remove.
10703 (record_latest_value, set_internalvar, clear_internalvar):
10705 * stack.c (info_frame_command): Don't call value_free.
10706 * python/py-value.c (valpy_dealloc, valpy_new)
10707 (value_to_value_object): Update.
10708 * printcmd.c (do_examine): Update.
10709 * opencl-lang.c (lval_func_free_closure): Update.
10710 * mi/mi-main.c (register_changed_p): Don't call value_free.
10711 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10712 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10713 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10715 * guile/scm-value.c (vlscm_free_value_smob)
10716 (vlscm_scm_from_value): Update.
10717 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10718 (frame_unwind_register_unsigned, get_frame_register_bytes)
10719 (put_frame_register_bytes): Don't call value_free.
10720 * findvar.c (address_from_register): Don't call value_free.
10721 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10722 * dwarf2loc.c (entry_data_value_free_closure)
10723 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10724 (dwarf2_evaluate_loc_desc_full): Update.
10725 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10726 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10727 (~watchpoint, watch_command_1)
10728 (invalidate_bp_value_on_memory_change): Update.
10729 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10731 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10734 * warning.m4: Add -Wno-error=deprecated-register.
10735 * configure: Re-generate.
10737 2018-04-05 Tom Tromey <tom@tromey.com>
10739 * linespec.h: Remove include of "vec.h".
10741 2018-04-05 Tom Tromey <tom@tromey.com>
10743 * linespec.c (typep): Remove typedef.
10744 (find_methods, find_superclass_methods): Take a std::vector.
10745 (find_method): Use std::vector.
10747 2018-04-05 Tom Tromey <tom@tromey.com>
10749 * utils.c (compare_strings): Remove.
10750 * utils.h (compare_strings): Remove.
10751 * objc-lang.h (find_imps): Update.
10752 * objc-lang.c (find_methods): Take a std::vector.
10753 (uniquify_strings, find_imps): Likewise.
10754 * linespec.c (find_methods): Take a std::vector.
10755 (decode_objc): Use std::vector.
10756 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10758 (find_method, find_function_symbols): Use std::vector.
10760 2018-04-05 Tom Tromey <tom@tromey.com>
10762 * completer.c (completion_tracker::completion_tracker): Remove
10764 (completion_tracker::discard_completions): Likewise.
10765 * breakpoint.c (ambiguous_names_p): Remove cast.
10766 * ada-lang.c (_initialize_ada_language): Remove cast.
10767 * utils.h (streq): Update.
10768 (streq_hash): Add new declaration.
10769 * utils.c (streq): Return bool.
10770 (streq_hash): New function.
10772 2018-04-05 Tom Tromey <tom@tromey.com>
10774 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10775 Remove a string copy.
10777 2018-04-05 Tom Tromey <tom@tromey.com>
10779 * linespec.c (filter_results): Use std::vector.
10780 (decode_line_2, decode_line_full): Update.
10782 2018-04-05 Tom Tromey <tom@tromey.com>
10784 * linespec.c (canonical_to_fullform): Return std::string.
10785 (filter_results): Update.
10786 (struct decode_line_2_item): Add constructor.
10787 <fullform, displayform>: Now std::string.
10788 (decode_line_2_compare_items): Now a std::sort comparator.
10789 (decode_line_2): Update.
10791 2018-04-05 Tom Tromey <tom@tromey.com>
10793 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10794 (unexpected_linespec_error): Update.
10795 (linespec_parse_basic, parse_linespec): Update.
10797 2018-04-05 Tom Tromey <tom@tromey.com>
10799 * linespec.c (linespec_parse_basic): Reindent.
10801 2018-04-05 Tom Tromey <tom@tromey.com>
10803 * minsyms.h (iterate_over_minimal_symbols): Update.
10804 * minsyms.c (iterate_over_minimal_symbols): Take a
10805 gdb::function_view.
10806 * linespec.c (struct collect_minsyms): Remove.
10807 (compare_msyms): Now a std::sort comparator.
10808 (add_minsym): Add parameters.
10809 (search_minsyms_for_name): Update. Use std::vector.
10811 2018-04-03 Tom Tromey <tom@tromey.com>
10813 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10816 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10818 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10820 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10823 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10824 printing static type.
10826 2018-04-01 Tom Tromey <tom@tromey.com>
10828 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10829 (rs6000_xfer_shared_libraries): Update.
10831 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10833 * common/gdb_vecs.h (char_ptr): Remove.
10834 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10836 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10838 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10840 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10842 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10844 * tracepoint.h (struct uploaded_tp): Initialize fields.
10845 <actions, step_actions, cmd_strings>: Change type to
10846 std::vector<char *>.
10847 * tracepoint.c (get_uploaded_tp): Allocate with new.
10848 (free_uploaded_tps): Free with delete.
10849 (parse_tracepoint_definition): Adjust to std::vector change.
10850 * breakpoint.c (read_uploaded_action): Likewise.
10851 (create_tracepoint_from_upload): Likewise.
10852 * ctf.c (ctf_write_uploaded_tp): Likewise.
10853 (SET_ARRAY_FIELD): Likewise.
10854 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10856 2018-03-30 Tom Tromey <tom@tromey.com>
10858 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10860 (svr4_keep_data_in_core): Update.
10861 (svr4_read_so_list): Update.
10863 2018-03-30 Tom Tromey <tom@tromey.com>
10865 * windows-nat.c (handle_output_debug_string, handle_exception):
10867 * target.h (target_read_string): Update.
10868 * target.c (target_read_string): Change "string" to
10869 unique_xmalloc_ptr.
10870 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10872 * solib-frv.c (frv_current_sos): Update.
10873 * solib-dsbt.c (dsbt_current_sos): Update.
10874 * solib-darwin.c (darwin_current_sos): Update.
10875 * linux-thread-db.c (inferior_has_bug): Update.
10876 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10877 Update. Remove alloca.
10878 * ada-lang.c (ada_main_name): Update.
10880 2018-03-30 Tom Tromey <tom@tromey.com>
10882 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10883 (struct dwo_file_deleter): New.
10884 (dwo_file_up): New typedef.
10885 (open_and_init_dwo_file): Use dwo_file_up.
10886 (free_dwo_file_cleanup): Remove.
10888 2018-03-30 Tom Tromey <tom@tromey.com>
10890 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10891 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10893 2018-03-30 Tom Tromey <tom@tromey.com>
10895 * dwarf2read.c (class free_cached_comp_units): New class.
10896 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10897 (free_cached_comp_units): Remove function.
10899 2018-03-30 Tom Tromey <tom@tromey.com>
10901 * utils.h (make_cleanup_unpush_target): Remove.
10902 * inf-ptrace.c (struct target_unpusher): New.
10903 (target_unpush_up) New typedef.
10904 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10906 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10908 2018-03-27 Tom Tromey <tom@tromey.com>
10910 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10912 2018-03-27 Pedro Alves <palves@redhat.com>
10913 Tom Tromey <tom@tromey.com>
10915 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10916 destructor. Now a class.
10917 (gdb_readline_wrapper_cleanup): Remove function.
10918 (gdb_readline_wrapper): Remove cleanups.
10920 2018-03-27 Tom Tromey <tom@tromey.com>
10922 * typeprint.h (struct type_print_options) <local_typedefs,
10923 global_typedefs>: Remove "struct" keyword.
10924 (class typedef_hash_table): New class.
10925 (recursively_update_typedef_hash, add_template_parameters)
10926 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10927 (find_typedef_in_hash): Don't declare.
10928 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10929 (typedef_hash_table::recursively_update): Rename from
10930 recursively_update_typedef_hash. Now a member.
10931 (typedef_hash_table::add_template_parameters): Rename from
10932 add_template_parameters. Now a member.
10933 (typedef_hash_table::typedef_hash_table): Now a constructor;
10934 rename from create_typedef_hash.
10935 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10936 rename from free_typedef_hash.
10937 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10938 (do_free_global_table): Remove.
10939 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10940 from copy_type_recursive.
10941 (create_global_typedef_table): Remove.
10942 (typedef_hash_table::find_global_typedef): Now a member of
10943 typedef_hash_table.
10944 (typedef_hash_table::find_typedef): Rename from
10945 find_typedef_in_hash; now a member.
10946 (whatis_exp): Update.
10947 * extension.h (struct ext_lang_type_printers): Add constructor and
10949 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10951 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10952 Now a constructor; rename from start_ext_lang_type_printers.
10953 (ext_lang_type_printers): Now a destructor; rename from
10954 free_ext_lang_type_printers.
10955 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10957 (c_type_print_base_struct_union): Update. Remove cleanups.
10959 2018-03-27 Tom Tromey <tom@tromey.com>
10961 * dwarf-index-write.c: Include <cmath>.
10963 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10965 * NEWS: Add entry describing new "set|show varsize-limit" command.
10966 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10968 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10971 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10973 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10974 dwarf-index-write.c
10975 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10976 * dwarf-index-common.c: New file.
10977 * dwarf-index-common.h: New file.
10978 * dwarf-index-write.c: New file.
10979 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10980 (struct dwarf2_section_info): Move from here.
10981 (dwarf2_section_info_def): Likewise.
10982 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10983 (offset_type): Likewise.
10984 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10985 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10986 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10987 (byte_swap): Likewise.
10988 (MAYBE_SWAP): Likewise.
10989 (dwarf2_per_cu_ptr): Likewise.
10990 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10991 (struct tu_stats): Likewise.
10992 (struct dwarf2_per_objfile): Likewise.
10993 (struct dwarf2_per_cu_data): Likewise.
10994 (struct signatured_type): Likewise.
10995 (sig_type_ptr): Likewise.
10996 (DEF_VEC_P (sig_type_ptr)): Likewise.
10997 (INDEX4_SUFFIX): Likewise.
10998 (INDEX5_SUFFIX): Likewise.
10999 (DEBUG_STR_SUFFIX): Likewise.
11000 (dwarf2_read_section): Make non-static.
11001 (mapped_index_string_hash): Move from here.
11002 (dwarf5_djb_hash): Likewise.
11003 (file_write): Likewise.
11004 (class data_buf): Likewise.
11005 (struct symtab_index_entry): Likewise.
11006 (struct mapped_symtab): Likewise.
11007 (find_slot): Likewise.
11008 (hash_expand): Likewise.
11009 (add_index_entry): Likewise.
11010 (uniquify_cu_indices): Likewise.
11011 (class c_str_view): Likewise.
11012 (class c_str_view_hasher): Likewise.
11013 (class vector_hasher): Likewise.
11014 (write_hash_table): Likewise.
11015 (psym_index_map): Likewise.
11016 (struct addrmap_index_data): Likewise.
11017 (add_address_entry): Likewise.
11018 (add_address_entry_worker): Likewise.
11019 (write_address_map): Likewise.
11020 (symbol_kind): Likewise.
11021 (write_psymbols): Likewise.
11022 (struct signatured_type_index_data): Likewise.
11023 (write_one_signatured_type): Likewise.
11024 (recursively_count_psymbols): Likewise.
11025 (recursively_write_psymbols): Likewise.
11026 (class debug_names): Likewise.
11027 (check_dwarf64_offsets): Likewise.
11028 (psyms_seen_size): Likewise.
11029 (write_gdbindex): Likewise.
11030 (write_debug_names): Likewise.
11031 (assert_file_size): Likewise.
11032 (write_psymtabs_to_index): Likewise.
11033 (save_gdb_index_command): Likewise.
11034 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11036 * dwarf2read.h: New file.
11038 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11041 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11042 symbol name if the CU's language stores symbol names in linkage
11044 * language.h (struct language_defn)
11045 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11046 all instances of this struct.
11048 2018-03-26 Tom Tromey <tom@tromey.com>
11050 * stack.c (backtrace_command_1): Remove verbose code.
11052 2018-03-26 Tom Tromey <tom@tromey.com>
11054 * python/py-framefilter.c (py_print_type): Don't catch
11055 exceptions. Return void.
11056 (py_print_value): Likewise.
11057 (py_print_single_arg): Likewise.
11058 (enumerate_args): Don't catch exceptions.
11059 (py_print_args): Likewise.
11060 (py_print_frame): Likewise.
11061 (gdbpy_apply_frame_filter): Catch exceptions here.
11063 2018-03-26 Tom Tromey <tom@tromey.com>
11065 * stack.c (_initialize_stack): Remove trailing newlines from help
11066 text. Add "Usage" line to "backtrace" help.
11068 2018-03-26 Tom Tromey <tom@tromey.com>
11071 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11073 2018-03-26 Tom Tromey <tom@tromey.com>
11075 * python/py-framefilter.c (py_print_single_arg): Return
11076 EXT_LANG_BT_ERROR from catch.
11078 2018-03-26 Tom Tromey <tom@tromey.com>
11080 PR backtrace/15584:
11081 * stack.c (backtrace_command_1): Move some code into no-filters
11084 2018-03-26 Tom Tromey <tom@tromey.com>
11086 * python/py-framefilter.c (throw_quit_or_print_exception): New
11088 (gdbpy_apply_frame_filter): Use it.
11090 2018-03-26 Tom Tromey <tom@tromey.com>
11093 * python/py-framefilter.c (py_print_type, py_print_value)
11094 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11097 2018-03-26 Tom Tromey <tom@tromey.com>
11099 * python/py-framefilter.c (enumerate_args): Use
11100 gdb::unique_xmalloc_ptr.
11102 2018-03-26 Tom Tromey <tom@tromey.com>
11104 * python/py-framefilter.c (py_print_frame): Return
11106 (gdbpy_apply_frame_filter): Update comment.
11107 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11109 <EXT_LANG_BT_NO_FILTERS>: Change value.
11111 2018-03-26 Tom Tromey <tom@tromey.com>
11113 PR backtrace/15582:
11114 * stack.c (backtrace_command): Parse "hide" argument.
11115 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11116 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11119 2018-03-26 Tom Tromey <tom@tromey.com>
11121 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11123 (backtrace_command): Remove "fulltrace", add "flags".
11125 2018-03-26 Tom Tromey <tom@tromey.com>
11127 * stack.c (backtrace_command): Rewrite command line parsing.
11129 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11131 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11133 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11135 * filename-seen-cache.h: Add include guard.
11137 2018-03-26 Keith Seitz <keiths@redhat.com>
11139 * symfile.c (place_section): Remove "struct" from section_addr_info
11141 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11142 "struct" keyword from section_addr_info.
11144 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11146 * regformats/regdef.h (reg): Add constructors.
11148 2018-03-25 Pedro Alves <palves@redhat.com>
11150 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11151 if then/else bodies in var_func_name extraction.
11153 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11155 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11156 lookup_minimal_symbol() to find symbol entry.
11157 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11159 2018-03-23 Keith Seitz <keiths@redhat.com>
11162 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11163 nested type definitions for C++, too.
11165 2018-03-23 Tom Tromey <tom@tromey.com>
11167 * machoread.c (struct oso_el): Add a constructor. Don't define as
11169 (macho_register_oso): Remove.
11170 (macho_symtab_read): Take a std::vector.
11171 (oso_el_compare_name): Now a std::sort comparator.
11172 (macho_symfile_read_all_oso): Take a std::vector.
11173 (macho_symfile_read): Use std::vector. Remove cleanups.
11175 2018-03-22 Tom Tromey <tom@tromey.com>
11177 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11178 (record_full_goto_bookmark): Use std::string.
11180 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11183 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11186 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11188 * rs6000-tdep.c (store_insn_p): New function.
11189 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11190 and cr_reg to their unshifted values. Use store_insn_p to
11191 match LR saves using either R1 or fdata->alloca_reg. Use
11192 store_insn_p to match CR saves. Set alloca_reg_offset
11193 when alloca_reg and framep are set. Remove lr_reg shift
11194 when assigning to fdata->lr_register.
11196 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11198 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11199 command line args instead of emitting a warning.
11201 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11203 * tracepoint.h (struct static_tracepoint_marker): Initialize
11204 fields, define default constructor, move constructor and move
11205 assignment, disable the rest.
11206 <str_id, extra>: Make std::string.
11207 (release_static_tracepoint_marker): Remove.
11208 (free_current_marker): Remove.
11209 * tracepoint.c (free_current_marker): Remove.
11210 (parse_static_tracepoint_marker_definition): Adjust to
11211 std::string, use new hex2str overload.
11212 (release_static_tracepoint_marker): Remove.
11213 (print_one_static_tracepoint_marker): Get marker by reference
11214 and adjust to std::string.
11215 (info_static_tracepoint_markers_command): Adjust to std::vector
11217 * target.h (static_tracepoint_marker_p): Remove typedef.
11218 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11219 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11221 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11223 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11224 (target_debug_print_std_vector_static_tracepoint_marker): New.
11225 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11227 (target_debug_print_static_tracepoint_marker_p): ... this.
11228 * target-delegates.c: Re-generate.
11229 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11231 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11232 (decode_static_tracepoint_spec): Adjust to std::vector.
11233 (tracepoint_print_one_detail): Adjust to std::string.
11234 (strace_marker_decode_location): Adjust to std::string.
11235 (update_static_tracepoint): Adjust to std::string, remove call
11236 to release_static_tracepoint_marker.
11237 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11238 Adjust to std::vector.
11239 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11240 (remote_static_tracepoint_markers_by_strid): Adjust to
11242 * common/rsp-low.h (hex2str): New overload with explicit count
11244 * common/rsp-low.c (hex2str): New overload with explicit count
11246 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11247 (_initialize_rsp_low_selftests): Add test_hex2str test.
11248 * unittests/tracepoint-selftests.c
11249 (test_parse_static_tracepoint_marker_definition): Adjust to
11252 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11254 * tracepoint.c (parse_static_tracepoint_marker_definition):
11255 Consider case where the definition is followed by more
11257 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11258 tracepoint-selftests.c.
11259 * unittests/tracepoint-selftests.c: New.
11261 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11263 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11266 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11268 * symtab.c (find_pc_sect_line): fixed indentation.
11270 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11272 * symtab.c (find_pc_sect_line): now uses binary search.
11274 2018-03-19 Tom Tromey <tom@tromey.com>
11276 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11277 "IDENT" production.
11279 2018-03-19 Pedro Alves <palves@redhat.com>
11280 Tom Tromey <tom@tromey.com>
11282 * unittests/observable-selftests.c: New file.
11283 * common/observable.h: New file.
11284 * observable.h: New file.
11285 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11286 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11287 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11288 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11289 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11290 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11291 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11292 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11293 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11294 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11295 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11296 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11297 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11298 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11299 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11300 tui/tui-interp.c, valops.c: Update all users.
11301 * tui/tui-hooks.c (tui_bp_created_observer)
11302 (tui_bp_deleted_observer, tui_bp_modified_observer)
11303 (tui_inferior_exit_observer, tui_before_prompt_observer)
11304 (tui_normal_stop_observer, tui_register_changed_observer):
11306 (tui_observers_token): New global.
11307 (attach_or_detach, tui_attach_detach_observers): New functions.
11308 (tui_install_hooks, tui_remove_hooks): Use
11309 tui_attach_detach_observers.
11310 * record-btrace.c (record_btrace_thread_observer): Remove.
11311 (record_btrace_thread_observer_token): New global.
11312 * observer.sh: Remove.
11313 * observer.c: Rename to observable.c.
11314 * observable.c (namespace gdb_observers): Define new objects.
11315 (observer_debug): Move into gdb_observers namespace.
11316 (struct observer, struct observer_list, xalloc_observer_list_node)
11317 (xfree_observer_list_node, generic_observer_attach)
11318 (generic_observer_detach, generic_observer_notify): Remove.
11319 (_initialize_observer): Update.
11320 Don't include observer.inc.
11321 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11322 (clean mostlyclean): Likewise.
11323 (observer.h, observer.inc): Remove targets.
11324 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11325 (COMMON_SFILES): Use observable.c, not observer.c.
11326 * .gitignore: Remove observer.h.
11328 2018-03-18 Tom Tromey <tom@tromey.com>
11330 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11332 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11334 2018-03-17 Tom Tromey <tom@tromey.com>
11336 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11338 2018-03-17 Tom Tromey <tom@tromey.com>
11340 * target.c (class scoped_target_fd): New.
11341 (target_fileio_close_cleanup): Remove.
11342 (target_fileio_read_alloc_1): Use scoped_target_fd.
11344 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11346 * silent-rules.mk: New.
11347 * Makefile.in: Include silent-rules.mk
11348 (srcdir, VPATH, top_srcdir): Move up.
11349 (COMPILE): Add ECHO_CXX.
11350 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11351 (init.c): Add ECHO_INIT_C.
11352 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11353 (version.c): Add ECHO_GEN.
11354 (printcmd.o): Add ECHO_CXX.
11355 (target-float.o): Add ECHO_CXX.
11356 (ada-exp.o): Add ECHO_CXX.
11357 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11358 (insight$(EXEEXT)): Add ECHO_CXXLD.
11359 * gnulib/configure.ac: Add AM_SILENT_RULES.
11360 * gnulib/aclocal.m4: Re-generate.
11361 * gnulib/configure: Re-generate.
11362 * gnulib/import/Makefile.in: Re-generate.
11364 2018-03-16 Tom Tromey <tom@tromey.com>
11366 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11367 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11368 * utils.c (do_free_section_addr_info)
11369 (make_cleanup_free_section_addr_info): Remove.
11370 * symfile.h (struct other_sections): Add constructor.
11371 (struct section_addr_info): Remove.
11372 (section_addr_info): New typedef.
11373 (struct sym_fns) <sym_offsets>: Change type of parameter.
11374 (build_section_addr_info_from_objfile)
11375 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11376 (default_symfile_offsets, symbol_file_add)
11377 (symbol_file_add_from_bfd)
11378 (build_section_addr_info_from_section_table): Update.
11379 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11380 * symfile.c (alloc_section_addr_info): Remove.
11381 (build_section_addr_info_from_section_table): Change return type.
11383 (build_section_addr_info_from_bfd)
11384 (build_section_addr_info_from_objfile): Likewise.
11385 (free_section_addr_info): Remove.
11386 (relative_addr_info_to_section_offsets): Change type of "addrs".
11387 (addrs_section_compar): Now a std::sort comparator.
11388 (addrs_section_sort): Change return type.
11389 (addr_info_make_relative): Change type of "addrs". Update.
11390 (default_symfile_offsets, syms_from_objfile_1)
11391 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11392 (symbol_file_add_separate): Update.
11393 (symbol_file_add): Change type of "addrs". Update.
11394 (add_symbol_file_command): Update. Remove cleanups.
11395 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11397 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11398 * solib.c (solib_read_symbols): Update.
11399 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11400 * machoread.c (macho_symfile_offsets): Update.
11401 * jit.c (jit_bfd_try_read_symtab): Update.
11403 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11405 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11406 unittests/utils-selftests.c.
11407 * unittests/utils-selftests.c: New file.
11409 2018-03-14 Tom Tromey <tom@tromey.com>
11412 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11415 2018-03-14 Tom Tromey <tom@tromey.com>
11418 * printcmd.c (printf_pointer): Allow "-" in format.
11420 2018-03-14 Tom Tromey <tom@tromey.com>
11422 * printcmd.c (_initialize_printcmd): Add usage to printf.
11424 2018-03-14 Yao Qi <qiyao@sourceware.org>
11426 * MAINTAINERS: Update my email address.
11428 2018-03-13 Tom Tromey <tom@tromey.com>
11430 * machoread.c (macho_check_dsym): Change filenamep to a
11432 (macho_symfile_read): Update.
11433 * symfile.c (load_command): Use std::string.
11435 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11437 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11438 to error message string.
11439 (riscv_register_name): Use xsnprintf instead of sprintf.
11440 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11442 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11444 (riscv_push_dummy_call): Likewise.
11446 2018-03-12 Tom Tromey <tom@tromey.com>
11448 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11449 Use gdb::byte_vector.
11450 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11452 2018-03-12 Yao Qi <yao.qi@linaro.org>
11454 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11455 parameter type to readable_regcache.
11456 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11459 2018-03-11 Tom Tromey <tom@tromey.com>
11461 * dwarf2read.c (struct nextfield): Add initializers.
11462 (struct nextfnfield): Remove.
11463 (struct fnfieldlist): Add initializers. Remove "length" and
11464 "head", use std::vector.
11465 (struct decl_field_list): Remove.
11466 (struct field_info): Add initializers.
11467 <fields, baseclasses>: Now std::vector.
11468 <nbaseclasses, nfnfields, typedef_field_list_count,
11469 nested_types_list_count>: Remove.
11470 (dwarf2_add_field, dwarf2_add_type_defn)
11471 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11472 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11473 (process_structure_scope): Update.
11475 2018-03-11 Tom Tromey <tom@tromey.com>
11477 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11478 for use by std::sort.
11479 (build_type_psymtabs_1): Use std::vector.
11481 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11483 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11484 and LIBMPFR in the printed configuration.
11486 2018-03-08 Tom Tromey <tom@tromey.com>
11488 * source.c (get_filename_and_charpos): Use scoped_fd.
11489 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11490 (procfs_pidlist): Likewise.
11491 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11492 (iterate_over_mappings): Likewise.
11494 2018-03-08 Tom Tromey <tom@tromey.com>
11496 * infcall.c (struct call_return_meta_info)
11497 <stack_temporaries_enabled>: Remove.
11498 (get_call_return_value, call_function_by_hand_dummy): Update.
11499 * thread.c (disable_thread_stack_temporaries): Remove.
11500 (enable_thread_stack_temporaries): Remove.
11501 (thread_stack_temporaries_enabled_p): Return bool.
11502 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11503 (get_last_thread_stack_temporary): Update.
11504 * eval.c (evaluate_subexp): Update.
11505 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11506 class, not a function.
11507 (value_ptr, value_vec): Remove typedefs.
11508 (class thread_info) <stack_temporaries_enabled>: Now bool.
11509 <stack_temporaries>: Now a std::vector.
11510 (thread_stack_temporaries_enabled_p)
11511 (value_in_thread_stack_temporaries): Return bool.
11513 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11515 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11516 (getpkt_or_notif_sane_1): Likewise.
11518 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11520 * build-id.c (build_id_to_debug_bfd): Use std::string.
11522 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11524 * build-id.c (find_separate_debug_file_by_buildid): Return
11526 * build-id.h (find_separate_debug_file_by_buildid): Return
11528 * coffread.c (coff_symfile_read): Adjust to std::string.
11529 * elfread.c (elf_symfile_read): Adjust to std::string.
11530 * symfile.c (separate_debug_file_exists): Change parameter to
11532 (find_separate_debug_file): Return std::string.
11533 (find_separate_debug_file_by_debuglink): Return std::string.
11534 * symfile.h (find_separate_debug_file_by_debuglink): Return
11537 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11539 * common/xml-utils.c (xml_escape_text): Move code to...
11540 (xml_escape_text_append): ... this new function.
11541 * common/xml-utils.h (xml_escape_text_append): New declaration.
11542 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11544 (_initialize_xml_utils): register test_xml_escape_text_append as
11547 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11549 * defs.h: Remove MAX_REGISTER_SIZE.
11550 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11552 * python/py-unwind.c (pyuw_sniffer): Likewise.
11554 2018-03-07 Tom Tromey <tom@tromey.com>
11556 * linux-tdep.c (linux_info_proc): Update.
11557 * target.h (struct target_ops) <to_fileio_readlink>: Return
11559 (target_fileio_readlink): Return optional<string>.
11560 * remote.c (remote_hostio_readlink): Return optional<string>.
11561 * inf-child.c (inf_child_fileio_readlink): Return
11563 * target.c (target_fileio_readlink): Return optional<string>.
11565 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11567 * regcache.c (cooked_read_test): Add riscv to the list of
11568 architectures that have a save_reggroup.
11570 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11572 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11573 value is not a dynamic class object.
11575 2018-03-06 Tom Tromey <tom@tromey.com>
11577 * rust-exp.y: Formatting fixes.
11579 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11581 * riscv-tdep.c (riscv_register_name): Remove target description
11583 (riscv_gdbarch_init): Remove target description check.
11585 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11587 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11589 * riscv-tdep.h: Likewise.
11591 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11593 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11594 (riscv_pseudo_register_write): Delete.
11595 (riscv_gdbarch_init): Remove all use of pseudo registers.
11597 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11599 * record-btrace.c (btrace_print_lines): Replace cleanup
11600 parameter with RAII equivalents.
11601 (btrace_insn_history): Replace cleanup with RAII equivalents.
11602 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11603 make_cleanup_ui_out_tuple_begin_end): Remove.
11604 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11605 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11606 make_cleanup_ui_out_list_begin_end): Remove.
11608 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11610 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11611 parameter types to std::vector. Use bool.
11612 (record_btrace_wait): Replace VEC(tp_t) with
11613 std::vector<thread_info *>.
11614 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11616 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11618 * record-btrace.c (record_btrace_disable_callback): Remove.
11619 (struct scoped_btrace_disable): New.
11620 (record_btrace_open): Use scoped_btrace_disable.
11622 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11624 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11625 reading values from registers.
11627 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11629 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11632 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11634 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11635 change parameter type. Use GDB's print functions, and use
11636 core_addr_to_string where appropriate.
11637 (riscv_push_dummy_call): Use core_addr_to_string where
11638 appropriate, update call to riscv_print_arg_location, and reindent
11640 (riscv_return_value): Update call to riscv_print_arg_location.
11642 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11643 Tim Newsome <tim@sifive.com>
11644 Albert Ou <a0u@eecs.berkeley.edu>
11645 Darius Rad <darius@bluespec.com>
11647 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11648 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11649 (ALLDEPFILES): Add riscv-tdep.c
11650 * configure.tgt: Add riscv support.
11651 * riscv-tdep.c: New file.
11652 * riscv-tdep.h: New file.
11653 * NEWS: Mention new target.
11654 * MAINTAINERS: Add entry for riscv.
11656 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11658 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11659 fields within aggregates.
11661 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11663 * record-btrace.c (btrace_print_lines): Change type of flags to
11664 gdb_disassembly_flags.
11666 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11668 * fbsd-nat.c: Include "inf-ptrace.h".
11669 (USE_SIGTRAP_SIGINFO): Conditionally define.
11670 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11671 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11672 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11674 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11676 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11678 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11679 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11680 "supports_stopped_by_hw_breakpoint" target methods.
11682 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11684 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11685 * fbsd-nat.c (debug_fbsd_nat): New variable.
11686 (show_fbsd_nat_debug): New function.
11687 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11688 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11690 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11692 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11693 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11695 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11696 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11699 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11701 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11702 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11704 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11706 * charset.c (struct charset_vector): New.
11707 (charsets): Change type to charset_vector.
11708 (find_charset_names): Adjust.
11710 (_initialize_charset): Adjust.
11712 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11714 * progspace.h (struct program_space) <deleted_solibs>: Change
11715 type to std::vector<std::string>.
11716 * progspace.c (clear_program_space_solib_cache): Adjust.
11717 * breakpoint.c (print_solib_event): Adjust.
11718 (check_status_catch_solib): Adjust.
11719 * solib.c (update_solib_list): Adjust.
11720 * ui-out.h (class ui_out) <field_string>: New overload.
11721 * ui-out.c (ui_out::field_string): New overload.
11723 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11725 * progspace.h (struct program_space): Add constructor and
11726 destructor, initialize fields.
11727 (add_program_space): Remove.
11728 * progspace.c (add_program_space): Rename to...
11729 (program_space::program_space): ... this.
11730 (release_program_space): Rename to...
11731 (program_space::~program_space): ... this.
11732 (delete_program_space): Use delete to delete program_space.
11733 (initialize_progspace): Use new to allocate program_space.
11734 * inferior.c (add_inferior_with_spaces): Likewise.
11735 (clone_inferior_command): Likewise.
11736 * infrun.c (follow_fork_inferior): Likewise.
11737 (handle_vfork_child_exec_or_exit): Likewise.
11739 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11741 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11742 (delim_string_to_char_ptr_vec): Return std::vector of
11743 gdb::unique_xmalloc_ptr.
11744 (dirnames_to_char_ptr_vec_append): Take std::vector of
11745 gdb::unique_xmalloc_ptr.
11746 (dirnames_to_char_ptr_vec): Return std::vector of
11747 gdb::unique_xmalloc_ptr.
11748 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11749 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11750 (delim_string_to_char_ptr_vec): Return an std::vector of
11751 gdb::unique_xmalloc_ptr, adjust the code.
11752 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11753 gdb::unique_xmalloc_ptr, adjust the code.
11754 (dirnames_to_char_ptr_vec): Return an std::vector of
11755 gdb::unique_xmalloc_ptr, adjust the code.
11756 * auto-load.c (auto_load_safe_path_vec): Change type to
11757 std::vector of gdb::unique_xmalloc_ptr.
11758 (auto_load_expand_dir_vars): Return an std::vector of
11759 gdb::unique_xmalloc_ptr, adjust the code.
11760 (auto_load_safe_path_vec_update): Adjust.
11761 (filename_is_in_auto_load_safe_path_vec): Adjust.
11762 (auto_load_objfile_script_1): Adjust.
11763 * build-id.c (build_id_to_debug_bfd): Adjust.
11764 * linux-thread-db.c (thread_db_load_search): Adjust.
11765 * source.c (add_path): Adjust.
11767 * symfile.c (find_separate_debug_file): Adjust.
11768 * utils.c (do_free_char_ptr_vec): Remove.
11769 (make_cleanup_free_char_ptr_vec): Remove.
11771 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11774 * common/pathstuff.c: Conditionally include "<windows.h>".
11776 2018-03-01 Georg Sauthoff <mail@georg.so>
11779 * gcore.in: Quote variables and switch interpreter to bash.
11781 2018-03-01 Tom Tromey <tom@tromey.com>
11783 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11784 assertion. Add assertion for discriminant_index.
11785 (quirk_rust_enum): Use correct base type name in univariant case.
11787 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11789 * record.c (get_call_history_modifiers): Return a
11790 record_print_flags.
11791 (cmd_record_call_history): Adjust.
11792 * record-btrace.c (record_btrace_call_history): Adjust.
11793 (record_btrace_call_history_range): Adjust.
11794 (record_btrace_call_history_from): Adjust.
11795 * target-debug.h (target_debug_print_record_print_flags): New.
11796 * target-delegates.c: Re-generate.
11797 * target.c (target_call_history): Change flags type.
11798 (target_call_history_from): Likewise.
11799 (target_call_history_range): Likewise.
11800 * target.h (struct target_ops) <target_call_history>: Likewise.
11801 (target_call_history_from): Likewise.
11802 (target_call_history_range): Likewise.
11804 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11805 Simon Marchi <simon.marchi@polymtl.ca>
11807 * common/common-utils.c: Include "sys/stat.h".
11808 (is_regular_file): Move here from "source.c"; change return
11810 * common/common-utils.h (is_regular_file): New prototype.
11811 * common/pathstuff.c (contains_dir_separator): New function.
11812 * common/pathstuff.h (contains_dir_separator): New prototype.
11813 * source.c: Don't include "sys/stat.h".
11814 (is_regular_file): Move to "common/common-utils.c".
11816 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11818 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11819 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11820 * auto-load.c: Include "common/pathstuff.h".
11821 * common/common-def.h (current_directory): Move here.
11822 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11824 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11826 * common/pathstuff.c: New file.
11827 * common/pathstuff.h: New file.
11828 * compile/compile.c: Include "common/pathstuff.h".
11829 * defs.h (current_directory): Move to "common/common-defs.h".
11830 * dwarf2read.c: Include "common/pathstuff.h".
11831 * exec.c: Likewise.
11832 * guile/scm-safe-call.c: Likewise.
11833 * linux-thread-db.c: Likewise.
11834 * main.c: Likewise.
11835 * nto-tdep.c: Likewise.
11836 * objfiles.c: Likewise.
11837 * source.c: Likewise.
11838 * symtab.c: Likewise.
11839 * utils.c: Include "common/pathstuff.h".
11840 (gdb_realpath): Move to "common/pathstuff.c".
11841 (gdb_realpath_keepfile): Likewise.
11842 (gdb_abspath): Likewise.
11843 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11844 (gdb_realpath_keepfile): Likewise.
11845 (gdb_abspath): Likewise.
11847 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11849 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11850 wildcard process pid for super_resume for kernels with a
11853 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11855 * compile/compile.c (get_args): Add additional comments
11856 explaining function.
11858 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11859 Tom Tromey <tom@tromey.com>
11861 * target.h (memory_write_request_s): Remove typedef. Don't define
11863 (target_write_memory_blocks): Change argument to std::vector.
11864 (struct memory_write_request): Add constructor.
11865 * target-memory.c (compare_block_starting_address): Return bool.
11866 Change argument types.
11867 (claim_memory): Change arguments to use std::vector.
11868 (split_regular_and_flash_blocks, blocks_to_erase)
11869 (compute_garbled_blocks): Likewise.
11870 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11871 (target_write_memory_blocks): Change argument to std::vector.
11872 * symfile.c (struct load_section_data): Add constructor and
11873 destructor. Use std::vector for "requests".
11874 (struct load_progress_data): Add initializers.
11875 (load_section_callback): Update. Use "new".
11876 (clear_memory_write_data): Remove.
11877 (generic_load): Update.
11879 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11881 * arch/aarch64.h: Use common/tdesc.h.
11883 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11885 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11886 architecture with a 64-bit ABI.
11888 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11890 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11891 ahead of target description loading.
11893 2018-02-26 Tom Tromey <tom@tromey.com>
11895 * stack.c (backtrace_command_1): Update.
11896 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11898 * python/py-framefilter.c (py_print_frame)
11899 (gdbpy_apply_frame_filter): Change type of "flags".
11900 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11902 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11903 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11904 * extension.h (enum frame_filter_flag): Rename from
11905 frame_filter_flags.
11906 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11907 (apply_ext_lang_frame_filter): Change type of "flags".
11908 * extension.c (apply_ext_lang_frame_filter): Change type of
11910 * extension-priv.h (struct extension_language_ops)
11911 <apply_frame_filter>: Change type of "flags".
11913 2018-02-26 Tom Tromey <tom@tromey.com>
11916 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11917 off-by-one in py_end computation.
11918 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11920 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11923 2018-02-26 Tom Tromey <tom@tromey.com>
11925 * dwarf2read.c (struct variant_field): New.
11926 (struct nextfield) <variant>: New field.
11927 (dwarf2_add_field): Handle DW_TAG_variant_part.
11928 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11929 discriminated union.
11930 (read_structure_type): Handle DW_TAG_variant_part.
11931 (handle_struct_member_die): New function, extracted from
11932 process_structure_scope. Handle DW_TAG_variant.
11933 (process_structure_scope): Handle discriminated unions. Call
11934 handle_struct_member_die.
11936 2018-02-26 Tom Tromey <tom@tromey.com>
11938 * rust-lang.h (rust_last_path_segment): Declare.
11939 * rust-lang.c (rust_last_path_segment): Now public. Change
11941 (struct disr_info): Remove.
11942 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11943 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11944 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11945 (rust_enum_p, rust_enum_variant): New function.
11946 (rust_underscore_fields): Remove "offset" parameter.
11947 (rust_print_enum): New function.
11948 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11949 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11950 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11952 (rust_internal_print_type): New function, from rust_print_type.
11954 (rust_print_type): Call rust_internal_print_type.
11955 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11956 Update enum handling.
11957 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11958 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11959 (rust_union_quirks): New functions.
11960 (process_full_comp_unit, process_full_type_unit): Call
11962 (process_structure_scope): Update rust_unions if necessary.
11964 2018-02-26 Tom Tromey <tom@tromey.com>
11966 * value.h (value_union_variant): Declare.
11967 * valops.c (value_union_variant): New function.
11968 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11969 (struct discriminant_info): New.
11970 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11972 (struct main_type) <flag_discriminated_union>: New field.
11974 2018-02-26 Tom Tromey <tom@tromey.com>
11976 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11977 unittests/unpack-selftests.c.
11978 * unittests/unpack-selftests.c: New file.
11979 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11981 2018-02-26 Yao Qi <yao.qi@linaro.org>
11983 * dwarf2read.c (struct partial_die_info) <read>: New method.
11984 (read_partial_die): Remove the declaration.
11985 (load_partial_dies): Update.
11986 (partial_die_info::partial_die_info):
11987 (read_partial_die): Change it to partial_die_info::read.
11989 2018-02-26 Yao Qi <yao.qi@linaro.org>
11991 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11992 (fixup_partial_die): Remove declaration.
11993 (scan_partial_symbols): Update.
11994 (partial_die_parent_scope): Likewise.
11995 (partial_die_full_name): Likewise.
11996 (fixup_partial_die): Change it to partial_die_info::fixup.
11998 2018-02-26 Yao Qi <yao.qi@linaro.org>
12000 * dwarf2read.c (read_partial_die): Update the declaration.
12001 (load_partial_dies): Caller update.
12002 (read_partial_die): Remove one argument abbrev_len.
12004 2018-02-26 Yao Qi <yao.qi@linaro.org>
12006 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12007 assignment operator.
12008 (load_partial_dies): Use ctor and copy ctor.
12009 (read_partial_die): Update.
12010 (dwarf2_cu::find_partial_die): Use ctor.
12012 2018-02-26 Yao Qi <yao.qi@linaro.org>
12014 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12015 (find_partial_die_in_comp_unit): Change it to
12016 dwarf2_cu::find_partial_die.
12017 (find_partial_die): Update.
12019 2018-02-26 Yao Qi <yao.qi@linaro.org>
12021 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12024 2018-02-26 Yao Qi <yao.qi@linaro.org>
12026 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12028 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12030 * arch/amd64.h: Use common/tdesc.h.
12031 * arch/i386.c: Likewise.
12032 * arch/i386.h: Likewise.
12033 * arch/tic6x.c: Likewise.
12034 * arch/tdesc.h: Move file from here...
12035 * common/tdesc.h: ...to here.
12036 * features/aarch64-core.c: Regenerate.
12037 * features/aarch64-fpu.c: Regenerate.
12038 * features/i386/32bit-avx.c: Regenerate.
12039 * features/i386/32bit-avx512.c: Regenerate.
12040 * features/i386/32bit-core.c: Regenerate.
12041 * features/i386/32bit-linux.c: Regenerate.
12042 * features/i386/32bit-mpx.c: Regenerate.
12043 * features/i386/32bit-pkeys.c: Regenerate.
12044 * features/i386/32bit-sse.c: Regenerate.
12045 * features/i386/64bit-avx.c: Regenerate.
12046 * features/i386/64bit-avx512.c: Regenerate.
12047 * features/i386/64bit-core.c: Regenerate.
12048 * features/i386/64bit-linux.c: Regenerate.
12049 * features/i386/64bit-mpx.c: Regenerate.
12050 * features/i386/64bit-pkeys.c: Regenerate.
12051 * features/i386/64bit-segments.c: Regenerate.
12052 * features/i386/64bit-sse.c: Regenerate.
12053 * features/i386/x32-core.c: Regenerate.
12054 * features/tic6x-c6xp.c: Regenerate.
12055 * features/tic6x-core.c: Regenerate.
12056 * features/tic6x-gp.c: Regenerate.
12057 * target-descriptions.c: Use common/tdesc.h.
12058 * target-descriptions.h: Likewise.
12060 2018-02-24 Tom Tromey <tom@tromey.com>
12062 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12063 (try_thread_db_load_from_dir, thread_db_load_search): Use
12065 (info_auto_load_libthread_db_compare): Return bool. Change
12067 (info_auto_load_libthread_db): Use std::vector, std::string.
12070 2018-02-24 Tom Tromey <tom@tromey.com>
12072 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12074 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12076 * gdbarch.c: Rebuild.
12077 * gdbarch.h: Rebuild.
12078 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12079 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12080 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12083 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12085 * gdbtypes.h (sect_offset): Change type to uint64_t.
12086 (sect_offset_str): New function.
12087 * dwarf2read.c (create_addrmap_from_aranges): Use
12089 (error_check_comp_unit_head): Likewise.
12090 (create_debug_type_hash_table): Likewise.
12091 (read_cutu_die_from_dwo): Likewise.
12092 (init_cutu_and_read_dies): Likewise.
12093 (init_cutu_and_read_dies_no_follow): Likewise.
12094 (process_psymtab_comp_unit_reader): Likewise.
12095 (partial_die_parent_scope): Likewise.
12096 (peek_die_abbrev): Likewise.
12097 (process_queue): Likewise.
12098 (dwarf2_physname): Likewise.
12099 (read_namespace_alias): Likewise.
12100 (read_import_statement): Likewise.
12101 (create_dwo_cu_reader): Likewise.
12102 (create_cus_hash_table): Likewise.
12103 (lookup_dwo_cutu): Likewise.
12104 (inherit_abstract_dies): Likewise.
12105 (read_func_scope): Likewise.
12106 (read_call_site_scope): Likewise.
12107 (dwarf2_add_member_fn): Likewise.
12108 (read_common_block): Likewise.
12109 (read_module_type): Likewise.
12110 (read_typedef): Likewise.
12111 (read_subrange_type): Likewise.
12112 (load_partial_dies): Likewise.
12113 (read_partial_die): Likewise.
12114 (find_partial_die): Likewise.
12115 (read_str_index): Likewise.
12116 (dwarf2_string_attr): Likewise.
12117 (build_error_marker_type): Likewise.
12118 (lookup_die_type): Likewise.
12119 (dump_die_shallow): Likewise.
12120 (follow_die_ref): Likewise.
12121 (dwarf2_fetch_die_loc_sect_off): Likewise.
12122 (dwarf2_fetch_constant_bytes): Likewise.
12123 (follow_die_sig): Likewise.
12124 (get_signatured_type): Likewise.
12125 (get_DW_AT_signature_type): Likewise.
12126 (dwarf2_find_containing_comp_unit): Likewise.
12127 (set_die_type): Likewise.
12129 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12131 * arch/aarch64.c: Include "common-defs.h".
12132 * arch/amd64.c: Likewise.
12133 * arch/i386.c: Likewise.
12135 2018-02-21 Tom Tromey <tom@tromey.com>
12137 * value.h: (extract_field_op): Update.
12138 * eval.c (extract_field_op): Return a const char *.
12139 * expression.h (parse_expression_for_completion): Update.
12140 * completer.c (complete_expression): Update.
12141 (add_struct_fields): Make fieldname const.
12142 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12143 (mark_completion_tag, parse_exp_in_context_1): Update.
12144 (parse_expression_for_completion): Change "name" to
12145 unique_xmalloc_ptr*.
12147 2018-02-21 Tom Tromey <tom@tromey.com>
12149 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12151 2018-02-21 Yao Qi <yao.qi@linaro.org>
12153 * avr-tdep.c (avr_read_pc): Change parameter type to
12155 * gdbarch.sh (read_pc): Likewise.
12156 * gdbarch.c: Re-generated.
12157 * gdbarch.h: Re-generated.
12158 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12160 * ia64-tdep.c (ia64_read_pc): Likewise.
12161 * mips-tdep.c (mips_read_pc): Likewise.
12162 * spu-tdep.c (spu_read_pc): Likewise.
12164 2018-02-21 Yao Qi <yao.qi@linaro.org>
12166 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12167 * regcache-dump.c: New file.
12168 * regcache.c: Move register_dump to regcache-dump.c.
12169 (maintenance_print_registers): Likewise.
12170 (maintenance_print_raw_registers): Likewise.
12171 (maintenance_print_cooked_registers): Likewise.
12172 (maintenance_print_register_groups): Likewise.
12173 (maintenance_print_remote_registers): Likewise.
12174 (_initialize_regcache): Likewise.
12175 * regcache.h (register_dump): Moved from regcache.c.
12177 2018-02-21 Yao Qi <yao.qi@linaro.org>
12179 * regcache.c (regcache::regcache): Update.
12180 (regcache::invalidate): Move it to detached_regcache::invalidate.
12181 (get_thread_arch_aspace_regcache): Update.
12182 (regcache::raw_update): Update.
12183 (regcache::cooked_read): Remove some code.
12184 (regcache::cooked_read_value): Likewise.
12185 (regcache::raw_write): Remove assert on m_readonly_p.
12186 (regcache::raw_supply_integer): Move it to
12187 detached_regcache::raw_supply_integer.
12188 (regcache::raw_supply_zeroed): Likewise.
12189 * regcache.h (detached_regcache) <raw_supply_integer>: New
12191 <raw_supply_zeroed, invalidate>: Likewise.
12192 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12193 <invalidate>: Likewise.
12194 <m_readonly_p>: Removed.
12196 2018-02-21 Yao Qi <yao.qi@linaro.org>
12198 * infcmd.c (get_return_value): Let stop_regs point to
12199 get_current_regcache.
12200 * regcache.c (regcache::regcache): Remove.
12201 (register_dump_reg_buffer): New class.
12202 (regcache_print): Adjust.
12203 * regcache.h (regcache): Remove constructors.
12205 2018-02-21 Yao Qi <yao.qi@linaro.org>
12207 * regcache.c (class register_dump): New class.
12208 (register_dump_regcache, register_dump_none): New class.
12209 (register_dump_remote, register_dump_groups): New class.
12210 (regcache_print): Update.
12211 * regcache.h (regcache_dump_what): Move it to regcache.c.
12212 (regcache) <dump>: Remove.
12214 2018-02-21 Yao Qi <yao.qi@linaro.org>
12216 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12218 (jit_unwind_reg_set_impl): Call raw_supply.
12219 (jit_frame_sniffer): Use reg_buffer_rw.
12220 * record-full.c (record_full_core_regbuf): Change its type.
12221 (record_full_core_open_1): Use reg_buffer_rw.
12222 (record_full_close): Likewise.
12223 (record_full_core_fetch_registers): Use regcache->raw_supply.
12224 (record_full_core_store_registers): Likewise.
12225 * regcache.c (regcache::get_register_status): Move it to
12227 (regcache_raw_set_cached_value): Remove.
12228 (regcache::raw_set_cached_value): Remove.
12229 (regcache::raw_write): Call raw_supply.
12230 (regcache::raw_supply): Move it to reg_buffer_rw.
12231 * regcache.h (regcache_raw_set_cached_value): Remove.
12232 (reg_buffer_rw): New class.
12234 2018-02-21 Yao Qi <yao.qi@linaro.org>
12236 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12237 readonly_detached_regcache.
12238 (dummy_frame_prev_register): Use regcache->cooked_read.
12239 * frame.c (frame_save_as_regcache): Change return type.
12240 (frame_pop): Update.
12241 * frame.h (frame_save_as_regcache): Update declaration.
12242 * inferior.h (get_infcall_suspend_state_regcache): Update
12244 * infrun.c (infcall_suspend_state) <registers>: use
12245 readonly_detached_regcache.
12246 (save_infcall_suspend_state): Don't use regcache_dup.
12247 (get_infcall_suspend_state_regcache): Change return type.
12248 * linux-fork.c (struct fork_info) <savedregs>: Change to
12249 readonly_detached_regcache.
12251 (fork_save_infrun_state): Don't use regcache_dup.
12252 (info_checkpoints_command): Adjust.
12253 * mi/mi-main.c (register_changed_p): Update declaration.
12254 (mi_cmd_data_list_changed_registers): Use
12255 readonly_detached_regcache.
12256 (register_changed_p): Change parameter type to
12257 readonly_detached_regcache.
12258 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12259 readonly_detached_regcache.
12260 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12261 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12263 (regcache::save): Move it to reg_buffer.
12264 (regcache::restore): Change parameter type.
12265 (regcache_dup): Remove.
12266 * regcache.h (reg_buffer) <save>: New method.
12267 (readonly_detached_regcache): New class.
12268 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12269 readonly_detached_regcache.
12270 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12272 2018-02-21 Yao Qi <yao.qi@linaro.org>
12274 * frame.c (frame_save_as_regcache): Use regcache method save.
12275 (frame_pop): Use regcache method restore.
12276 * infrun.c (restore_infcall_suspend_state): Likewise.
12277 * linux-fork.c (fork_load_infrun_state): Likewise.
12278 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12280 * regcache.c (regcache_save): Remove.
12281 (regcache::restore): More asserts.
12282 (regcache_cpy): Remove.
12283 * regcache.h (regcache_save): Remove the declaration.
12284 (regcache::restore): Move from private to public.
12285 Remove the friend declaration of regcache_cpy.
12286 (regcache_cpy): Remove declaration.
12288 2018-02-21 Yao Qi <yao.qi@linaro.org>
12290 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12291 parameter type to 'readable_regcache *'.
12292 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12293 * arm-tdep.c (arm_neon_quad_read): Likewise.
12294 (arm_pseudo_read): Likewise.
12295 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12296 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12297 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12298 * gdbarch.c: Re-generated.
12299 * gdbarch.h: Re-generated.
12300 * gdbarch.sh (pseudo_register_read): Change parameter type to
12301 'readable_regcache *'.
12302 (pseudo_register_read_value): Likewise.
12303 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12304 (h8300_pseudo_register_read): Likewise.
12305 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12306 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12307 (i386_pseudo_register_read_into_value): Likewise.
12308 (i386_pseudo_register_read_value): Likewise.
12309 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12311 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12312 * m32c-tdep.c (m32c_raw_read): Likewise.
12313 (m32c_read_flg): Likewise.
12314 (m32c_banked_register): Likewise.
12315 (m32c_banked_read): Likewise.
12316 (m32c_sb_read): Likewise.
12317 (m32c_part_read): Likewise.
12318 (m32c_cat_read): Likewise.
12319 (m32c_r3r2r1r0_read): Likewise.
12320 (m32c_pseudo_register_read): Likewise.
12321 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12322 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12323 (mep_pseudo_cr64_read): Likewise.
12324 (mep_pseudo_register_read): Likewise.
12325 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12326 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12327 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12328 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12329 (regcache::cooked_read): Likewise.
12330 (regcache::cooked_read_value): Likewise.
12331 (regcache_cooked_read_signed):
12332 (regcache::cooked_read): Likewise.
12333 * regcache.h (readable_regcache): New class.
12334 (regcache): Inherit readable_regcache. Move some methods to
12336 * rl78-tdep.c (rl78_pseudo_register_read): Change
12337 parameter type to 'readable_regcache *'.
12338 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12339 (e500_pseudo_register_read): Change parameter type to
12340 'readable_regcache *'.
12341 (dfp_pseudo_register_read): Likewise.
12342 (vsx_pseudo_register_read): Likewise.
12343 (efpr_pseudo_register_read): Likewise.
12344 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12345 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12346 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12347 (sh64_pseudo_register_read): Likewise.
12348 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12349 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12350 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12351 (spu_pseudo_register_read): Likewise.
12352 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12353 (xtensa_pseudo_register_read): Likewise.
12355 2018-02-21 Yao Qi <yao.qi@linaro.org>
12357 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12358 (regcache::arch): Move it to reg_buffer::arch.
12359 (regcache::register_buffer): Likewise.
12360 (regcache::assert_regnum): Likewise.
12361 (regcache::num_raw_registers): Likewise.
12362 * regcache.h (reg_buffer): New class.
12363 (regcache): Inherit reg_buffer.
12365 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12367 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12368 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12370 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12372 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12374 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12376 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12377 (SFILES): Remove common/*.c files.
12378 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12379 * common/common.host: Add common reference.
12380 * configure.ac: Likewise.
12381 * configure: Regenerate.
12383 2018-02-16 Yao Qi <yao.qi@linaro.org>
12385 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12386 (block_initialize_namespace): Use new.
12387 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12388 (dwarf2_free_objfile): Use delete.
12389 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12390 (copy_type_recursive): Use new.
12391 * gdb_obstack.h (allocate_on_obstack): New.
12393 2018-02-15 Yao Qi <yao.qi@linaro.org>
12396 * inferior.c (exit_inferior_1): Reset inf->control.
12398 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12400 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12403 2018-02-14 Pedro Alves <palves@redhat.com>
12405 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12406 frame_cleanup_after_sniffer on exception.
12408 2018-02-14 Tom Tromey <tom@tromey.com>
12410 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12412 (solib_bfd_open): Make pathname const.
12413 * solib.c (solib_bfd_open): Make pathname const.
12414 * solib-spu.c (spu_bfd_fopen): Make name const.
12415 (spu_bfd_open): Make pathname const.
12416 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12417 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12419 2018-02-14 Tom Tromey <tom@tromey.com>
12421 * symfile.c (symfile_bfd_open): Update.
12422 * source.h (openp, source_full_path_of, find_and_open_source):
12423 Change argument type to unique_xmalloc_ptr.
12424 * source.c (openp): Take a unique_xmalloc_ptr.
12425 (source_full_path_of, find_and_open_source): Likewise.
12426 (open_source_file, symtab_to_fullname): Update.
12427 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12428 unique_xmalloc_ptr.
12429 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12430 (exec_file_find): Update.
12431 * psymtab.c (psymtab_to_fullname): Update.
12432 * nto-tdep.h (nto_find_and_open_solib): Update.
12433 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12434 unique_xmalloc_ptr.
12435 * exec.c (exec_file_attach): Update.
12436 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12437 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12439 2018-02-14 Tom Tromey <tom@tromey.com>
12441 * solib.c: Include source.h.
12442 * nto-tdep.c: Include source.h.
12443 * mi/mi-cmd-env.c: Include source.h.
12444 * infcmd.c: Include source.h.
12445 * exec.c: Include source.h.
12446 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12447 (add_path, directory_switch, source_path, init_source_path): Move
12449 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12450 (add_path, directory_switch, source_path, init_source_path):
12453 2018-02-14 Tom Tromey <tom@tromey.com>
12455 * solist.h (exec_file_find, solib_find): Return
12456 unique_xmalloc_ptr.
12457 (solib_bfd_fopen): Take a const char *.
12458 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12459 (exec_file_find, solib_find): Likewise.
12460 (solib_bfd_fopen): Do not take ownership of "pathname".
12461 (solib_bfd_open): Use unique_xmalloc_ptr.
12462 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12463 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12464 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12465 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12467 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12469 * ada-lang.c (name_match_type_from_name): Remove reference to
12470 ada_name_for_lookup in function's documentation.
12471 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12473 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12475 * defs.h (enum openp_flags): New enum.
12476 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12477 Move to enum openp_flags.
12478 (openp_flags): New enum flags.
12479 (openp): Change parameter type to openp_flags.
12480 * source.c (openp): Change parameter type to openp_flags.
12481 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12482 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12484 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12486 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12489 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12491 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12493 (class dwarf2_queue_guard): ...the destructor of this new class.
12494 (dw2_do_instantiate_symtab): Create instance of the new class
12495 dwarf2_queue_guard, remove cleanup.
12497 2018-02-09 Tom Tromey <tom@tromey.com>
12499 * source.c (find_source_lines): Don't reference past the end of
12502 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12504 * remote.c (remote_btrace_maybe_reopen): Change error message.
12505 * btrace.c (btrace_enable): Likewise.
12506 (parse_xml_btrace): Likewise.
12507 (parse_xml_btrace_conf): Likewise.
12509 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12511 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12512 (linux_enable_pt, linux_enable_bts): Call
12513 diagnose_perf_event_open_fail.
12515 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12517 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12518 Remove parameter and change return type. Update callers. Move it.
12519 (linux_enable_bts, linux_enable_pt): Improve error message.
12520 (linux_enable_pt): Remove zero buffer size check.
12521 (linux_enable_btrace): Improve error messages. Remove NULL return
12524 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12526 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12527 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12528 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12529 (linux_supports_pt, linux_supports_btrace): Remove.
12530 (linux_enable_bts): Call cpu_supports_bts.
12531 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12532 * remote.c (remote_supports_btrace): Remove.
12533 (init_remote_ops): Remove remote_supports_btrace.
12534 * target-delegates.c: Regenerated.
12535 * target.c (target_supports_btrace): Remove.
12536 * target.h (target_ops) <to_supports_btrace>: Remove
12537 (target_supports_btrace): Remove.
12538 * x86-linux-nat.c (x86_linux_create_target): Remove
12539 linux_supports_btrace.
12541 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12543 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12545 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12546 exception and use message in own exception.
12548 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12550 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12551 (perf_event_pt_event_type): Use gdb_file_up.
12552 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12553 scoped_fd, and scoped_mmap.
12555 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12557 * common/scoped_mmap.h: New.
12558 * unittests/scoped_mmap-selftest.c: New.
12559 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12560 unittests/scoped_mmap-selftest.c.
12562 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12564 * common/scoped_fd.h: New.
12565 * unittests/scoped_fd-selftest.c: New.
12566 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12567 unittests/scoped_fd-selftest.c.
12569 2018-02-09 Tom Tromey <tom@tromey.com>
12571 * auto-load.c (auto_load_section_scripts): Use
12572 gdb::unique_xmalloc_ptr.
12574 2018-02-09 Tom Tromey <tom@tromey.com>
12576 * auto-load.c (execute_script_contents): Use std::string.
12578 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12580 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12581 Python function, rather than a new command.
12583 2018-02-08 Tom Tromey <tom@tromey.com>
12585 * solib.c (solib_find_1): Use std::string.
12586 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12588 2018-02-08 Tom Tromey <tom@tromey.com>
12590 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12592 2018-02-08 Tom Tromey <tom@tromey.com>
12594 * source.c (find_source_lines): Use gdb::def_vector.
12596 2018-02-08 Tom Tromey <tom@tromey.com>
12598 * macrocmd.c (struct temporary_macro_definition): New.
12599 (macro_define_command): Use temporary_macro_definition. Remove
12601 (free_macro_definition_ptr): Remove.
12603 2018-02-08 Tom Tromey <tom@tromey.com>
12605 * macroexp.c (maybe_expand): Use std::string.
12607 2018-02-08 Tom Tromey <tom@tromey.com>
12609 * macroexp.c (struct macro_buffer): Add initializers for some
12611 (init_buffer, init_shared_buffer, free_buffer)
12612 (free_buffer_return_text): Remove.
12613 (macro_buffer): New constructors.
12614 (~macro_buffer): New destructor.
12615 (macro_buffer::set_shared): New method.
12616 (macro_buffer::resize_buffer, macro_buffer::appendc)
12617 (macro_buffer::appendmem): Now methods, not free functions.
12618 (set_token, append_tokens_without_splicing, stringify)
12619 (macro_stringify): Update.
12620 (gather_arguments): Change return type. Remove argc_p argument,
12621 add args_ptr argument. Use std::vector.
12622 (substitute_args): Remove argc argument. Accept std::vector.
12623 (expand): Update. Use std::vector.
12624 (scan, macro_expand, macro_expand_next): Update.
12626 2018-02-08 Tom Tromey <tom@tromey.com>
12628 * symtab.c (default_collect_symbol_completion_matches_break_on):
12629 Use unique_xmalloc_ptr.
12630 * macroscope.h: (sal_macro_scope, user_macro_scope)
12631 (default_macro_scope): Return unique_xmalloc_ptr.
12632 * macroscope.c (sal_macro_scope, user_macro_scope)
12633 (default_macro_scope): Return unique_xmalloc_ptr.
12634 * macroexp.h (macro_expand, macro_expand_once): Return
12635 unique_xmalloc_ptr.
12636 * macroexp.c (macro_expand, macro_expand_once): Return
12637 unique_xmalloc_ptr.
12638 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12639 (info_macro_command, info_macros_command): Use
12640 unique_xmalloc_ptr.
12641 * compile/compile-c-support.c (write_macro_definitions): Use
12642 unique_xmalloc_ptr.
12643 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12645 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12647 * value.c (value_static_field): Assign field type instead of
12648 containing type when returning an optimized out value.
12650 2018-02-06 Yao Qi <yao.qi@linaro.org>
12652 * ft32-tdep.c (ft32_read_pc): Remove.
12653 (ft32_write_pc): Remove.
12654 (ft32_gdbarch_init): Update.
12655 * m32r-tdep.c (m32r_read_pc): Remove.
12656 (m32r_gdbarch_init): Update.
12657 * mep-tdep.c (mep_read_pc): Remove.
12658 (mep_gdbarch_init): Update.
12659 * microblaze-tdep.c (microblaze_write_pc): Remove.
12660 (microblaze_gdbarch_init): Update.
12661 * mn10300-tdep.c (mn10300_read_pc): Remove.
12662 (mn10300_write_pc): Remove.
12663 (mn10300_gdbarch_init): Update.
12664 * moxie-tdep.c (moxie_read_pc): Remove.
12665 (moxie_write_pc): Remove.
12666 (moxie_gdbarch_init): Update.
12668 2018-02-06 Yao Qi <yao.qi@linaro.org>
12670 * expprint.c (print_subexp_standard): Handle
12671 OP_F77_UNDETERMINED_ARGLIST.
12672 (dump_subexp_body_standard): Likewise.
12674 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12676 * target-descriptions.c (tdesc_element_visitor) Add empty
12678 (tdesc_type): Move make_gdb_type from here.
12679 (tdesc_type_builtin): Likewise.
12680 (tdesc_type_vector): Likewise.
12681 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12682 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12683 (make_gdb_type_union): Likewise.
12684 (make_gdb_type_flags): Likewise.
12685 (make_gdb_type_enum): Likewise.
12686 (make_gdb_type): New function.
12687 (tdesc_register_type): Use static make_gdb_type.
12689 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12691 * infcmd.c (default_print_one_register_info): Align natural-format
12692 column values consistently one under another.
12693 (pad_to_column): New function.
12695 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12697 * dwarf2read.c (dwarf2_physname): Move commment.
12699 2018-02-01 Leszek Swirski <leszeks@google.com>
12701 * varobj.c (varobj_formatted_print_options): Allow recursive
12702 pretty printing if pretty printing is enabled.
12704 2018-02-01 Leszek Swirski <leszeks@google.com>
12706 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12707 names after a structop as a filename.
12709 2018-02-01 Yao Qi <yao.qi@linaro.org>
12711 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12712 (arm_record_coproc_data_proc): Likewise.
12714 2018-02-01 Yao Qi <yao.qi@linaro.org>
12716 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12718 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12720 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12721 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12723 2018-01-31 Pedro Alves <palves@redhat.com>
12725 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12726 * inflow.c (child_terminal_save_inferior): Wrap reference to
12727 tcgetpgrp in HAVE_TERMIOS_H.
12728 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12730 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12731 always iterate over all inferiors.
12732 (gdbsim_cntrl_c): Adjust.
12733 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12735 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12737 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12738 index type is objfile-owned if the element type is as well.
12740 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12744 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12746 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12747 "features/s390x-linux64.c".
12748 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12749 s390_linux32 and s390x_linux64.
12750 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12752 * s390-tdep.c: Include "features/s390-linux32.c" and
12753 "features/s390x-linux64.c".
12754 (s390_tdesc_valid): Add check for tdesc_has_registers.
12755 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12756 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12757 tdesc_s390x_linux64.
12758 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12759 tdesc_s390x_linux64 to...
12760 * s390-tdep.h: ...here.
12762 2018-01-30 Pedro Alves <palves@redhat.com>
12765 * config.in, configure: Regenerate.
12766 * configure.ac: Check for getpgid.
12767 * go32-nat.c (go32_pass_ctrlc): New.
12768 (go32_target): Install it.
12769 * inf-child.c (inf_child_target): Install
12770 child_terminal_save_inferior, child_pass_ctrlc and
12772 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12773 (inf_ptrace_target): No longer install it.
12774 * infcmd.c (interrupt_target_1): Adjust.
12775 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12776 (child_interrupt): Declare.
12777 (inferior::terminal_state): New.
12778 * inflow.c (struct terminal_info): Update comments.
12779 (inferior_process_group): Delete.
12780 (terminal_is_ours): Delete.
12781 (gdb_tty_state): New.
12782 (child_terminal_init): Adjust.
12783 (is_gdb_terminal, sharing_input_terminal_1)
12784 (sharing_input_terminal): New functions.
12785 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12786 Set the process's actual process group in the foreground if
12787 possible. Handle is_ours_for_output/is_ours distinction. Don't
12788 mark terminal as the inferior's if not sharing GDB's terminal.
12789 Don't check attach_flag.
12790 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12791 pass down a target_terminal_state.
12792 (child_terminal_save_inferior): New, factored out from ...
12793 (child_terminal_ours_1): ... this. Handle
12794 target_terminal_state::is_ours_for_output.
12795 (child_interrupt, child_pass_ctrlc): New.
12796 (inflow_inferior_exit): Clear the inferior's terminal_state.
12797 (copy_terminal_info): Copy the inferior's terminal state.
12798 (_initialize_inflow): Remove reference to terminal_is_ours.
12799 * inflow.h (inferior_process_group): Delete.
12800 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12801 * procfs.c (procfs_target): Don't install procfs_interrupt.
12802 (procfs_interrupt): Delete.
12803 * remote.c (remote_serial_quit_handler): Adjust.
12804 (remote_interrupt): Remove ptid parameter. Adjust.
12805 * target-delegates.c: Regenerate.
12806 * target.c: Include "terminal.h".
12807 (target_terminal::terminal_state): Rename to ...
12808 (target_terminal::m_terminal_state): ... this.
12809 (target_terminal::init): Adjust.
12810 (target_terminal::inferior): Adjust to per-inferior
12812 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12813 (target_terminal::ours, target_terminal::ours_for_output): Use
12814 target_terminal_is_ours_kind.
12815 (target_interrupt): Remove ptid parameter. Adjust.
12816 (default_target_pass_ctrlc): Adjust.
12817 * target.h (target_ops::to_terminal_save_inferior): New field.
12818 (target_ops::to_interrupt): Remove ptid_t parameter.
12819 (target_interrupt): Remove ptid_t parameter. Update comment.
12820 (target_pass_ctrlc): Update comment.
12821 * target/target.h (target_terminal_state): New scoped enum,
12822 factored out of ...
12823 (target_terminal::terminal_state): ... here.
12824 (target_terminal::inferior): Update comments.
12825 (target_terminal::restore_inferior): New.
12826 (target_terminal::is_inferior, target_terminal::is_ours)
12827 (target_terminal::is_ours_for_output): Adjust.
12828 (target_terminal::scoped_restore_terminal_state): Adjust to
12829 rename, and call restore_inferior() instead of inferior().
12830 (target_terminal::scoped_restore_terminal_state::m_state): Change
12832 (target_terminal::terminal_state): Rename to ...
12833 (target_terminal::m_terminal_state): ... this and change type.
12835 2018-01-30 Pedro Alves <palves@redhat.com>
12837 * linux-nat.c (wait_for_signal): New function.
12838 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12840 (async_terminal_is_ours)
12841 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12842 (linux_nat_add_target): Don't override
12843 to_terminal_inferior/to_terminal_ours.
12845 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12847 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12849 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12851 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12852 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12853 dwarf2_per_objfile_free here.
12854 (dwarf2_per_objfile_free): Remove.
12855 (_initialize_dwarf2_read): Don't register
12856 dwarf2_per_objfile_free as a registry cleanup.
12858 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12860 Avoid compilation errors in MinGW native builds
12862 The error is triggered by including python-internal.h, and the
12865 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12866 from build-gnulib/import/math.h:27,
12867 from d:/usr/Python26/include/pyport.h:235,
12868 from d:/usr/Python26/include/Python.h:58,
12869 from python/python-internal.h:94,
12870 from python/py-arch.c:24:
12871 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12875 This happens because Python headers define 'hypot' to expand t
12876 '_hypot' in the Windows builds.
12877 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12878 'hypoth'. This avoids a compilation error.
12880 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12882 * MAINTAINERS (Write After Approval): Fix ordering.
12884 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12886 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12888 2018-01-26 Alan Modra <amodra@gmail.com>
12890 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12891 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12892 Remove nop. Make const. Comment.
12893 (powerpc32_plt_stub_so_2): New.
12894 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12895 Correct count. Update uses.
12896 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12897 Move common code reading PLT entry word. Correct
12898 powerpc32_plt_stub PLT address calculation.
12899 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12900 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12901 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12902 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12903 (ppc64_standard_linkage8): Likewise.
12904 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12905 Correct insns description.
12906 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12908 2018-01-24 Pedro Alves <palves@redhat.com>
12910 GCC PR libstdc++/83906
12911 * gdbtypes.c (operator==(const dynamic_prop &,
12912 const dynamic_prop &)): New.
12913 (operator==(const range_bounds &, const range_bounds &)): New.
12914 (check_types_equal): Use them instead of memcmp.
12915 * gdbtypes.h (operator==(const dynamic_prop &,
12916 const dynamic_prop &)): Declare.
12917 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12918 (operator==(const range_bounds &, const range_bounds &)): Declare.
12919 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12921 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12923 * s390-linux-tdep.c (s390_record_address_mask)
12924 (s390_record_calc_disp_common, s390_record_calc_disp)
12925 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12926 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12927 (s390_process_record): Move to s390-tdep.c.
12928 (s390_linux_init_abi_any): Adjust.
12929 * s390-tdep.c (s390_record_address_mask)
12930 (s390_record_calc_disp_common, s390_record_calc_disp)
12931 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12932 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12933 (s390_process_record): Moved from s390-linux-tdep.c
12934 (s390_gdbarch_init): Adjust.
12936 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12938 * s390-linux-nat.c (s390-tdep.h): New include.
12939 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12940 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12941 (ALLDEPFILES): Add s390-tdep.c.
12942 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12943 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12944 * s390-tdep.h: ...this. New file.
12945 * s390-linux-tdep.c (s390-tdep.h): New include.
12946 (_initialize_s390_tdep): Rename to...
12947 (_initialize_s390_linux_tdep): ...this and adjust.
12948 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12949 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12951 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12952 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12953 (s390_is_partial_instruction, s390_software_single_step)
12954 (is_non_branch_ril, s390_displaced_step_copy_insn)
12955 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12956 (s390_prologue_data, s390_addr, s390_store, s390_load)
12957 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12958 (s390_register_call_saved, s390_guess_tracepoint_registers)
12959 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12960 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12961 (s390_pseudo_register_name, s390_pseudo_register_type)
12962 (s390_pseudo_register_read, s390_pseudo_register_write)
12963 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12964 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12965 (s390_addr_bits_remove, s390_address_class_type_flags)
12966 (s390_address_class_type_flags_to_name)
12967 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12968 (s390_function_arg_float, s390_function_arg_vector)
12969 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12970 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12971 (s390_frame_align, s390_register_return_value, s390_return_value)
12972 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12973 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12974 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12975 (s390_trad_frame_prev_register, s390_unwind_cache)
12976 (s390_prologue_frame_unwind_cache)
12977 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12978 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12979 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12980 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12981 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12982 (s390_frame_base_address, s390_local_base_address)
12983 (s390_frame_base, s390_gcc_target_options)
12984 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12985 (s390_validate_reg_range, s390_tdesc_valid)
12986 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12987 * s390-tdep.c: ...this. New file.
12989 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12991 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12992 (s390_process_record, s390_gdbarch_tdep_alloc)
12993 (s390_linux_init_abi_any): Use/set new hook.
12995 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12997 * s390-linux-tdep.c (osabi.h): New include.
12998 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12999 (s390_linux_init_abi_any): New functions.
13000 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13002 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13004 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13005 tdesc_has_registers check
13007 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13009 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13010 (s390_validate_reg_range): New macro.
13011 (s390_gdbarch_init): Adjust.
13013 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13015 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13016 (s390_gdbarch_tdep_alloc): Adjust.
13017 (s390_gdbarch_init): Adjust.
13019 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13021 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13022 <have_tdb>: Change type to bool.
13023 (s390_gdbarch_tdep_alloc): Adjust.
13024 (s390_gdbarch_init): Adjust.
13026 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13028 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13029 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13030 (s390_gdbarch_tdep_alloc): New function.
13031 (s390_gdbarch_init): Allocate tdep at start and use its fields
13032 instead of separate variables.
13034 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13036 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13037 when looking for cached gdbarch and add comment for remaining.
13039 2018-01-22 Pedro Alves <palves@redhat.com>
13040 Sergio Durigan Junior <sergiodj@redhat.com>
13042 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13045 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13047 * MAINTAINERS: Update my company e-mail address.
13049 2018-01-22 Yao Qi <yao.qi@linaro.org>
13051 * regcache.c (cooked_write_test): New function.
13052 (_initialize_regcache): Register the test.
13054 2018-01-22 Yao Qi <yao.qi@linaro.org>
13056 * ia64-tdep.c (ia64_pseudo_register_read): Call
13057 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13058 * m32c-tdep.c (m32c_cat_read): Likewise.
13059 (m32c_r3r2r1r0_read): Likewise.
13060 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13061 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13063 2018-01-22 Yao Qi <yao.qi@linaro.org>
13065 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13066 method raw_read instead of regcache_raw_read.
13067 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13068 * arm-tdep.c (arm_neon_quad_read): Likewise.
13069 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13070 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13071 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13072 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13073 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13074 (i386_pseudo_register_read_into_value): Likewise.
13075 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13076 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13077 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13078 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13079 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13080 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13081 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13082 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13083 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13085 2018-01-22 Yao Qi <yao.qi@linaro.org>
13087 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13088 * configure.tgt: Remove target mt.
13089 * mt-tdep.c: Remove.
13090 * regcache.c (cooked_read_test): Remove the check for mt.
13092 2018-01-22 Yao Qi <yao.qi@linaro.org>
13094 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13095 instead of gdbarch_pseudo_register_read_value.
13097 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13099 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13102 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13104 * linespec.c (create_sals_line_offset): Remove code that preserved
13105 the symtab_and_line's line number.
13107 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13109 * varobj.c (varobj_create): Don't set valid_block when creating a
13112 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13114 * varobj.c (varobj_create): Remove out of date comment.
13116 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13119 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13120 updating innermost block.
13121 * parse.c (innermost_block_tracker::update): Take extra type
13122 parameter, and check types match before updating innermost block.
13123 (write_dollar_variable): Update innermost block for registers.
13124 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13125 (innermost_block_tracker::innermost_block_tracker): Initialise
13127 (innermost_block_tracker::reset): Take type parameter.
13128 (innermost_block_tracker::update): Take type parameter, and pass
13129 type through as needed.
13130 (innermost_block_tracker::m_types): New member.
13131 * varobj.c (varobj_create): Pass type when reseting innermost
13134 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13136 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13137 * ada-lang.c (resolve_subexp): Likewise.
13138 * breakpoint.c (set_breakpoint_condition) Likewise.
13139 (watch_command_1) Likewise.
13140 * c-exp.y (variable): Likewise.
13141 * d-exp.y (PrimaryExpression): Likewise.
13142 * f-exp.y (variable): Likewise.
13143 * go-exp.y (variable): Likewise.
13144 * m2-exp.y (variable): Likewise.
13145 * objfiles.c (objfile::~objfile): Likewise.
13146 * p-exp.y (variable): Likewise.
13147 * parse.c (innermost_block): Change type.
13148 * parser-defs.h (class innermost_block_tracker): New.
13149 (innermost_block): Change to innermost_block_tracker.
13150 * printcmd.c (display_command): Switch to innermost_block API.
13151 (do_one_display): Likewise.
13152 * rust-exp.y (do_one_display): Likewise.
13153 * symfile.c (clear_symtab_users): Likewise.
13154 * varobj.c (varobj_create): Switch to innermost_block API, replace
13155 use of innermost_block with block stored on varobj object.
13157 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13159 * expression.h (innermost_block): Remove declaration.
13160 * varobj.c: Add 'parser-defs.h' include.
13162 2018-01-19 Tom Tromey <tom@tromey.com>
13164 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13165 symbols in the static and global blocks.
13167 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13169 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13170 gdb_ptrace.h, and move including gdb_wait.h ...
13171 * nat/linux-ptrace.h: ... to here.
13173 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13175 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13176 inf_ptrace_detach_success.
13177 (inf_ptrace_detach_success): Add inferior parameter, use it
13178 instead of inferior_ptid, pass it to detach_inferior.
13179 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13181 * inferior.c (detach_inferior): Add overload that takes an
13183 * inferior.h (detach_inferior): Likewise.
13184 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13185 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13186 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13188 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13190 * target.h (struct target_ops) <to_detach>: Add inferior
13192 (target_detach): Likewise.
13193 * target.c (dispose_inferior): Pass inferior down.
13194 (target_detach): Pass inferior down. Assert that it is equal to
13195 the current inferior.
13196 * aix-thread.c (aix_thread_detach): Pass inferior down.
13197 * corefile.c (core_file_command): Pass current_inferior() down.
13198 * corelow.c (core_detach): Add inferior parameter.
13199 * darwin-nat.c (darwin_detach): Likewise.
13200 * gnu-nat.c (gnu_detach): Likewise.
13201 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13202 * infcmd.c (detach_command): Pass current_inferior() down to
13204 * infrun.c (follow_fork_inferior): Pass parent_inf to
13206 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13208 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13209 * linux-thread-db.c (thread_db_detach): Likewise.
13210 * nto-procfs.c (procfs_detach): Likewise.
13211 * procfs.c (procfs_detach): Likewise.
13212 * record.c (record_detach): Likewise.
13213 * record.h (struct inferior): Forward-declare.
13214 (record_detach): Add inferior parameter.
13215 * remote-sim.c (gdbsim_detach): Likewise.
13216 * remote.c (remote_detach_1): Likewise.
13217 (remote_detach): Likewise.
13218 (extended_remote_detach): Likewise.
13219 * sol-thread.c (sol_thread_detach): Likewise.
13220 * target-debug.h (target_debug_print_inferior_p): New macro.
13221 * target-delegates.c: Re-generate.
13222 * top.c (kill_or_detach): Pass inferior down to target_detach.
13223 * windows-nat.c (windows_detach): Add inferior parameter.
13225 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13227 * target.h (struct target_ops) <to_detach>: Remove args
13229 (target_detach): Likewise.
13230 * target.c (dispose_inferior): Adjust.
13231 (target_detach): Remove args parameter, adjust.
13232 * aix-thread.c (aix_thread_detach): Adjust.
13233 * corefile.c (core_file_command): Adjust.
13234 * corelow.c (core_detach): Adjust.
13235 * darwin-nat.c (darwin_detach): Adjust.
13236 * gnu-nat.c (gnu_detach): Adjust.
13237 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13238 * infcmd.c (detach_command): Adjust
13239 * infrun.c (follow_fork_inferior): Adjust.
13240 (handle_vfork_child_exec_or_exit): Adjust.
13241 * linux-fork.c (linux_fork_detach): Remove args parameter.
13242 * linux-fork.h (linux_fork_detach): Likewise.
13243 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13244 * linux-thread-db.c (thread_db_detach): Likewise.
13245 * nto-procfs.c (procfs_detach): Likewise.
13246 * procfs.c (procfs_detach): Likewise.
13247 (do_detach): Remove signo parameter.
13248 * record.c (record_detach): Remove args parameter.
13249 * record.h (record_detach): Likewise.
13250 * remote-sim.c (gdbsim_detach): Likewise.
13251 * remote.c (remote_detach_1): Likewise.
13252 (remote_detach): Likewise.
13253 (extended_remote_detach): Likewise.
13254 * sol-thread.c (sol_thread_detach): Likewise.
13255 * target-delegates.c: Re-generate.
13256 * top.c (struct qt_args) <args>: Remove field.
13257 (kill_or_detach): Don't pass args.
13258 (quit_force): Don't set args.
13259 * windows-nat.c (windows_detach): Remove args parameter.
13261 2018-01-19 Yao Qi <yao.qi@linaro.org>
13263 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13264 (arm_linux_init_abi): Install it.
13266 2018-01-19 Yao Qi <yao.qi@linaro.org>
13268 * osabi.c (gdb_osabi_names): Extend the regexp for
13269 arm-linux-gnueabihf.
13271 2018-01-18 Yao Qi <yao.qi@linaro.org>
13273 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13275 (abbrev_table::add_abbrev): Update.
13276 (abbrev_table::lookup_abbrev): Update.
13278 2018-01-18 Yao Qi <yao.qi@linaro.org>
13280 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13282 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13284 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13287 2018-01-17 Tom Tromey <tom@tromey.com>
13289 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13291 2018-01-17 Tom Tromey <tom@tromey.com>
13293 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13294 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13295 (create_array_type_with_stride): Update.
13296 * dwarf2read.c (set_die_type): Update.
13298 2018-01-17 Tom Tromey <tom@tromey.com>
13300 * dwarf2read.c (delayed_method_info): Remove typedef.
13301 (dwarf2_cu::method_info): Now a std::vector.
13302 (add_to_method_list): Update.
13303 (free_delayed_list): Remove.
13304 (compute_delayed_physnames): Update.
13305 (process_full_comp_unit, process_full_type_unit): Clear the method
13306 list. Remove cleanups.
13307 (psymtab_include_file_name): Add name_holder parameter. Use
13308 unique_xmalloc_ptr.
13309 (dwarf_decode_lines): Update.
13311 2018-01-17 Tom Tromey <tom@tromey.com>
13312 Simon Marchi <simon.marchi@ericsson.com>
13314 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13315 (dwarf2_per_objfile::free_cached_comp_units)
13316 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13317 (init_cutu_and_read_dies_no_follow): Update.
13318 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13319 (dwarf2_cu::~dwarf2_cu): New.
13320 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13321 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13323 2018-01-17 Tom Tromey <tom@tromey.com>
13324 Simon Marchi <simon.marchi@ericsson.com>
13326 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13327 (struct die_reader_specs) <abbrev_table>: New member.
13328 (struct abbrev_table): Add constructor.
13329 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13330 <abbrev_obstack>: Now an auto_obstack.
13331 (abbrev_table_up): New typedef.
13332 (init_cu_die_reader): Add abbrev_table parameter.
13333 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13334 Add result_dwo_abbrev_table.
13335 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13336 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13338 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13340 (skip_children): Update.
13341 (abbrev_table::alloc_abbrev): Rename from
13342 abbrev_table_alloc_abbrev.
13343 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13344 (abbrev_table::lookup_abbrev): Rename from
13345 abbrev_table_lookup_abbrev.
13346 (abbrev_table_read_table): Return abbrev_table_up.
13347 (abbrev_table_free, abbrev_table_free_cleanup)
13348 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13349 (load_partial_dies): Update.
13351 2018-01-17 Tom Tromey <tom@tromey.com>
13353 * dwarf2read.c (dwarf2_compute_name): Update comment.
13354 (read_func_scope, read_variable): Update.
13355 (new_symbol): Remove.
13356 (new_symbol_full): Rename to new_symbol.
13358 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13361 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13362 a warning instead of throwing an error, set section size to 0 and return
13364 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13366 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13368 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13370 (linux_ptrace_attach_fail_reason_string): Likewise.
13371 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13373 (linux_ptrace_attach_fail_reason_string): Likewise.
13374 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13376 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13378 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13380 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13383 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13384 checking for fs_base/gs_base fields in struct user_regs_struct.
13385 * configure: Regenerate.
13387 2018-01-17 Yao Qi <yao.qi@linaro.org>
13389 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13391 (aarch64_linux_init_abi): Install it to gdbarch hook
13392 gcc_target_options.
13394 2018-01-15 Pedro Alves <palves@redhat.com>
13396 * common/signals-state-save-restore.c
13397 (save_original_signals_state): Fix typos.
13399 2017-01-12 Tom Tromey <tom@tromey.com>
13400 Sergio Durigan Junior <sergiodj@redhat.com>
13402 * Makefile.in (install-only): Install gdb-add-index.
13404 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13406 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13408 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13410 * infrun.c (keep_going_pass_signal): Clear step-over info when
13411 insert_breakpoints fails.
13413 2018-01-11 Pedro Alves <palves@redhat.com>
13416 * infrun.c (resume): Rename to ...
13417 (resume_1): ... this.
13418 (resume): Reimplement as wrapper around resume_1.
13420 2018-01-11 Pedro Alves <palves@redhat.com>
13423 * remote.c (remote_parse_stop_reply): Default to the last-set
13424 general thread instead of to 'magic_null_ptid'.
13426 2018-01-10 Pedro Alves <palves@redhat.com>
13428 * language.h (language_get_symbol_name_matcher): Rename ...
13429 (get_symbol_name_matcher): ... this.
13430 * language.c (language_get_symbol_name_matcher): Ditto.
13431 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13434 2018-01-10 Pedro Alves <palves@redhat.com>
13438 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13439 Adjust to use language_get_symbol_name_matcher instead of
13440 language_defn::la_get_symbol_name_matcher.
13441 * language.c (language_get_symbol_name_matcher): If in Ada mode
13442 and the lookup name is a verbatim match, return Ada's matcher.
13443 * language.h (language_get_symbol_name_matcher): Adjust comment.
13444 (ada_lookup_name_info::verbatim_p):: New method.
13446 2018-01-10 Pedro Alves <palves@redhat.com>
13449 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13450 minsym's language is language_auto or language_cplus, pass down
13451 language_ada instead.
13452 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13454 2018-01-10 Pedro Alves <palves@redhat.com>
13457 * minsyms.c (linkage_name_str): New function.
13458 (iterate_over_minimal_symbols): Use it.
13460 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13462 * NEWS: Document that 'info proc' now works on FreeBSD.
13464 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13466 * configure.ac: Check for kinfo_getfile in libutil.
13467 * configure: Regenerate.
13468 * config.in: Regenerate.
13469 * fbsd-nat.c: Include "fbsd-tdep.h".
13470 (fbsd_fetch_cmdline): New.
13471 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13472 rather than calling error.
13473 (fbsd_info_proc): New.
13474 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13475 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13476 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13478 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13480 * fbsd-nat.c (struct free_deleter): Remove.
13481 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13483 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13485 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13486 NULL for an empty pathname.
13488 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13490 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13491 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13492 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13493 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13494 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13495 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13496 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13497 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13498 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13499 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13500 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13501 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13502 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13503 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13504 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13506 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13508 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13509 (gnu_xfer_auxv): New function.
13510 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13511 TARGET_OBJECT_AUXV.
13513 2018-01-08 Yao Qi <yao.qi@linaro.org>
13514 Simon Marchi <simon.marchi@ericsson.com>
13516 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13518 (COMMON_OBS): Remove selftest.o.
13519 * configure.ac: Append selftest-arch.c and common/selftest.c to
13520 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13521 * configure: Re-generated.
13522 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13524 (maintenance_info_selftests): Likewise.
13526 2018-01-08 Xavier Roirand <roirand@adacore.com>
13528 * ada-valprint.c (val_print_packed_array_elements): Use
13529 proper number of elements when printing an array indexed
13530 by an enumeration type.
13532 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13534 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13535 (dw2_get_file_names_reader): Adjust.
13536 (lookup_dwo_signatured_type): Adjust.
13537 (lookup_dwp_signatured_type): Adjust.
13538 (lookup_signatured_type): Adjust.
13539 (create_type_unit_group): Adjust.
13540 (get_type_unit_group): Adjust.
13541 (process_psymtab_comp_unit_reader): Adjust.
13542 (build_type_psymtabs_reader): Adjust.
13543 (scan_partial_symbols): Adjust.
13544 (add_partial_symbol): Adjust.
13545 (add_partial_subprogram): Adjust.
13546 (peek_die_abbrev): Adjust.
13547 (fixup_go_packaging): Adjust.
13548 (process_imported_unit_die): Adjust.
13549 (dwarf2_compute_name): Adjust.
13550 (dwarf2_physname): Adjust.
13551 (read_import_statement): Adjust.
13552 (handle_DW_AT_stmt_list): Adjust.
13553 (read_file_scope): Adjust.
13554 (read_func_scope): Adjust.
13555 (read_lexical_block_scope): Adjust.
13556 (read_call_site_scope): Adjust.
13557 (read_variable): Adjust.
13558 (dwarf2_rnglists_process): Adjust.
13559 (dwarf2_ranges_process): Adjust.
13560 (dwarf2_ranges_read): Adjust.
13561 (dwarf2_get_pc_bounds): Adjust.
13562 (dwarf2_record_block_ranges): Adjust.
13563 (dwarf2_add_field): Adjust.
13564 (dwarf2_add_member_fn): Adjust.
13565 (read_structure_type): Adjust.
13566 (process_structure_scope): Adjust.
13567 (read_enumeration_type): Adjust.
13568 (read_array_type): Adjust.
13569 (mark_common_block_symbol_computed): Adjust.
13570 (read_common_block): Adjust.
13571 (read_namespace_type): Adjust.
13572 (read_namespace): Adjust.
13573 (read_module_type): Adjust.
13574 (read_tag_pointer_type): Adjust.
13575 (read_tag_ptr_to_member_type): Adjust.
13576 (read_tag_string_type): Adjust.
13577 (read_subroutine_type): Adjust.
13578 (read_typedef): Adjust.
13579 (read_base_type): Adjust.
13580 (attr_to_dynamic_prop): Adjust.
13581 (read_subrange_type): Adjust.
13582 (read_unspecified_type): Adjust.
13583 (dwarf2_read_abbrevs): Adjust.
13584 (load_partial_dies): Adjust.
13585 (read_partial_die): Adjust.
13586 (find_partial_die): Adjust.
13587 (guess_partial_die_structure_name): Adjust.
13588 (fixup_partial_die): Adjust.
13589 (read_attribute_value): Adjust.
13590 (read_addr_index): Adjust.
13591 (read_addr_index_from_leb128): Adjust.
13592 (read_str_index): Adjust.
13593 (dwarf2_string_attr): Adjust.
13594 (get_debug_line_section): Adjust.
13595 (dwarf_decode_line_header): Adjust.
13596 (lnp_state_machine::check_line_address): Adjust.
13597 (dwarf_decode_lines_1): Adjust.
13598 (dwarf_decode_lines): Adjust.
13599 (dwarf2_start_symtab): Adjust.
13600 (var_decode_location): Adjust.
13601 (new_symbol_full): Adjust.
13602 (dwarf2_const_value_data): Adjust.
13603 (dwarf2_const_value_attr): Adjust.
13604 (dwarf2_const_value): Adjust.
13605 (die_type): Adjust.
13606 (die_containing_type): Adjust.
13607 (build_error_marker_type): Adjust.
13608 (lookup_die_type): Adjust.
13609 (guess_full_die_structure_name): Adjust.
13610 (anonymous_struct_prefix): Adjust.
13611 (determine_prefix): Adjust.
13612 (dwarf2_name): Adjust.
13613 (follow_die_ref_or_sig): Adjust.
13614 (follow_die_offset): Adjust.
13615 (follow_die_ref): Adjust.
13616 (follow_die_sig_1): Adjust.
13617 (follow_die_sig): Adjust.
13618 (get_signatured_type): Adjust.
13619 (get_DW_AT_signature_type): Adjust.
13620 (decode_locdesc): Adjust.
13621 (dwarf_decode_macros): Adjust.
13622 (cu_debug_loc_section): Adjust.
13623 (fill_in_loclist_baton): Adjust.
13624 (dwarf2_symbol_mark_computed): Adjust.
13625 (init_one_comp_unit): Don't assign
13626 dwarf2_cu::dwarf2_per_objfile.
13627 (set_die_type): Adjust.
13629 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13631 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13632 <dwarf2_per_objfile>: New field.
13633 (dwarf2_per_objfile): Remove global.
13634 (get_dwarf2_per_objfile): New function.
13635 (set_dwarf2_per_objfile): New function.
13636 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13637 dwarf2_per_objfile.
13638 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13639 (read_abbrev_offset): Likewise.
13640 (read_indirect_string): Likewise.
13641 (read_indirect_line_string): Likewise.
13642 (read_indirect_string_at_offset): Likewise.
13643 (read_indirect_string_from_dwz): Likewise.
13644 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13645 dwarf2_per_objfile.
13646 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13647 (create_all_comp_units): Change objfile parameter to
13648 dwarf2_per_objfile.
13649 (create_all_type_units): Likewise.
13650 (process_queue): Add dwarf2_per_objfile parameter.
13651 (read_and_check_comp_unit_head): Likewise.
13652 (lookup_dwo_unit_in_dwp): Likewise.
13653 (get_dwp_file): Likewise.
13654 (process_cu_includes): Likewise.
13655 (struct free_dwo_file_cleanup_data): New struct.
13656 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13657 set_dwarf2_per_objfile.
13658 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13659 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13660 context, adjust calls.
13661 (dw2_instantiate_symtab): Likewise.
13662 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13663 (dw2_get_cu): Likewise.
13664 (create_cu_from_index_list): Change objfile parameter to
13665 dwarf2_per_objfile.
13666 (create_cus_from_index_list): Get dwarf2_per_objfile from
13667 context, adjust calls.
13668 (create_cus_from_index): Likewise.
13669 (create_signatured_type_table_from_index): Change objfile
13670 parameter to dwarf2_per_objfile.
13671 (create_signatured_type_table_from_debug_names): Change objfile
13672 parameter to dwarf2_per_objfile.
13673 (create_addrmap_from_index): Likewise.
13674 (create_addrmap_from_aranges): Likewise.
13675 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13676 (dw2_setup): Remove.
13677 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13679 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13680 get_dwarf2_per_objfile.
13681 (dw2_forget_cached_source_info): Likewise.
13682 (dw2_map_symtabs_matching_filename): Likewise.
13683 (struct dw2_symtab_iterator) <index>: Remove.
13684 <dwarf2_per_objfile>: New field.
13685 (dw2_symtab_iter_init): Replace index parameter with
13686 dwarf2_per_objfile.
13687 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13688 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13689 (dw2_print_stats): Likewise.
13690 (dw2_dump): Likewise.
13691 (dw2_expand_symtabs_for_function): Likewise.
13692 (dw2_expand_all_symtabs): Likewise.
13693 (dw2_expand_symtabs_with_fullname): Likewise.
13694 (dw2_expand_marked_cus): Replace index and objfile parameters
13695 with dwarf2_per_objfile.
13696 (dw_expand_symtabs_matching_file_matcher): Add
13697 dwarf2_per_objfile parameter and adjust calls.
13698 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13700 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13701 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13703 (create_cus_from_debug_names_list): Replace objfile parameter
13704 with dwarf2_per_objfile and adjust calls.
13705 (create_cus_from_debug_names): Likewise.
13706 (dwarf2_read_debug_names): Likewise.
13707 (mapped_debug_names::namei_to_name): Adjust call.
13708 (dw2_debug_names_iterator::next): Likewise.
13709 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13710 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13711 (dw2_debug_names_dump): Likewise.
13712 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13713 (dw2_debug_names_expand_symtabs_matching): Likewise.
13714 (dwarf2_initialize_objfile): Likewise.
13715 (dwarf2_build_psymtabs): Likewise.
13716 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13718 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13719 (read_and_check_comp_unit_head): Likewise.
13720 (read_abbrev_offset): Likewise.
13721 (create_debug_type_hash_table): Likewise.
13722 (create_debug_types_hash_table): Likewise.
13723 (create_all_type_units): Replace objfile parameter with
13724 dwarf2_per_objfile.
13725 (add_type_unit): Add dwarf2_per_objfile parameter.
13726 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13727 with dwarf2_per_objfile.
13728 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13729 (lookup_dwp_signatured_type): Likewise.
13730 (lookup_signatured_type): Likewise.
13731 (read_cutu_die_from_dwo): Likewise.
13732 (init_tu_and_read_dwo_dies): Likewise.
13733 (init_cutu_and_read_dies): Likewise.
13734 (init_cutu_and_read_dies_no_follow): Likewise.
13735 (allocate_type_unit_groups_table): Add objfile parameter.
13736 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13737 (get_type_unit_group): Likewise.
13738 (process_psymtab_comp_unit): Update call.
13739 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13740 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13741 (print_tu_stats): Likewise.
13742 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13743 in void* parameter.
13744 (build_type_psymtabs): Change objfile parameter to
13745 dwarf2_per_objfile.
13746 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13747 passed in void* parameter.
13748 (process_skeletonless_type_units): Change objfile parameter to
13749 dwarf2_per_objfile.
13750 (set_partial_user): Likewise.
13751 (dwarf2_build_psymtabs_hard): Likewise.
13752 (read_comp_units_from_section): Likewise.
13753 (create_all_comp_units): Likewise.
13754 (scan_partial_symbols): Update calls.
13755 (add_partial_symbol): Likewise.
13756 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13757 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13758 (process_queue): Add dwarf2_per_objfile parameter.
13759 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13760 (compute_compunit_symtab_includes): Likewise.
13761 (process_cu_includes): Add dwarf2_per_objfile parameter.
13762 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13763 (process_full_type_unit): Likewise.
13764 (process_imported_unit_die): Update call.
13765 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13766 (read_file_scope): Likewise.
13767 (allocate_dwo_file_hash_table): Add objfile parameter.
13768 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13769 (create_cus_hash_table): Likewise.
13770 (create_dwp_hash_table): Likewise.
13771 (create_dwo_unit_in_dwp_v1): Likewise.
13772 (create_dwp_v2_section): Likewise.
13773 (create_dwo_unit_in_dwp_v2): Likewise.
13774 (lookup_dwo_unit_in_dwp): Likewise.
13775 (try_open_dwop_file): Likewise.
13776 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13777 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13778 cleanup to include a reference to dwarf2_per_objfile.
13779 (open_dwp_file): Add dwarf2_per_objfile parameter.
13780 (open_and_init_dwp_file): Likewise.
13781 (get_dwp_file): Likewise.
13782 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13783 (queue_and_load_all_dwo_tus): Update call.
13784 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13786 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13787 (dwarf2_ranges_process): Likewise.
13788 (dwarf2_get_pc_bounds): Likewise.
13789 (mark_common_block_symbol_computed): Likewise.
13790 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13791 (dwarf2_read_abbrevs): Update call.
13792 (read_partial_die): Use dwarf2_per_objfile from cu.
13793 (find_partial_die): Likewise.
13794 (fixup_partial_die): Likewise.
13795 (read_attribute_value): Likewise.
13796 (read_indirect_string_at_offset_from): Add objfile parameter.
13797 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13799 (read_indirect_string_from_dwz): Add objfile parameter.
13800 (read_indirect_string): Add objfile parameter.
13801 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13802 (read_addr_index): Use dwarf2_per_objfile from cu.
13803 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13805 (read_str_index): Use dwarf2_per_objfile from cu.
13806 (get_debug_line_section): Likewise.
13807 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13808 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13809 (new_symbol_full): Use dwarf2_per_objfile from cu.
13810 (build_error_marker_type): Likewise.
13811 (lookup_die_type): Likewise.
13812 (determine_prefix): Likewise.
13813 (follow_die_offset): Likewise.
13814 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13815 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13816 (dwarf2_fetch_die_type_sect_off): Likewise.
13817 (dwarf2_get_die_type): Likewise.
13818 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13819 (get_signatured_type): Likewise.
13820 (get_DW_AT_signature_type): Likewise.
13821 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13822 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13823 (cu_debug_loc_section): Likewise.
13824 (fill_in_loclist_baton): Likewise.
13825 (dwarf2_symbol_mark_computed): Likewise.
13826 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13827 dwarf2_per_objfile.
13828 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13830 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13831 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13832 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13833 (set_die_type): Use dwarf2_free_objfile from cu.
13834 (get_die_type_at_offset): Likewise.
13835 (dwarf2_per_objfile_free): Don't assign global variable.
13836 (debug_names) <constructor>: Add dwarf2_per_objfile
13837 parameter, update m_debugstrlookup construction.
13838 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13840 <m_dwarf2_per_objfile>: New field.
13841 <lookup>: Use m_dwarf2_per_objfile.
13842 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13843 (psyms_seen_size): Likewise.
13844 (write_gdbindex): Replace objfile parameter with
13845 dwarf2_per_objfile.
13846 (write_debug_names): Likewise.
13847 (write_psymtabs_to_index): Likewise.
13848 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13851 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13853 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13854 <dwarf2_per_objfile>: New field.
13855 (struct dwarf2_per_cu_data) <objfile>: Remove.
13856 <dwarf2_per_objfile>: New field.
13857 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13859 (create_signatured_type_table_from_index): Likewise.
13860 (create_debug_type_hash_table): Likewise.
13861 (fill_in_sig_entry_from_dwo_entry): Likewise.
13862 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13863 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13865 (create_partial_symtab): Access objfile through
13866 dwarf2_per_objfile.
13867 (process_psymtab_comp_unit_reader): Likewise.
13868 (read_comp_units_from_section): Likewise.
13869 (scan_partial_symbols): Likewise.
13870 (add_partial_symbol): Likewise.
13871 (add_partial_subprogram): Likewise.
13872 (peek_die_abbrev): Likewise.
13873 (fixup_go_packaging): Likewise.
13874 (process_full_comp_unit): Likewise.
13875 (process_full_type_unit): Likewise.
13876 (process_imported_unit_die): Likewise.
13877 (dwarf2_compute_name): Likewise.
13878 (dwarf2_physname): Likewise.
13879 (read_import_statement): Likewise.
13880 (create_cus_hash_table): Assign dwarf2_physname instead of
13882 (read_func_scope): Access objfile through dwarf2_per_objfile.
13883 (read_lexical_block_scope): Likewise.
13884 (read_call_site_scope): Likewise.
13885 (read_variable): Likewise.
13886 (dwarf2_rnglists_process): Likewise.
13887 (dwarf2_ranges_process): Likewise.
13888 (dwarf2_ranges_read): Likewise.
13889 (dwarf2_record_block_ranges): Likewise.
13890 (dwarf2_add_field): Likewise.
13891 (dwarf2_add_member_fn): Likewise.
13892 (read_structure_type): Likewise.
13893 (process_structure_scope): Likewise.
13894 (read_enumeration_type): Likewise.
13895 (read_array_type): Likewise.
13896 (read_common_block): Likewise.
13897 (read_namespace_type): Likewise.
13898 (read_namespace): Likewise.
13899 (read_module_type): Likewise.
13900 (read_tag_pointer_type): Likewise.
13901 (read_tag_ptr_to_member_type): Likewise.
13902 (read_tag_string_type): Likewise.
13903 (read_subroutine_type): Likewise.
13904 (read_typedef): Likewise.
13905 (read_base_type): Likewise.
13906 (attr_to_dynamic_prop): Likewise.
13907 (read_subrange_type): Likewise.
13908 (read_unspecified_type): Likewise.
13909 (load_partial_dies): Likewise.
13910 (read_partial_die): Likewise.
13911 (find_partial_die): Likewise.
13912 (guess_partial_die_structure_name): Likewise.
13913 (fixup_partial_die): Likewise.
13914 (read_attribute_value): Likewise.
13915 (read_addr_index_from_leb128): Likewise.
13916 (dwarf2_read_addr_index): Likewise.
13917 (dwarf2_string_attr): Likewise.
13918 (lnp_state_machine::check_line_address): Likewise.
13919 (dwarf_decode_lines_1): Likewise.
13920 (dwarf_decode_lines): Likewise.
13921 (dwarf2_start_symtab): Likewise.
13922 (var_decode_location): Likewise.
13923 (new_symbol_full): Likewise.
13924 (dwarf2_const_value_data): Likewise.
13925 (dwarf2_const_value_attr): Likewise.
13926 (dwarf2_const_value): Likewise.
13927 (die_type): Likewise.
13928 (die_containing_type): Likewise.
13929 (lookup_die_type): Likewise.
13930 (guess_full_die_structure_name): Likewise.
13931 (anonymous_struct_prefix): Likewise.
13932 (dwarf2_name): Likewise.
13933 (follow_die_ref_or_sig): Likewise.
13934 (follow_die_offset): Likewise.
13935 (follow_die_ref): Likewise.
13936 (dwarf2_fetch_die_loc_sect_off): Likewise.
13937 (dwarf2_fetch_constant_bytes): Likewise.
13938 (dwarf2_fetch_die_type_sect_off): Likewise.
13939 (dwarf2_get_die_type): Likewise.
13940 (follow_die_sig): Likewise.
13941 (decode_locdesc): Likewise.
13942 (dwarf2_per_cu_objfile): Likewise.
13943 (dwarf2_per_cu_text_offset): Likewise.
13944 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13946 (set_die_type): Access objfile through
13947 dwarf2_per_objfile.
13949 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13951 * valprint.c (converted_character_d): Remove typedef.
13952 (DEF_VEC_O (converted_character_d)): Remove.
13953 (count_next_character): Use std::vector.
13954 (print_converted_chars_to_obstack): Likewise.
13955 (generic_printstr): Likewise.
13957 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13959 * xml-support.h (struct gdb_xml_value): Add constructor.
13960 <value>: Change type to unique_xmalloc_ptr.
13961 (gdb_xml_value_s): Remove typedef.
13962 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13963 (gdb_xml_element_start_handler): Change parameter type to
13965 (xml_find_attribute): Likewise.
13966 * xml-support.c (xml_find_attribute): Change parameter type to
13967 std::vector and adjust.
13968 (gdb_xml_values_cleanup): Remove.
13969 (gdb_xml_parser::start_element): Adjust to std::vector.
13970 (xinclude_start_include): Change paraeter type to std::vector
13972 * btrace.c (check_xml_btrace_version): Likewise.
13973 (parse_xml_btrace_block): Likewise.
13974 (parse_xml_btrace_pt_config_cpu): Likewise.
13975 (parse_xml_btrace_pt): Likewise.
13976 (parse_xml_btrace_conf_bts): Likewise.
13977 (parse_xml_btrace_conf_pt): Likewise.
13978 * memory-map.c (memory_map_start_memory): Likewise.
13979 (memory_map_start_property): Likewise.
13980 * osdata.c (osdata_start_osdata): Likewise.
13981 (osdata_start_item): Likewise.
13982 (osdata_start_column): Likewise.
13983 * remote.c (start_thread): Likewise.
13984 * solib-aix.c (library_list_start_library): Likewise.
13985 (library_list_start_list): Likewise.
13986 * solib-svr4.c (library_list_start_library): Likewise.
13987 (svr4_library_list_start_list): Likewise.
13988 * solib-target.c (library_list_start_segment): Likewise.
13989 (library_list_start_section): Likewise.
13990 (library_list_start_library): Likewise.
13991 (library_list_start_list): Likewise.
13992 * tracepoint.c (traceframe_info_start_memory): Likewise.
13993 (traceframe_info_start_tvar): Likewise.
13994 * xml-syscall.c (syscall_start_syscall): Likewise.
13995 * xml-tdesc.c (tdesc_start_target): Likewise.
13996 (tdesc_start_feature): Likewise.
13997 (tdesc_start_reg): Likewise.
13998 (tdesc_start_union): Likewise.
13999 (tdesc_start_struct): Likewise.
14000 (tdesc_start_flags): Likewise.
14001 (tdesc_start_enum): Likewise.
14002 (tdesc_start_field): Likewise.
14003 (tdesc_start_enum_value): Likewise.
14004 (tdesc_start_vector): Likewise.
14006 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14008 * extension.h (struct xmethod_worker) <clone>: Remove.
14009 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14011 (python_xmethod_worker::clone): Remove.
14012 * valops.c (find_overload_match): Use std::move instead of
14015 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14017 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14018 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14019 <free_xmethod_worker_data>: Remove.
14020 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14021 <get_xmethod_arg_types>: Remove.
14022 <get_xmethod_result_type>: Remove.
14023 <invoke_xmethod>: Remove.
14024 * extension.c (new_xmethod_worker): Remove.
14025 (clone_xmethod_worker): Remove.
14026 (get_matching_xmethod_workers): Return void, pass std::vector by
14028 (get_xmethod_arg_types): Rename to...
14029 (xmethod_worker::get_arg_types): ... this, and adjust.
14030 (get_xmethod_result_type): Rename to...
14031 (xmethod_worker::get_result_type): ... this, and adjust.
14032 (invoke_xmethod): Remove.
14033 (free_xmethod_worker): Remove.
14034 (free_xmethod_worker_vec): Remove.
14035 * extension.h (enum ext_lang_rc): Move here from
14037 (struct xmethod_worker): Add constructor and destructor.
14040 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14041 virtual pure methods.
14042 <get_arg_types, get_result_type>: New methods.
14043 (xmethod_worker_ptr): Remove typedef.
14044 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14045 (xmethod_worker_vec): Remove typedef.
14046 (xmethod_worker_up): New typedef.
14047 (invoke_xmethod): Remove.
14048 (clone_xmethod_worker): Remove.
14049 (free_xmethod_worker): Remove.
14050 (free_xmethod_worker_vec): Remove.
14051 (get_xmethod_arg_types): Remove.
14052 (get_xmethod_result_type): Remove.
14053 * valops.c (find_method_list): Use std::vector, don't use
14054 intermediate vector.
14055 (value_find_oload_method_list): Use std::vector.
14056 (find_overload_match): Use std::vector.
14057 (find_oload_champ): Use std::vector.
14058 * value.c (value_free): Use operator delete.
14059 (value_of_xmethod): Rename to...
14060 (value_from_xmethod): ... this. Don't assign
14061 xmethod_worker::value, take rvalue-reference.
14062 (result_type_of_xmethod): Adjust.
14063 (call_xmethod): Adjust.
14064 * value.h: Include extension.h.
14065 (struct xmethod_worker): Don't forward-declare.
14066 (value_of_xmethod): Rename to...
14067 (value_from_xmethod): ... this, take rvalue-reference.
14068 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14069 (struct python_xmethod_worker): ... this, add constructor and
14071 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14072 (gdbpy_free_xmethod_worker_data): Rename to...
14073 (python_xmethod_worker::~python_xmethod_worker): ... this and
14075 (gdbpy_clone_xmethod_worker_data): Rename to...
14076 (python_xmethod_worker::clone): ... this and adjust.
14077 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14079 (gdbpy_get_xmethod_arg_types): Rename to...
14080 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14081 (gdbpy_get_xmethod_result_type): Rename to...
14082 (python_xmethod_worker::do_get_result_type): ... this and
14084 (gdbpy_invoke_xmethod): Rename to...
14085 (python_xmethod_worker::invoke): ... this and adjust.
14086 (new_python_xmethod_worker): Rename to...
14087 (python_xmethod_worker::python_xmethod_worker): ... this and
14089 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14091 (gdbpy_free_xmethod_worker_data): Remove.
14092 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14093 (gdbpy_get_xmethod_arg_types): Remove.
14094 (gdbpy_get_xmethod_result_type): Remove.
14095 (gdbpy_invoke_xmethod): Remove.
14096 * python/python.c (python_extension_ops): Remove obsolete
14099 2018-01-05 Pedro Alves <palves@redhat.com>
14102 * common/signals-state-save-restore.c
14103 (save_original_signals_state): New parameter 'quiet'. Warn if we
14104 find a custom handler preinstalled, instead of internal erroring.
14105 But only warn if !quiet.
14106 * common/signals-state-save-restore.h
14107 (save_original_signals_state): New parameter 'quiet'.
14108 * main.c (captured_main_1): Move save_original_signals_state call
14109 after option handling, and pass QUIET.
14111 2018-01-05 Pedro Alves <palves@redhat.com>
14113 * spu-tdep.c (spu_catch_start): Pass
14114 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14116 2018-01-05 Pedro Alves <palves@redhat.com>
14119 * ada-lang.c (literal_symbol_name_matcher): New function.
14120 (ada_get_symbol_name_matcher): Use it for
14121 symbol_name_match_type::SEARCH_NAME.
14122 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14123 it down instead of assuming symbol_name_match_type::FULL.
14124 * block.h (block_lookup_symbol): New parameter 'match_type'.
14125 * c-valprint.c (print_unpacked_pointer): Use
14126 lookup_symbol_search_name instead of lookup_symbol.
14127 * compile/compile-object-load.c (get_out_value_type): Pass down
14128 symbol_name_match_type::SEARCH_NAME.
14129 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14130 symbol_name_match_type::FULL.
14131 * cp-support.c (cp_get_symbol_name_matcher): Handle
14132 symbol_name_match_type::SEARCH_NAME.
14133 * infrun.c (insert_exception_resume_breakpoint): Use
14134 lookup_symbol_search_name.
14135 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14136 * psymtab.c (maintenance_check_psymtabs): Use
14137 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14138 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14139 SYMBOL_SEARCH_NAME.
14140 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14141 if symbol_name_match_type::SEARCH_NAME.
14142 (lookup_symbol_in_language): Pass down
14143 symbol_name_match_type::FULL.
14144 (lookup_symbol_search_name): New.
14145 (lookup_language_this): Pass down
14146 symbol_name_match_type::SEARCH_NAME.
14147 (lookup_symbol_aux, lookup_local_symbol): New parameter
14148 'match_type'. Pass it down.
14149 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14150 (lookup_symbol_search_name): New declaration.
14151 (lookup_symbol_in_block): New 'match_type' parameter.
14153 2018-01-05 Pedro Alves <palves@redhat.com>
14156 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14158 (ada_lookup_symbol): Reimplement in terms of
14159 ada_lookup_symbol_list, bits factored out from
14160 ada_lookup_encoded_symbol.
14162 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14164 * ada-exp.y (write_object_renaming): When subscripting an array
14165 using a symbol as the index, pass the block in call to
14166 ada_lookup_encoded_symbol when looking that symbol up.
14168 2018-01-05 Jerome Guitton <guitton@adacore.com>
14170 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14173 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14175 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14176 the case where VALUE_LVAL (val0) is not lval_memory.
14178 2018-01-05 Xavier Roirand <roirand@adacore.com>
14180 * ada-valprint.c (print_optional_low_bound): Handle
14181 character-indexed array printing like boolean-indexed array
14184 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14186 * NEWS: Create a new section for the next release branch.
14187 Rename the section of the current branch, now that it has
14190 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14192 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14193 * version.in: Bump version to 8.1.50.DATE-git.
14195 2018-01-03 Xavier Roirand <roirand@adacore.com>
14197 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14199 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14201 (default_exception_support_info) <catch_handlers_sym>: Add field.
14202 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14203 (ada_exception_name_addr_1): Add "catch handlers" handling.
14204 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14205 Update all callers.
14206 (create_excep_cond_exprs) <ex>: Add parameter.
14207 (re_set_exception): Update create_excep_cond_exprs call.
14208 (print_it_exception, print_one_exception, print_mention_exception)
14209 (print_recreate_exception): Add "catch handler" handling.
14210 (allocate_location_catch_handlers, re_set_catch_handlers)
14211 (check_status_catch_handlers, print_it_catch_handlers)
14212 (print_one_catch_handlers, print_mention_catch_handlers)
14213 (print_recreate_catch_handlers): New function.
14214 (catch_handlers_breakpoint_ops): New variable.
14215 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14216 Add parameter. Add "catch handler" handling.
14217 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14218 Add "catch handler" handling.
14219 (ada_exception_catchpoint_cond_string): Add "catch handler"
14221 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14223 (catch_ada_handlers_command): New function.
14224 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14225 operations structure.
14226 (_initialize_ada_language): Add "catch handlers" command entry.
14227 * NEWS: Document "catch handlers" feature.
14229 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14231 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14232 account when creating the array type of the slice.
14233 (ada_value_slice): Likewise.
14235 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14237 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14239 (create_array_type_with_stride): Add byte_stride_prop parameter.
14240 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14241 New parameter. Update all callers in this file.
14242 (array_type_has_dynamic_stride): New function.
14243 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14244 of arrays with dynamic byte strides.
14245 * dwarf2read.c (read_array_type): Add support for dynamic
14246 DW_AT_byte_stride attributes.
14248 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14250 * dwarf2read.c (read_unspecified_type): Treat
14251 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14253 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14255 Update copyright year range in all GDB files.
14257 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14259 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14260 and gdb/testsuite/gdb.base/step-line.c.
14262 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14264 * copyright.py (main): Dump the contents of
14265 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14266 even if BY_HAND is empty.
14268 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14270 * top.c (print_gdb_version): Update Copyright year in version
14273 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14275 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14277 For older changes see ChangeLog-2017.
14283 version-control: never