1 2018-10-03 Tom Tromey <tom@tromey.com>
3 * parse.c (prefixify_expression): Add assert.
4 (parse_exp_in_context_1): Throw exception if the expression is
7 2018-10-03 Tom Tromey <tom@tromey.com>
9 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
11 2018-10-03 Tom Tromey <tom@tromey.com>
13 * c-exp.y (parse_number): Work in unsigned. Remove casts.
15 2018-10-03 Tom Tromey <tom@tromey.com>
17 * dwarf2read.c (read_subrange_type): Make "negative_mask"
20 2018-10-03 Tom Tromey <tom@tromey.com>
22 * findvar.c (extract_integer): Do work in an unsigned type.
24 2018-10-03 Tom Tromey <tom@tromey.com>
26 * common/enum-flags.h (enum_flags::operator~): Add static assert.
27 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
29 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
30 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
32 * c-lang.h (enum c_string_type_values): Use unsigned as base
34 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
36 2018-10-03 Tom Tromey <tom@tromey.com>
38 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
39 <~dwarf2_frame_state_reg_info>: Update.
40 <dwarf2_frame_state_reg_info>: Update.
41 <alloc_regs>: Add assertion. Update.
42 <reg>: Now a std::vector.
45 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
46 (execute_cfa_program_test, dwarf2_frame_cache): Update.
48 2018-10-03 Tom Tromey <tom@tromey.com>
50 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
52 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
54 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
56 2018-10-02 Tom Tromey <tom@tromey.com>
58 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
60 2018-10-02 John Darrington <john@darrington.wattle.id.au>
62 * NEWS: Mention changed commands.
63 * ser-uds.c: New file.
64 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
65 * configure: Regenerate.
66 * Makefile.in: Add new file.
67 * serial.c (serial_open): Check if filename is a socket
68 and lookup the appropriate interface accordingly.
70 2018-10-01 Alan Hayward <alan.hayward@arm.com>
72 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
74 (AARCH64_EXTRA_MAGIC): Likewise.
75 (AARCH64_FPSIMD_MAGIC): Likewise.
76 (AARCH64_SVE_MAGIC): Likewise.
77 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
78 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
79 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
80 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
81 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
82 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
83 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
84 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
85 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
86 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
87 (read_aarch64_ctx): Add function.
88 (aarch64_linux_sigframe_init): Detect FP registers.
90 2018-10-01 Alan Hayward <alan.hayward@arm.com>
92 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
93 (AARCH64_D0_REGNUM): Likewise.
94 (AARCH64_S0_REGNUM): Likewise.
95 (AARCH64_H0_REGNUM): Likewise.
96 (AARCH64_B0_REGNUM): Likewise.
97 (AARCH64_SVE_V0_REGNUM): Likewise.
98 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
99 (AARCH64_D0_REGNUM): Likewise.
100 (AARCH64_S0_REGNUM): Likewise.
101 (AARCH64_H0_REGNUM): Likewise.
102 (AARCH64_B0_REGNUM): Likewise.
103 (AARCH64_SVE_V0_REGNUM): Likewise.
105 2018-10-01 Gary Benson <gbenson@redhat.com>
107 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
108 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
109 prfpregset_t instead of gdb_prfpregset_t.
110 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
111 * configure, config.in: Rebuild.
113 2018-10-01 Gary Benson <gbenson@redhat.com>
115 * common/gdb_proc_service.h: New file, factored out from...
116 * gdb_proc_service.h: Moved common code to the above file.
117 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
119 2018-10-01 Gary Benson <gbenson@redhat.com>
121 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
122 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
124 2018-10-01 Gary Benson <gbenson@redhat.com>
126 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
127 (AC_CHECK_HEADERS): Check for linux/elf.h.
128 * configure, config.in: Rebuild.
129 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
130 doesn't define elf_fpregset_t.
132 2018-10-01 Gary Benson <gbenson@redhat.com>
134 * gdb_proc_service.h: Whitespace change.
136 2018-10-01 Tom Tromey <tom@tromey.com>
138 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
139 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
140 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
142 2018-10-01 Tom Tromey <tom@tromey.com>
144 * README: Minor change.
146 2018-09-30 Pedro Alves <palves@redhat.com>
148 * darwin-nat-info.c (darwin_debug_regions_recurse)
149 (info_mach_exceptions_command): Remove unused local variables.
150 * darwin-nat.c (darwin_decode_notify_message)
151 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
152 (darwin_stop_inferior, darwin_setup_exceptions)
153 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
154 (darwin_nat_target::attach, darwin_nat_target::detach)
155 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
157 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
160 2018-09-29 Tom Tromey <tom@tromey.com>
162 * README: Remove some leftover text.
164 2018-09-29 Tom Tromey <tom@tromey.com>
169 2018-09-28 John Baldwin <jhb@FreeBSD.org>
171 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
172 case with explicit breakpoint kind.
173 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
174 'additional_info' and related logic.
175 (riscv_debug_breakpoints): New variable.
176 (riscv_breakpoint_kind_from_pc): Use the length of the existing
177 instruction to determine the breakpoint kind.
178 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
179 flag. Update description of 'set/show riscv
180 use-compressed-breakpoints' flag.
182 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
184 (NEWS): Mention changes to frame related commands.
185 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
186 (add_prefix_cmd_suppress_notification): New function.
187 (add_com_suppress_notification): Call
188 add_cmd_suppress_notification.
189 * command.h (add_cmd_suppress_notification): Declare.
190 (add_prefix_cmd_suppress_notification): Declare.
191 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
192 (parse_frame_specification): Moved from stack.c, with
193 simplification to handle a single argument.
194 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
195 switch to the selected frame. Add a header comment.
196 * stack.c: Remove 'safe-ctype.h' include.
197 (find_frame_for_function): Add declaration.
198 (find_frame_for_address): New function.
199 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
200 (frame_selection_by_function_completer): New function.
201 (info_frame_command): Rename to...
202 (info_frame_command_core): ...this, and update parameter types.
203 (select_frame_command): Rename to...
204 (select_frame_command_core): ...this, and update parameter types.
205 (frame_command): Rename to...
206 (frame_command_core): ...this, and update parameter types.
207 (class frame_command_helper): New class to wrap implementations of
208 frame related sub-commands.
209 (frame_apply_cmd_list): New static global.
210 (frame_cmd_list): Make static.
211 (select_frame_cmd_list): New global for sub-commands.
212 (info_frame_cmd_list): New global for sub-commands.
213 (_initialize_stack): Register sub-commands for 'frame',
214 'select-frame', and 'info frame'. Update 'frame apply' commands
215 to use frame_apply_cmd_list. Move function local static
216 frame_apply_list to file static frame_apply_cmd_list for
218 * stack.h (select_frame_command): Delete declarationn.
219 (select_frame_for_mi): Declare new function.
221 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
223 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
224 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
227 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
229 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
231 2018-09-26 Tom Tromey <tom@tromey.com>
233 * valops.c (auto_abandon): Remove dead code.
235 2018-09-26 Tom Tromey <tom@tromey.com>
237 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
239 2018-09-24 Tom Tromey <tom@tromey.com>
241 * common/pathstuff.c (get_standard_cache_dir): Make
242 "xdg_cache_home" and "home" const.
243 * top.c (init_history): Make "tmpenv" const.
244 * main.c (get_init_files): Make "homedir" const.
246 2018-09-23 Tom Tromey <tom@tromey.com>
249 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
251 2018-09-23 Tom Tromey <tom@tromey.com>
253 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
254 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
255 * python/python-internal.h (gdbpy_handle_exception): Declare.
256 * python/py-utils.c (gdbpy_handle_exception): New function.
258 2018-09-23 Tom Tromey <tom@tromey.com>
261 * python/py-type.c (typy_template_argument): Check for negative
264 2018-09-23 Tom Tromey <tom@tromey.com>
267 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
269 2018-09-23 Tom Tromey <tom@tromey.com>
272 * python/py-value.c (valpy_int): Allow conversion from pointer
275 2018-09-23 Tom Tromey <tom@tromey.com>
278 * python/py-value.c (valpy_int): Respect type sign.
280 2018-09-23 Tom Tromey <tom@tromey.com>
283 * python/py-value.c (valpy_float): Allow conversions from int or
285 (valpy_int, valpy_long): Allow conversions from float.
287 2018-09-23 Tom Tromey <tom@tromey.com>
289 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
290 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
292 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
296 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
298 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
300 * windows-nat.c (windows_nat_target::wait): Remove a spurious
301 target_terminal::ours().
303 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
305 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
308 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
310 * breakpoint.c (update_inserted_breakpoint_locations): Remove
313 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
315 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
317 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
318 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
319 * sol-thread.c (ps_pdmodel): Don't guard definition.
321 * procfs.c: Fix formatting.
323 * procfs.c (sysset_t_alloc): Remove.
324 (create_procinfo): Use XNEW instead of sysset_t_alloc.
325 (procfs_debug_inferior): Likewise.
326 (procfs_set_exec_trap): Likewise.
327 (proc_set_traced_sysentry): Don't allocate argp dynamically.
328 (proc_set_traced_sysexit): Likewise.
330 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
331 (dead_procinfo): Likewise.
332 (proc_warn): Likewise.
333 (proc_error): Likewise.
334 (proc_get_LDT_entry): Likewise.
335 (do_attach): Likewise.
336 (procfs_target::pid_to_str): Likewise.
337 (iterate_over_mappings): Likewise.
339 * procfs.c (create_procinfo): Fix ARI warning.
340 (proc_get_status): Likewise.
341 (proc_stop_process): Likewise.
342 (proc_run_process): Likewise.
343 (proc_kill): Likewise.
344 (proc_get_LDT_entry): Likewise.
345 (procfs_find_LDT_entry): Likewise.
346 (proc_update_threads): Likewise.
347 (proc_iterate_over_threads): Likewise.
348 (do_attach): Likewise.
349 (procfs_xfer_memory): Likewise.
350 (invalidate_cache): Likewise.
351 (procfs_target::resume): Likewise.
352 (procfs_init_inferior): Likewise.
353 (procfs_set_exec_trap): Likewise.
354 (procfs_target::thread_alive): Likewise.
355 (procfs_target::pid_to_exec_file): Likewise.
356 (iterate_over_mappings): Likewise.
357 (procfs_target::make_corefile_notes): Likewise.
358 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
360 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
361 (procfs_find_LDT_entry): Likewise.
362 * sol-thread.c (ps_lgetLDT): Likewise.
364 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
367 * procfs.c (procfs_target): Declare pid_to_exec_file.
368 (procfs_target::pid_to_exec_file): New.
370 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
372 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
374 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
375 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
377 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
379 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
380 (supply_fpregset, fill_fpregset): Move ...
381 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
382 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
383 Remove references to ioctl-based procfs.
385 Remove PR_MODEL_NATIVE guards.
386 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
387 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
389 2018-09-19 Xavier Roirand <roirand@adacore.com>
392 * solib-darwin.c (darwin_get_dyld_bfd): New function.
393 (darwin_solib_get_all_image_info_addr_at_init): Update call.
394 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
396 2018-09-19 John Baldwin <jhb@FreeBSD.org>
398 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
399 (fbsd_print_sockaddr_in6): Likewise.
401 2018-09-19 Richard Bunt <richard.bunt@arm.com>
402 Chris January <chris.january@arm.com>
404 * eval.c (skip_undetermined_arglist): Skip argument list helper.
405 (evaluate_subexp_standard): Return a dummy type when
406 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
407 OP_F77_UNDETERMINED_ARGLIST case.
408 * expression.h (enum noside): Update comment.
410 2018-09-19 George Vasick <george.vasick@oracle.com>
412 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
414 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
415 April Chin <april.chin@oracle.com>
416 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
418 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
420 (create_procinfo): Print pids in /proc without leading zeros.
422 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
424 * nios2-tdep.c (nios2_gcc_target_options): New.
425 (nios2_gdb_arch_init): Install new hook.
427 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
429 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
431 * update-gnulib.sh: Apply patch.
432 * configure: Re-generate.
434 2018-09-18 John Baldwin <jhb@FreeBSD.org>
436 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
437 description. Make "info proc" command descriptions more
440 2018-09-18 John Baldwin <jhb@FreeBSD.org>
442 * NEWS: Mention 'info proc files' command.
444 2018-09-18 John Baldwin <jhb@FreeBSD.org>
446 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
447 descriptors for IP_FILES and IP_ALL.
449 2018-09-18 John Baldwin <jhb@FreeBSD.org>
451 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
452 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
453 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
454 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
455 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
456 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
457 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
458 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
459 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
460 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
461 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
462 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
463 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
464 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
465 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
466 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
467 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
468 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
469 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
470 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
471 (struct fbsd_sockaddr_un): New types.
472 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
473 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
474 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
475 (fbsd_core_info_proc_files): New functions.
476 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
478 * fbsd-tdep.h (fbsd_info_proc_files_header)
479 (fbsd_info_proc_files_entry): New.
481 2018-09-18 John Baldwin <jhb@FreeBSD.org>
483 * defs.h (enum info_proc_what) [IP_FILES]: New value.
484 * infcmd.c (info_proc_cmd_files): New function.
485 (_initialize_infcmd): Register 'info proc files' command.
487 2018-09-18 John Baldwin <jhb@FreeBSD.org>
489 * gnulib/aclocal-m4-deps.mk: Re-generate.
490 * gnulib/aclocal.m4: Re-generate.
491 * gnulib/config.in: Re-generate.
492 * gnulib/configure: Re-generate.
493 * gnulib/import/Makefile.am: Re-generate.
494 * gnulib/import/Makefile.in: Re-generate.
495 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
496 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
497 * gnulib/import/arpa_inet.in.h: New file.
498 * gnulib/import/inet_ntop.c: New file.
499 * gnulib/import/m4/arpa_inet_h.m4: New file.
500 * gnulib/import/m4/inet_ntop.m4: New file.
501 * gnulib/import/m4/netinet_in_h.m4: New file.
502 * gnulib/import/m4/socklen.m4: New file.
503 * gnulib/import/m4/sockpfaf.m4: New file.
504 * gnulib/import/m4/stdalign.m4: New file.
505 * gnulib/import/m4/sys_uio_h.m4: New file.
506 * gnulib/import/netinet_in.in.h: New file.
507 * gnulib/import/stdalign.in.h: New file.
508 * gnulib/import/sys_socket.c: New file.
509 * gnulib/import/sys_socket.in.h: New file.
510 * gnulib/import/sys_uio.in.h: New file.
511 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
514 2018-09-18 John Baldwin <jhb@FreeBSD.org>
516 * gnulib/aclocal-m4-deps.mk: New file.
517 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
520 2018-09-18 John Baldwin <jhb@FreeBSD.org>
522 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
525 2018-09-18 Tom Tromey <tom@tromey.com>
527 * compile/compile-object-load.c (struct
528 link_hash_table_cleanup_data): Add constructor and destructor.
529 Use DISABLE_COPY_AND_ASSIGN.
530 (~link_hash_table_cleanup_data): Rename from
531 link_hash_table_free. Now a destructor.
532 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
534 2018-09-18 Tom Tromey <tom@tromey.com>
536 * compile/compile-object-run.c (do_module_cleanup): Use delete.
537 * compile/compile-object-load.c (struct munmap_list): Move to
539 (munmap_list::add): Rename from munmap_list_add; rewrite.
540 (munmap_list::~munmap_list): Rename from munmap_list_free.
541 (munmap_listp_free_cleanup): Remove.
542 (compile_object_load): Update.
543 * compile/compile-object-load.h (struct munmap_list): Move from
544 compile-object-load.c. Rewrite.
546 2018-09-18 Alan Hayward <alan.hayward@arm.com>
548 * aarch64-tdep.c (pass_in_v): Use register size.
549 (aarch64_extract_return_value): Likewise.
550 (aarch64_store_return_value): Likewise.
552 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
554 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
557 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
559 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
562 2018-09-17 Tom Tromey <tom@tromey.com>
565 * configure: Rebuild.
566 * configure.ac: Conditionally use -DNDEBUG for Python.
568 2018-09-17 Tom Tromey <tom@tromey.com>
570 * configure: Rebuild.
571 * configure.ac: Use gmp as a library dependency when checking for
574 2018-09-17 Pedro Alves <palves@redhat.com>
576 * python/py-inferior.c (find_inferior_object): Delete.
578 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
580 * compile/compile-cplus-types.c
581 (compile_cplus_instance::enter_scope): Don't use new_scope after
584 2018-09-17 Tom Tromey <tom@tromey.com>
586 * common/pathstuff.c (get_standard_cache_dir): Use
587 ~/Library/Caches on macOS.
588 * common/pathstuff.h (get_standard_cache_dir): Update comment.
590 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
593 * breakpoint.c (commands_cmd_element): New.
594 (_initialize_breakpoint): Assign commands_cmd_element.
595 * breakpoint.h (commands_cmd_element): New.
596 * cli/cli-script.c (while_cmd_element, if_command,
597 define_cmd_element): New.
598 (command_name_equals): Remove.
599 (process_next_line): Compare commands by pointer, not by name.
600 (_initialize_cli_script): Assign the various cmd_list_element
602 * compile/compile.c (compile_cmd_element): New.
603 (_initialize_compile): Assign compile_cmd_element.
604 * compile/compile.h (compile_cmd_element): New.
605 * guile/guile.c (guile_cmd_element): New.
606 (install_gdb_commands): Assign guile_cmd_element.
607 * guile/guile.h (guile_cmd_element): New.
608 * python/python.c (python_cmd_element): New.
609 (_initialize_python): Assign python_cmd_element.
610 * python/python.h (python_cmd_element): New.
611 * tracepoint.c (while_stepping_cmd_element): New.
612 (_initialize_tracepoint): Assign while_stepping_cmd_element.
613 * tracepoint.h (while_stepping_cmd_element): New.
615 2018-09-17 Tom Tromey <tom@tromey.com>
617 * infrun.c (save_infcall_suspend_state): Return
618 infcall_suspend_state_up.
619 (save_infcall_control_state): Return infcall_control_state_up.
620 * inferior.h (save_infcall_suspend_state)
621 (save_infcall_control_state): Declare later. Return unique
624 2018-09-17 Tom Tromey <tom@tromey.com>
626 * infrun.c (struct stop_context): Declare constructor,
627 destructor, "changed" method.
628 (stop_context::stop_context): Rename from save_stop_context.
629 (stop_context::~stop_context): Rename from
630 release_stop_context_cleanup.
631 (normal_stop): Update.
632 (stop_context::changed): Rename from stop_context_changed. Return
635 2018-09-17 Tom Tromey <tom@tromey.com>
637 * inferior.h (struct infcall_suspend_state_deleter): New.
638 (infcall_suspend_state_up): New typedef.
639 (struct infcall_control_state_deleter): New.
640 (infcall_control_state_up): New typedef.
641 (make_cleanup_restore_infcall_suspend_state)
642 (make_cleanup_restore_infcall_control_state): Don't declare.
643 * infcall.c (call_function_by_hand_dummy): Update.
644 * infrun.c (do_restore_infcall_suspend_state_cleanup)
645 (make_cleanup_restore_infcall_suspend_state): Remove.
646 (do_restore_infcall_control_state_cleanup)
647 (make_cleanup_restore_infcall_control_state): Remove.
649 2018-09-17 Tom Tromey <tom@tromey.com>
651 * gdbthread.h (struct thread_control_state): Add initializer.
652 (class thread_info) <control>: Remove initializer.
653 * inferior.h (struct inferior_control_state): Add initializer.
654 (class inferior) <control>: Remove initializer.
655 (exit_inferior_1): Update.
656 * infrun.c (struct infcall_control_state): Add constructors.
657 (save_infcall_control_state): Use new.
658 (restore_infcall_control_state, discard_infcall_control_state):
661 2018-09-17 Tom Tromey <tom@tromey.com>
663 * infrun.c (struct infcall_suspend_state) <registers>: Now a
665 <siginfo_data>: Now a unique_xmalloc_ptr.
666 (save_infcall_suspend_state, restore_infcall_suspend_state)
667 (discard_infcall_suspend_state)
668 (get_infcall_suspend_state_regcache): Update.
670 2018-09-17 Tom Tromey <tom@tromey.com>
672 * gdbthread.h (struct thread_suspend_state): Add initializers.
673 (class thread_info) <suspend>: Remove initializer.
674 * infrun.c (struct infcall_suspend_state): Add initializers.
675 (save_infcall_suspend_state): Use new.
676 (discard_infcall_suspend_state): Use delete.
678 2018-09-16 Tom Tromey <tom@tromey.com>
680 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
682 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
683 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
684 (py_varobj_iter_new): Likewise.
685 (py_varobj_get_iterator): Use gdbpy_ref.
687 2018-09-16 Tom Tromey <tom@tromey.com>
689 * python/py-threadevent.c (py_get_event_thread): Simplify.
690 * python/py-inferior.c (infpy_thread_from_thread_handle):
691 Return immediately after calling thread_to_thread_object. Use
693 (thread_to_thread_object): Set the exception on a NULL return.
695 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
697 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
699 2018-09-16 Tom Tromey <tom@tromey.com>
701 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
704 2018-09-16 Tom Tromey <tom@tromey.com>
706 * python/python-internal.h (thread_to_thread_object): Change
708 * python/py-inferior.c (thread_to_thread_object): Return a new
710 (infpy_thread_from_thread_handle): Update.
711 * python/py-infthread.c (gdbpy_selected_thread): Update.
712 * python/py-stopevent.c (create_stop_event_object): Update.
713 * python/py-threadevent.c (py_get_event_thread): Return a new
715 (py_get_event_thread): Update.
716 * python/py-event.h (py_get_event_thread): Change return type.
717 * python/py-continueevent.c (create_continue_event_object):
720 2018-09-16 Tom Tromey <tom@tromey.com>
722 * python/py-progspace.c (pspy_get_objfiles): Update.
723 * python/python-internal.h (objfile_to_objfile_object): Change
725 * python/py-newobjfileevent.c (create_new_objfile_event_object):
727 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
729 * python/python.c (gdbpy_get_current_objfile): Update.
730 (gdbpy_objfiles): Update.
731 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
733 (objfile_to_objfile_object): Return a new reference.
734 * python/py-symtab.c (stpy_get_objfile): Update.
735 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
738 2018-09-16 Tom Tromey <tom@tromey.com>
740 * python/py-inferior.c (infpy_get_progspace): Update.
741 * python/python-internal.h (pspace_to_pspace_object): Change
743 * python/py-newobjfileevent.c
744 (create_clear_objfiles_event_object): Update.
745 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
747 * python/python.c (gdbpy_get_current_progspace): Update.
748 (gdbpy_progspaces): Update.
749 * python/py-progspace.c (pspace_to_pspace_object): Return a new
751 * python/py-objfile.c (objfpy_get_progspace): Update.
752 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
755 2018-09-16 Tom Tromey <tom@tromey.com>
757 * python/lib/gdb/__init__.py (current_progspace, objfiles)
758 (solib_name, block_for_pc, find_pc_line): New functions.
759 (execute_unwinders): Update.
760 * python/py-block.c (gdbpy_block_for_pc): Remove.
761 * python/py-inferior.c (infpy_get_progspace): New function.
762 (inferior_object_getset) <progspace>: Add.
763 * python/py-progspace.c (pspy_objfiles): Rewrite.
764 (pspy_solib_name, pspy_block_for_pc)
765 (pspy_find_pc_line, pspy_is_valid): New functions.
766 (progspace_object_methods): Add entries for solib_name,
767 block_for_pc, find_pc_line, is_valid.
768 * python/python-internal.h (gdbpy_block_for_pc)
769 (build_objfiles_list): Don't declare.
770 * python/python.c: Don't include solib.h.
771 (gdbpy_solib_name, gdbpy_find_pc_line)
772 (gdbpy_get_current_progspace, build_objfiles_list)
773 (gdbpy_objfiles): Remove.
774 (GdbMethods) <current_progspace, objfiles, block_for_pc,
775 solib_name, find_pc_line>: Remove entries.
777 2018-09-16 Tom Tromey <tom@tromey.com>
779 * top.c (new_ui_command): Use GNU style for metasyntactic
781 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
783 * maint.c (maintenance_translate_address): Remove "<>" around
785 * interps.c (interpreter_exec_cmd): Use GNU style for
786 metasyntactic variables.
787 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
788 metasyntactic variables.
789 * tracepoint.c (tfind_range_command): Use GNU style for
790 metasyntactic variables.
791 (tfind_outside_command): Likewise.
792 (_initialize_tracepoint): Likewise.
793 * remote.c (extended_remote_target::create_inferior): Use GNU
794 style for metasyntactic variables.
795 * sparc64-tdep.c (adi_examine_command): Use GNU style for
796 metasyntactic variables.
797 (adi_assign_command): Likewise.
799 2018-09-16 Tom Tromey <tom@tromey.com>
801 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
802 metasyntactic variables. Print message if no disassembler options
805 2018-09-15 Tom Tromey <tom@tromey.com>
807 * infcmd.c (get_inferior_args): Return const char *.
808 * inferior.h (get_inferior_args): Return type now const.
809 * linux-tdep.c (linux_fill_prpsinfo): Update.
810 * procfs.c (procfs_target::make_corefile_notes): Update.
812 2018-09-07 Tom Tromey <tom@tromey.com>
814 * python/python.c (execute_gdb_command): Call bpstat_do_actions
817 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
819 * nios2-tdep.c (nios2_type_align): New.
820 (nios2_gdb_arch_init): Install type_align hook.
822 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
824 * eval.c (fake_method::fake_method): Call xzalloc directly for a
825 type that is neither object file owned, nor gdbarch owned.
826 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
828 (alloc_type_instance): Allocate non-objfile owned types on the
830 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
831 using TYPE_ALLOC to ensure memory is allocated on the correct
833 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
834 obstack, or the gdbarch obstack.
835 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
837 2018-09-14 Tom Tromey <tom@tromey.com>
839 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
842 2018-09-14 Tom Tromey <tom@tromey.com>
844 * nat/fork-inferior.c (get_startup_shell): Remove "static".
846 2018-09-13 Tom Tromey <tom@tromey.com>
848 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
851 2018-09-13 Tom Tromey <tom@tromey.com>
853 * exec.c (try_open_exec_file): Use std::string.
855 2018-09-13 Tom Tromey <tom@tromey.com>
857 * utils.h (gdb_bfd_errmsg): Return std::string.
858 * exec.c (exec_file_attach): Update.
859 * compile/compile-object-load.c (compile_object_load): Update.
860 * utils.c (gdb_bfd_errmsg): Return std::string.
862 2018-09-13 Tom Tromey <tom@tromey.com>
864 * procfs.c (struct procinfo_deleter): New.
865 (procinfo_up): New typedef.
866 (do_destroy_procinfo_cleanup): Remove.
867 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
869 2018-09-13 Tom Tromey <tom@tromey.com>
871 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
873 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
874 2018-09-13 Tom Tromey <tom@tromey.com>
876 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
877 (pspy_get_objfiles): New function.
878 (progspace_object_methods): New.
879 (pspace_object_type): Add tp_methods callback.
880 * python/python-internal.h (build_objfiles_list): New
882 * python/python.c (build_objfiles_list): New function.
883 (gdbpy_objfiles): Implement using build_objfiles_list.
884 * NEWS: Mention the Progspace.objfiles method.
886 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
888 * python/py-inferior.c (infpy_get_progspace): New function.
889 (inferior_object_getset): Add progspace property.
890 * NEWS: Mention the new property.
892 2018-09-13 Tom Tromey <tom@tromey.com>
895 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
897 2018-09-13 Tom Tromey <tom@tromey.com>
900 * rust-lang.c (rust_enum_variant): Now static.
901 (rust_empty_enum_p): New function.
902 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
905 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
907 * python/py-inferior.c (infpy_repr): New.
908 (inferior_object_type): Register infpy_repr.
909 * python/py-objfile.c (objfpy_repr): New.
910 (objfile_object_type): Register objfpy_repr.
912 2018-09-12 John Baldwin <jhb@FreeBSD.org>
914 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
916 2018-09-12 John Baldwin <jhb@FreeBSD.org>
918 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
921 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
923 * common/common-utils.c: Don't include '<sys/stat.h>'.
924 (is_regular_file): Move to...
925 * common/filestuff.c (is_regular_file): ... here.
926 * common/common-utils.h (is_regular_file): Move to...
927 * common/filestuff.h (is_regular_file): ... here.
929 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
931 * skip.c (debug_skip): New variable.
932 (skiplist_entry::do_skip_file_p): Add debug output.
933 (skiplist_entry::do_skip_gfile_p): Likewise.
934 (skiplist_entry::skip_function_p): Likewise.
935 (_initialize_step_skip): Create debug command.
936 * NEWS: Mention set/show debug skip.
938 2018-09-11 Xavier Roirand <roirand@adacore.com>
940 * darwin-nat.c (should_disable_startup_with_shell):
942 (darwin_nat_target::create_inferior): Add call.
944 2018-09-11 Xavier Roirand <roirand@adacore.com>
946 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
947 inf_port, msg_state>: Initialize.
948 (struct darwin_thread_info) <signaled, single_step>: Change
950 (struct darwin_thread_info) <event>: Initialize.
952 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
956 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
959 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
962 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
966 * gnulib/aclocal.m4: Regenerate.
967 * gnulib/config.in: Regenerate.
968 * gnulib/configure: Regenerate.
969 * gnulib/import/Makefile.am: Update.
970 * gnulib/import/Makefile.in: Update.
971 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
972 * gnulib/import/_Noreturn.h: ... this.
973 * gnulib/import/alloca.in.h: Update.
974 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
975 * gnulib/import/arg-nonnull.h: ... this.
976 * gnulib/import/assure.h: Update.
977 * gnulib/import/at-func.c: Update.
978 * gnulib/import/basename-lgpl.c: Update.
979 * gnulib/import/extra/snippet/c++defs.h: Rename to...
980 * gnulib/import/c++defs.h: ... this.
981 * gnulib/import/canonicalize-lgpl.c: Update.
982 * gnulib/import/cdefs.h: Update.
983 * gnulib/import/chdir-long.c: Update.
984 * gnulib/import/chdir-long.h: Update.
985 * gnulib/import/cloexec.c: Update.
986 * gnulib/import/cloexec.h: Update.
987 * gnulib/import/close.c: Update.
988 * gnulib/import/closedir.c: Update.
989 * gnulib/import/config.charset: Update.
990 * gnulib/import/dirent-private.h: Update.
991 * gnulib/import/dirent.in.h: Update.
992 * gnulib/import/dirfd.c: Update.
993 * gnulib/import/dirname-lgpl.c: Update.
994 * gnulib/import/dirname.h: Update.
995 * gnulib/import/dosname.h: Update.
996 * gnulib/import/dup-safer-flag.c: Update.
997 * gnulib/import/dup-safer.c: Update.
998 * gnulib/import/dup.c: Update.
999 * gnulib/import/dup2.c: Update.
1000 * gnulib/import/errno.in.h: Update.
1001 * gnulib/import/error.c: Update.
1002 * gnulib/import/error.h: Update.
1003 * gnulib/import/exitfail.c: Update.
1004 * gnulib/import/exitfail.h: Update.
1005 * gnulib/import/extra/update-copyright: Update.
1006 * gnulib/import/fchdir.c: Update.
1007 * gnulib/import/fcntl.c: Update.
1008 * gnulib/import/fcntl.in.h: Update.
1009 * gnulib/import/fd-hook.c: Update.
1010 * gnulib/import/fd-hook.h: Update.
1011 * gnulib/import/fd-safer-flag.c: Update.
1012 * gnulib/import/fd-safer.c: Update.
1013 * gnulib/import/fdopendir.c: Update.
1014 * gnulib/import/filename.h: Update.
1015 * gnulib/import/filenamecat-lgpl.c: Update.
1016 * gnulib/import/filenamecat.h: Update.
1017 * gnulib/import/flexmember.h: Update.
1018 * gnulib/import/float+.h: Update.
1019 * gnulib/import/float.c: Update.
1020 * gnulib/import/float.in.h: Update.
1021 * gnulib/import/fnmatch.c: Update.
1022 * gnulib/import/fnmatch.in.h: Update.
1023 * gnulib/import/fnmatch_loop.c: Update.
1024 * gnulib/import/fpucw.h: Update.
1025 * gnulib/import/frexp.c: Update.
1026 * gnulib/import/frexpl.c: Update.
1027 * gnulib/import/fstat.c: Update.
1028 * gnulib/import/fstatat.c: Update.
1029 * gnulib/import/getcwd-lgpl.c: Update.
1030 * gnulib/import/getcwd.c: Update.
1031 * gnulib/import/getdtablesize.c: Update.
1032 * gnulib/import/getlogin_r.c: Update.
1033 * gnulib/import/getprogname.c: Update.
1034 * gnulib/import/getprogname.h: Update.
1035 * gnulib/import/gettext.h: Update.
1036 * gnulib/import/gettimeofday.c: Update.
1037 * gnulib/import/glob-libc.h: Update.
1038 * gnulib/import/glob.c: Update.
1039 * gnulib/import/glob.in.h: Update.
1040 * gnulib/import/glob_internal.h: Update.
1041 * gnulib/import/glob_pattern_p.c: Update.
1042 * gnulib/import/globfree.c: Update.
1043 * gnulib/import/hard-locale.c: Update.
1044 * gnulib/import/hard-locale.h: Update.
1045 * gnulib/import/intprops.h: Update.
1046 * gnulib/import/inttypes.in.h: Update.
1047 * gnulib/import/isnan.c: Update.
1048 * gnulib/import/isnand-nolibm.h: Update.
1049 * gnulib/import/isnand.c: Update.
1050 * gnulib/import/isnanl-nolibm.h: Update.
1051 * gnulib/import/isnanl.c: Update.
1052 * gnulib/import/itold.c: Update.
1053 * gnulib/import/libc-config.h: Update.
1054 * gnulib/import/limits.in.h: Update.
1055 * gnulib/import/localcharset.c: Update.
1056 * gnulib/import/localcharset.h: Update.
1057 * gnulib/import/localtime-buffer.c: Update.
1058 * gnulib/import/localtime-buffer.h: Update.
1059 * gnulib/import/lstat.c: Update.
1060 * gnulib/import/m4/00gnulib.m4: Update.
1061 * gnulib/import/m4/__inline.m4: Update.
1062 * gnulib/import/m4/absolute-header.m4: Update.
1063 * gnulib/import/m4/alloca.m4: Update.
1064 * gnulib/import/m4/builtin-expect.m4: Update.
1065 * gnulib/import/m4/canonicalize.m4: Update.
1066 * gnulib/import/m4/chdir-long.m4: Update.
1067 * gnulib/import/m4/close.m4: Update.
1068 * gnulib/import/m4/closedir.m4: Update.
1069 * gnulib/import/m4/configmake.m4: Update.
1070 * gnulib/import/m4/d-ino.m4: Update.
1071 * gnulib/import/m4/d-type.m4: Update.
1072 * gnulib/import/m4/dirent_h.m4: Update.
1073 * gnulib/import/m4/dirfd.m4: Update.
1074 * gnulib/import/m4/dirname.m4: Update.
1075 * gnulib/import/m4/double-slash-root.m4: Update.
1076 * gnulib/import/m4/dup.m4: Update.
1077 * gnulib/import/m4/dup2.m4: Update.
1078 * gnulib/import/m4/eealloc.m4: Update.
1079 * gnulib/import/m4/environ.m4: Update.
1080 * gnulib/import/m4/errno_h.m4: Update.
1081 * gnulib/import/m4/error.m4: Update.
1082 * gnulib/import/m4/exponentd.m4: Update.
1083 * gnulib/import/m4/exponentl.m4: Update.
1084 * gnulib/import/m4/extensions.m4: Update.
1085 * gnulib/import/m4/extern-inline.m4: Update.
1086 * gnulib/import/m4/fchdir.m4: Update.
1087 * gnulib/import/m4/fcntl-o.m4: Update.
1088 * gnulib/import/m4/fcntl.m4: Update.
1089 * gnulib/import/m4/fcntl_h.m4: Update.
1090 * gnulib/import/m4/fdopendir.m4: Update.
1091 * gnulib/import/m4/filenamecat.m4: Update.
1092 * gnulib/import/m4/flexmember.m4: Update.
1093 * gnulib/import/m4/float_h.m4: Update.
1094 * gnulib/import/m4/fnmatch.m4: Update.
1095 * gnulib/import/m4/fnmatch_h.m4: Update.
1096 * gnulib/import/m4/fpieee.m4: Update.
1097 * gnulib/import/m4/frexp.m4: Update.
1098 * gnulib/import/m4/frexpl.m4: Update.
1099 * gnulib/import/m4/fstat.m4: Update.
1100 * gnulib/import/m4/fstatat.m4: Update.
1101 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1102 * gnulib/import/m4/getcwd-path-max.m4: Update.
1103 * gnulib/import/m4/getcwd.m4: Update.
1104 * gnulib/import/m4/getdtablesize.m4: Update.
1105 * gnulib/import/m4/getlogin.m4: Update.
1106 * gnulib/import/m4/getlogin_r.m4: Update.
1107 * gnulib/import/m4/getpagesize.m4: Update.
1108 * gnulib/import/m4/getprogname.m4: Update.
1109 * gnulib/import/m4/gettimeofday.m4: Update.
1110 * gnulib/import/m4/glibc21.m4: Update.
1111 * gnulib/import/m4/glob.m4: Update.
1112 * gnulib/import/m4/glob_h.m4: Update.
1113 * gnulib/import/m4/gnulib-cache.m4: Update.
1114 * gnulib/import/m4/gnulib-common.m4: Update.
1115 * gnulib/import/m4/gnulib-comp.m4: Update.
1116 * gnulib/import/m4/gnulib-tool.m4: Update.
1117 * gnulib/import/m4/hard-locale.m4: Update.
1118 * gnulib/import/m4/include_next.m4: Update.
1119 * gnulib/import/m4/inttypes-pri.m4: Update.
1120 * gnulib/import/m4/inttypes.m4: Update.
1121 * gnulib/import/m4/isnand.m4: Update.
1122 * gnulib/import/m4/isnanl.m4: Update.
1123 * gnulib/import/m4/largefile.m4: Update.
1124 * gnulib/import/m4/limits-h.m4: Update.
1125 * gnulib/import/m4/localcharset.m4: Update.
1126 * gnulib/import/m4/locale-fr.m4: Update.
1127 * gnulib/import/m4/locale-ja.m4: Update.
1128 * gnulib/import/m4/locale-zh.m4: Update.
1129 * gnulib/import/m4/localtime-buffer.m4: Update.
1130 * gnulib/import/m4/longlong.m4: Update.
1131 * gnulib/import/m4/lstat.m4: Update.
1132 * gnulib/import/m4/malloc.m4: Update.
1133 * gnulib/import/m4/malloca.m4: Update.
1134 * gnulib/import/m4/math_h.m4: Update.
1135 * gnulib/import/m4/mbrtowc.m4: Update.
1136 * gnulib/import/m4/mbsinit.m4: Update.
1137 * gnulib/import/m4/mbsrtowcs.m4: Update.
1138 * gnulib/import/m4/mbstate_t.m4: Update.
1139 * gnulib/import/m4/memchr.m4: Update.
1140 * gnulib/import/m4/memmem.m4: Update.
1141 * gnulib/import/m4/mempcpy.m4: Update.
1142 * gnulib/import/m4/memrchr.m4: Update.
1143 * gnulib/import/m4/mkdir.m4: Update.
1144 * gnulib/import/m4/mkstemp.m4: Update.
1145 * gnulib/import/m4/mmap-anon.m4: Update.
1146 * gnulib/import/m4/mode_t.m4: Update.
1147 * gnulib/import/m4/msvc-inval.m4: Update.
1148 * gnulib/import/m4/msvc-nothrow.m4: Update.
1149 * gnulib/import/m4/multiarch.m4: Update.
1150 * gnulib/import/m4/nocrash.m4: Update.
1151 * gnulib/import/m4/off_t.m4: Update.
1152 * gnulib/import/m4/onceonly.m4: Update.
1153 * gnulib/import/m4/open-cloexec.m4: Update.
1154 * gnulib/import/m4/open.m4: Update.
1155 * gnulib/import/m4/openat.m4: Update.
1156 * gnulib/import/m4/opendir.m4: Update.
1157 * gnulib/import/m4/pathmax.m4: Update.
1158 * gnulib/import/m4/rawmemchr.m4: Update.
1159 * gnulib/import/m4/readdir.m4: Update.
1160 * gnulib/import/m4/readlink.m4: Update.
1161 * gnulib/import/m4/realloc.m4: Update.
1162 * gnulib/import/m4/rename.m4: Update.
1163 * gnulib/import/m4/rewinddir.m4: Update.
1164 * gnulib/import/m4/rmdir.m4: Update.
1165 * gnulib/import/m4/save-cwd.m4: Update.
1166 * gnulib/import/m4/secure_getenv.m4: Update.
1167 * gnulib/import/m4/setenv.m4: Update.
1168 * gnulib/import/m4/signal_h.m4: Update.
1169 * gnulib/import/m4/ssize_t.m4: Update.
1170 * gnulib/import/m4/stat-time.m4: Update.
1171 * gnulib/import/m4/stat.m4: Update.
1172 * gnulib/import/m4/std-gnu11.m4: Update.
1173 * gnulib/import/m4/stdbool.m4: Update.
1174 * gnulib/import/m4/stddef_h.m4: Update.
1175 * gnulib/import/m4/stdint.m4: Update.
1176 * gnulib/import/m4/stdio_h.m4: Update.
1177 * gnulib/import/m4/stdlib_h.m4: Update.
1178 * gnulib/import/m4/strchrnul.m4: Update.
1179 * gnulib/import/m4/strdup.m4: Update.
1180 * gnulib/import/m4/strerror.m4: Update.
1181 * gnulib/import/m4/string_h.m4: Update.
1182 * gnulib/import/m4/strstr.m4: Update.
1183 * gnulib/import/m4/strtok_r.m4: Update.
1184 * gnulib/import/m4/sys_socket_h.m4: Update.
1185 * gnulib/import/m4/sys_stat_h.m4: Update.
1186 * gnulib/import/m4/sys_time_h.m4: Update.
1187 * gnulib/import/m4/sys_types_h.m4: Update.
1188 * gnulib/import/m4/tempname.m4: Update.
1189 * gnulib/import/m4/time_h.m4: Update.
1190 * gnulib/import/m4/unistd-safer.m4: Update.
1191 * gnulib/import/m4/unistd_h.m4: Update.
1192 * gnulib/import/m4/warn-on-use.m4: Update.
1193 * gnulib/import/m4/wchar_h.m4: Update.
1194 * gnulib/import/m4/wchar_t.m4: Update.
1195 * gnulib/import/m4/wctype_h.m4: Update.
1196 * gnulib/import/m4/wint_t.m4: Update.
1197 * gnulib/import/malloc.c: Update.
1198 * gnulib/import/malloc/scratch_buffer.h: Update.
1199 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1200 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1201 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1202 * gnulib/import/malloca.c: Update.
1203 * gnulib/import/malloca.h: Update.
1204 * gnulib/import/malloca.valgrind: Update.
1205 * gnulib/import/math.in.h: Update.
1206 * gnulib/import/mbrtowc.c: Update.
1207 * gnulib/import/mbsinit.c: Update.
1208 * gnulib/import/mbsrtowcs-impl.h: Update.
1209 * gnulib/import/mbsrtowcs-state.c: Update.
1210 * gnulib/import/mbsrtowcs.c: Update.
1211 * gnulib/import/memchr.c: Update.
1212 * gnulib/import/memmem.c: Update.
1213 * gnulib/import/mempcpy.c: Update.
1214 * gnulib/import/memrchr.c: Update.
1215 * gnulib/import/mkdir.c: Update.
1216 * gnulib/import/mkstemp.c: Update.
1217 * gnulib/import/msvc-inval.c: Update.
1218 * gnulib/import/msvc-inval.h: Update.
1219 * gnulib/import/msvc-nothrow.c: Update.
1220 * gnulib/import/msvc-nothrow.h: Update.
1221 * gnulib/import/open.c: Update.
1222 * gnulib/import/openat-die.c: Update.
1223 * gnulib/import/openat-priv.h: Update.
1224 * gnulib/import/openat-proc.c: Update.
1225 * gnulib/import/openat.c: Update.
1226 * gnulib/import/openat.h: Update.
1227 * gnulib/import/opendir.c: Update.
1228 * gnulib/import/pathmax.h: Update.
1229 * gnulib/import/pipe-safer.c: Update.
1230 * gnulib/import/rawmemchr.c: Update.
1231 * gnulib/import/readdir.c: Update.
1232 * gnulib/import/readlink.c: Update.
1233 * gnulib/import/realloc.c: Update.
1234 * gnulib/import/ref-add.sin: Update.
1235 * gnulib/import/ref-del.sin: Update.
1236 * gnulib/import/rename.c: Update.
1237 * gnulib/import/rewinddir.c: Update.
1238 * gnulib/import/rmdir.c: Update.
1239 * gnulib/import/same-inode.h: Update.
1240 * gnulib/import/save-cwd.c: Update.
1241 * gnulib/import/save-cwd.h: Update.
1242 * gnulib/import/scratch_buffer.h: Update.
1243 * gnulib/import/secure_getenv.c: Update.
1244 * gnulib/import/setenv.c: Update.
1245 * gnulib/import/signal.in.h: Update.
1246 * gnulib/import/stat-time.c: Update.
1247 * gnulib/import/stat-time.h: Update.
1248 * gnulib/import/stat-w32.c: Update.
1249 * gnulib/import/stat-w32.h: Update.
1250 * gnulib/import/stat.c: Update.
1251 * gnulib/import/stdbool.in.h: Update.
1252 * gnulib/import/stddef.in.h: Update.
1253 * gnulib/import/stdint.in.h: Update.
1254 * gnulib/import/stdio.in.h: Update.
1255 * gnulib/import/stdlib.in.h: Update.
1256 * gnulib/import/str-two-way.h: Update.
1257 * gnulib/import/strchrnul.c: Update.
1258 * gnulib/import/strdup.c: Update.
1259 * gnulib/import/streq.h: Update.
1260 * gnulib/import/strerror-override.c: Update.
1261 * gnulib/import/strerror-override.h: Update.
1262 * gnulib/import/strerror.c: Update.
1263 * gnulib/import/string.in.h: Update.
1264 * gnulib/import/stripslash.c: Update.
1265 * gnulib/import/strnlen1.c: Update.
1266 * gnulib/import/strnlen1.h: Update.
1267 * gnulib/import/strstr.c: Update.
1268 * gnulib/import/strtok_r.c: Update.
1269 * gnulib/import/sys_stat.in.h: Update.
1270 * gnulib/import/sys_time.in.h: Update.
1271 * gnulib/import/sys_types.in.h: Update.
1272 * gnulib/import/tempname.c: Update.
1273 * gnulib/import/tempname.h: Update.
1274 * gnulib/import/time.in.h: Update.
1275 * gnulib/import/unistd--.h: Update.
1276 * gnulib/import/unistd-safer.h: Update.
1277 * gnulib/import/unistd.in.h: Update.
1278 * gnulib/import/unsetenv.c: Update.
1279 * gnulib/import/verify.h: Update.
1280 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1281 * gnulib/import/wchar.in.h: Update.
1282 * gnulib/import/wctype.in.h: Update.
1283 * gnulib/import/xalloc-oversized.h: Update.
1284 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1285 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1287 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1289 * record-btrace.c (get_thread_current_frame): Remove
1292 2018-09-10 Jerome Guitton <guitton@adacore.com>
1294 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1295 with check_tag to 1 if and only if the type is tagged and the
1296 component being searched cannot been found in the current
1297 view. Otherwise, always call ada_to_fixed_type with
1300 2018-09-10 Xavier Roirand <roirand@adacore.com>
1302 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1304 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1305 * ada-varobj.c (ada_varobj_get_number_of_children,
1306 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1308 2018-09-10 Xavier Roirand <roirand@adacore.com>
1310 * ada-valprint.c (ada_value_print): Use type instead of
1313 2018-09-10 Xavier Roirand <roirand@adacore.com>
1315 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1316 an array of access to unconstrained array.
1318 2018-09-10 Xavier Roirand <roirand@adacore.com>
1320 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1321 (ada_check_typedef): Use it.
1323 2018-09-10 Xavier Roirand <roirand@adacore.com>
1325 * ada-varobj.c (ada_varobj_describe_struct_child)
1326 (ada_varobj_describe_child): Handle union case like struct one.
1328 2018-09-10 Tom Tromey <tom@tromey.com>
1331 * python/python.c (_initialize_python): Make example in "python"
1332 help work in Python 3.
1334 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1336 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1337 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1338 $(EXEEXT) to the script, as it is not a program.
1340 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1342 * python/py-prettyprint.c (pretty_print_one_value): Return
1344 (print_string_repr): Adjust.
1345 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1346 * python/python-internal.h (apply_varobj_pretty_printer): Return
1348 * varobj.c (varobj_value_get_print_value): Adjust.
1350 2018-09-08 Tom Tromey <tom@tromey.com>
1353 * python/py-prettyprint.c (pretty_print_one_value): Check for
1356 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1358 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1359 replace_operator_with_call.
1361 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1363 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1365 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1367 * ada-typeprint.c (print_range): Print the bounds using TYPE
1368 rather than its TYPE_TARGET_TYPE.
1370 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1372 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1373 call to ada_to_fixed_value_create.
1375 2018-09-08 Jerome Guitton <guitton@adacore.com>
1377 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1379 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1381 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1384 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1386 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1387 Move update of loop variable "fi".
1389 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1391 * ada-lang.c (value_assign_to_component): In the case of
1392 big-endian targets, extract the bits of the given VAL
1393 using an src_offset of zero if container is not a scalar.
1395 2018-09-06 Simon Ser <contact@emersion.fr>
1398 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1399 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1400 * fbsd-tdep.c (fbsd_make_note_desc): New.
1401 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1402 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1403 * target.h (enum target_object) Add FreeBSD-specific
1404 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1406 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1408 * compile/compile-c.h (generate_c_for_variable_locations):
1409 Change reference to pointer.
1410 * compile/compile-c-support.c (compile_program) <compute>:
1412 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1413 (generate_c_for_for_one_variable): Likewise
1414 (generate_c_for_variable_locations): Likewise
1415 * compile/compile-c-types.c (compile_c_instance::convert_type):
1417 * compile/compile-cplus-symbols.c (convert_one_symbol):
1418 std::move the scope passed to enter_scope.
1419 * compile/compile-cplus-types.c
1420 (compile_cplus_instance::enter_scope): Make parameter
1422 (compile_cplus_instance::new_scope): Change reference to
1424 (compile_cplus_instance::convert_type): Likewise
1425 (compile_cplus_convert_typedef): std::move the scope passed to
1427 (compile_cplus_convert_struct_or_union): Likewise.
1428 (compile_cplus_convert_enum): Likewise.
1429 (compile_cplus_convert_namespace): Likewise.
1430 * compile/compile-cplus.h (compile_cplus_instance)
1431 <enter_scope>: Make parameter rvalue-reference.
1432 * compile/compile-internal.h (compile_instance)
1433 <get_cached_type>: Likewise
1434 * compile/compile-loc2c.c (push): Likewise
1438 (print_label): Likewise
1439 (pushf_register_address): Likewise
1440 (pushf_register): Likewise
1441 (do_compile_dwarf_expr_to_c): Likewise
1442 (compile_dwarf_expr_to_c): Likewise
1443 (compile_dwarf_bounds_to_c): Likewise
1444 * compile/compile.c (compile_instance::get_cached_type):
1446 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1447 (compile_dwarf_bounds_to_c): Likewise
1448 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1449 (dwarf2_compile_property_to_c): Likewise
1450 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1451 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1454 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1456 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1457 * tui/tui-data.c (init_content_element): Don't initialize it.
1459 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1461 * tui/tui-data.h (struct tui_win_info)
1462 <detail::opaque>: Remove.
1463 * tui/tui-data.c (init_win_info): Remove assignment.
1465 2018-09-05 Tom Tromey <tom@tromey.com>
1467 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1468 -Wformat-nonliteral.
1469 * target-float.c (host_float_ops<T>::to_string)
1470 (host_float_ops<T>::from_string): Use
1471 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1472 * configure: Rebuild.
1474 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1476 * printcmd.c (printf_c_string): Use
1477 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1478 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1480 2018-09-05 Tom Tromey <tom@tromey.com>
1482 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1484 2018-09-05 Tom de Vries <tdevries@suse.de>
1486 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1487 with resolve_abstract_p == true.
1488 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1489 defaulting to false. Propagate resolve_abstract_p to
1490 dwarf2_fetch_die_loc_sect_off.
1491 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1492 parameter, defaulting to false.
1493 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1494 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
1496 * dwarf2read.h (struct die_info): Forward-declare.
1497 (die_info_ptr): New typedef.
1498 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
1500 2018-09-05 Joel Brobecker <brobecker@adacore.com>
1504 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
1505 Pedro Alves <palves@redhat.com>
1507 * gnulib/Makefile.in (aclocal_m4_deps): Move to
1508 "aclocal-m4-deps.mk". Include file here.
1509 $(srcdir)/aclocal.m4: Add "configure.ac".
1510 * gnulib/aclocal-m4-deps.mk: New file.
1511 * gnulib/update-gnulib.sh: Automatically update
1512 "aclocal-m4-deps.mk".
1514 2018-09-04 Tom Tromey <tom@tromey.com>
1516 * configure: Rebuild.
1517 * configure.ac: Remove multi-ice code.
1519 2018-09-04 Tom Tromey <tom@tromey.com>
1521 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
1522 (ada-exp.o): Update.
1524 2018-09-04 Tom Tromey <tom@tromey.com>
1526 * Makefile.in (printcmd.o, target-float.o): Remove.
1527 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
1529 2018-09-04 Tom Tromey <tom@tromey.com>
1531 * gnulib/Makefile.in: Remove obsolete comment.
1532 * Makefile.in: Remove obsolete comment.
1534 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1536 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
1539 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1541 * riscv-tdep.c: Add 'prologue-value.h' include.
1542 (struct riscv_unwind_cache): New struct.
1543 (riscv_debug_unwinder): New global.
1544 (riscv_scan_prologue): Update arguments, capture register details
1546 (riscv_skip_prologue): Reformat arguments line, move end of
1547 prologue calculation into riscv_scan_prologue.
1548 (riscv_frame_cache): Update return type, create
1549 riscv_unwind_cache, scan the prologue, and fill in remaining cache
1551 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
1552 (riscv_frame_prev_register): Use the trad_frame within the
1554 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
1557 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
1559 * trad-frame.h (trad_frame_set_realreg): Declare.
1560 (trad_frame_set_addr): Declare.
1561 * trad-frame.c (trad_frame_set_realreg): Define new function.
1562 (trad_frame_set_addr): Define new function.
1563 (trad_frame_set_reg_realreg): Use new function.
1564 (trad_frame_set_reg_addr): Use new function.
1566 2018-09-01 Keith Seitz <keiths@redhat.com>
1568 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
1569 pulongest instead of "%lld".
1570 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
1573 2018-08-31 Tom Tromey <tom@tromey.com>
1575 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
1578 2018-08-31 Pedro Alves <palves@redhat.com>
1580 * gdbarch.h: Regenerate.
1582 2018-08-31 Pedro Alves <palves@redhat.com>
1584 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
1585 * target.h (Hardware watchpoint interfaces): Describe
1586 continuable/steppable/non-steppable watchpoints.
1587 * gdbarch.h, gdbarch.c: Regenerate.
1589 2018-08-31 Pedro Alves <palves@redhat.com>
1591 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
1594 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
1595 * target.h (target_ops::have_continuable_watchpoint): Delete.
1596 (target_have_continuable_watchpoint): Delete.
1597 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
1598 * target-delegates.c: Regenerate.
1600 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
1602 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
1603 the files present in "gnulib/import/m4/".
1605 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1607 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
1608 c.sw, c.swsp, and c.sdsp.
1610 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
1612 * riscv-tdep.c (struct riscv_inferior_data): Delete.
1613 (riscv_read_misa_reg): Don't cache value read into inferior data.
1614 (riscv_new_inferior_data): Delete.
1615 (riscv_inferior_data_cleanup): Delete.
1616 (riscv_inferior_data): Delete.
1617 (riscv_invalidate_inferior_data): Delete.
1618 (_initialize_riscv_tdep): Remove initialisation of inferior data.
1620 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
1622 * compile/compile-cplus-types.c
1623 (compile_cplus_instance::leave_scope): Take the address of scope
1625 (compile_cplus_instance::convert_qualified_base): Compare quals
1628 2018-08-30 Keith Seitz <keiths@redhat.com>
1630 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
1631 Use "%s" and host_address_to_string instead of "%p" in printf.
1633 2018-08-29 Keith Seitz <keiths@redhat.com>
1635 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
1636 and compile-cplus-types.c.
1637 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
1638 * c-lang.c (cplus_language_defn): Set C++ compile functions.
1639 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
1641 * compile/compile-c-support.c: Include compile-cplus.h.
1642 (load_libcompile): Templatize.
1643 (get_compile_context): "New" function.
1644 (c_get_compile_context): Use get_compile_context.
1645 (cplus_get_compile_context): New function.
1646 (cplus_push_user_expression, cplus_pop_user_expression)
1647 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
1648 (cplus_compute_program): Define new structs/functions.
1649 * compile/compile-cplus-symmbols.c: New file.
1650 * compile/compile-cplus-types.c: New file.
1651 * compile/compile-cplus.h: New file.
1652 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
1654 * compile/compile-object-load.c (get_out_value_type): Use
1655 strncmp_iw when comparing symbol names.
1656 (compile_object_load): Add mst_bss and mst_data.
1657 * compile/compile.c (_initialize_compile): Remove
1658 -Wno-implicit-function-declaration from `compile_args'.
1659 * compile/gcc-cp-plugin.h: New file.
1660 * NEWS: Mention C++ compile support and new debug options.
1662 2018-08-29 Keith Seitz <keiths@redhat.com>
1664 * linespec.c (collect_info::add_symbol): Make virtual.
1665 (struct symbol_searcher_collect_info): New struct.
1666 (symbol_searcher::find_all_symbols): New method.
1667 * symtab.h (class symbol_searcher): New class.
1669 2018-08-29 Keith Seitz <keiths@redhat.com>
1671 * linespec.c (struct linespec) <function_symbols, label_symbols>:
1672 Change to vector of block_symbol. Update all users.
1673 (struct collect_info) <symbols>: Likewise.
1674 (collect_info::add_symbol): Take block_symbol as argument.
1676 (decode_compound_collector) <m_symbols>: Change type to vector
1677 of block_symbol. Update all users.
1678 (decode_compound_collector::operator ()): Change parameter type
1680 (find_method, find_function_symbols, find_linespec_symbols)
1681 (find_label_symbols_in_block, find_label_symbols): Change symbol
1682 vectors to block_symbol vectors.
1683 * symtab.h (symbol_found_callback_ftype): Change parameter type to
1686 2018-08-29 Keith Seitz <keiths@redhat.com>
1688 * linespec.c (symbolp): Remove typedef and VEC definitions.
1689 (bound_minimal_symbol_d): Likewise.
1691 2018-08-29 Keith Seitz <keiths@redhat.com>
1693 * linespec.c (decode_compound_collector::decode_compound_collector):
1694 Remove initialization for `m_symtabs'.
1695 (decode_compound_collector::release_symbols): Change return type
1696 to std::vector. Update all callers.
1697 (class decode_compound_collector) <m_symbols>: Change type to
1699 (lookup_prefix_sym): Change return type to std::vector. Update all
1701 (compare_symbols): Remove.
1702 (std_compare_symbols): Rename to `compare_symbols'.
1703 (find_method): Change `sym_classes' parameter to std::vector.
1704 Update all callers. Use std::sort to sort sym_classes.
1705 (find_linespec_symbols): Remove cleanup.
1707 2018-08-29 Keith Seitz <keiths@redhat.com>
1709 * linespec.c (struct linespec) <minimal_symbols>: Change type to
1710 std::vector. Update all users.
1711 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
1712 (struct collect_info) <minimal_symbols>: Likewise.
1713 (compare_msymbols): Return bool. Change parameters to const
1714 bound_minimal_symbol references.
1715 (find_method, find_function_symbols, find_linespec_symbols): Change
1716 `minsyms' parameter to std::vector. Update all callers.
1718 2018-08-29 Keith Seitz <keiths@redhat.com>
1720 * linespec.c (struct linespec) <label_symbols>: Change type to
1721 std::vector. Update all users.
1722 (find_label_symbols_in_block): Change `result' parameter to
1723 std::vector. Update all callers.
1724 (find_label_symbols): Return std::vector. Update all callers.
1726 2018-08-29 Keith Seitz <keiths@redhat.com>
1728 * linespec.c (struct linespec) <function_symbols>: Change type to
1729 std::vector. Update all users.
1730 (struct collect_info) <function_symbols>: Likewise.
1731 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
1732 (std_compare_symbols): New function.
1733 (find_method, find_function_symbols, find_linespec_symbols)
1734 (find_label_symbols_in_block): Change `symbols' parameter to
1735 std::vector. Update all callers.
1736 (find_label_symbols): Likewise for `function_symbols' and
1739 2018-08-29 Keith Seitz <keiths@redhat.com>
1741 * linespec.c (symtab_vector_up): Define.
1742 (struct linespec) <file_symtabs>: Change type to std::vector *.
1744 (struct collect_info) <file_symtabs>: Likewise.
1745 (collect_symtabs_from_filename): Return symtab_vector_up.
1747 (decode_objc): Remove cleanup.
1748 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
1749 (symtab_collector::release_symtabs): Return symtab_vector_up.
1751 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
1753 (collect_symtabs_from_filename, symtabs_from_filename): Return
1754 symtab_vector_up. Update all callers.
1756 2018-08-29 Tom Tromey <tom@tromey.com>
1758 * csky-tdep.c (csky_analyze_prologue): Use
1759 core_addr_to_string_nz.
1761 2018-08-29 Tom Tromey <tom@tromey.com>
1763 * windows-nat.c (struct xlate_exception) <them>: Change type to
1765 (xlate): Fix formatting. Remove last entry.
1766 (struct xlate_exception, xlate): Comment out.
1767 (windows_nat_target::resume): Use ranged for.
1769 2018-08-29 Jim Wilson <jimw@sifive.com>
1771 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
1772 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
1774 (riscv_linux_nat_target::store_registers): Likewise.
1776 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1780 * gnulib/aclocal.m4: Regenerate.
1781 * gnulib/config.in: Regenerate.
1782 * gnulib/configure: Regenerate.
1783 * gnulib/import/Makefile.am: Update.
1784 * gnulib/import/Makefile.in: Update.
1785 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1786 * gnulib/import/_Noreturn.h: ... this.
1787 * gnulib/import/alloca.in.h: Update.
1788 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1789 * gnulib/import/arg-nonnull.h: ... this.
1790 * gnulib/import/assure.h: Update.
1791 * gnulib/import/at-func.c: Update.
1792 * gnulib/import/basename-lgpl.c: Update.
1793 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1794 * gnulib/import/c++defs.h: ... this.
1795 * gnulib/import/canonicalize-lgpl.c: Update.
1796 * gnulib/import/cdefs.h: Update.
1797 * gnulib/import/chdir-long.c: Update.
1798 * gnulib/import/chdir-long.h: Update.
1799 * gnulib/import/cloexec.c: Update.
1800 * gnulib/import/cloexec.h: Update.
1801 * gnulib/import/close.c: Update.
1802 * gnulib/import/closedir.c: Update.
1803 * gnulib/import/config.charset: Update.
1804 * gnulib/import/dirent-private.h: Update.
1805 * gnulib/import/dirent.in.h: Update.
1806 * gnulib/import/dirfd.c: Update.
1807 * gnulib/import/dirname-lgpl.c: Update.
1808 * gnulib/import/dirname.h: Update.
1809 * gnulib/import/dosname.h: Update.
1810 * gnulib/import/dup-safer-flag.c: Update.
1811 * gnulib/import/dup-safer.c: Update.
1812 * gnulib/import/dup.c: Update.
1813 * gnulib/import/dup2.c: Update.
1814 * gnulib/import/errno.in.h: Update.
1815 * gnulib/import/error.c: Update.
1816 * gnulib/import/error.h: Update.
1817 * gnulib/import/exitfail.c: Update.
1818 * gnulib/import/exitfail.h: Update.
1819 * gnulib/import/extra/update-copyright: Update.
1820 * gnulib/import/fchdir.c: Update.
1821 * gnulib/import/fcntl.c: Update.
1822 * gnulib/import/fcntl.in.h: Update.
1823 * gnulib/import/fd-hook.c: Update.
1824 * gnulib/import/fd-hook.h: Update.
1825 * gnulib/import/fd-safer-flag.c: Update.
1826 * gnulib/import/fd-safer.c: Update.
1827 * gnulib/import/fdopendir.c: Update.
1828 * gnulib/import/filename.h: Update.
1829 * gnulib/import/filenamecat-lgpl.c: Update.
1830 * gnulib/import/filenamecat.h: Update.
1831 * gnulib/import/flexmember.h: Update.
1832 * gnulib/import/float+.h: Update.
1833 * gnulib/import/float.c: Update.
1834 * gnulib/import/float.in.h: Update.
1835 * gnulib/import/fnmatch.c: Update.
1836 * gnulib/import/fnmatch.in.h: Update.
1837 * gnulib/import/fnmatch_loop.c: Update.
1838 * gnulib/import/fpucw.h: Update.
1839 * gnulib/import/frexp.c: Update.
1840 * gnulib/import/frexpl.c: Update.
1841 * gnulib/import/fstat.c: Update.
1842 * gnulib/import/fstatat.c: Update.
1843 * gnulib/import/getcwd-lgpl.c: Update.
1844 * gnulib/import/getcwd.c: Update.
1845 * gnulib/import/getdtablesize.c: Update.
1846 * gnulib/import/getlogin_r.c: Update.
1847 * gnulib/import/getprogname.c: Update.
1848 * gnulib/import/getprogname.h: Update.
1849 * gnulib/import/gettext.h: Update.
1850 * gnulib/import/gettimeofday.c: Update.
1851 * gnulib/import/glob-libc.h: Update.
1852 * gnulib/import/glob.c: Update.
1853 * gnulib/import/glob.in.h: Update.
1854 * gnulib/import/glob_internal.h: Update.
1855 * gnulib/import/glob_pattern_p.c: Update.
1856 * gnulib/import/globfree.c: Update.
1857 * gnulib/import/hard-locale.c: Update.
1858 * gnulib/import/hard-locale.h: Update.
1859 * gnulib/import/intprops.h: Update.
1860 * gnulib/import/inttypes.in.h: Update.
1861 * gnulib/import/isnan.c: Update.
1862 * gnulib/import/isnand-nolibm.h: Update.
1863 * gnulib/import/isnand.c: Update.
1864 * gnulib/import/isnanl-nolibm.h: Update.
1865 * gnulib/import/isnanl.c: Update.
1866 * gnulib/import/itold.c: Update.
1867 * gnulib/import/libc-config.h: Update.
1868 * gnulib/import/limits.in.h: Update.
1869 * gnulib/import/localcharset.c: Update.
1870 * gnulib/import/localcharset.h: Update.
1871 * gnulib/import/localtime-buffer.c: Update.
1872 * gnulib/import/localtime-buffer.h: Update.
1873 * gnulib/import/lstat.c: Update.
1874 * gnulib/import/m4/00gnulib.m4: Update.
1875 * gnulib/import/m4/__inline.m4: Update.
1876 * gnulib/import/m4/absolute-header.m4: Update.
1877 * gnulib/import/m4/alloca.m4: Update.
1878 * gnulib/import/m4/builtin-expect.m4: Update.
1879 * gnulib/import/m4/canonicalize.m4: Update.
1880 * gnulib/import/m4/chdir-long.m4: Update.
1881 * gnulib/import/m4/close.m4: Update.
1882 * gnulib/import/m4/closedir.m4: Update.
1883 * gnulib/import/m4/configmake.m4: Update.
1884 * gnulib/import/m4/d-ino.m4: Update.
1885 * gnulib/import/m4/d-type.m4: Update.
1886 * gnulib/import/m4/dirent_h.m4: Update.
1887 * gnulib/import/m4/dirfd.m4: Update.
1888 * gnulib/import/m4/dirname.m4: Update.
1889 * gnulib/import/m4/double-slash-root.m4: Update.
1890 * gnulib/import/m4/dup.m4: Update.
1891 * gnulib/import/m4/dup2.m4: Update.
1892 * gnulib/import/m4/eealloc.m4: Update.
1893 * gnulib/import/m4/environ.m4: Update.
1894 * gnulib/import/m4/errno_h.m4: Update.
1895 * gnulib/import/m4/error.m4: Update.
1896 * gnulib/import/m4/exponentd.m4: Update.
1897 * gnulib/import/m4/exponentl.m4: Update.
1898 * gnulib/import/m4/extensions.m4: Update.
1899 * gnulib/import/m4/extern-inline.m4: Update.
1900 * gnulib/import/m4/fchdir.m4: Update.
1901 * gnulib/import/m4/fcntl-o.m4: Update.
1902 * gnulib/import/m4/fcntl.m4: Update.
1903 * gnulib/import/m4/fcntl_h.m4: Update.
1904 * gnulib/import/m4/fdopendir.m4: Update.
1905 * gnulib/import/m4/filenamecat.m4: Update.
1906 * gnulib/import/m4/flexmember.m4: Update.
1907 * gnulib/import/m4/float_h.m4: Update.
1908 * gnulib/import/m4/fnmatch.m4: Update.
1909 * gnulib/import/m4/fnmatch_h.m4: Update.
1910 * gnulib/import/m4/fpieee.m4: Update.
1911 * gnulib/import/m4/frexp.m4: Update.
1912 * gnulib/import/m4/frexpl.m4: Update.
1913 * gnulib/import/m4/fstat.m4: Update.
1914 * gnulib/import/m4/fstatat.m4: Update.
1915 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1916 * gnulib/import/m4/getcwd-path-max.m4: Update.
1917 * gnulib/import/m4/getcwd.m4: Update.
1918 * gnulib/import/m4/getdtablesize.m4: Update.
1919 * gnulib/import/m4/getlogin.m4: Update.
1920 * gnulib/import/m4/getlogin_r.m4: Update.
1921 * gnulib/import/m4/getpagesize.m4: Update.
1922 * gnulib/import/m4/getprogname.m4: Update.
1923 * gnulib/import/m4/gettimeofday.m4: Update.
1924 * gnulib/import/m4/glibc21.m4: Update.
1925 * gnulib/import/m4/glob.m4: Update.
1926 * gnulib/import/m4/glob_h.m4: Update.
1927 * gnulib/import/m4/gnulib-cache.m4: Update.
1928 * gnulib/import/m4/gnulib-common.m4: Update.
1929 * gnulib/import/m4/gnulib-comp.m4: Update.
1930 * gnulib/import/m4/gnulib-tool.m4: Update.
1931 * gnulib/import/m4/hard-locale.m4: Update.
1932 * gnulib/import/m4/include_next.m4: Update.
1933 * gnulib/import/m4/inttypes-pri.m4: Update.
1934 * gnulib/import/m4/inttypes.m4: Update.
1935 * gnulib/import/m4/isnand.m4: Update.
1936 * gnulib/import/m4/isnanl.m4: Update.
1937 * gnulib/import/m4/largefile.m4: Update.
1938 * gnulib/import/m4/limits-h.m4: Update.
1939 * gnulib/import/m4/localcharset.m4: Update.
1940 * gnulib/import/m4/locale-fr.m4: Update.
1941 * gnulib/import/m4/locale-ja.m4: Update.
1942 * gnulib/import/m4/locale-zh.m4: Update.
1943 * gnulib/import/m4/localtime-buffer.m4: Update.
1944 * gnulib/import/m4/longlong.m4: Update.
1945 * gnulib/import/m4/lstat.m4: Update.
1946 * gnulib/import/m4/malloc.m4: Update.
1947 * gnulib/import/m4/malloca.m4: Update.
1948 * gnulib/import/m4/math_h.m4: Update.
1949 * gnulib/import/m4/mbrtowc.m4: Update.
1950 * gnulib/import/m4/mbsinit.m4: Update.
1951 * gnulib/import/m4/mbsrtowcs.m4: Update.
1952 * gnulib/import/m4/mbstate_t.m4: Update.
1953 * gnulib/import/m4/memchr.m4: Update.
1954 * gnulib/import/m4/memmem.m4: Update.
1955 * gnulib/import/m4/mempcpy.m4: Update.
1956 * gnulib/import/m4/memrchr.m4: Update.
1957 * gnulib/import/m4/mkdir.m4: Update.
1958 * gnulib/import/m4/mkstemp.m4: Update.
1959 * gnulib/import/m4/mmap-anon.m4: Update.
1960 * gnulib/import/m4/mode_t.m4: Update.
1961 * gnulib/import/m4/msvc-inval.m4: Update.
1962 * gnulib/import/m4/msvc-nothrow.m4: Update.
1963 * gnulib/import/m4/multiarch.m4: Update.
1964 * gnulib/import/m4/nocrash.m4: Update.
1965 * gnulib/import/m4/off_t.m4: Update.
1966 * gnulib/import/m4/onceonly.m4: Update.
1967 * gnulib/import/m4/open-cloexec.m4: Update.
1968 * gnulib/import/m4/open.m4: Update.
1969 * gnulib/import/m4/openat.m4: Update.
1970 * gnulib/import/m4/opendir.m4: Update.
1971 * gnulib/import/m4/pathmax.m4: Update.
1972 * gnulib/import/m4/rawmemchr.m4: Update.
1973 * gnulib/import/m4/readdir.m4: Update.
1974 * gnulib/import/m4/readlink.m4: Update.
1975 * gnulib/import/m4/realloc.m4: Update.
1976 * gnulib/import/m4/rename.m4: Update.
1977 * gnulib/import/m4/rewinddir.m4: Update.
1978 * gnulib/import/m4/rmdir.m4: Update.
1979 * gnulib/import/m4/save-cwd.m4: Update.
1980 * gnulib/import/m4/secure_getenv.m4: Update.
1981 * gnulib/import/m4/setenv.m4: Update.
1982 * gnulib/import/m4/signal_h.m4: Update.
1983 * gnulib/import/m4/ssize_t.m4: Update.
1984 * gnulib/import/m4/stat-time.m4: Update.
1985 * gnulib/import/m4/stat.m4: Update.
1986 * gnulib/import/m4/std-gnu11.m4: Update.
1987 * gnulib/import/m4/stdbool.m4: Update.
1988 * gnulib/import/m4/stddef_h.m4: Update.
1989 * gnulib/import/m4/stdint.m4: Update.
1990 * gnulib/import/m4/stdio_h.m4: Update.
1991 * gnulib/import/m4/stdlib_h.m4: Update.
1992 * gnulib/import/m4/strchrnul.m4: Update.
1993 * gnulib/import/m4/strdup.m4: Update.
1994 * gnulib/import/m4/strerror.m4: Update.
1995 * gnulib/import/m4/string_h.m4: Update.
1996 * gnulib/import/m4/strstr.m4: Update.
1997 * gnulib/import/m4/strtok_r.m4: Update.
1998 * gnulib/import/m4/sys_socket_h.m4: Update.
1999 * gnulib/import/m4/sys_stat_h.m4: Update.
2000 * gnulib/import/m4/sys_time_h.m4: Update.
2001 * gnulib/import/m4/sys_types_h.m4: Update.
2002 * gnulib/import/m4/tempname.m4: Update.
2003 * gnulib/import/m4/time_h.m4: Update.
2004 * gnulib/import/m4/unistd-safer.m4: Update.
2005 * gnulib/import/m4/unistd_h.m4: Update.
2006 * gnulib/import/m4/warn-on-use.m4: Update.
2007 * gnulib/import/m4/wchar_h.m4: Update.
2008 * gnulib/import/m4/wchar_t.m4: Update.
2009 * gnulib/import/m4/wctype_h.m4: Update.
2010 * gnulib/import/m4/wint_t.m4: Update.
2011 * gnulib/import/malloc.c: Update.
2012 * gnulib/import/malloc/scratch_buffer.h: Update.
2013 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2014 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2015 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2016 * gnulib/import/malloca.c: Update.
2017 * gnulib/import/malloca.h: Update.
2018 * gnulib/import/malloca.valgrind: Update.
2019 * gnulib/import/math.in.h: Update.
2020 * gnulib/import/mbrtowc.c: Update.
2021 * gnulib/import/mbsinit.c: Update.
2022 * gnulib/import/mbsrtowcs-impl.h: Update.
2023 * gnulib/import/mbsrtowcs-state.c: Update.
2024 * gnulib/import/mbsrtowcs.c: Update.
2025 * gnulib/import/memchr.c: Update.
2026 * gnulib/import/memmem.c: Update.
2027 * gnulib/import/mempcpy.c: Update.
2028 * gnulib/import/memrchr.c: Update.
2029 * gnulib/import/mkdir.c: Update.
2030 * gnulib/import/mkstemp.c: Update.
2031 * gnulib/import/msvc-inval.c: Update.
2032 * gnulib/import/msvc-inval.h: Update.
2033 * gnulib/import/msvc-nothrow.c: Update.
2034 * gnulib/import/msvc-nothrow.h: Update.
2035 * gnulib/import/open.c: Update.
2036 * gnulib/import/openat-die.c: Update.
2037 * gnulib/import/openat-priv.h: Update.
2038 * gnulib/import/openat-proc.c: Update.
2039 * gnulib/import/openat.c: Update.
2040 * gnulib/import/openat.h: Update.
2041 * gnulib/import/opendir.c: Update.
2042 * gnulib/import/pathmax.h: Update.
2043 * gnulib/import/pipe-safer.c: Update.
2044 * gnulib/import/rawmemchr.c: Update.
2045 * gnulib/import/readdir.c: Update.
2046 * gnulib/import/readlink.c: Update.
2047 * gnulib/import/realloc.c: Update.
2048 * gnulib/import/ref-add.sin: Update.
2049 * gnulib/import/ref-del.sin: Update.
2050 * gnulib/import/rename.c: Update.
2051 * gnulib/import/rewinddir.c: Update.
2052 * gnulib/import/rmdir.c: Update.
2053 * gnulib/import/same-inode.h: Update.
2054 * gnulib/import/save-cwd.c: Update.
2055 * gnulib/import/save-cwd.h: Update.
2056 * gnulib/import/scratch_buffer.h: Update.
2057 * gnulib/import/secure_getenv.c: Update.
2058 * gnulib/import/setenv.c: Update.
2059 * gnulib/import/signal.in.h: Update.
2060 * gnulib/import/stat-time.c: Update.
2061 * gnulib/import/stat-time.h: Update.
2062 * gnulib/import/stat-w32.c: Update.
2063 * gnulib/import/stat-w32.h: Update.
2064 * gnulib/import/stat.c: Update.
2065 * gnulib/import/stdbool.in.h: Update.
2066 * gnulib/import/stddef.in.h: Update.
2067 * gnulib/import/stdint.in.h: Update.
2068 * gnulib/import/stdio.in.h: Update.
2069 * gnulib/import/stdlib.in.h: Update.
2070 * gnulib/import/str-two-way.h: Update.
2071 * gnulib/import/strchrnul.c: Update.
2072 * gnulib/import/strdup.c: Update.
2073 * gnulib/import/streq.h: Update.
2074 * gnulib/import/strerror-override.c: Update.
2075 * gnulib/import/strerror-override.h: Update.
2076 * gnulib/import/strerror.c: Update.
2077 * gnulib/import/string.in.h: Update.
2078 * gnulib/import/stripslash.c: Update.
2079 * gnulib/import/strnlen1.c: Update.
2080 * gnulib/import/strnlen1.h: Update.
2081 * gnulib/import/strstr.c: Update.
2082 * gnulib/import/strtok_r.c: Update.
2083 * gnulib/import/sys_stat.in.h: Update.
2084 * gnulib/import/sys_time.in.h: Update.
2085 * gnulib/import/sys_types.in.h: Update.
2086 * gnulib/import/tempname.c: Update.
2087 * gnulib/import/tempname.h: Update.
2088 * gnulib/import/time.in.h: Update.
2089 * gnulib/import/unistd--.h: Update.
2090 * gnulib/import/unistd-safer.h: Update.
2091 * gnulib/import/unistd.in.h: Update.
2092 * gnulib/import/unsetenv.c: Update.
2093 * gnulib/import/verify.h: Update.
2094 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2095 * gnulib/import/wchar.in.h: Update.
2096 * gnulib/import/wctype.in.h: Update.
2097 * gnulib/import/xalloc-oversized.h: Update.
2098 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2099 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2101 2018-08-16 Gary Benson <gbenson@redhat.com>
2104 * gdb/main.c (captured_main_1): Exit with nonzero status
2105 in batch mode if the last command to be executed failed.
2106 * NEWS: Mention the above.
2108 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2110 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2111 end of warning message.
2113 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2116 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2117 (aarch64_extract_return_value): Use
2118 aapcs_is_vfp_call_or_return_candidate.
2119 (aarch64_return_in_memory): Likewise.
2120 (aarch64_store_return_value): Likewise.
2122 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2125 (aapcs_is_vfp_call_or_return_candidate): Make static
2126 (pass_in_v_or_stack): Remove function.
2127 (pass_in_v_vfp_candidate): New function.
2128 (aarch64_push_dummy_call): Check for float register candidates.
2130 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2132 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2133 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2134 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2136 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2139 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2140 (struct ipa_sym_addresses): Rename to...
2141 (struct ipa_sym_addresses_common): ... this.
2142 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2144 2018-08-28 Tom Tromey <tom@tromey.com>
2146 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2147 (token_fifo): Now a std::vector.
2148 (yylex, c_parse): Update.
2149 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2150 (token_fifo): Now a std::vector.
2151 (yylex, d_parse): Update.
2152 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2153 (token_fifo): Now a std::vector.
2154 (yylex, go_parse): Update.
2156 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2158 * parser-defs.h (struct type_stack) <elements>: Change type to
2159 std::vector<union type_stack_elt>.
2160 <depth, size>: Remove.
2161 * parse.c (parse_exp_in_context_1): Adjust.
2162 (type_stack_reserve): Remove.
2163 (check_type_stack_depth): Remove.
2164 (insert_into_type_stack): Adjust to std::vector.
2165 (insert_type): Likewise.
2166 (push_type): Likewise.
2167 (push_type_int): Likewise.
2168 (insert_type_address_space): Likewise.
2169 (pop_type): Likewise.
2170 (pop_type_int): Likewise.
2171 (pop_typelist): Likewise.
2172 (pop_type_stack): Likewise.
2173 (append_type_stack): Likewise.
2174 (push_type_stack): Likewise.
2175 (get_type_stack): Likewise.
2176 (type_stack_cleanup): Likewise.
2177 (push_typelist): Likewise.
2178 (follow_types): Likewise.
2179 (_initialize_parse): Likewise.
2181 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2183 * NEWS: Mention csky target.
2185 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2186 Hafiz Abid Qadeer <abidh@codesourcery.com>
2187 Don Breazeal <donb@codesourcery.com>
2189 * csky-linux-tdep.c: New file.
2190 * csky-tdep.c: Likewise.
2191 * csky-tdep.h: Likewise.
2192 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2194 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2195 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2196 * configure.tgt: Add csky support.
2198 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2200 * python/py-framefilter.c (py_print_frame): Print frame architecture
2201 when printing on an MI output.
2203 2018-08-27 Tom Tromey <tom@tromey.com>
2206 * configure: Rebuild.
2207 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2209 2018-08-27 Tom Tromey <tom@tromey.com>
2211 * aarch64-linux-tdep.c
2212 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2215 2018-08-27 Tom Tromey <tom@tromey.com>
2217 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2219 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2220 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2221 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2222 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2225 2018-08-27 Tom Tromey <tom@tromey.com>
2227 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2228 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2230 2018-08-27 Tom Tromey <tom@tromey.com>
2232 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2233 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2235 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2237 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2239 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2240 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2241 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2243 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2244 (ppc64_linux_sigaction_tramp_frame)
2245 (ppc32_linux_sighandler_tramp_frame)
2246 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2247 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2248 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2249 * mn10300-linux-tdep.c (am33_linux_sigframe)
2250 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2251 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2252 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2253 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2254 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2255 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2256 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2257 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2258 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2259 * microblaze-linux-tdep.c
2260 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2261 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2262 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2263 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2264 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2265 * common/common-types.h (ULONGEST_MAX): New define.
2266 (CORE_ADDR_MAX): Fix formatting.
2267 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2268 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2269 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2270 (arm_linux_rt_sigreturn_tramp_frame)
2271 (arm_eabi_linux_sigreturn_tramp_frame)
2272 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2273 (thumb2_eabi_linux_sigreturn_tramp_frame)
2274 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2275 (arm_linux_restart_syscall_tramp_frame)
2276 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2277 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2278 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2280 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2282 2018-08-27 Tom Tromey <tom@tromey.com>
2284 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2286 * mips-tdep.c (mips_deal_with_atomic_sequence)
2287 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2288 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2289 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2290 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2292 * aarch64-tdep.c (aarch64_software_single_step): Use
2295 2018-08-27 Tom Tromey <tom@tromey.com>
2297 * linespec.c (complete_linespec_component): Add cast to "char".
2298 * completer.c (completion_tracker::build_completion_result): Add
2301 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2303 * solist.h (struct solist, struct target_so_ops): Fix
2306 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2308 * ada-tasks.c (ada_task_info_s): Remove typedef.
2309 (DEF_VEC_O(ada_task_info_s)): Remove.
2310 (struct ada_tasks_inferior_data): Initialize fields.
2311 <task_list>: Make an std::vector.
2312 (get_ada_tasks_inferior_data): Allocate with new.
2313 (ada_get_task_number): Adjust.
2314 (get_task_number_from_id): Likewise.
2315 (valid_task_id): Likewise.
2316 (ada_get_task_info_from_ptid): Likewise.
2317 (iterate_over_live_ada_tasks): Likewise.
2318 (add_ada_task): Likewise.
2319 (read_known_tasks): Likewise.
2320 (ada_build_task_list): Likewise.
2321 (print_ada_task_info): Likewise.
2322 (info_task): Likewise.
2323 (task_command_1): Likewise.
2325 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2327 * ada-lang.c (add_angle_brackets): Return std::string.
2329 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2331 * python/py-threadevent.c (py_get_event_thread): Initialize
2334 2018-08-24 Pedro Alves <palves@redhat.com>
2336 * python/py-bpevent.c (create_breakpoint_event_object): Use
2337 copy-initialization.
2338 * python/py-continueevent.c (emit_continue_event): Use
2339 copy-initialization.
2340 * python/py-exitedevent.c (create_exited_event_object): Return a
2342 (emit_exited_event): Use copy-initialization.
2343 * python/py-inferior.c (python_new_inferior)
2344 (python_inferior_deleted, add_thread_object): Use
2345 copy-initialization.
2346 * python/py-infevents.c (create_inferior_call_event_object)
2347 (create_register_changed_event_object)
2348 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2349 (emit_inferior_call_event, emit_memory_changed_event)
2350 (emit_register_changed_event): Use copy-initialization.
2351 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2352 Return a gdbpy_ref<>.
2353 (emit_new_objfile_event): Use copy-initialization.
2354 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2355 (emit_clear_objfiles_event): Use copy-initialization.
2356 * python/py-signalevent.c (create_signal_event_object): Use
2357 copy-initialization.
2358 * python/py-threadevent.c (create_thread_event_object): Use
2359 copy-initialization.
2361 2018-08-24 Pedro Alves <palves@redhat.com>
2362 Simon Marchi <simon.marchi@ericsson.com>
2365 * python/py-continueevent.c: Include "gdbthread.h".
2366 (create_continue_event_object): Add intro comment. Add 'ptid'
2367 parameter. Use it to find thread to pass to
2368 create_thread_event_object.
2369 (emit_continue_event): Pass PTID down to
2370 create_continue_event_object.
2371 * python/py-event.h (py_get_event_thread): Declare.
2372 (create_thread_event_object): Remove default from 'thread'
2374 * python/py-stopevent.c (create_stop_event_object): Use
2375 py_get_event_thread.
2376 * python/py-threadevent.c (get_event_thread): Rename to ...
2377 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2378 and use it to find the thread.
2379 (create_thread_event_object): Assert that THREAD isn't null.
2380 Don't find the event thread here.
2382 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2384 * block.h (blockrange, blockranges): New struct declarations.
2385 (struct block): Add new field named `ranges'.
2386 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2387 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2388 macros for accessing ranges in struct block.
2389 (make_blockranges): New declaration.
2390 block.c (make_blockranges): New function.
2391 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2393 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2394 * blockframe.c (cache_pc_function_block): New static global.
2395 (clear_pc_function_cache): Clear cache_pc_function_block.
2396 (find_pc_partial_function): Move comment to symtab.h. Add
2397 support for non-contiguous blocks.
2398 * cli/cli-cmds.c (block.h): Include.
2399 (print_disassembly): Handle printing of non-contiguous blocks.
2400 (disassemble_current_function): Likewise.
2401 (disassemble_command): Likewise.
2403 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2405 * blockframe.c (get_pc_function_start): Likewise.
2406 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2407 (gcc_symbol_address): Likewise.
2408 * compile/compile-object-run.c (compile_object_run): Likewise.
2409 * compile/compile.c (get_expr_block_and_pc): Likewise.
2410 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2411 (func_addr_to_tail_call_list): Likewise.
2412 * findvar.c (default_read_var_value): Likewise.
2413 * inline-frame.c (inline_frame_this_id): Likewise.
2414 (skip-inline_frames): Likewise.
2415 * infcmd.c (until_next_command): Likewise.
2416 * linespec.c (convert_linespec_to_sals): Likewise.
2417 * parse.c (parse_exp_in_context_1): Likewise.
2418 * printcmd.c (build_address_symbolic): likewise.
2419 (info_address_command): Likewise.
2420 symtab.c (find_function_start_sal): Likewise.
2421 (skip_prologue_sal): Likewise.
2422 (find_function_alias_target): Likewise.
2423 (find_gnu_ifunc): Likewise.
2424 * stack.c (find_frame_funname): Likewise.
2425 * symtab.c (fixup_symbol_section): Likewise.
2426 (find_function_start_sal): Likewise.
2427 (skip_prologue_sal): Likewsie.
2428 (find_function_alias_target): Likewise.
2429 (find_gnu_ifunc): Likewise.
2430 * tracepoint.c (info_scope_command): Likewise.
2431 * value.c (value_fn_field): Likewise.
2433 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2434 in place of find_pc_partial_function.
2435 * blockframe.c (find_function_entry_range_from_pc): New function.
2436 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2437 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2438 for each range in a block.
2441 2018-08-23 Xavier Roirand <roirand@adacore.com>
2443 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2446 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2448 * solib-svr4.c (read_program_headers_from_bfd): Return
2449 gdb::optional<gdb::byte_vector>.
2450 (svr4_exec_displacement): Adjust.
2452 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2454 * solib-svr4.c (read_program_header): Return
2455 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2456 (find_program_interpreter): Return
2457 gdb::optional<gdb::byte_vector>.
2458 (scan_dyntag_auxv): Adjust.
2459 (enable_break): Adjust.
2460 (svr4_exec_displacement): Adjust.
2462 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2464 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2465 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2467 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2469 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2471 * guile/scm-utils.c (gdbscm_printf): Likewise.
2472 * serial.c (serial_printf): Likewise.
2473 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2475 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2477 * stack.c (print_frame): Print frame architecture when printing on
2479 * NEWS: Mention new "arch" attribute in frame output.
2481 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2483 * arch/aarch64.h (aarch64_regnum): Update comment.
2485 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2487 * NEWS: Add SVE to 8.2 section.
2489 2018-08-21 Pedro Alves <palves@redhat.com>
2491 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2492 out from gdbscm_parse_function_args.
2493 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2494 gdbscm_parse_function_args_1.
2496 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
2499 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
2502 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
2504 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
2506 2018-08-19 Michael Spang <spang@google.com>
2509 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
2510 for PT_TLS segments.
2512 2018-08-18 Kevin Buettner <kevinb@redhat.com>
2514 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
2515 dwarf_variable_value.
2516 * dwarf2-frame.c (class dwarf_expr_executor):
2517 Add override for dwarf_variable_value.
2518 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
2519 (class symbol_needs_eval_context): Likewise.
2520 (indirect_synthetic_pointer): Add forward declaration.
2521 (sect_variable_value): New function.
2522 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
2523 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
2524 for DW_OP_GNU_variable_value.
2526 2018-08-16 Tom Tromey <tom@tromey.com>
2528 * top.c (read_command_file): Update.
2529 (command_line_input): Remove "repeat" argument.
2530 * ada-lang.c (get_selections): Update.
2531 * linespec.c (decode_line_2): Update.
2532 * defs.h (command_line_input): Remove argument.
2533 * cli/cli-script.c (read_next_line): Update.
2534 * python/py-gdb-readline.c: Update.
2536 2018-08-17 Tom Tromey <tom@tromey.com>
2538 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
2541 2018-08-15 Tom Tromey <tom@tromey.com>
2543 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
2545 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
2547 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
2548 If used, use find_pc_partial_function to find address range
2550 * mi/mi-main.c (mi_cmd_list_features): Report
2551 "data-disassemble-a-option" feature.
2552 * NEWS: Mention new -data-disassemble option -a.
2554 2018-08-13 Tom Tromey <tom@tromey.com>
2556 * common/common-defs.h (_FORTIFY_SOURCE): Define.
2558 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2560 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
2561 (aarch64_linux_collect_sve_regset): Likewise.
2562 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
2563 * regcache.h (regcache_map_entry_size): New function.
2565 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2567 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
2568 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
2569 (SVE_HEADER_VL_LENGTH): Likewise.
2570 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
2571 (SVE_HEADER_FLAGS_LENGTH): Likewise.
2572 (SVE_HEADER_RESERVED_LENGTH): Likewise.
2573 (SVE_HEADER_SIZE_OFFSET): Likewise.
2574 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
2575 (SVE_HEADER_VL_OFFSET): Likewise.
2576 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
2577 (SVE_HEADER_FLAGS_OFFSET): Likewise.
2578 (SVE_HEADER_RESERVED_OFFSET): Likewise.
2579 (SVE_HEADER_SIZE): Likewise.
2580 (aarch64_linux_core_read_vq): Add function.
2581 (aarch64_linux_core_read_description): Check for SVE section.
2583 2018-08-13 Alan Hayward <alan.hayward@arm.com>
2585 * aarch64-fbsd-tdep.c
2586 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
2588 * aarch64-linux-tdep.c
2589 (aarch64_linux_iterate_over_regset_sections): Likewise.
2590 * alpha-linux-tdep.c
2591 (alpha_linux_iterate_over_regset_sections):
2593 (alphanbsd_iterate_over_regset_sections): Likewise.
2595 (amd64fbsd_iterate_over_regset_sections): Likewise.
2596 * amd64-linux-tdep.c
2597 (amd64_linux_iterate_over_regset_sections): Likewise.
2599 (armbsd_iterate_over_regset_sections): Likewise.
2601 (arm_fbsd_iterate_over_regset_sections): Likewise.
2603 (arm_linux_iterate_over_regset_sections): Likewise.
2604 * corelow.c (get_core_registers_cb): Likewise.
2605 (core_target::fetch_registers): Likewise.
2606 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2607 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
2608 * gdbarch.h (void): Regenerate.
2609 * gdbarch.sh: Add supply_size and collect_size.
2610 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
2611 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
2612 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
2613 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
2614 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
2615 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
2616 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
2617 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
2618 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
2619 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
2620 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
2621 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
2622 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
2623 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
2624 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
2625 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
2626 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
2627 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
2628 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
2629 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
2630 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
2631 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
2632 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
2633 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
2634 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
2635 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
2636 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
2637 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
2638 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
2639 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
2641 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
2643 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
2646 2018-08-10 Keith Seitz <keiths@redhat.com>
2648 * compile/compile-c-support.c (add_code_header, add_code_footer):
2649 Move into policy class.
2650 (c_push_user_expression, pop_user_expression_nop)
2651 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
2652 (compile_program): New host class.
2653 (c_compile_program): New typedef.
2654 (c_compute_porgram): Use c_compile_program.
2656 2018-08-10 Keith Seitz <keiths@redhat.com>
2658 * compile/compile-internal.h (compile_instance::~compile_instance):
2659 Remove calls to htab_delete.
2660 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
2661 * compile.c (compile_instance::compile_instance): Initialize
2662 htab unique pointers.
2663 (compile_instance::get_cached_type, compile_instance::insert_type)
2664 (compile_instance::error_symbol_once): Update for unique_ptr.
2666 2018-08-10 Keith Seitz <keiths@redhat.com>
2668 * compile/compile-c-symbols.c (struct symbol_error)
2669 (hash_symbol_error, eq_symbol_error, del_symbol_error)
2670 (compile_instance::insert_symbol_error)
2671 (compile_instance::error_symbol_once): Move to ...
2672 * compile/compile.c: ... here.
2674 2018-08-10 Keith Seitz <keiths@redhat.com>
2676 * compile/compile-c-support.c (c_get_compile_context): Use `new'
2677 instead of `new_compile_instance'.
2678 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
2680 If the symbol error map is not initialized, create it.
2681 (generate_c_for_for_one_symbol): Do not check/initialize
2682 the symbol error map.
2683 * compile/compile-c-types.c (compile_c_instance): Make a class.
2685 (compile_instance::compile_instance): Initialize the type cache.
2686 (get_cached_type): New function.
2687 (insert_type): Update description.
2688 (compile_c_instance::m_default_cflags): Define.
2689 (convert_type): Update description. Use get_cached_type.
2690 (delete_instance): Moved to destructor.
2691 (new_compile_instance): Moved to constructor.
2692 * compile/compile-c.h (compile_c_instance): Make class inheriting
2693 from compile_instance.
2694 <base>: Remove field.
2695 <type_map, symbol_err_map>: Move to base class.
2696 <c_plugin>: Rename to `m_plugin' and remove pointer type.
2697 * compile/compile-internal.h (compile_instance): Make class.
2698 <type_map_t, symbol_err_map_t>: Define.
2699 <fe>: Rename to `m_gcc_fe'.
2700 <scope, block, gcc_target_options>: Add `m_' prefix.
2701 <m_type_map, m_symbol_err_map>: New fields, moved from
2704 (convert_type, new_compile_instance): Remove.
2705 * compile/compile.c (cleanup_compile_instance): Remove.
2706 (compile_to_object): Use unique_ptr to eliminate cleanups.
2707 (compile_instance::set_print_callback, compile_instance::version)
2708 (compile_instance::set_verbose)
2709 (compile_instance::set_driver_filename)
2710 (compile_instance::set_triplet_regexp)
2711 (compile_instance::set_arguments)
2712 (compile_instance::set_source_file)
2713 (compile_instance::compile): Define.
2715 2018-08-10 Keith Seitz <keiths@redhat.com>
2717 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
2718 * compile/compile-c-types.c: Define GCC_METHODN macros and include
2719 gcc-c-fe.def to define C plugin.
2720 (delete_instance): Delete `c_plugin'.
2721 (new_compile_instance): Initialize `c_plugin'.
2722 * compile/compile-c.h: Include gcc_c_plugin.h.
2723 (struct compile_c_instance) <c_plugin>: New member.
2724 * gcc-c-plugin.h: New file.
2725 Update all callers with API change.
2727 2018-08-10 Keith Seitz <keiths@redhat.com>
2729 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
2730 (HFILES_NO_SRCDIR): ... to here.
2731 Add compile-internal.h and compile-c.h.
2732 * compile/compile-c-support.c: Include compile-c.h.
2733 * compile/compile-c-symbols.c: Include compile-c.h.
2734 (generate_c_for_variable_locations): Update comment.
2735 * compile/compile-c-types.c: Include compile-c.h.
2736 * compile/compile-c.h: New file -- moved C language declarations
2737 from other files here.
2738 * compile/compile-internal.h: Do not include hashtab.h or
2739 common/enum-flags.h.
2740 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
2741 (gcc_convert_symbol, gcc_symbol_address)
2742 (generate_c_for_variable_locations, c_get_mode_for_size)
2743 (c_get_range_decl_name): Definitions moved to compile-c.h.
2744 * compile/compile-loc2c.c: Include compile-c.h.
2746 2018-08-10 Keith Seitz <keiths@redhat.com>
2748 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
2749 (c_symbol_substitution_name): ... this.
2752 2018-08-10 Keith Seitz <keiths@redhat.com>
2754 * compile/compile-c-support.c (c_compute_program): Use
2755 unique_xmalloc_ptr to eliminate cleanup.
2756 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
2757 Return a unique_xmalloc_ptr and eliminate cleanup.
2758 * compile/compile-internal.h (generate_c_for_variable_locations):
2759 Return unique_xmalloc_ptr and update description.
2761 2018-08-10 Alan Hayward <alan.hayward@arm.com>
2763 * corelow.c (core_target::get_core_register_section): Rename
2764 min_size to section_min_size.
2766 2018-08-09 Jim Wilson <jimw@sifive.com>
2768 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
2769 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
2770 * NEWS: Mention new GNU/Linux RISC-V target.
2771 * configure.host: Add riscv*-*-linux*.
2772 * configure.nat: Add riscv*.
2773 * configure.tgt: Add riscv*-*-linux*.
2774 * riscv-linux-nat.c: New file.
2775 * riscv-linux-tdep.c: New file.
2777 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2779 * infrun.c (resume): Make static, add forward declaration.
2780 (proceed): Update header comment.
2781 * infrun.h (resume): Delete declaration.
2783 2018-08-09 Tom Tromey <tom@tromey.com>
2785 * riscv-tdep.h: Minor formatting fixes.
2787 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
2789 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
2790 * dwarf-index-cache.c (create_dir_and_check): Likewise.
2791 (test_mkdir_recursive): Likewise.
2792 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
2794 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
2796 * valarith.c (value_subscripted_rvalue): If an array is not in
2797 memory, and we don't know the upper bound, then we can't know that
2798 the requested element exists or not.
2800 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
2802 * target.c (str_comma_list_concat_elem): Fix typo in comment.
2803 (target_options_to_string): Add comment.
2805 2018-08-08 Tom Tromey <tom@tromey.com>
2807 * unittests/scoped_mmap-selftests.c: Check result of "write".
2809 2018-08-08 Jim Wilson <jimw@sifive.com>
2811 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
2812 (decode_register_index_short): New.
2813 (decode_j_type_insn, decode_cj_type_insn): New.
2814 (decode_b_type_insn, decode_cb_type_insn): New.
2815 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
2816 local xlen. Check xlen when decoding ambiguous compressed insns. In
2817 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
2818 is_c_sw_insn instead of is_sw_insn.
2819 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
2820 (riscv_software_single_step): New.
2821 * riscv-tdep.h (riscv_software_single_step): Declare.
2823 * riscv-tdep.c (riscv_isa_xlen): Drop static.
2824 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
2826 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
2829 * target.c (dispose_inferior): Don't dispose of inferiors that are
2832 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2834 * remote.c (remote_target::download_tracepoint): Change char* to
2837 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2839 * target.h (target_options_to_string): Return an std::string.
2840 * target.c (str_comma_list_concat_elem): Return void, use
2842 (do_option): Likewise.
2843 (target_options_to_string): Return an std::string.
2844 * linux-nat.c (linux_nat_target::wait): Adjust.
2845 * target-debug.h (target_debug_print_options): Adjust.
2847 2018-08-07 Tom Tromey <tom@tromey.com>
2849 * Makefile.in (CPPFLAGS): New variable.
2850 (INTERNAL_CPPFLAGS): Use it.
2852 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2854 * NEWS: Mention the index cache.
2856 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2858 * common/pathstuff.h (get_standard_cache_dir): New.
2859 * common/pathstuff.c (get_standard_cache_dir): New.
2860 * build-id.h (build_id_to_string): New.
2861 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
2862 DEBUG_STR_SUFFIX): Move to here.
2863 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
2864 DEBUG_STR_SUFFIX): Move from there.
2865 (write_psymtabs_to_index): Make non-static, add basename
2866 parameter. Write to temporary files, rename when done.
2867 (save_gdb_index_command): Adjust call to
2868 write_psymtabs_to_index.
2869 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
2871 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
2872 (get_gdb_index_contents_from_cache): New.
2873 (get_gdb_index_contents_from_cache_dwz): New.
2874 (dwarf2_initialize_objfile): Read index from cache.
2875 (dwarf2_build_psymtabs): Save to index.
2876 * dwarf-index-cache.h: New file.
2877 * dwarf-index-cache.c: New file.
2878 * dwarf-index-write.h: New file.
2880 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2882 * gnulib/aclocal.m4: Re-generate.
2883 * gnulib/config.in: Re-generate.
2884 * gnulib/configure: Re-generate.
2885 * gnulib/import/Makefile.am: Re-generate.
2886 * gnulib/import/Makefile.in: Re-generate.
2887 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
2888 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
2889 * gnulib/import/m4/mkdir.m4: New file.
2890 * gnulib/import/mkdir.c: New file.
2891 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
2894 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2896 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
2897 * common/scoped_mmap.c: New file.
2898 * common/scoped_mmap.h (destroy): New method.
2899 (~scoped_mmap, reset): Use destroy.
2900 (scoped_mmap): New move constructor.
2901 (mmap_file): New declaration.
2902 * unittests/scoped_mmap-selftests.c (test_normal,
2903 test_invalid_filename, run_tests): New functions.
2904 (_initialize_scoped_mmap_selftests): Register selftest.
2906 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2908 * dwarf2read.c (read_gdb_index_from_section): Rename to...
2909 (read_gdb_index_from_buffer): ... this. Remove section
2910 parameter, add buffer parameter.
2911 (get_gdb_index_contents_ftype,
2912 get_gdb_index_contents_dwz_ftype): New typedefs.
2913 (dwarf2_read_gdb_index): Add callback parameters to get the
2915 (get_gdb_index_contents_from_section): New.
2916 (dwarf2_initialize_objfile): Update call to
2917 dwarf2_read_gdb_index.
2919 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
2921 * common/filestuff.h (gdb_fopen_cloexec): New overload.
2922 (gdb_open_cloexec): Likewise.
2923 * nat/linux-osdata.c (command_from_pid): Use string_printf.
2924 (commandline_from_pid): Likewise.
2925 (linux_xfer_osdata_threads): Likewise.
2926 (linux_xfer_osdata_fds): Likewise.
2927 * ada-lang.c (is_package_name): Likewise.
2928 * auxv.c (procfs_xfer_auxv): Likewise.
2929 * breakpoint.c (print_one_breakpoint_location): Use
2931 (print_one_catch_solib): Use string_printf.
2932 * coff-pe-read.c (add_pe_exported_sym): Likewise.
2933 (add_pe_forwarded_sym): Likewise.
2934 * dwarf2read.c (create_type_unit_group): Likewise.
2935 (build_error_marker_type): Likewise.
2936 * infcall.c (get_function_name): Likewise.
2937 * valprint.c (print_converted_chars_to_obstack): Likewise.
2938 * xtensa-tdep.c (xtensa_register_type): Likewise.
2940 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
2942 * remote.c (remote_target::download_tracepoint): Fix format
2945 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2947 * tracefile.c: Include common/byte-vector.h.
2948 (trace_save): Change type of buf to gdb::byte_vector. Initialize
2949 with trace_regblock_size if needed. Update uses of buf.
2951 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2953 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
2954 std::vector<unsigned char>.
2955 * tracepoint.c (collection_list::collection_list): Remove
2956 m_regs_mask initializer from initializer list. Resize
2957 m_regs_mask using the largest remote register number.
2958 (collection_list::add_remote_register): Remove size check on
2959 m_regs_mask. Use at to access element.
2960 (collection_list::stringify): Change type of temp_buf to
2961 gdb::char_vector. Update uses of temp_buf. Resize if needed to
2962 stringify the register mask. Use pack_hex_byte for the register
2965 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2967 * tracepoint.h (class collection_list) <add_register>: Remove.
2968 <add_remote_register, add_ax_registers, add_local_register>:
2970 <add_memrange>: Add scope parameter.
2971 * tracepoint.c (encode_actions_1): Likewise.
2972 (collection_list::add_register): Rename to ...
2973 (collection_list::add_remote_register): ... this. Update
2975 (collection_list::add_ax_registers, add_local_register): New
2977 (collection_list::add_memrange): Add scope parameter. Call
2978 add_local_register instead of add_register.
2979 (finalize_tracepoint_aexpr): New function.
2980 (collection_list::collect_symbol): Update calls to add_memrange.
2981 Call add_local_register instead of add_register. Call
2982 add_ax_registers. Call finalize_tracepoint_aexpr.
2983 (encode_actions_1): Get remote regnos for $reg action. Call
2984 add_remote_register, add_ax_registers, and add_local_register.
2985 Update call to add_memrange. Call finalize_tracepoint_aexpr.
2986 (validate_actionline): Call finalize_tracepoint_aexpr.
2988 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2990 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
2991 Replace array buf with gdb::char_vector buf, of size
2992 get_remote_packet_size (). Replace references to buf and
2993 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
2994 and xsnprintf with snprintf. Raise errors if the buffer is too
2997 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2999 * remote.c (remote_target::download_tracepoint): Fix the has_more
3000 predicate in the QTDP action list iteration.
3002 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3004 * remote.c (remote_target::download_tracepoint): Fix indentation
3007 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3009 * proc-api.c (_initialize_proc_api): Remove c, unused.
3010 * procfs.c (procfs_init_inferior): Remove signals, unused.
3011 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3014 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3015 Andrew Burgess <andrew.burgess@embecosm.com>
3017 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3018 'W_STOPCODE (0)' as this could be ambiguous.
3020 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3022 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3023 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3026 2018-08-02 Tom Tromey <tom@tromey.com>
3029 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3031 (process_structure_scope): Likewise.
3033 2018-08-02 Xavier Roirand <roirand@adacore.com>
3036 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3039 2018-08-02 Tom Tromey <tom@tromey.com>
3041 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3042 (darwin_suspend_inferior, darwin_resume_inferior)
3043 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3044 (darwin_check_new_threads): Check result of get_darwin_inferior.
3046 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3050 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3052 * varobj.c (varobj_get_path_expr_parent): Report an error if
3053 parent is a dynamic varobj.
3055 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3057 * gnulib/aclocal.m4: Re-generate.
3058 * gnulib/config.in: Re-generate.
3059 * gnulib/configure: Re-generate.
3060 * gnulib/import/Makefile.in: Re-generate.
3061 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3062 * gnulib/import/m4/onceonly.m4: Re-generate.
3064 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3066 * target-descriptions.c (struct xml_test_tdesc): New.
3067 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3068 (record_xml_tdesc): Update.
3069 (maintenance_check_xml_descriptions): Update.
3070 * target-descriptions.h (record_xml_tdesc): Update comment.
3072 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3074 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3075 checking array bounds are defined.
3077 2018-07-30 Tom Tromey <tom@tromey.com>
3079 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3080 irreflexivity violation.
3082 2018-07-30 Tom Tromey <tom@tromey.com>
3084 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3085 * value.c (unpack_long): Remove lint code.
3086 * valops.c (value_ind): Remove lint code.
3087 * valarith.c (value_x_binop, value_x_unop, value_equal)
3088 (value_pos): Remove lint code.
3090 2018-07-28 Tom de Vries <tdevries@suse.de>
3092 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3093 with undefined upper bound as <optimized out>.
3095 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3097 * gcore.in: Rename variable "name" to "prefix". Expand
3100 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3102 * windows-nat.c (windows_nat_target::create_inferior): Update to
3103 call close() in global namespace.
3105 2018-07-26 Tom Tromey <tom@tromey.com>
3107 * dwarf-index-write.c (add_address_entry): Don't add objfile
3109 * dbxread.c (find_stab_function): Rename from
3110 find_stab_function_addr. Return a bound_minimal_symbol.
3111 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3112 Don't add objfile offsets.
3113 (end_psymtab): Use raw_text_low, raw_text_high,
3114 MSYMBOL_VALUE_RAW_ADDRESS.
3115 (read_ofile_symtab): Update.
3116 (process_one_symbol): Update.
3117 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3119 (dw2_relocate): Remove.
3120 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3122 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3124 (process_psymtab_comp_unit_reader, add_partial_symbol)
3125 (add_partial_subprogram, dwarf2_ranges_read): Update.
3126 (load_partial_dies): Update.
3127 (add_address_entry): Don't add objfile offsets.
3128 (dwarf2_build_include_psymtabs): Update.
3129 (create_addrmap_from_aranges): Don't add objfile offsets.
3130 (dw2_find_pc_sect_compunit_symtab): Update.
3131 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3132 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3134 (parse_partial_symbols): Don't add objfile offsets. Use
3135 raw_text_low, raw_text_high. Update.
3136 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3137 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3138 or call 'relocate' quick function. Clear psymbol_map.
3139 * psympriv.h (struct partial_symbol) <address>: Add section
3141 <set_unrelocated_address>: Rename from set_address.
3142 <raw_text_low, raw_text_high>: New methods.
3143 <text_low, text_high>: Add objfile parameter.
3144 (add_psymbol_to_bcache): Add 'section' parameter. Call
3145 set_unrelocated_address.
3146 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3147 (find_pc_psymbol): Update.
3148 (fixup_psymbol_section, relocate_psymtabs): Remove.
3149 (dump_psymtab, psym_functions): Update.
3150 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3152 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3153 (start_psymtab_common): Update.
3154 * symfile-debug.c (debug_qf_relocate): Remove.
3155 (debug_sym_quick_functions): Update.
3156 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3157 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3160 2018-07-26 Tom Tromey <tromey@redhat.com>
3162 * dbxread.c (end_psymtab): Use text_high_valid and
3164 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3165 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3166 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3168 <text_low_valid, text_high_valid>: New fields.
3169 <set_text_low, set_text_high>: Update.
3170 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3172 2018-07-26 Tom Tromey <tom@tromey.com>
3174 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3176 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3177 textlow and texthigh fields.
3178 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3180 * mdebugread.c (parse_lines, parse_partial_symbols)
3181 (psymtab_to_symtab_1): Update.
3182 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3183 Rename fields. Update comment. Now private.
3184 <text_low, text_high, set_text_low, set_text_high>: New methods.
3185 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3186 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3187 (start_psymtab_common, maintenance_info_psymtabs)
3188 (maintenance_check_psymtabs): Update.
3189 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3191 (scan_xcoff_symtab): Update.
3193 2018-07-26 Tom Tromey <tromey@redhat.com>
3195 * psympriv.h (struct partial_symbol) <unrelocated_address,
3196 address, set_address>: New methods.
3197 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3198 (fixup_psymbol_section, relocate_psymtabs): Update.
3199 (print_partial_symbols): Add 'objfile' parameter. Update.
3200 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3203 2018-07-26 Tom Tromey <tom@tromey.com>
3205 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3206 (debug_names::write_psymbols): Update.
3207 * psympriv.h (struct partial_symbol): Derive from
3208 general_symbol_info.
3209 <obj_section>: New method.
3210 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3211 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3212 (find_pc_sect_psymbol, fixup_psymbol_section)
3213 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3214 (print_partial_symbols, recursively_search_psymtabs)
3215 (compare_psymbols, psymbol_hash, psymbol_compare)
3216 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3217 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3219 2018-07-26 Tom Tromey <tromey@redhat.com>
3221 * dbxread.c (end_psymtab): Remove dead code.
3223 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3225 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3226 DWARF unwinders are disabled.
3227 * dwarf2-frame.c: Add dwarf2read.h include.
3228 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3230 (dwarf2_frame_unwinders_enabled_p): Define.
3231 (show_dwarf_unwinders_enabled_p): New function.
3232 (_initialize_dwarf2_frame): Register switch to control DWARF
3234 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3235 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3236 (show_dwarf_cmdlist): Remove static keyword.
3237 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3238 (show_dwarf_cmdlist): Declare.
3239 * NEWS: Document new feature.
3241 2018-07-26 Tom de Vries <tdevries@suse.de>
3243 PR breakpoints/23366
3244 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3246 2018-07-26 Tom de Vries <tdevries@suse.de>
3248 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3249 DW_AT_count can't be translated to a dynamic prop.
3251 2018-07-25 Tom de Vries <tdevries@suse.de>
3253 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3256 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3258 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3260 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3262 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3264 2018-07-24 Keith Seitz <keiths@redhat.comt
3267 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3268 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3269 instead of add_symbol_to_list.
3270 (read_file_scope): Call prepare_one_comp_unit before reading
3273 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3275 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3277 2018-07-24 Tom Tromey <tom@tromey.com>
3279 * utils.c (malloc, realloc, free): Don't declare.
3280 * configure, config.in: Rebuild.
3281 * configure.ac: Don't check for declarations of free, malloc, or
3284 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3286 * aarch64-linux-nat.c
3287 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3289 * arm-linux-nat.c (fetch_regs): Likewise.
3290 (store_regs): Likewise.
3291 (fetch_vfp_regs): Likewise.
3292 (store_vfp_regs): Likewise.
3293 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3294 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3295 (arm_linux_nat_target::insert_watchpoint): Likewise.
3296 (arm_linux_nat_target::remove_watchpoint): Likewise.
3297 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3299 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3301 * ppc-linux-nat.c (fetch_register): Likewise.
3302 (fetch_all_gp_regs): Likewise.
3303 (fetch_ppc_registers): Likewise.
3304 (store_all_gp_regs): Likewise.
3305 (store_ppc_registers): Likewise.
3306 (hwdebug_insert_point): Likewise.
3307 (can_use_watchpoint_cond_accel): Likewise.
3308 * remote-sim.c (gdb_os_write_stdout): Likewise.
3310 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3311 Tom Tromey <tom@tromey.com>
3313 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3315 * configure: Rebuild.
3317 2018-07-22 Tom Tromey <tom@tromey.com>
3319 * regformats/regdat.sh: Define xmltarget_${name} inside
3320 #ifndef IN_PROCESS_AGENT.
3322 2018-07-22 Tom Tromey <tom@tromey.com>
3324 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3326 2018-07-22 Tom Tromey <tom@tromey.com>
3328 * symfile.c (reread_symbols): Notify iter, not objfile.
3330 2018-07-22 Tom Tromey <tom@tromey.com>
3332 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3334 (ravenscar_thread_target::prepare_to_store): Likewise.
3336 2018-07-22 Tom Tromey <tom@tromey.com>
3338 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3339 unused variable. Call value_fetch_lazy when needed.
3340 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3341 Remove unused variable. Call value_fetch_lazy when needed.
3343 2018-07-22 Tom Tromey <tom@tromey.com>
3345 * m32c-tdep.c (mark_dma): Return void.
3346 (make_regs): Remove unused declarations.
3348 2018-07-22 Tom Tromey <tom@tromey.com>
3350 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3351 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3352 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3353 bkscm_get_valid_block_smob_arg_unsafe for effect.
3355 2018-07-22 Tom Tromey <tom@tromey.com>
3357 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3360 2018-07-22 Tom Tromey <tom@tromey.com>
3362 * windows-nat.c (saved_context): Conditionally define.
3363 * remote.c (remote_target::remote_btrace_maybe_reopen):
3364 Conditionally declare "warned".
3365 * inflow.c (sigquit_ours): Conditionally define.
3366 (new_tty): Move "tty" declaration inside #if.
3367 * guile/guile.c (guile_datadir): Conditionally define.
3368 * charset.c (set_be_le_names): Move some declarations inside #if.
3369 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3371 (parse_xml_btrace_conf): Likewise.
3373 2018-07-22 Tom Tromey <tom@tromey.com>
3375 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3377 2018-07-22 Tom Tromey <tom@tromey.com>
3379 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3380 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3381 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3382 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3383 * stack.c (frame_apply_level_command): Remove unused variable.
3384 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3385 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3386 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3388 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3389 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3390 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3392 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3393 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3395 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3396 Remove unused variable.
3397 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3399 * common/tdesc.c (print_xml_feature::visit): Remove unused
3401 * compile/compile-object-load.c (store_regs): Remove unused
3403 * complaints.c (clear_complaints): Remove unused variable.
3404 * corelow.c (core_target_open): Remove unused variable.
3405 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3407 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3409 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3411 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3413 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3415 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3417 * ia64-tdep.c (examine_prologue): Remove unused variable.
3418 * infcall.c (run_inferior_call): Remove unused variable.
3419 * inferior.c (exit_inferior): Remove unused variable.
3420 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3421 * linespec.c (decode_line_2): Remove unused variable.
3422 * linux-nat.c (super_close): Remove.
3423 * linux-tdep.c (linux_info_proc): Remove unused variable.
3424 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3425 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3426 Remove unused variable.
3427 * parse.c (find_minsym_type_and_address): Remove unused variable.
3428 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3430 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3432 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3434 * record-btrace.c (record_btrace_target::store_registers): Remove
3436 (cmd_show_record_btrace_cpu): Remove unused variable.
3437 * riscv-tdep.c (riscv_register_reggroup_p)
3438 (riscv_push_dummy_call, riscv_return_value): Remove unused
3440 * rust-exp.y (literal): Remove unused variable.
3441 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3443 <STRUCTOP_ANONYMOUS>: Likewise.
3444 * s390-linux-tdep.c (s390_linux_init_abi_31)
3445 (s390_linux_init_abi_64): Remove unused variable.
3446 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3447 (file_select_thread, net_windows_open, _initialize_ser_windows):
3448 Remove unused variables.
3449 * symtab.c (find_pc_sect_line): Remove unused variable.
3450 * target-memory.c (compute_garbled_blocks): Remove unused
3452 (target_write_memory_blocks): Remove unused variable.
3453 * target.c (target_stack::unpush): Remove unused variables.
3454 * tracepoint.c (start_tracing, all_tracepoint_actions)
3455 (merge_uploaded_trace_state_variables)
3456 (print_one_static_tracepoint_marker): Remove unused variable.
3457 * unittests/basic_string_view/element_access/char/1.cc (test01):
3458 Remove unused variable.
3459 * windows-nat.c (windows_continue, windows_add_all_dlls)
3460 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3461 Remove unused variables.
3463 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3465 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3466 attr_profile in HAVE_ELF.
3467 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3470 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3472 * frame.c (frame_register_unwind): Change parameter name.
3473 (frame_unwind_register): Likewise.
3474 (frame_unwind_register_value): Likewise.
3475 (frame_unwind_register_signed): Likewise.
3476 (frame_unwind_register_unsigned): Likewise.
3477 * frame.h (frame_register_unwind): Likewise.
3478 (frame_unwind_register): Likewise.
3479 (frame_unwind_register_value): Likewise.
3480 (frame_unwind_register_signed): Likewise.
3481 (frame_unwind_register_unsigned): Likewise.
3482 (frame_unwind_arch): Likewise.
3484 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3486 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3489 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3491 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3492 Call `get_ptrace_pid' rather than extracting the ptrace PID by
3495 2018-07-20 Keith Seitz <keiths@redhat.com>
3497 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
3498 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
3499 m_compunit_symtab, m_language>: Add "m_" prefix.
3501 * buildsym.c: Update all uses.
3503 2018-07-20 Tom Tromey <tom@tromey.com>
3505 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
3506 * buildsym.h (record_line_ftype): Remove typedef.
3508 2018-07-20 Tom Tromey <tom@tromey.com>
3510 * buildsym-legacy.h (augment_type_symtab): Don't declare.
3511 (end_expandable_symtab): Likewise.
3512 (end_symtab_get_static_block): Likewise.
3513 (end_symtab_from_static_block): Likewise.
3514 * buildsym-legacy.c (augment_type_symtab): Remove.
3515 (end_expandable_symtab): Remove.
3516 (end_symtab_get_static_block): Remove.
3517 (end_symtab_from_static_block): Remove.
3519 2018-07-20 Tom Tromey <tom@tromey.com>
3521 * dwarf2read.c: Include buildsym.h.
3522 (struct dwarf2_cu) <builder>: New method.
3523 (fixup_go_packaging): Update.
3524 (process_full_comp_unit, process_full_type_unit): Update. Don't
3525 use scoped_free_pendings.
3526 (using_directives): Add "cu" parameter, remove "language".
3527 (read_import_statement, setup_type_unit_groups, )
3528 (read_func_scope, read_lexical_block_scope)
3529 (dwarf2_record_block_ranges, read_namespace): Update.
3530 (lnp_state_machine::lnp_state_machine): Add cu parameter.
3531 (lnp_state_machine::handle_end_sequence): Update.
3532 (class lnp_state_machine) <m_cu>: New member.
3533 <m_record_line_callback>: Remove.
3534 <m_currently_recording_lines>: New member.
3535 (lnp_state_machine::handle_set_file): Update.
3536 (noop_record_line): Remove.
3537 (dwarf_record_line_p): Add cu parameter.
3538 (dwarf_record_line_1, dwarf_finish_line): Likewise.
3539 (lnp_state_machine::record_line)
3540 (lnp_state_machine::lnp_state_machine)
3541 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
3542 (dwarf_decode_lines): Update.
3543 (dwarf2_start_subfile): Add cu parameter.
3544 (dwarf2_start_symtab, new_symbol): Update.
3545 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
3546 Remove dwarf2_per_objfile parameter.
3547 (dwarf_decode_macros): Update.
3549 2018-07-20 Tom Tromey <tom@tromey.com>
3551 * stabsread.c (define_symbol): Update.
3552 * buildsym-legacy.h (get_buildsym_compunit): Declare.
3553 * dwarf2read.c (new_symbol): Update.
3554 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
3555 * cp-namespace.c: Include buildsym.h.
3556 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
3557 * buildsym-legacy.c (get_buildsym_compunit): New function.
3559 2018-07-20 Tom Tromey <tom@tromey.com>
3561 * xcoffread.c: Include buildsym-legacy.h.
3562 * windows-nat.c: Include buildsym-legacy.h.
3563 * stabsread.c: Include buildsym-legacy.h.
3564 * mdebugread.c: Include buildsym-legacy.h.
3565 * buildsym-legacy.h: New file.
3566 * buildsym-legacy.c: New file, from buildsym.c.
3567 * go32-nat.c: Include buildsym-legacy.h.
3568 * dwarf2read.c: Include buildsym-legacy.h.
3569 * dbxread.c: Include buildsym-legacy.h.
3570 * cp-namespace.c: Include buildsym-legacy.h.
3571 * coffread.c: Include buildsym-legacy.h.
3572 * buildsym.h: Move some contents to buildsym-legacy.h.
3573 * buildsym.c: Include buildsym-legacy.h. Move many functions to
3575 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
3577 2018-07-20 Tom Tromey <tom@tromey.com>
3579 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
3580 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
3581 (buildsym_compunit::buildsym_compunit)
3582 (buildsym_compunit::~buildsym_compunit)
3583 (buildsym_compunit::get_macro_table): Define.
3585 2018-07-20 Tom Tromey <tom@tromey.com>
3587 * buildsym.c (reset_symtab_globals): Remove.
3588 (buildsym_compunit::end_symtab_from_static_block): Update.
3589 (buildsym_compunit::augment_type_symtab): Update.
3590 (end_symtab_from_static_block): Call free_buildsym_compunit.
3591 (augment_type_symtab, end_symtab, end_expandable_symtab):
3594 2018-07-20 Tom Tromey <tom@tromey.com>
3596 * arch-utils.c: Do not include buildsym.h.
3597 * mipsread.c: Do not include buildsym.h.
3598 * machoread.c: Do not include buildsym.h.
3599 * elfread.c: Do not include buildsym.h.
3601 2018-07-20 Tom Tromey <tom@tromey.com>
3603 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
3605 (buildsym_compunit): Add new constructor.
3606 (struct buildsym_compunit) <get_last_source_file, finish_block,
3607 record_block_range, start_subfile, patch_subfile_names,
3608 push_subfile, pop_subfile, record_line, get_compunit_symtab,
3609 set_last_source_start_addr, get_last_source_start_addr,
3610 get_local_using_directives, set_local_using_directives,
3611 get_global_using_directives, outermost_context_p,
3612 get_current_context_stack, get_context_stack_depth,
3613 get_current_subfile, get_local_symbols, get_file_symbols,
3614 get_global_symbols, record_debugformat, record_producer,
3615 push_context, pop_context, end_symtab_get_static_block,
3616 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
3618 <record_pending_block, finish_block_internal, make_blockvector,
3619 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
3623 2018-05-22 Tom Tromey <tom@tromey.com>
3625 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3627 (finish_block_internal): Update.
3629 2018-07-20 Tom Tromey <tom@tromey.com>
3631 * buildsym.c (record_pending_block): Move earlier. Remove objfile
3633 (finish_block_internal): Update.
3635 2018-07-20 Tom Tromey <tom@tromey.com>
3637 * buildsym.h (EXTERN): Don't define or undef.
3638 * buildsym.c (EXTERN): Don't define.
3640 2018-07-20 Tom Tromey <tom@tromey.com>
3642 * buildsym.c: Remove TODO comment.
3644 2018-07-20 Tom Tromey <tom@tromey.com>
3646 * coffread.c (coff_symtab_read): Update.
3647 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
3648 (xcoff_new_init): Update.
3649 * mipsread.c (mipscoff_new_init): Update.
3650 * mdebugread.c (mdebug_build_psymtabs): Update.
3651 * elfread.c (elf_new_init): Update.
3652 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
3654 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
3655 (coffstab_build_psymtabs, elfstab_build_psymtabs)
3656 (stabsect_build_psymtabs): Update.
3657 * buildsym.h (buildsym_init): Don't declare.
3658 * buildsym.c: Update comment.
3659 (prepare_for_building): Remove.
3660 (start_symtab, restart_symtab): Update.
3661 (reset_symtab_globals): Update comment.
3662 (buildsym_init): Remove.
3664 2018-07-20 Tom Tromey <tom@tromey.com>
3666 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
3667 * stabsread.c (patch_block_stabs, define_symbol, read_type)
3668 (read_enum_type, common_block_start, common_block_end)
3669 (cleanup_undefined_types_1, finish_global_stabs): Update.
3670 * mdebugread.c (psymtab_to_symtab_1): Update.
3671 * dwarf2read.c (fixup_go_packaging, read_func_scope)
3672 (read_lexical_block_scope, new_symbol): Update.
3673 * dbxread.c (process_one_symbol): Update.
3674 * coffread.c (coff_symtab_read, process_coff_symbol)
3675 (coff_read_enum_type): Update.
3676 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
3678 (get_local_symbols, get_file_symbols, get_global_symbols): New
3680 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
3682 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
3683 (~scoped_free_pendings): Update.
3684 (finish_block, prepare_for_building, reset_symtab_globals)
3685 (end_symtab_get_static_block, end_symtab_with_blockvector)
3686 (augment_type_symtab, push_context): Update.
3687 (get_local_symbols, get_file_symbols, get_global_symbols): New
3689 (buildsym_init): Update.
3691 2018-07-20 Tom Tromey <tom@tromey.com>
3693 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
3694 (process_full_type_unit): Likewise.
3695 (dwarf2_start_symtab): Set list_in_scope.
3697 2018-07-20 Tom Tromey <tom@tromey.com>
3699 * dwarf2read.c (process_psymtab_comp_unit_reader)
3700 (build_type_psymtabs_reader): Do not set list_in_scope.
3702 2018-07-20 Tom Tromey <tom@tromey.com>
3704 * buildsym.c (free_pendings): Remove.
3705 (add_symbol_to_list, scoped_free_pendings)
3706 (finish_block_internal, buildsym_init): Update.
3708 2018-07-20 Tom Tromey <tom@tromey.com>
3710 * xcoffread.c (read_xcoff_symtab): Update.
3711 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
3713 * dbxread.c (process_one_symbol): Update.
3714 * coffread.c (coff_symtab_read): Update.
3715 * buildsym.h (finish_block): Update.
3716 * buildsym.c (finish_block): Remove "listhead" argument.
3717 (end_symtab_get_static_block): Update.
3719 2018-07-20 Tom Tromey <tom@tromey.com>
3721 * buildsym.h (class scoped_free_pendings): Remove constructor.
3722 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
3724 <m_pending_block_obstack, m_pending_blocks>: New members.
3725 (pending_block_obstack, pending_blocks): Remove.
3726 (scoped_free_pendings::scoped_free_pendings): Default.
3727 (~scoped_free_pendings): Update.
3728 (free_pending_blocks): Remove.
3729 (finish_block_internal, record_pending_block, make_blockvector)
3730 (end_symtab_get_static_block, augment_type_symtab, push_context)
3731 (buildsym_init): Update.
3733 2018-07-20 Tom Tromey <tom@tromey.com>
3735 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
3736 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
3738 (pending_addrmap, pending_addrmap_obstack)
3739 (pending_addrmap_interesting): Remove.
3740 (scoped_free_pendings, record_block_range, make_blockvector)
3741 (prepare_for_building, reset_symtab_globals, buildsym_init):
3744 2018-07-20 Tom Tromey <tom@tromey.com>
3746 * xcoffread.c (process_linenos): Update.
3747 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
3748 * mdebugread.c (psymtab_to_symtab_1): Update.
3749 * dwarf2read.c (setup_type_unit_groups)
3750 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
3751 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
3752 * dbxread.c (process_one_symbol): Update.
3753 * coffread.c (coff_symtab_read, enter_linenos)
3754 (process_coff_symbol): Update.
3755 * buildsym.h (current_subfile): Don't declare.
3756 (get_current_subfile): Declare.
3757 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
3759 (start_subfile, free_buildsym_compunit, push_subfile)
3760 (prepare_for_building, start_symtab): Update.
3761 (get_current_subfile): New function.
3763 2018-07-20 Tom Tromey <tom@tromey.com>
3765 * coffread.c (coff_symtab_read): Update.
3766 * xcoffread.c (read_xcoff_symtab): Update.
3767 * dwarf2read.c (new_symbol): Update.
3768 (read_func_scope, read_lexical_block_scope): Update.
3769 * dbxread.c (process_one_symbol): Update.
3770 * buildsym.h (context_stack, context_stack_depth): Don't declare.
3771 (outermost_context_p): Remove macro.
3772 (outermost_context_p, get_current_context_stack)
3773 (get_context_stack_depth): Declare.
3774 (pop_context): Return struct context_stack.
3775 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
3777 (context_stack_size): Remove.
3778 (INITIAL_CONTEXT_STACK_SIZE): Remove.
3779 (prepare_for_building, end_symtab_get_static_block)
3780 (augment_type_symtab, push_context): Update.
3781 (pop_context): Return struct context_stack.
3782 (outermost_context_p, get_current_context_stack)
3783 (get_context_stack_depth): New functions.
3784 (buildsym_init): Update.
3786 2018-07-20 Tom Tromey <tom@tromey.com>
3788 * rust-exp.y: Now a pure parser. Update all rules.
3789 (%union): Move earlier.
3790 (current_parser, work_obstack): Remove globals.
3791 (rust_parser, ~rust_parser): Update.
3792 (class rust_parser) <copy_name, concat3, crate_name, super_name,
3793 lex_character, lex_number, lex_string, lex_identifier,
3794 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
3795 convert_name, convert_params_to_expression,
3796 convert_ast_to_expression, ast_basic_type, ast_operation,
3797 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
3798 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
3799 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
3800 ast_array_type, ast_slice_type, ast_reference_type,
3801 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
3802 (rust_parse): Update.
3803 (rustyyerror, rustyylex): Add parser parameter.
3804 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
3805 (rust_lex_stringish_test, rust_lex_test_sequence)
3806 (rust_lex_test_trailing_dot, rust_lex_test_completion)
3807 (rust_lex_test_push_back, rust_lex_tests): Update.
3809 2018-07-19 Pedro Alves <palves@redhat.com>
3811 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
3812 gdb::unique_xmalloc_ptr.
3813 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
3814 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
3815 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
3816 copy-initialization.
3817 * guile/scm-pretty-print.c (ppscm_print_children): Use
3818 gdb::unique_xmalloc_ptr instead of cleanups.
3819 (gdbscm_apply_val_pretty_printer): Remove cleanups.
3820 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
3821 gdb::unique_xmalloc_ptr.
3822 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3823 Adjust to use gdb::unique_xmalloc_ptr.
3824 * guile/scm-utils.c (extract_arg): Adjust.
3825 * guile/scm-value.c (gdbscm_value_field): Adjust to use
3826 gdb::unique_xmalloc_ptr instead of a cleanup.
3828 2018-07-19 Tom Tromey <tom@tromey.com>
3830 * utils.c (do_value_free_to_mark)
3831 (make_cleanup_value_free_to_mark): Remove.
3832 * utils.h (make_cleanup_value_free_to_mark): Remove.
3834 2018-07-19 Pedro Alves <palves@redhat.com>
3836 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
3837 forwarding reference.
3839 2018-07-18 Pedro Alves <palves@redhat.com>
3841 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
3842 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
3845 2018-07-18 Pedro Alves <palves@redhat.com>
3847 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
3849 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
3851 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
3852 directly instead of a cleanup.
3853 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
3854 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
3855 (vlscm_binop_gdbthrow): New, factored out from ...
3856 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
3857 (vlscm_rich_compare): Use gdbscm_wrap.
3858 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
3859 instead of a cleanup.
3860 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
3862 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
3863 Use xfree directly instead of a cleanup.
3864 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
3865 Adjust to use gdbscm_wrap and scoped_value_mark.
3866 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
3867 (gdbscm_value_address, gdbscm_value_dereference)
3868 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
3870 (gdbscm_value_dynamic_type): Use scoped_value_mark.
3871 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
3873 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
3874 gdbscm_wrap and scoped_value_mark.
3875 (gdbscm_value_to_string): Use xfree directly instead of a
3876 cleanup. Move 'buffer' unique_ptr to TRY scope.
3877 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
3878 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
3880 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
3881 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
3883 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
3886 2018-07-18 Tom de Vries <tdevries@suse.de>
3888 * findvar.c (default_read_var_value): Also resolve dynamic type for
3889 LOC_OPTIMIZED_OUT vars.
3891 2018-07-18 Maciej W. Rozycki <macro@mips.com>
3893 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
3896 2018-07-17 Tom Tromey <tom@tromey.com>
3898 * guile/scm-param.c (pascm_set_func, pascm_show_func)
3899 (compute_enum_list, pascm_set_param_value_x)
3900 (gdbscm_parameter_value): Update.
3901 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
3902 (gdbscm_scm_to_host_string): Update.
3903 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
3905 * guile/scm-cmd.c (cmdscm_add_completion): Update.
3906 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
3907 * guile/scm-string.c (gdbscm_scm_to_string): Return
3909 (gdbscm_scm_to_host_string): Likewise.
3911 2018-07-17 Tom Tromey <tom@tromey.com>
3913 * guile/guile.c (gdbscm_eval_from_control_command): Update.
3914 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
3915 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
3916 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
3919 2018-07-17 Tom Tromey <tom@tromey.com>
3921 * guile/scm-param.c (pascm_signal_setshow_error): Update.
3922 * guile/guile-internal.h (gdbscm_exception_message_to_string):
3924 * guile/scm-cmd.c (cmdscm_function): Update.
3925 * guile/scm-pretty-print.c
3926 (ppscm_print_exception_unless_memory_error): Update.
3927 * guile/scm-exception.c (gdbscm_exception_message_to_string):
3928 Return unique_xmalloc_ptr.
3930 2018-07-17 Tom Tromey <tom@tromey.com>
3932 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
3935 2018-07-17 Jim Wilson <jimw@sifive.com>
3937 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
3938 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
3939 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
3940 unecessary braces after EF_RISCV_RVC test. Delete call to
3941 set_gdbarch_decr_pc_after_break.
3943 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
3944 RISCV_LAST_FP_REGNUM + 1.
3945 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
3947 2018-07-17 Tom Tromey <tom@tromey.com>
3949 * configure.ac: Remove --disable-gdbcli.
3950 * configure: Rebuild.
3951 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
3952 (SUBDIR_CLI_CFLAGS): Remove.
3953 (SFILES): Use SUBDIR_CLI_SRCS.
3954 (COMMON_OBS): Use SUBDIR_CLI_OBS.
3956 2018-07-17 Tom Tromey <tom@tromey.com>
3959 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
3961 2018-07-16 Jim Wilson <jimw@sifive.com>
3963 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
3965 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3967 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
3969 (libunwind_frame_sniffer): Likewise.
3970 (libunwind_frame_prev_register): Likewise.
3971 (libunwind_sigtramp_frame_sniffer): Likewise.
3972 * ia64-tdep.c (ia64_access_reg): Likewise.
3973 (ia64_access_rse_reg): Likewise.
3974 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
3975 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
3977 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3979 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
3981 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
3983 * remote-sim.c (gdbsim_target::close,
3984 gdbsim_target::mourn_inferior): Remove unused variables.
3986 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
3988 * ia64-tdep.c (ktab_buf): New global.
3989 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
3990 (get_kernel_table): Adjust.
3992 2018-07-16 Tom Tromey <tom@tromey.com>
3994 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
3995 * dwarf2read.c (using_directives, new_symbol): Use
3996 outermost_context_p.
3997 * dbxread.c (process_one_symbol): Use outermost_context_p.
3998 * coffread.c (coff_symtab_read): Use outermost_context_p.
4000 2018-07-16 Tom Tromey <tom@tromey.com>
4002 * dwarf2read.c (using_directives, read_func_scope)
4003 (read_lexical_block_scope): Update.
4004 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4005 * buildsym.h (local_using_directives, global_using_directives):
4007 (get_local_using_directives, set_local_using_directives)
4008 (get_global_using_directives): Declare.
4009 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4010 m_global_using_directives>: New members.
4011 (finish_block_internal, prepare_for_building)
4012 (reset_symtab_globals, end_symtab_get_static_block)
4013 (push_context): Update.
4014 (get_local_using_directives, set_local_using_directives)
4015 (get_global_using_directives): New functions.
4016 (buildsym_init): Update.
4018 2018-07-16 Tom Tromey <tom@tromey.com>
4020 * xcoffread.c (xcoff_initial_scan): Don't call
4021 free_pending_blocks.
4022 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4023 * buildsym.h (class scoped_free_pendings): Add constructor.
4024 (free_pending_blocks): Don't declare.
4025 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4026 (free_pending_blocks): Now static.
4028 2018-07-16 Tom Tromey <tom@tromey.com>
4030 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4031 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4033 (struct subfile_stack): Remove.
4034 (subfile_stack): Remove.
4035 (push_subfile, pop_subfile, buildsym_init): Update.
4037 2018-07-16 Tom Tromey <tom@tromey.com>
4039 * buildsym.c (push_subfile): Use gdb_assert.
4040 (pop_subfile): Use gdb_assert.
4042 2018-07-16 Tom Tromey <tom@tromey.com>
4044 * buildsym.h (merge_symbol_lists): Remove.
4045 * buildsym.c (merge_symbol_lists): Remove.
4047 2018-07-16 Tom Tromey <tom@tromey.com>
4049 * stabsread.c (scan_file_globals): Update comment.
4050 * stabsread.h (scan_file_globals): Move from buildsym.h.
4051 * buildsym.h (scan_file_globals): Move to stabsread.h.
4053 2018-07-16 Tom Tromey <tom@tromey.com>
4055 * xcoffread.c (xcoff_new_init): Update.
4056 * mipsread.c (mipscoff_new_init): Update.
4057 * mdebugread.c (mdebug_build_psymtabs): Update.
4058 * elfread.c (elf_new_init): Update.
4059 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4060 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4061 * buildsym.h (buildsym_new_init): Don't declare.
4062 * buildsym.c (buildsym_new_init): Remove.
4064 2018-07-16 Tom Tromey <tom@tromey.com>
4066 * stabsread.h (within_function): Move from buildsym.h.
4067 * stabsread.c (start_stabs): Clear within_function.
4068 * coffread.c (coff_start_symtab): Clear within_function.
4069 * buildsym.h (within_function): Move to stabsread.h.
4070 * buildsym.c (prepare_for_building): Update.
4072 2018-07-16 Tom Tromey <tom@tromey.com>
4074 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4075 * dwarf2read.c (dwarf2_start_symtab): Don't set
4076 processing_gcc_compilation.
4077 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4079 2018-07-16 Tom Tromey <tom@tromey.com>
4081 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4082 (next_symbol_text_func): Move from buildsym.h.
4083 * stabsread.c (hashname): Move from buildsym.c.
4084 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4085 (next_symbol_text_func, hashname): Move to stabsread.h.
4086 * buildsym.c: Don't include bcache.h
4087 (hashname): Move to stasbread.c.
4089 2018-07-16 Tom Tromey <tom@tromey.com>
4091 * buildsym.h (context_stack_size): Don't declare.
4092 * buildsym.c (context_stack_size): New global.
4094 2018-07-16 Tom Tromey <tom@tromey.com>
4096 * dbxread.c (processing_acc_compilation): New global.
4097 * buildsym.h (processing_acc_compilation): Don't declare.
4099 2018-07-16 Tom Tromey <tom@tromey.com>
4101 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4102 * dbxread.c (read_ofile_symtab): Update.
4103 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4104 * buildsym.h (last_source_start_addr): Remove.
4105 (set_last_source_start_addr, get_last_source_start_addr):
4107 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4109 (struct buildsym_compunit) <m_last_source_start_addr>: New
4111 (prepare_for_building): Remove start_addr parameter.
4112 (start_symtab, restart_symtab, end_symtab_get_static_block)
4113 (end_symtab_with_blockvector): Update.
4114 (set_last_source_start_addr, get_last_source_start_addr): New
4117 2018-07-16 Tom Tromey <tom@tromey.com>
4119 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4121 (have_line_numbers): Remove.
4122 (record_line, prepare_for_building, end_symtab_get_static_block)
4123 (augment_type_symtab): Update.
4125 2018-07-16 Tom Tromey <tom@tromey.com>
4127 * buildsym.c (~buildsym_compunit): Free the macro table.
4128 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4130 <m_pending_macros>: New member.
4131 (pending_macros): Remove.
4132 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4133 (reset_symtab_globals, end_symtab_get_static_block)
4134 (end_symtab_with_blockvector, augment_type_symtab)
4135 (buildsym_init): Update.
4137 2018-07-16 Tom Tromey <tom@tromey.com>
4139 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4141 (buildsym_compunit::set_last_source_file): New method.
4142 <m_last_source_file>: New member.
4143 (prepare_for_building): Remove "name" parameter.
4144 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4145 (last_source_file): Remove.
4146 (set_last_source_file, get_last_source_file): Update.
4148 2018-07-16 Tom Tromey <tom@tromey.com>
4150 * buildsym.c (prepare_for_building): Add assert.
4152 2018-07-16 Tom Tromey <tom@tromey.com>
4154 * buildsym.c (~buildsym_compunit): Update.
4155 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4156 (start_subfile, patch_subfile_names)
4157 (end_symtab_with_blockvector): Update.
4159 2018-07-16 Tom Tromey <tom@tromey.com>
4161 * buildsym.c (struct buildsym_compunit): Add constructor,
4162 destructor, initializers.
4163 (start_buildsym_compunit): Remove.
4164 (free_buildsym_compunit): Use "delete".
4165 (start_symtab, restart_symtab): Use "new".
4167 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4169 * symfile.c (set_objfile_default_section_offset): Remove struct
4172 2018-07-14 Stafford Horne <shorne@gmail.com>
4174 * (Responsible Maintainers): Add myself as or1k maintainer.
4176 2018-07-13 Tom Tromey <tom@tromey.com>
4178 * symfile.c (set_objfile_default_section_offset): Use extra braces
4181 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4183 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4186 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4188 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4189 unittests/cli-utils-selftests.c
4190 * unittests/cli-utils-selftests.c: New file.
4192 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4194 * NEWS: Mention new commands. Mention change to 'thread apply'.
4196 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4198 * thread.c (thr_try_catch_cmd): New function.
4199 (thread_apply_all_command): Handle qcs flags.
4200 (thread_apply_command): Handle qcs flags.
4201 (taas_command): New function.
4202 (tfaas_command): New function.
4203 (_initialize_thread): Update to setup the new commands 'taas
4204 and 'tfaas'. Change doc string for 'thread apply'.
4206 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4208 * stack.c: (trailing_outermost_frame): New function, mostly
4209 extracted from backtrace_command_1.
4210 (leading_innermost_frame): New function.
4211 (backtrace_command_1): Update to call trailing_outermost_frame.
4212 (frame_apply_command_count): New function.
4213 (frame_apply_level_command): New function.
4214 (frame_apply_all_command): New function.
4215 (frame_apply_command): New function.
4216 (faas_command): New function.
4217 (frame_cmd_list): New variable.
4218 (_initialize_stack): Update to setup the new commands 'frame apply'
4221 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4223 * cli-utils.c (number_or_range_parser::get_number): Only handle
4224 numbers or convenience var as numbers.
4225 (parse_flags): New function.
4226 (parse_flags_qcs): New function.
4227 (number_or_range_parser::finished): Ensure parsing end is detected
4228 before end of string.
4229 * cli-utils.h (parse_flags): New function.
4230 (parse_flags_qcs): New function.
4231 (number_or_range_parser): Remove m_finished bool.
4232 (number_or_range_parser::skip_range): Set m_in_range to false.
4234 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4236 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4239 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4240 Jan Kratochvil <jan.kratochvil@redhat.com>
4241 Paul Fertser <fercerpav@gmail.com>
4242 Tsutomu Seki <sekiriki@gmail.com>
4243 Pedro Alves <palves@redhat.com>
4245 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4246 'unittests/parse-connection-spec-selftests.c'.
4247 (COMMON_SFILES): Add 'common/netstuff.c'.
4248 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4249 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4250 * common/netstuff.c: New file.
4251 * common/netstuff.h: New file.
4252 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4253 (wait_for_connect): Update comment. New parameter
4254 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4255 Use 'sock' directly instead of 'scb->fd'.
4256 (try_connect): New function, with code from 'net_open'.
4257 (net_open): Rewrite main loop to deal with multiple
4258 sockets/addresses. Handle IPv6-style hostnames; implement
4259 support for IPv6 connections.
4260 * unittests/parse-connection-spec-selftests.c: New file.
4262 2018-07-11 Pedro Alves <palves@redhat.com>
4265 * remote.c (remote_target::remote_detach_pid): Call
4266 set_current_process.
4268 2018-07-11 Pedro Alves <palves@redhat.com>
4270 * h8300-tdep.c (h8300_gdbarch_init): Remove
4271 set_gdbarch_ecoff_reg_to_regnum calls.
4273 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4276 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4277 offsets/sizes for static members of a class/struct.
4279 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4281 * target-descriptions.c (tdesc_register_bitsize): Rename.
4282 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4283 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4284 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4286 2018-07-10 Tom Tromey <tom@tromey.com>
4288 * breakpoint.c (moribund_locations): Now static and a
4290 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4291 (build_bpstat_chain, update_global_location_list)
4292 (breakpoint_retire_moribund): Update.
4293 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4296 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4298 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4299 (riscv_register_reggroup_p): Use new function, remove unneeded
4301 (riscv_push_dummy_call): Extend assert to compare against xlen or
4302 flen based on register type.
4304 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4306 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4308 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4310 * remote.c (show_hardware_watchpoint_limit): New function.
4311 (show_hardware_watchpoint_length_limit): New function.
4312 (show_hardware_breakpoint_limit): New function.
4313 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4314 where appropriate, update help text.
4316 2018-07-09 Tom Tromey <tom@tromey.com>
4318 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4319 (CLIBS): Don't mention NAT_CLIBS.
4321 2018-07-09 Tom Tromey <tom@tromey.com>
4323 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4324 (LIBGDB_OBS, clean mostlyclean): Update.
4325 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4327 2018-07-09 Tom Tromey <tom@tromey.com>
4329 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4330 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4331 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4333 2018-07-09 Tom Tromey <tom@tromey.com>
4335 * Makefile.in (ALLDEPFILES): Remove exec.c.
4336 (COMMON_OBS): Remove exec.o.
4337 (COMMON_SFILES): Add exec.c.
4339 2018-07-09 Tom Tromey <tom@tromey.com>
4341 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4343 2018-07-09 Tom Tromey <tom@tromey.com>
4345 * Makefile.in (clean mostlyclean): Remove stamp-version.
4346 (version.c): Depend on stamp-version.
4347 (stamp-version): New rule, from version.c rule.
4349 2018-07-09 Tom Tromey <tom@tromey.com>
4351 * Makefile.in (init.c): Depend on stamp-init.
4352 (stamp-init): New rule, from init.c rule.
4353 (clean mostlyclean): Remove stamp-init.
4355 2018-07-09 Tom Tromey <tom@tromey.com>
4357 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4358 SUBDIR_GCC_COMPILE_SRCS.
4360 2018-07-09 Tom Tromey <tom@tromey.com>
4362 * Makefile.in (init.c): Remove some unused sed rules.
4364 2018-07-09 Tom Tromey <tom@tromey.com>
4366 * Makefile.in (TSOBS): Remove.
4367 (INIT_FILES): Update.
4368 (LIBGDB_OBS): Update.
4369 (COMMON_SFILES): Add inflow.c.
4370 (SFILES): Remove inflow.c.
4372 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4374 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4376 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4378 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4379 get_saveloc_name, is_signal_frame_name, step_name,
4380 init_remote_name, create_addr_space_name,
4381 destroy_addr_space_name, search_unwind_table_name,
4382 find_dyn_list_name): Constify.
4384 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4386 * darwin-nat.c (darwin_pthread_kill): New function.
4387 (darwin_resume_thread): Use darwin_pthread_kill.
4389 2018-07-05 Tom de Vries <tdevries@suse.de>
4391 * macroexp.c (macro_buffer) <operator=>: New member function.
4393 2018-07-04 Tom Tromey <tom@tromey.com>
4395 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4397 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4399 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4400 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4401 * maint.c: Likewise.
4404 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4406 * NEWS: Create a new section for the next release branch.
4407 Rename the section of the current branch, now that it has
4410 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4412 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4413 * version.in: Bump version to 8.2.50.DATE-git.
4415 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4416 Pedro Alves <palves@redhat.com>
4418 * linux-nat.c (linux_init_ptrace): Rename to ...
4419 (linux_init_ptrace_procfs): ... this. Call
4420 linux_proc_init_warnings.
4421 (linux_nat_target::post_attach)
4422 (linux_nat_target::post_startup_inferior): Adjust.
4423 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4424 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4426 2018-07-04 Tom de Vries <tdevries@suse.de>
4428 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4430 (read_comp_unit_head): ... here.
4432 2018-07-03 Tom Tromey <tom@tromey.com>
4434 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4435 (stop_tracing, tstatus_command)
4436 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4437 (print_one_static_tracepoint_marker): Update.
4438 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4440 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4442 (all_tracepoints, static_tracepoints_here): Return std::vector.
4444 2018-07-03 Tom Tromey <tom@tromey.com>
4446 * common/ptid.c (ptid_equal): Remove.
4447 * common/ptid.h (ptid_equal): Don't declare.
4448 * ada-tasks.c: Update.
4449 * breakpoint.c: Update.
4450 * common/agent.c: Update.
4451 * corelow.c: Update.
4452 * darwin-nat-info.c: Update.
4453 * darwin-nat.c: Update.
4455 * dtrace-probe.c: Update.
4456 * dummy-frame.c: Update.
4457 * fbsd-nat.c: Update.
4459 * gdbthread.h: Update.
4460 * gnu-nat.c: Update.
4461 * go32-nat.c: Update.
4462 * inf-loop.c: Update.
4463 * inf-ptrace.c: Update.
4464 * infcall.c: Update.
4468 * linux-fork.c: Update.
4469 * linux-nat.c: Update.
4470 * linux-thread-db.c: Update.
4471 * mi/mi-cmd-var.c: Update.
4472 * mi/mi-interp.c: Update.
4473 * mi/mi-main.c: Update.
4474 * nto-procfs.c: Update.
4475 * ppc-linux-tdep.c: Update.
4477 * python/py-inferior.c: Update.
4478 * python/py-record-btrace.c: Update.
4479 * python/py-record.c: Update.
4480 * ravenscar-thread.c: Update.
4481 * regcache.c: Update.
4482 * remote-sim.c: Update.
4484 * sol-thread.c: Update.
4487 * tui/tui-stack.c: Update.
4489 * windows-nat.c: Update.
4490 * windows-tdep.c: Update.
4492 2018-07-03 Tom Tromey <tom@tromey.com>
4494 * common/ptid.c (ptid_match): Remove.
4495 * common/ptid.h (ptid_match): Don't declare.
4496 * fbsd-nat.c: Update.
4499 * linux-nat.c: Update.
4500 * record-btrace.c: Update.
4501 * regcache.c: Update.
4504 2018-07-03 Tom Tromey <tom@tromey.com>
4506 * common/ptid.c (ptid_tid_p): Remove.
4507 * common/ptid.h (ptid_tid_p): Don't declare.
4508 * sol-thread.c: Update.
4510 2018-07-03 Tom Tromey <tom@tromey.com>
4512 * common/ptid.c (ptid_lwp_p): Remove.
4513 * common/ptid.h (ptid_lwp_p): Don't declare.
4514 * fbsd-nat.c: Update.
4515 * linux-nat.c: Update.
4516 * nat/linux-procfs.c: Update.
4517 * nat/x86-linux-dregs.c: Update.
4518 * sol-thread.c: Update.
4520 2018-07-03 Tom Tromey <tom@tromey.com>
4522 * common/ptid.c (ptid_is_pid): Remove.
4523 * common/ptid.h (ptid_is_pid): Don't declare.
4525 * linux-nat.c: Update.
4526 * mi/mi-interp.c: Update.
4530 2018-07-03 Tom Tromey <tom@tromey.com>
4532 * common/ptid.c (ptid_get_tid): Remove.
4533 * common/ptid.h (ptid_get_tid): Don't declare.
4534 * ada-tasks.c: Update.
4535 * aix-thread.c: Update.
4536 * bsd-uthread.c: Update.
4537 * darwin-nat.c: Update.
4538 * fbsd-nat.c: Update.
4539 * i386-darwin-nat.c: Update.
4541 * linux-tdep.c: Update.
4542 * nto-procfs.c: Update.
4543 * ppc-ravenscar-thread.c: Update.
4544 * python/py-infthread.c: Update.
4545 * ravenscar-thread.c: Update.
4546 * sol-thread.c: Update.
4547 * sparc-ravenscar-thread.c: Update.
4548 * windows-nat.c: Update.
4550 2018-07-03 Tom Tromey <tom@tromey.com>
4552 * common/ptid.c (ptid_get_lwp): Remove.
4553 * common/ptid.h (ptid_get_lwp): Don't declare.
4554 * aarch64-linux-nat.c: Update.
4555 * ada-tasks.c: Update.
4556 * aix-thread.c: Update.
4557 * amd64-linux-nat.c: Update.
4558 * arm-linux-nat.c: Update.
4559 * corelow.c: Update.
4560 * fbsd-nat.c: Update.
4561 * fbsd-tdep.c: Update.
4562 * gnu-nat.c: Update.
4563 * i386-cygwin-tdep.c: Update.
4564 * i386-gnu-nat.c: Update.
4565 * i386-linux-nat.c: Update.
4566 * ia64-linux-nat.c: Update.
4567 * inf-ptrace.c: Update.
4569 * linux-fork.c: Update.
4570 * linux-nat.c: Update.
4571 * linux-tdep.c: Update.
4572 * linux-thread-db.c: Update.
4573 * mips-linux-nat.c: Update.
4574 * nat/aarch64-linux-hw-point.c: Update.
4575 * nat/aarch64-linux.c: Update.
4576 * nat/linux-btrace.c: Update.
4577 * nat/linux-osdata.c: Update.
4578 * nat/linux-procfs.c: Update.
4579 * nat/x86-linux-dregs.c: Update.
4580 * obsd-nat.c: Update.
4581 * ppc-fbsd-nat.c: Update.
4582 * ppc-linux-nat.c: Update.
4584 * python/py-infthread.c: Update.
4585 * ravenscar-thread.c: Update.
4587 * s390-linux-nat.c: Update.
4588 * sol-thread.c: Update.
4589 * sol2-tdep.c: Update.
4590 * spu-linux-nat.c: Update.
4591 * x86-linux-nat.c: Update.
4592 * xtensa-linux-nat.c: Update.
4594 2018-07-03 Tom Tromey <tom@tromey.com>
4596 * common/ptid.c (ptid_get_pid): Remove.
4597 * common/ptid.h (ptid_get_pid): Don't declare.
4598 * aarch64-linux-nat.c: Update.
4599 * ada-lang.c: Update.
4600 * aix-thread.c: Update.
4601 * alpha-bsd-nat.c: Update.
4602 * amd64-fbsd-nat.c: Update.
4603 * amd64-linux-nat.c: Update.
4604 * arm-linux-nat.c: Update.
4605 * arm-nbsd-nat.c: Update.
4607 * break-catch-syscall.c: Update.
4608 * breakpoint.c: Update.
4609 * bsd-uthread.c: Update.
4610 * corelow.c: Update.
4612 * darwin-nat.c: Update.
4613 * fbsd-nat.c: Update.
4614 * fbsd-tdep.c: Update.
4616 * gnu-nat.c: Update.
4617 * hppa-nbsd-nat.c: Update.
4618 * hppa-obsd-nat.c: Update.
4619 * i386-fbsd-nat.c: Update.
4620 * ia64-linux-nat.c: Update.
4621 * inf-ptrace.c: Update.
4623 * inferior.c: Update.
4624 * inferior.h: Update.
4627 * linux-fork.c: Update.
4628 * linux-nat.c: Update.
4629 * linux-tdep.c: Update.
4630 * linux-thread-db.c: Update.
4631 * m68k-bsd-nat.c: Update.
4632 * mi/mi-interp.c: Update.
4633 * mi/mi-main.c: Update.
4634 * mips-linux-nat.c: Update.
4635 * mips-nbsd-nat.c: Update.
4636 * mips64-obsd-nat.c: Update.
4637 * nat/aarch64-linux-hw-point.c: Update.
4638 * nat/aarch64-linux.c: Update.
4639 * nat/linux-btrace.c: Update.
4640 * nat/linux-osdata.c: Update.
4641 * nat/linux-procfs.c: Update.
4642 * nat/x86-linux-dregs.c: Update.
4643 * nto-procfs.c: Update.
4644 * obsd-nat.c: Update.
4645 * ppc-linux-nat.c: Update.
4646 * ppc-nbsd-nat.c: Update.
4647 * ppc-obsd-nat.c: Update.
4648 * proc-service.c: Update.
4650 * python/py-inferior.c: Update.
4651 * python/py-infthread.c: Update.
4652 * ravenscar-thread.c: Update.
4654 * remote-sim.c: Update.
4656 * rs6000-nat.c: Update.
4657 * s390-linux-nat.c: Update.
4658 * sh-nbsd-nat.c: Update.
4659 * sol-thread.c: Update.
4660 * sparc-nat.c: Update.
4661 * sparc64-tdep.c: Update.
4662 * spu-linux-nat.c: Update.
4663 * spu-tdep.c: Update.
4664 * target-debug.h: Update.
4667 * tid-parse.c: Update.
4668 * tracefile-tfile.c: Update.
4669 * vax-bsd-nat.c: Update.
4670 * windows-nat.c: Update.
4671 * x86-linux-nat.c: Update.
4672 * x86-nat.c: Update.
4674 2018-07-03 Tom Tromey <tom@tromey.com>
4676 * common/ptid.c (pid_to_ptid): Remove.
4677 * common/ptid.h (pid_to_ptid): Don't declare.
4678 * aix-thread.c: Update.
4679 * arm-linux-nat.c: Update.
4680 * common/ptid.c: Update.
4681 * common/ptid.h: Update.
4682 * corelow.c: Update.
4684 * darwin-nat.c: Update.
4685 * fbsd-nat.c: Update.
4686 * fork-child.c: Update.
4687 * gnu-nat.c: Update.
4688 * go32-nat.c: Update.
4689 * inf-ptrace.c: Update.
4691 * inferior.c: Update.
4693 * linux-fork.c: Update.
4694 * linux-nat.c: Update.
4695 * nat/aarch64-linux-hw-point.c: Update.
4696 * nat/fork-inferior.c: Update.
4697 * nat/x86-linux-dregs.c: Update.
4698 * nto-procfs.c: Update.
4699 * obsd-nat.c: Update.
4701 * progspace.c: Update.
4703 * rs6000-nat.c: Update.
4704 * s390-linux-nat.c: Update.
4705 * sol-thread.c: Update.
4706 * spu-linux-nat.c: Update.
4709 * tracefile-tfile.c: Update.
4710 * windows-nat.c: Update.
4712 2018-07-03 Tom Tromey <tom@tromey.com>
4714 * common/ptid.h (ptid_build): Don't declare.
4715 * common/ptid.c (ptid_build): Remove.
4716 * aix-thread.c: Update.
4717 * bsd-kvm.c: Update.
4718 * bsd-uthread.c: Update.
4719 * common/agent.c: Update.
4720 * common/ptid.c: Update.
4721 * common/ptid.h: Update.
4722 * corelow.c: Update.
4723 * darwin-nat.c: Update.
4724 * fbsd-nat.c: Update.
4725 * gnu-nat.c: Update.
4726 * linux-fork.c: Update.
4727 * linux-nat.c: Update.
4728 * linux-thread-db.c: Update.
4729 * nat/linux-osdata.c: Update.
4730 * nat/linux-procfs.c: Update.
4731 * nto-procfs.c: Update.
4732 * obsd-nat.c: Update.
4733 * proc-service.c: Update.
4735 * ravenscar-thread.c: Update.
4736 * remote-sim.c: Update.
4738 * sol-thread.c: Update.
4740 * windows-nat.c: Update.
4742 2018-07-03 Tom Tromey <tom@tromey.com>
4744 * infrun.c (follow_exec): Use exit_inferior_silent.
4745 * inferior.c (exit_inferior_num_silent): Remove.
4746 * inferior.h (exit_inferior_num_silent): Don't declare.
4748 2018-07-03 Tom Tromey <tom@tromey.com>
4751 * darwin-nat.c (darwin_attach_pid): Reset inferior and
4752 inferior_ptid on error.
4754 2018-07-02 Maciej W. Rozycki <macro@mips.com>
4755 Simon Marchi <simon.marchi@polymtl.ca>
4758 * disasm.h (gdb_disassembler): Add
4759 `m_disassembler_options_holder'. member
4760 * disasm.c (get_all_disassembler_options): New function.
4761 (gdb_disassembler::gdb_disassembler): Use it.
4762 (gdb_buffered_insn_length_init_dis): Likewise.
4763 (gdb_buffered_insn_length): Adjust accordingly.
4764 (set_disassembler_options): Handle options with arguments.
4765 (show_disassembler_options_sfunc): Likewise. Add a leading new
4766 line if showing options with descriptions.
4767 (disassembler_options_completer): Adapt to using the
4768 `disasm_options_and_args_t' structure.
4769 * mips-tdep.c (mips_disassembler_options): New variable.
4770 (mips_disassembler_options_o32): Likewise.
4771 (mips_disassembler_options_n32): Likewise.
4772 (mips_disassembler_options_n64): Likewise.
4773 (gdb_print_insn_mips): Don't set `disassembler_options'.
4774 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
4776 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
4777 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
4778 `gdbarch_disassembler_options_implicit' and
4779 `gdbarch_valid_disassembler_options'.
4780 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
4781 `disasm_options_and_args_t' structure.
4782 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
4784 (valid_disassembler_options): Switch from `disasm_options_t' to
4785 the `disasm_options_and_args_t' structure.
4786 * NEWS: Document `set disassembler-options' support for the MIPS
4788 * gdbarch.h: Regenerate.
4789 * gdbarch.c: Regenerate.
4791 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4793 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
4795 2018-06-29 Joel Brobecker <brobecker@adacore.com>
4797 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
4798 parameter in call to amd64_target_description.
4799 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
4800 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
4801 (amd64fbsd_init_abi): Likewise.
4802 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4803 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
4804 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
4805 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
4807 2018-06-29 Pedro Alves <palves@redhat.com>
4809 * gdb/amd64-tdep.h (amd64_create_target_description): Add
4810 "segments" parameter.
4811 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
4812 (_initialize_amd64_tdep): Update call to
4813 amd64_create_target_description.
4814 (amd64_target_description): Add "segments" parameter. Adjust
4815 the implementation to use it.
4816 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
4817 call to amd64_create_target_description.
4818 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
4819 * gdb/arch/amd64.h (amd64_create_target_description): Add
4820 "segments" register.
4821 * gdb/arch/amd64.c (amd64_create_target_description): Add
4822 "segments" parameter. Call create_feature_i386_64bit_segments
4823 only if SEGMENTS is true.
4824 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
4825 call to amd64_create_target_description.
4827 2018-06-29 Pedro Alves <palves@redhat.com>
4829 * thread.c (thread_target_id_str): New, factored out from ...
4830 (print_thread_info_1): ... here. Use it to compute the max
4831 "Target Id" column width.
4833 2018-06-29 Pedro Alves <palves@redhat.com>
4835 * remote.c (remote_target::extra_thread_info): Delete
4836 'display_buf' and 'n' locals. from the cache, regardless of
4837 packet mechanims is in use. Use cache for qThreadExtra and qP
4840 2018-06-29 Pedro Alves <palves@redhat.com>
4842 * blockframe.c (find_pc_sect_containing_function): New function.
4843 * breakpoint.c (print_breakpoint_location): Don't call
4844 find_pc_sect_function.
4845 * linespec.c (create_sals_line_offset): Record the location's
4847 * linespec.c (convert_address_location_to_sals): Fill in sal's
4848 symbol with find_pc_sect_containing_function.
4849 * symtab.c (find_function_start_sal): Rename to ...
4850 (find_function_start_sal_1): ... this.
4851 (find_function_start_sal): Reimplement as wrapper around
4852 find_function_start_sal_1, and use
4853 find_pc_sect_containing_function to fill in the sal's symbol.
4854 (find_function_start_sal(symbol*, bool)): Adjust.
4855 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
4857 (find_pc_sect_containing_function): Declare.
4859 2018-06-29 Pedro Alves <palves@redhat.com>
4861 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
4862 true if the the location has no symbol.
4864 2018-06-28 Tom Tromey <tom@tromey.com>
4866 * NEWS: Mention --enable-codesign.
4867 * silent-rules.mk (ECHO_SIGN): New variable.
4868 * configure.ac: Add --enable-codesign.
4869 * configure: Rebuild.
4870 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
4871 (gdb$(EXEEXT)): Optionally invoke codesign.
4873 2018-06-28 Pedro Alves <palves@redhat.com>
4875 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
4877 (switch_to_thread_no_regs): Adjust comment.
4878 * infcmd.c (stop_pc): Delete.
4879 (post_create_inferior, info_program_command): Replace references
4880 to stop_pc with references to thread_info->suspend.stop_pc.
4881 * inferior.h (stop_pc): Delete declaration.
4882 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
4883 (handle_inferior_event_1, handle_signal_stop)
4884 (process_event_stop_test, keep_going_stepped_thread)
4885 (handle_step_into_function, handle_step_into_function_backward)
4886 (print_stop_location): Replace references to stop_pc with
4887 references to thread_info->suspend.stop_pc.
4888 (struct infcall_suspend_state) <stop_pc>: Delete field.
4889 (save_infcall_suspend_state, restore_infcall_suspend_state):
4890 Remove references to inf_stat->stop_pc.
4891 * linux-fork.c (fork_load_infrun_state): Likewise.
4892 * record-btrace.c (record_btrace_set_replay): Likewise.
4893 * record-full.c (record_full_goto_entry): Likewise.
4894 * remote.c (print_one_stopped_thread): Likewise.
4895 * target.c (target_resume): Extend comment.
4896 * thread.c (set_executing_thread): New.
4897 (set_executing): Use it.
4898 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
4899 Remove references to stop_pc.
4901 2018-06-28 Pedro Alves <palves@redhat.com>
4903 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
4904 Moving fetching stop_pc until after ecs->event_thread is refreshed.
4906 2018-06-28 Tom Tromey <tom@tromey.com>
4908 * coffread.c (coff_symfile_finish): Update.
4909 * xcoffread.c (xcoff_symfile_finish): Update.
4910 * elfread.c (elf_symfile_finish): Update.
4911 * symfile.h (dwarf2_free_objfile): Don't declare.
4912 * dwarf2read.c (_initialize_dwarf2_read): Use
4913 register_objfile_data_with_cleanup.
4914 (dwarf2_free_objfile): Now static. Change signature.
4916 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4918 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
4919 option "-o" to add-symbol-file-load to add an offset to each
4920 section's load address.
4921 * symfile.c (set_objfile_default_section_offset): New function.
4923 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4925 * symfile.c (add_symbol_file_command): Make sure that sections
4926 with the same name are sorted in the same order.
4928 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4930 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
4931 require the second argument. If omitted, load sections at the
4932 addresses specified in the file.
4934 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4936 * symfile.c (symbol_file_command, symbol_file_add_main_1)
4937 (_initialize_symfile): Add option "-o" to symbol-file to add an
4938 offset to each section of the symbol file.
4940 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
4942 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
4944 2018-06-27 Tom Tromey <tom@tromey.com>
4946 * stack.c (_initialize_stack): Update "func" help text.
4948 2018-06-27 Tom Tromey <tom@tromey.com>
4950 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
4952 (unwind_infopy_str, pyuw_create_unwind_info)
4953 (unwind_infopy_add_saved_register, pyuw_sniffer)
4954 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
4956 (struct saved_reg): Add constructor.
4957 <value>: Now a gdbpy_ref<>.
4959 2018-06-27 Tom Tromey <tom@tromey.com>
4961 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
4963 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4965 * gdb-gdb.py.in: Format using autopep8.
4967 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4969 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
4970 (type_lookup_function): Recognize CORE_ADDR values.
4972 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4974 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
4977 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4979 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
4982 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
4984 * gdb-gdb.py: Move to...
4985 * gdb-gdb.py.in: ... here.
4986 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
4987 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
4989 (distclean): Remove gdb-gdb.py when cleaning.
4990 (gdb-gdb.py, gdb-gdb.gdb): New rules.
4991 * configure: Re-generate.
4993 2018-06-27 Pedro Alves <palves@redhat.com>
4995 * proc-service.c (get_ps_regcache): New.
4996 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4997 (ps_lsetfpregs): Use it.
4999 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5002 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5003 (dwarf_decode_lines_1): Adjust.
5005 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5007 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5009 <info_proc>: Likewise.
5011 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5013 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5014 to windows_fetch_one_register, and only handle the case of
5015 fetching one register. Move the code that reloads the context
5016 and iterates over all registers if R is negative to...
5017 (windows_nat_target::fetch_registers): ... here.
5018 (do_windows_store_inferior_registers): Rename to
5019 windows_store_one_register, and only handle the case of storing
5020 one register. Move the code that handles the case where r is
5022 (windows_nat_target::store_registers) ... here.
5024 2018-06-26 Tom Tromey <tom@tromey.com>
5027 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5028 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5030 (rust_internal_print_type): Add podata parameter.
5031 (rust_print_type): Update.
5033 2018-06-26 Tom Tromey <tom@tromey.com>
5035 * typeprint.h (struct print_offset_data) <update, finish,
5036 maybe_print_hole>: New methods.
5037 <indentation>: New constant.
5038 * typeprint.c (print_offset_data::indentation): Define.
5039 (print_offset_data::maybe_print_hole, print_offset_data::update)
5040 (print_offset_data::finish): Move from c-typeprint.c and rename.
5041 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5042 (print_spaces_filtered_with_print_options): Update.
5043 (c_print_type_union_field_offset, maybe_print_hole)
5044 (c_print_type_struct_field_offset): Move to typeprint.c and
5046 (c_type_print_base_struct_union): Update.
5048 2018-06-25 Pedro Alves <palves@redhat.com>
5050 * gdbthread.h (thread_info_ref, delete_thread)
5051 (delete_thread_silent, first_thread_of_inferior)
5052 (any_thread_of_inferior, switch_to_thread)
5053 (enable_thread_stack_temporaries)
5054 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5055 (get_last_thread_stack_temporary)
5056 (value_in_thread_stack_temporaries, can_access_registers_thread):
5057 Spell out "struct thread_info" instead of just "thread_info".
5058 * inferior.h (notice_new_inferior): Likewise.
5060 2018-06-25 Pedro Alves <palves@redhat.com>
5062 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5063 pass thread_info pointer to delete_thread.
5064 (windows_nat_target::detach): Pass inferior pointer to
5066 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5068 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5069 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5070 and pass a thread_info pointer to delete_thread.
5071 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5072 pass thread_info pointer to delete_thread.
5073 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5074 delete_thread_silent call.
5075 * procfs.c (procfs_target::detach): Pass inferior pointer to
5077 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5078 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5079 delete_thread_silent call.
5080 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5081 pass thread_info pointer to delete_thread.
5082 (windows_nat_target::detach): Pass inferior pointer to
5085 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5087 * regcache.c (readable_regcache::read_part): Fix asserts.
5088 (reg_buffer::raw_collect_part): New function.
5089 (regcache::write_part): Fix asserts.
5090 (reg_buffer::raw_supply_part): New function.
5091 (regcache::transfer_regset_register): New helper function.
5092 (regcache::transfer_regset): Call new functions.
5093 (regcache_supply_regset): Use gdb_byte*.
5094 (regcache::supply_regset): Likewise.
5095 (regcache_collect_regset): Likewise.
5096 (regcache::collect_regset): Likewise.
5097 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5098 (reg_buffer::raw_supply_part): Likewise.
5099 (regcache::transfer_regset_register): Likewise.
5100 (regcache::transfer_regset): Use gdb_byte*.
5102 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5104 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5106 2018-06-21 Pedro Alves <palves@redhat.com>
5108 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5109 instead of a ptid_t. All callers adjusted.
5110 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5112 (print_ada_task_info, display_current_task_id, task_command_1):
5114 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5116 (breakpoint_kind): Adjust.
5117 (remove_breakpoints_pid): Rename to ...
5118 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5119 pointer. All callers adjusted.
5120 (bpstat_clear_actions): Use inferior_thread.
5121 (get_bpstat_thread): New.
5122 (bpstat_do_actions): Use it.
5123 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5124 to take a thread_info pointer. All callers adjusted.
5125 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5126 (breakpoint_re_set_thread): Use inferior_thread.
5127 * breakpoint.h (struct inferior): Forward declare.
5128 (bpstat_stop_status): Update.
5129 (remove_breakpoints_pid): Delete.
5130 (remove_breakpoints_inf): New.
5131 * bsd-uthread.c (bsd_uthread_target::wait)
5132 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5133 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5134 (maint_btrace_packet_history_cmd)
5135 (maint_btrace_clear_packet_history_cmd): Adjust.
5136 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5138 * cli/cli-interp.c: Include "inferior.h".
5139 * common/refcounted-object.h (struct
5140 refcounted_object_ref_policy): New.
5141 * compile/compile-object-load.c: Include gdbthread.h.
5142 (store_regs): Use inferior_thread.
5143 * corelow.c (core_target::close): Use current_inferior.
5144 (core_target_open): Adjust to use first_thread_of_inferior and use
5145 the current inferior.
5146 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5147 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5148 <thread>: ... this new field. All references adjusted.
5149 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5150 Take a thread_info pointer instead of a ptid_t.
5151 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5152 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5153 thread_info pointer instead of a ptid_t.
5154 * elfread.c: Include "inferior.h".
5155 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5156 Use inferior_thread.
5157 * eval.c (evaluate_subexp): Likewise.
5158 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5160 * gdb_proc_service.h (struct thread_info): Forward declare.
5161 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5162 <thread>: ... this new field. All references adjusted.
5163 * gdbarch.h, gdbarch.c: Regenerate.
5164 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5165 'thread' parameter. All implementations and callers adjusted.
5166 * gdbthread.h (thread_info) <set_running>: New method.
5167 (delete_thread, delete_thread_silent): Take a thread_info pointer
5169 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5170 (first_thread_of_process): Delete, replaced by ...
5171 (first_thread_of_inferior): ... this new function. All callers
5173 (any_live_thread_of_process): Delete, replaced by ...
5174 (any_live_thread_of_inferior): ... this new function. All callers
5176 (switch_to_thread, switch_to_no_thread): Declare.
5177 (is_executing): Delete.
5178 (enable_thread_stack_temporaries): Update comment.
5179 <enable_thread_stack_temporaries>: Take a thread_info pointer
5180 instead of a ptid_t. Incref the thread.
5181 <~enable_thread_stack_temporaries>: Decref the thread.
5184 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5185 (get_last_thread_stack_temporary)
5186 (value_in_thread_stack_temporaries, can_access_registers_thread):
5187 Take a thread_info pointer instead of a ptid_t. All callers
5189 * infcall.c (get_call_return_value): Use inferior_thread.
5190 (run_inferior_call): Work with thread pointers instead of ptid_t.
5191 (call_function_by_hand_dummy): Work with thread pointers instead
5192 of ptid_t. Use thread_info_ref.
5193 * infcmd.c (proceed_thread_callback): Access thread's state
5195 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5196 access thread's state directly.
5197 (continue_command): Use inferior_thread.
5198 (info_program_command): Use find_thread_ptid and access thread
5200 (proceed_after_attach_callback): Use thread state directly.
5201 (notice_new_inferior): Take a thread_info pointer instead of a
5202 ptid_t. All callers adjusted.
5203 (exit_inferior): Take an inferior pointer instead of a pid. All
5205 (exit_inferior_silent): New.
5206 (detach_inferior): Delete.
5207 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5208 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5209 (detach_inferior_command, kill_inferior_command): Use
5210 find_inferior_id instead of valid_gdb_inferior_id and
5211 gdb_inferior_id_to_pid.
5212 (inferior_command): Use inferior and thread pointers.
5213 * inferior.h (struct thread_info): Forward declare.
5214 (notice_new_inferior): Take a thread_info pointer instead of a
5215 ptid_t. All callers adjusted.
5216 (detach_inferior): Delete declaration.
5217 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5218 instead of a pid. All callers adjusted.
5219 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5220 (valid_gdb_inferior_id): Delete.
5221 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5222 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5223 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5225 <inf>: ... this new field.
5226 <step_ptid>: Delete, replaced by ...
5227 <step_thread>: ... this new field.
5228 (get_displaced_stepping_state): Take an inferior pointer instead
5229 of a pid. All callers adjusted.
5230 (displaced_step_in_progress_any_inferior): Adjust.
5231 (displaced_step_in_progress_thread): Take a thread pointer instead
5232 of a ptid_t. All callers adjusted.
5233 (displaced_step_in_progress, add_displaced_stepping_state): Take
5234 an inferior pointer instead of a pid. All callers adjusted.
5235 (get_displaced_step_closure_by_addr): Adjust.
5236 (remove_displaced_stepping_state): Take an inferior pointer
5237 instead of a pid. All callers adjusted.
5238 (displaced_step_prepare_throw, displaced_step_prepare)
5239 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5240 All callers adjusted.
5241 (start_step_over): Adjust.
5242 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5243 displaced step queue.
5244 (do_target_resume): Adjust.
5245 (fetch_inferior_event): Use inferior_thread.
5246 (context_switch, get_inferior_stop_soon): Take an
5247 execution_control_state pointer instead of a ptid_t. All callers
5249 (switch_to_thread_cleanup): Delete.
5250 (stop_all_threads): Use scoped_restore_current_thread.
5251 * inline-frame.c: Include "gdbthread.h".
5252 (inline_state) <inline_state>: Take a thread pointer instead of a
5253 ptid_t. All callers adjusted.
5254 <ptid>: Delete, replaced by ...
5255 <thread>: ... this new field.
5256 (find_inline_frame_state): Take a thread pointer instead of a
5257 ptid_t. All callers adjusted.
5258 (skip_inline_frames, step_into_inline_frame)
5259 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5260 pointer instead of a ptid_t. All callers adjusted.
5261 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5262 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5263 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5265 * linux-nat.c (get_detach_signal): Likewise.
5266 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5267 (thread_db_notice_clone): Adjust.
5268 (thread_db_find_new_threads_silently)
5269 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5270 a thread pointer instead of a ptid_t. All callers adjusted.
5271 * mi/mi-cmd-var.c: Include "inferior.h".
5272 (mi_cmd_var_update_iter): Update to use thread pointers.
5273 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5275 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5277 (mi_output_running): ... this new function.
5278 (mi_on_resume_1): Adjust to use it.
5279 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5280 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5282 (interrupt_thread_callback): : Adjust to use thread and inferior
5284 * proc-service.c: Include "gdbthread.h".
5285 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5286 * progspace-and-thread.c: Include "inferior.h".
5287 * progspace.c: Include "inferior.h".
5288 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5289 hold a reference to an inferior_object.
5290 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5292 * python/py-inferior.c (struct inferior_object): Give the type a
5293 tag name instead of a typedef.
5294 (python_on_normal_stop): No need to check if the current thread is
5296 (inferior_to_inferior_object): Change return type to
5297 inferior_object. All callers adjusted.
5298 (find_thread_object): Delete, bits factored out to ...
5299 (thread_to_thread_object): ... this new function.
5300 * python/py-infthread.c (create_thread_object): Use
5301 inferior_to_inferior_object.
5302 (thpy_is_stopped): Use thread pointer directly.
5303 (gdbpy_selected_thread): Use inferior_thread.
5304 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5305 field, replaced with ...
5306 <thread>: ... this new field. All users adjusted.
5307 (btpy_insn_or_gap_new): Drop const.
5308 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5310 * python/py-record.c: Include "gdbthread.h".
5311 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5312 a ptid_t. All callers adjusted.
5313 (gdbpy_current_recording): Use inferior_thread.
5314 * python/py-record.h (recpy_record_object) <ptid>: Delete
5315 field, replaced with ...
5316 <thread>: ... this new field. All users adjusted.
5317 (recpy_element_object) <ptid>: Delete
5318 field, replaced with ...
5319 <thread>: ... this new field. All users adjusted.
5320 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5321 a ptid_t. All callers adjusted.
5322 * python/py-threadevent.c: Include "gdbthread.h".
5323 (get_event_thread): Use thread_to_thread_object.
5324 * python/python-internal.h (struct inferior_object): Forward
5326 (find_thread_object, find_inferior_object): Delete declarations.
5327 (thread_to_thread_object, inferior_to_inferior_object): New
5329 * record-btrace.c: Include "inferior.h".
5330 (require_btrace_thread): Use inferior_thread.
5331 (record_btrace_frame_sniffer)
5332 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5333 (get_thread_current_frame): Use scoped_restore_current_thread and
5335 (get_thread_current_frame): Use thread pointer directly.
5336 (record_btrace_replay_at_breakpoint): Use thread's inferior
5338 * record-full.c: Include "inferior.h".
5339 * regcache.c: Include "gdbthread.h".
5340 (get_thread_arch_regcache): Use the inferior's address space
5342 (get_thread_regcache, registers_changed_thread): New.
5343 * regcache.h (get_thread_regcache(thread_info *thread)): New
5345 (registers_changed_thread): New.
5346 (remote_target) <remote_detach_1>: Swap order of parameters.
5347 (remote_add_thread): <remote_add_thread>: Return the new thread.
5348 (get_remote_thread_info(ptid_t)): New overload.
5349 (remote_target::remote_notice_new_inferior): Use thread pointers
5351 (remote_target::process_initial_stop_replies): Use
5352 thread_info::set_running.
5353 (remote_target::remote_detach_1, remote_target::detach)
5354 (extended_remote_target::detach): Adjust.
5355 * stack.c (frame_show_address): Use inferior_thread.
5356 * target-debug.h (target_debug_print_thread_info_pp): New.
5357 * target-delegates.c: Regenerate.
5358 * target.c (default_thread_address_space): Delete.
5359 (memory_xfer_partial_1): Use current_inferior.
5360 (target_detach): Use current_inferior.
5361 (target_thread_address_space): Delete.
5362 (generic_mourn_inferior): Use current_inferior.
5363 * target.h (struct target_ops) <thread_address_space>: Delete.
5364 (target_thread_address_space): Delete.
5365 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5367 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5368 thread pointer instead of a ptid_t. Adjust all callers.
5369 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5370 (first_thread_of_process): Delete, replaced by ...
5371 (first_thread_of_inferior): ... this new function. All callers
5373 (any_thread_of_process): Rename to ...
5374 (any_thread_of_inferior): ... this, and take an inferior pointer.
5375 (any_live_thread_of_process): Rename to ...
5376 (any_live_thread_of_inferior): ... this, and take an inferior
5378 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5379 (value_in_thread_stack_temporaries)
5380 (get_last_thread_stack_temporary): Take a thread pointer instead
5381 of a ptid_t. Adjust all callers.
5382 (thread_info::set_running): New.
5383 (validate_registers_access): Use inferior_thread.
5384 (can_access_registers_ptid): Rename to ...
5385 (can_access_registers_thread): ... this, and take a thread
5387 (print_thread_info_1): Adjust to compare thread pointers instead
5389 (switch_to_no_thread, switch_to_thread): Make extern.
5390 (scoped_restore_current_thread::~scoped_restore_current_thread):
5391 Use m_thread pointer directly.
5392 (scoped_restore_current_thread::scoped_restore_current_thread):
5393 Use inferior_thread.
5394 (thread_command): Use thread pointer directly.
5395 (thread_num_make_value_helper): Use inferior_thread.
5396 * top.c (execute_command): Use inferior_thread.
5397 * tui/tui-interp.c: Include "inferior.h".
5398 * varobj.c (varobj_create): Use inferior_thread.
5399 (value_of_root_1): Use find_thread_global_id instead of
5400 global_thread_id_to_ptid.
5402 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5404 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5406 (regcache::write_part): Likewise.
5407 (readable_regcache::cooked_read_part): Update comment.
5408 (readable_regcache::cooked_write_part): Likewise.
5409 * regcache.h: (readable_regcache::read_part): Likewise.
5410 (regcache::write_part): Likewise.
5412 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5413 Dirk Schubert <dirk.schubert@arm.com>
5415 * aarch64-linux-nat.c (post_attach): New.
5416 (aarch64_linux_nat_target::post_attach): Override post_attach to
5417 record the number of hardware debug registers.
5419 2018-06-20 Tom Tromey <tom@tromey.com>
5421 * python/py-param.c (add_setshow_generic): Make parameters const.
5422 (parmpy_init): Update.
5424 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5426 * regcache.h (regcache_cooked_read_ftype): Rename to...
5427 (register_read_ftype): ...this, change type to function_view.
5428 (class reg_buffer) <save>: Remove src parameter.
5429 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5430 parameter non-const in first overload. Remove src parameter in
5432 * regcache.c (do_cooked_read): Remove.
5433 (readonly_detached_regcache::readonly_detached_regcache): Make
5434 parameter non-const, adjust call to other constructor.
5435 (reg_buffer::save): Remove src parameter.
5436 * frame.c (do_frame_register_read): Remove.
5437 (frame_save_as_regcache): Use lambda function.
5438 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5439 parameter to ppu2spu_data *.
5440 (ppu2spu_sniffer): Use lambda function.
5442 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5444 * record-full.c (record_full_target::insert_breakpoint): Remove
5445 "struct" keyword, add const.
5447 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5449 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5450 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5451 * configure.ac: Remove AC_PREREQ, add missing quoting.
5452 * gnulib/configure.ac: Modernize usage of
5453 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5454 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5455 (AUTOMAKE_VERSION): Bump to 1.15.1.
5456 * configure: Re-generate.
5457 * config.in: Re-generate.
5458 * aclocal.m4: Re-generate.
5459 * gnulib/aclocal.m4: Re-generate.
5460 * gnulib/config.in: Re-generate.
5461 * gnulib/configure: Re-generate.
5462 * gnulib/import/Makefile.in: Re-generate.
5464 2018-06-19 Pedro Alves <palves@redhat.com>
5466 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5467 (lookup_minimal_symbol_by_pc_section): ... here with
5468 gdb_assert_not_reached added.
5470 2018-06-19 Pedro Alves <palves@redhat.com>
5472 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5473 parameter with a block parameter. Compare location's block symbol
5474 with the frame's block instead of addresses.
5475 (skip_inline_frames): Pass the current block instead of the
5476 frame's address. Break out as soon as we determine the frame
5477 should not be skipped.
5479 2018-06-18 Tom Tromey <tom@tromey.com>
5481 * solib-aix.c (solib_aix_get_section_offsets): Return
5483 (solib_aix_solib_create_inferior_hook): Update.
5485 2018-06-18 Tom Tromey <tom@tromey.com>
5487 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5489 2018-06-18 Tom Tromey <tom@tromey.com>
5491 * solib-frv.c (frv_relocate_main_executable): Use
5493 * solib-dsbt.c (dsbt_relocate_main_executable): Use
5496 2018-06-18 Tom Tromey <tom@tromey.com>
5498 * objfiles.h (inhibit_section_map_updates): Update.
5499 (resume_section_map_updates, resume_section_map_updates_cleanup):
5501 * solib-svr4.c (svr4_handle_solib_event): Update.
5502 * objfiles.c (inhibit_section_map_updates): Return
5503 scoped_restore_tmpl<int>.
5504 (resume_section_map_updates, resume_section_map_updates_cleanup):
5507 2018-06-18 Tom Tromey <tom@tromey.com>
5509 * valprint.h (read_string): Update.
5510 * valprint.c (read_string): Change type of "buffer".
5511 (val_print_string): Update.
5512 * python/py-value.c (valpy_string): Update.
5513 * language.h (struct language_defn) <la_get_string>: Change
5515 (default_get_string, c_get_string): Update.
5516 * language.c (default_get_string): Change type of "buffer".
5517 * guile/scm-value.c (gdbscm_value_to_string): Update.
5518 * c-lang.c (c_get_string): Change type of "buffer".
5520 2018-06-18 Tom Tromey <tom@tromey.com>
5522 * ser-mingw.c (struct pipe_state_destroyer): New.
5523 (pipe_state_up): New typedef.
5524 (cleanup_pipe_state): Remove.
5525 (pipe_windows_open): Use pipe_state_up. Don't release argv.
5527 2018-06-18 Tom Tromey <tom@tromey.com>
5529 * rust-lang.h (rust_yyerror): Don't declare.
5530 * rust-lang.c (rust_language_defn): Update.
5531 * rust-exp.y (yyerror): Now static.
5532 * parse.c (parse_exp_in_context_1): Update.
5533 * p-lang.h (p_yyerror): Don't declare.
5534 * p-lang.c (p_language_defn): Update.
5535 * p-exp.y (yyerror): Now static.
5536 * opencl-lang.c (opencl_language_defn): Update.
5537 * objc-lang.c (objc_language_defn): Update.
5538 * m2-lang.h (m2_yyerror): Don't declare.
5539 * m2-lang.c (m2_language_defn): Update.
5540 * m2-exp.y (yyerror): Now static.
5541 * language.h (struct language_defn) <la_error>: Remove.
5542 * language.c (unk_lang_error): Remove.
5543 (unknown_language_defn, auto_language_defn): Remove.
5544 * go-lang.h (go_yyerror): Don't declare.
5545 * go-lang.c (go_language_defn): Update.
5546 * go-exp.y (yyerror): Now static.
5547 * f-lang.h (f_yyerror): Don't declare.
5548 * f-lang.c (f_language_defn): Update.
5549 * f-exp.y (yyerror): Now static.
5550 * d-lang.h (d_yyerror): Don't declare.
5551 * d-lang.c (d_language_defn): Update.
5552 * d-exp.y (yyerror): Now static.
5553 * c-lang.h (c_yyerror): Don't declare.
5554 * c-lang.c (c_language_defn, cplus_language_defn)
5555 (asm_language_defn, minimal_language_defn): Update.
5556 * c-exp.y (yyerror): Now static.
5557 * ada-lang.h (ada_yyerror): Don't declare.
5558 * ada-lang.c (ada_language_defn): Update.
5559 * ada-exp.y (yyerror): Now static.
5561 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5563 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
5564 (store_sveregs_to_thread): Likewise.
5565 (aarch64_linux_fetch_inferior_registers): Check for SVE.
5566 (aarch64_linux_store_inferior_registers): Likewise.
5567 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
5569 (aarch64_sve_regs_copy_to_regcache): Likewise.
5570 (aarch64_sve_regs_copy_from_regcache): Likewise.
5571 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
5573 (aarch64_sve_regs_copy_to_regcache): Likewise.
5574 (aarch64_sve_regs_copy_from_regcache): Likewise.
5575 (sve_context): Structure from Linux headers.
5576 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
5577 (SVE_SIG_ZREG_SIZE): Likewise.
5578 (SVE_SIG_PREG_SIZE): Likewise.
5579 (SVE_SIG_FFR_SIZE): Likewise.
5580 (SVE_SIG_REGS_OFFSET): Likewise.
5581 (SVE_SIG_ZREGS_OFFSET): Likewise.
5582 (SVE_SIG_ZREG_OFFSET): Likewise.
5583 (SVE_SIG_ZREGS_SIZE): Likewise.
5584 (SVE_SIG_PREGS_OFFSET): Likewise.
5585 (SVE_SIG_PREG_OFFSET): Likewise.
5586 (SVE_SIG_PREGS_SIZE): Likewise.
5587 (SVE_SIG_FFR_OFFSET): Likewise.
5588 (SVE_SIG_REGS_SIZE): Likewise.
5589 (SVE_SIG_CONTEXT_SIZE): Likewise.
5590 (SVE_PT_REGS_MASK): Likewise.
5591 (SVE_PT_REGS_FPSIMD): Likewise.
5592 (SVE_PT_REGS_SVE): Likewise.
5593 (SVE_PT_VL_INHERIT): Likewise.
5594 (SVE_PT_VL_ONEXEC): Likewise.
5595 (SVE_PT_REGS_OFFSET): Likewise.
5596 (SVE_PT_FPSIMD_OFFSET): Likewise.
5597 (SVE_PT_FPSIMD_SIZE): Likewise.
5598 (SVE_PT_SVE_ZREG_SIZE): Likewise.
5599 (SVE_PT_SVE_PREG_SIZE): Likewise.
5600 (SVE_PT_SVE_FFR_SIZE): Likewise.
5601 (SVE_PT_SVE_FPSR_SIZE): Likewise.
5602 (SVE_PT_SVE_FPCR_SIZE): Likewise.
5603 (__SVE_SIG_TO_PT): Likewise.
5604 (SVE_PT_SVE_OFFSET): Likewise.
5605 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
5606 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
5607 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
5608 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
5609 (SVE_PT_SVE_PREG_OFFSET): Likewise.
5610 (SVE_PT_SVE_PREGS_SIZE): Likewise.
5611 (SVE_PT_SVE_FFR_OFFSET): Likewise.
5612 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
5613 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
5614 (SVE_PT_SVE_SIZE): Likewise.
5615 (SVE_PT_SIZE): Likewise.
5616 (HAS_SVE_STATE): New define.
5618 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5620 * nat/aarch64-sve-linux-sigcontext.h: New file.
5621 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
5623 (SVE_VQ_MIN): Likewise.
5624 (SVE_VQ_MAX): Likewise.
5625 (SVE_VL_MIN): Likewise.
5626 (SVE_VL_MAX): Likewise.
5627 (SVE_NUM_ZREGS): Likewise.
5628 (SVE_NUM_PREGS): Likewise.
5629 (sve_vl_valid): Likewise.
5630 (struct user_sve_header): Likewise.
5632 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
5633 Richard Bunt <Richard.Bunt@arm.com>
5635 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
5636 was requested by GDB.
5638 2018-06-15 Tom de Vries <tdevries@suse.de>
5640 * MAINTAINERS (Write After Approval): Add Tom de Vries.
5642 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
5644 * gnulib/update-gnulib.sh: Print expected versions of
5647 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
5649 * arch-utils.c (default_type_align): Use type_length_units.
5650 * gdbtypes.c (type_align): Use type_length_units.
5652 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5654 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
5655 of 'define' command.
5657 2018-06-14 Tom de Vries <tdevries@suse.de>
5660 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
5661 get_no_prettyformat_print_options.
5663 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
5665 * sparc-nat.h: Include target.h.
5666 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
5667 <fetch_registers>: Remove this argument in function call.
5668 <store_registers>: Remove this argument in function call, remove
5670 <low_forget_process>: Call sparc64_forget_process instead of
5671 sparc_forget_process.
5673 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5675 * procfs.c (_initialize_procfs): Use add_inf_child_target.
5676 (procfs_target::make_corefile_notes): Adjust to new
5677 target_read_alloc return type.
5679 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5680 Stephen Roberts <stephen.roberts@arm.com>
5683 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
5684 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
5685 Move should_notify_stop local into more inner scope.
5687 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5688 Stephen Roberts <stephen.roberts@arm.com>
5691 * infrun.c (resume_1): Add call to mark_async_event_handler.
5693 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
5695 * infrun.c (do_target_wait): Change old version of $pc printed.
5697 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
5699 * dwarf2read.c (read_index_from_section): Rename to...
5700 (read_gdb_index_from_section): ... this, update all callers.
5701 (dwarf2_read_index): Rename to...
5702 (dwarf2_read_gdb_index): ... this, update all callers.
5704 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
5706 * gdb/hppa-linux-nat.c
5707 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
5708 hppa_linux_nat_target::fetch_registers.
5710 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5712 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
5713 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
5714 (AARCH64_DWARF_SVE_FFR): Likewise.
5715 (AARCH64_DWARF_SVE_P0): Likewise.
5716 (AARCH64_DWARF_SVE_Z0): Likewise.
5718 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5720 * common/common-regcache.h (raw_compare): New function.
5721 * regcache.c (regcache::raw_compare): Likewise.
5722 * regcache.h (regcache::raw_compare): New declaration.
5724 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5726 * common/common-regcache.h (reg_buffer_common): New structure.
5727 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
5728 (reg_buffer::raw_supply): Likewise.
5729 (reg_buffer::raw_supply_integer): Likewise.
5730 (reg_buffer::raw_supply_zeroed): Likewise.
5731 (reg_buffer::raw_collect): Likewise.
5732 (reg_buffer::raw_collect_integer): Likewise.
5733 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
5734 (reg_buffer::raw_supply): Likewise.
5735 (reg_buffer::raw_supply_integer): Likewise.
5736 (reg_buffer::raw_supply_zeroed): Likewise.
5737 (reg_buffer::raw_collect): Likewise.
5738 (reg_buffer::raw_collect_integer): Likewise.
5740 2018-06-10 Tom Tromey <tom@tromey.com>
5742 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
5743 (class remote_state) <stop_reply_queue>: Now std::vector.
5744 (remote_state::~remote_state)
5745 (remote_target::stop_reply_queue_length): Update.
5746 (struct queue_iter_param, remove_child_of_pending_fork)
5747 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
5748 (check_pending_event_prevents_wildcard_vcont_callback)
5749 (remove_stop_reply_for_inferior)
5750 (remove_stop_reply_of_remote_state)
5751 (remote_notif_remove_once_on_match)
5752 (stop_reply_match_ptid_and_ws)
5753 (remote_kill_child_of_pending_fork): Remove.
5754 (remote_target::remove_new_fork_children)
5755 (remote_target::check_pending_events_prevent_wildcard_vcont)
5756 (remote_target::discard_pending_stop_replies)
5757 (remote_target::discard_pending_stop_replies_in_queue)
5758 (remote_target::remote_notif_remove_queued_reply)
5759 (remote_target::queued_stop_reply)
5760 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
5761 (remote_target::wait, remote_target::kill_new_fork_children)
5762 (remote_target::async): Update.
5764 2018-06-10 Tom Tromey <tom@tromey.com>
5766 * record-full.c (record_full_arch_list_cleanups): Remove.
5767 (record_full_message): Use try/catch.
5768 (record_full_wait_cleanups): Remove.
5769 (record_full_wait_1): Use try/catch.
5770 (record_full_restore): Likewise.
5772 2018-06-10 Tom Tromey <tom@tromey.com>
5774 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
5775 declare VEC. Add constructor.
5776 <in_target_beneath>: Now bool.
5777 (record_full_breakpoints): Now a std::vector, static.
5778 (record_full_sync_record_breakpoints)
5779 (record_full_init_record_breakpoints)
5780 (record_full_target::insert_breakpoint)
5781 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
5783 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
5785 * dwarf2read.c (process_cu_includes): Remove struct keyword.
5786 * serial.c (serial_interface_lookup): Remove struct keyword.
5788 2018-06-10 Tom Tromey <tom@tromey.com>
5790 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
5792 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
5794 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
5796 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
5797 "beneath" as a method.
5798 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
5799 Use "beneath" as a method.
5801 2018-06-10 Tom Tromey <tom@tromey.com>
5803 * tracefile.c (struct trace_file_writer_deleter): New.
5804 <operator()>: Rename from trace_file_writer_xfree.
5805 (trace_file_writer_up): New typedef.
5806 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
5808 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5810 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
5811 <m_registers, m_register_status>: Change type to
5813 * regcache.c (reg_buffer::reg_buffer): Use new instead of
5816 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
5818 * common/common-regcache.h (enum register_status): Add
5819 underlying type "signed char".
5820 * regcache.h (reg_buffer) <m_register_status>: Change type to
5822 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
5823 register_status instead of signed char.
5824 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
5825 (reg_buffer::get_register_status): Remove cast.
5826 (readable_regcache::raw_read): Remove cast.
5827 (readable_regcache::cooked_read): Remove cast.
5829 2018-06-09 Tom Tromey <tom@tromey.com>
5831 * source.c (reverse_search_command, forward_search_command): Use
5834 2018-06-09 Tom Tromey <tom@tromey.com>
5836 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
5837 (serial_ops_list): Now static, std::vector.
5838 (serial_interface_lookup, serial_add_interface): Update.
5840 2018-06-09 Tom Tromey <tom@tromey.com>
5842 * dwarf2read.c (process_cu_includes): Update.
5843 (process_full_comp_unit): Update.
5844 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
5847 2018-06-08 Paul Koning <paul_koning@dell.com>
5851 * python/python.c (do_start_initialization):
5852 Avoid call to internal Python API.
5853 (init__gdb_module): New function.
5855 2018-06-08 Gary Benson <gbenson@redhat.com>
5857 * linux-thread-db.c (valprint.h): New include.
5858 (struct check_thread_db_info): New structure.
5859 (check_thread_db_on_load, tdb_testinfo): New static globals.
5860 (check_thread_db, check_thread_db_callback): New functions.
5861 (try_thread_db_load_1): Run integrity checks if requested.
5862 (maintenance_check_libthread_db): New function.
5863 (_initialize_thread_db): Register "maint check libthread-db"
5864 and "maint set/show check-libthread-db".
5865 * NEWS: Mention the above new commands.
5867 2018-06-08 Tom Tromey <tom@tromey.com>
5869 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
5872 2018-06-08 Tom Tromey <tom@tromey.com>
5874 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
5876 2018-06-08 Tom Tromey <tom@tromey.com>
5878 * common/btrace-common.h (struct btrace_data): Add constructor,
5879 destructor, move assignment operator.
5880 <empty, clear, fini>: New methods.
5881 <format>: Initialize.
5882 (btrace_data_init, btrace_data_fini, btrace_data_clear)
5883 (btrace_data_empty): Don't declare.
5884 * common/btrace-common.c (btrace_data_init): Remove.
5885 (btrace_data::fini): Rename from btrace_data_fini.
5886 (btrace_data::empty): Rename from btrace_data_empty.
5887 (btrace_data::clear): Rename from btrace_data_clear. Return
5889 * btrace.h (make_cleanup_btrace_data): Don't declare.
5890 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
5891 (parse_xml_btrace): Update.
5892 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
5893 (maint_btrace_clear_packet_history_cmd): Update.
5895 2018-06-07 Pedro Alves <palves@redhat.com>
5897 * target.h (target_ops) <beneath>: Now a method. All references
5899 (class target_stack): New.
5900 * target.c (g_target_stack): New.
5901 (g_current_top_target): Delete.
5902 (current_top_target): Get the top target out of g_target_stack.
5903 (target_stack::push, target_stack::unpush): New.
5904 (push_target, unpush_target): Reimplement.
5905 (target_is_pushed): Reimplement in terms of g_target_stack.
5906 (target_ops::beneath, target_stack::find_beneath): New.
5908 2018-06-07 Pedro Alves <palves@redhat.com>
5910 * target.h (find_target_beneath): Delete declaration.
5911 * target.c (find_target_beneath): Delete definition.
5912 * aix-thread.c: All callers of find_target_beneath adjusted to
5913 call target_ops::beneath instead.
5914 * bsd-uthread.c: Likewise.
5915 * linux-thread-db.c: Likewise.
5916 * ravenscar-thread.c: Likewise.
5917 * sol-thread.c: Likewise.
5918 * spu-multiarch.c: Likewise.
5920 2018-06-07 Pedro Alves <palves@redhat.com>
5922 * target.h (target_ops) <beneath>: Now a method. All references
5924 (target_ops) <m_beneath>: New.
5925 * target.c (target_ops::beneath): New.
5926 * corelow.c: Adjust all references to target_ops::beneath.
5927 * linux-thread-db.c: Likewise.
5928 * make-target-delegates: Likewise.
5929 * record-btrace.c: Likewise.
5930 * record-full.c: Likewise.
5931 * remote.c: Likewise.
5932 * target.c: Likewise.
5933 * target-delegates.c: Regenerate.
5935 2018-06-07 Pedro Alves <palves@redhat.com>
5937 * target.h (target_stack): Delete.
5938 (current_top_target): Declare function.
5939 * target.c (target_stack): Delete.
5940 (g_current_top_target): New.
5941 (current_top_target): New function.
5942 * auxv.c: Use current_top_target instead of target_stack
5944 * avr-tdep.c: Likewise.
5945 * breakpoint.c: Likewise.
5946 * corefile.c: Likewise.
5947 * elfread.c: Likewise.
5949 * exceptions.c: Likewise.
5950 * frame.c: Likewise.
5951 * gdbarch-selftests.c: Likewise.
5952 * gnu-v3-abi.c: Likewise.
5953 * ia64-tdep.c: Likewise.
5954 * ia64-vms-tdep.c: Likewise.
5955 * infcall.c: Likewise.
5956 * infcmd.c: Likewise.
5957 * infrun.c: Likewise.
5958 * linespec.c: Likewise.
5959 * linux-tdep.c: Likewise.
5960 * minsyms.c: Likewise.
5961 * ppc-linux-nat.c: Likewise.
5962 * ppc-linux-tdep.c: Likewise.
5963 * procfs.c: Likewise.
5964 * regcache.c: Likewise.
5965 * remote.c: Likewise.
5966 * rs6000-tdep.c: Likewise.
5967 * s390-linux-nat.c: Likewise.
5968 * s390-tdep.c: Likewise.
5969 * solib-aix.c: Likewise.
5970 * solib-darwin.c: Likewise.
5971 * solib-dsbt.c: Likewise.
5972 * solib-spu.c: Likewise.
5973 * solib-svr4.c: Likewise.
5974 * solib-target.c: Likewise.
5975 * sparc-tdep.c: Likewise.
5976 * sparc64-tdep.c: Likewise.
5977 * spu-tdep.c: Likewise.
5978 * symfile.c: Likewise.
5979 * symtab.c: Likewise.
5980 * target-descriptions.c: Likewise.
5981 * target-memory.c: Likewise.
5982 * target.c: Likewise.
5983 * target.h: Likewise.
5984 * tracefile-tfile.c: Likewise.
5985 * tracepoint.c: Likewise.
5986 * valops.c: Likewise.
5987 * valprint.c: Likewise.
5988 * value.c: Likewise.
5989 * windows-tdep.c: Likewise.
5990 * mi/mi-main.c: Likewise.
5992 2018-06-07 Tom Tromey <tom@tromey.com>
5994 * valprint.h (build_address_symbolic): Declare.
5995 * printcmd.c (print_address_symbolic): Update.
5996 (build_address_symbolic): Change "name" and "filename" to
5998 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6000 * defs.h (build_address_symbolic): Remove declaration.
6002 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6004 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6005 (aarch64_vnv_type): Add function.
6006 (aarch64_pseudo_register_name): Add V regs for SVE.
6007 (aarch64_pseudo_register_type): Likewise.
6008 (aarch64_pseudo_register_reggroup_p): Likewise.
6009 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6010 (aarch64_pseudo_read_value): Add V regs for SVE.
6011 (aarch64_pseudo_write_2): Use V0 offset for SVE
6012 (aarch64_pseudo_write): Add V regs for SVE.
6013 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6015 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6017 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6018 (sve_vl_from_vq): Likewise.
6020 2018-06-05 Tom Tromey <tom@tromey.com>
6022 * cli/cli-cmds.c (show_version): Update.
6023 * top.c (print_gdb_version): Add "interactive" parameter.
6025 * main.c (captured_main_1): Update.
6026 * top.h (print_gdb_version): Add "interactive" parameter and a
6029 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6031 * common/enum-flags.h: Add trailing semicolon to example in
6034 2018-06-05 Tom Tromey <tom@tromey.com>
6037 * NEWS: Add entry about pager.
6038 * utils.c (pagination_disabled_for_command): New global.
6039 (prompt_for_continue): Allow "c" response to prompt.
6040 (reinitialize_more_filter): Clear
6041 pagination_disabled_for_command.
6042 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6044 2018-06-04 Tom Tromey <tom@tromey.com>
6046 * ada-lang.h (ada_lookup_symbol_list): Update.
6047 * ada-lang.c (resolve_subexp): Update.
6048 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6050 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6051 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6052 results parameter to std::vector.
6053 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6055 * ada-exp.y (block_lookup): Update.
6056 (select_possible_type_sym): Change type of syms. Remove nsyms
6058 (write_var_or_type, write_name_assoc): Update.
6060 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6062 * windows-nat.c (windows_nat_target::xfer_partial): Return
6063 TARGET_XFER_E_IO if we need to delegate to the target beneath
6064 but BENEATH is NULL.
6066 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6068 * Makefile.in (config.status): Add configure.nat as a
6071 2018-06-04 Tom Tromey <tom@tromey.com>
6073 * cp-name-parser.y (cpname_state): Add method declarations.
6074 (HANDLE_QUAL): Update.
6075 (cpname_state::d_grab, cpname_state::fill_comp)
6076 (cpname_state::make_operator, cpname_state::make_dtor)
6077 (cpname_state::make_builtin_type, cpname_state::make_name)
6078 (cpname_state::d_qualify, cpname_state::d_int_type)
6079 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6080 (%union): Move earlier.
6082 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6084 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6086 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6088 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6089 (aarch64_pseudo_write_1): Likewise.
6090 (aarch64_pseudo_read_value): Use helper.
6091 (aarch64_pseudo_write): Likewise.
6093 2018-06-04 Pedro Alves <palves@redhat.com>
6095 * darwin-nat.c (darwin_ops): Delete.
6096 (darwin_attach_pid): Use get_native_target.
6098 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6100 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6101 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6103 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6105 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6106 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6107 (aarch64_gdbarch_init): Check for SVE.
6108 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6110 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6112 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6113 * aarch64-tdep.h (aarch64_read_description): Likewise.
6114 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6115 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6116 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6117 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6118 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6120 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6122 * value.c (value_fetch_lazy_bitfield): New.
6123 (value_fetch_lazy_memory): New.
6124 (value_fetch_lazy_register): New.
6125 (value_fetch_lazy): Factor out to smaller functions.
6127 2018-06-01 Tom Tromey <tom@tromey.com>
6129 * cp-name-parser.y (backslashable, represented): Now const.
6131 2018-06-01 Tom Tromey <tom@tromey.com>
6133 * cp-name-parser.y: Include parser-defs.h.
6134 (parser_fprintf): Remove declaration.
6136 2018-06-01 Tom Tromey <tom@tromey.com>
6138 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6140 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6141 (global_result): Remove globals.
6142 (struct cpname_state): New.
6143 (yyparse): Don't declare.
6144 (yylex, yyerror): Move declarations after %union.
6145 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6146 (make_name): Add state parameter.
6148 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6150 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6152 (yylex): Add lvalp, state parameters.
6153 (yyerror): Add state parameter.
6154 (cp_demangled_name_to_comp): Update.
6156 2018-06-01 Tom Tromey <tom@tromey.com>
6158 * cp-name-parser.y (parser_fprintf): Declare.
6159 (GDB_YY_REMAP_PREFIX): Define.
6160 Include yy-remap.h. Don't redefine yy* identifiers.
6162 2018-06-01 Tom Tromey <tom@tromey.com>
6164 * python/py-type.c (typy_legacy_template_argument): Update.
6165 * cp-support.h (cp_demangled_name_to_comp): Update.
6166 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6167 parameter to be a "std::string *".
6170 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6172 * ada-lex.l: Include "diagnostics.h" instead of
6173 "common/diagnostics.h".
6174 * unittests/environ-selftests.c: Likewise.
6175 * common/diagnostics.h: Moved to ../include.
6177 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6179 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6180 to language_mode_manual while calling breakpoint_re_set_one.
6182 2018-06-01 Tom Tromey <tom@tromey.com>
6184 * valops.c (value_cast_structs, destructor_name_p): Update.
6185 * symtab.c (gdb_mangle_name): Update.
6186 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6188 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6189 (pascal_object_print_value_fields, pascal_object_print_value):
6191 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6192 * linespec.c (find_methods): Update.
6193 * gdbtypes.h (type_name_no_tag): Remove.
6194 (type_name_or_error): Rename from type_name_no_tag_or_error.
6195 * gdbtypes.c (type_name_no_tag): Remove.
6196 (type_name_or_error): Rename from type_name_no_tag_or_error.
6197 (lookup_struct_elt_type, check_typedef): Update.
6198 * expprint.c (print_subexp_standard): Update.
6199 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6200 * d-namespace.c (d_lookup_nested_symbol): Update.
6201 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6202 (cp_print_class_member): Update.
6203 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6204 * completer.c (add_struct_fields): Update.
6205 * c-typeprint.c (cp_type_print_derivation_info)
6206 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6208 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6209 (ada_prefer_type, ada_is_exception_sym): Update.
6211 2018-06-01 Tom Tromey <tom@tromey.com>
6213 * valops.c (enum_constant_from_type, value_namespace_elt)
6214 (value_maybe_namespace_elt): Update.
6215 * valarith.c (find_size_for_pointer_math): Update.
6216 * target-descriptions.c (make_gdb_type): Update.
6217 * symmisc.c (print_symbol): Update.
6218 * stabsread.c (define_symbol, read_type)
6219 (complain_about_struct_wipeout, add_undefined_type)
6220 (cleanup_undefined_types_1): Update.
6221 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6222 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6223 (rust_internal_print_type, rust_composite_type)
6224 (rust_evaluate_funcall, rust_evaluate_subexp)
6225 (rust_inclusive_range_type_p): Update.
6226 * python/py-type.c (typy_get_tag): Update.
6227 * p-typeprint.c (pascal_type_print_base): Update.
6228 * mdebugread.c (parse_symbol, parse_type): Update.
6229 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6231 * guile/scm-type.c (gdbscm_type_tag): Update.
6232 * go-lang.c (sixg_string_p): Update.
6233 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6235 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6236 (TYPE_TAG_NAME): Remove.
6237 * gdbtypes.c (type_name_no_tag): Simplify.
6238 (check_typedef, check_types_equal, recursive_dump_type)
6239 (copy_type_recursive, arch_composite_type): Update.
6240 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6241 in summary mode when needed.
6242 * eval.c (evaluate_funcall): Update.
6243 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6244 (process_structure_scope, read_enumeration_type)
6245 (read_namespace_type, read_module_type, determine_prefix): Update.
6246 * cp-support.c (inspect_type): Update.
6247 * coffread.c (process_coff_symbol, decode_base_type): Update.
6248 * c-varobj.c (c_is_path_expr_parent): Update.
6249 * c-typeprint.c (c_type_print_base_struct_union): Update.
6250 (c_type_print_base_1): Update. Print struct/class/union/enum in
6251 summary when using C language.
6252 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6253 (gen_maybe_namespace_elt): Update.
6254 * ada-lang.c (ada_type_name): Simplify.
6255 (empty_record, ada_template_to_fixed_record_type_1)
6256 (template_to_static_fixed_type)
6257 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6259 2018-06-01 Tom Tromey <tom@tromey.com>
6261 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6263 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6264 (c_print_type): Update.
6265 (c_print_type): New overload.
6266 (c_type_print_varspec_prefix, c_type_print_args)
6267 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6268 (c_type_print_base_struct_union, c_type_print_base_1)
6269 (cp_type_print_method_args): Add "language" parameter.
6270 (c_type_print_base): Update.
6271 * c-lang.h (c_print_type): Add new overload.
6273 2018-06-01 Tom Tromey <tom@tromey.com>
6275 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6276 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6278 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6280 * aarch64-tdep.c (aarch64_sve_register_names): New const
6282 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6283 (AARCH64_SVE_Z_REGS_NUM): New define.
6284 (AARCH64_SVE_P_REGS_NUM): Likewise.
6285 (AARCH64_SVE_NUM_REGS): Likewise.
6287 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6289 * nat/linux-ptrace.h [__alpha__]
6290 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6293 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6295 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6296 the endianness selected.
6297 * NEWS: Document `set endian auto' mode operation update.
6299 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6301 * Makefile.in: Add new header.
6302 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6303 (sve_vl_from_vg): Likewise.
6304 (sve_vq_from_vl): Likewise.
6305 (sve_vl_from_vq): Likewise.
6306 (sve_vq_from_vg): Likewise.
6307 (sve_vg_from_vq): Likewise.
6308 * configure.nat: Add new c file.
6309 * nat/aarch64-sve-linux-ptrace.c: New file.
6310 * nat/aarch64-sve-linux-ptrace.h: New file.
6312 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6314 * aarch64-linux-nat.c (aarch64_linux_read_description):
6316 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6318 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6319 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6320 (aarch64_gdbarch_init): Add parmeter zero.
6321 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6322 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6323 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6325 * doc/gdb.texinfo: Describe SVE feature
6326 * features/aarch64-sve.c: New file.
6328 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6331 * gdbarch.sh (significant_addr_bit): Default to zero when
6332 not set by target architecture.
6333 * gdbarch.c: Re-generated.
6334 * utils.c (address_significant): Update.
6336 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6338 * stack.c (func_command): Remove trailing newline in call to error.
6340 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6342 * regcache.h (regcache_raw_collect): Remove, update callers to
6343 use regcache::raw_collect.
6344 * regcache.c (regcache_raw_collect): Remove.
6346 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6348 * regcache.h (regcache_raw_supply): Remove, update callers to
6349 use detached_regcache::raw_supply.
6350 * regcache.c (regcache_raw_supply): Remove.
6352 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6354 * regcache.h (regcache_cooked_write_part): Remove, update
6355 callers to use regcache::cooked_write_part.
6356 * regcache.c (regcache_cooked_write_part): Remove.
6358 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6360 * regcache.h (regcache_cooked_read_part): Remove, update callers
6361 to use readable_regcache::cooked_read_part.
6362 * regcache.c (regcache_cooked_read_part): Remove.
6364 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6366 * regcache.h (regcache_cooked_read_value): Remove, update
6367 callers to use readable_regcache::cooked_read_value.
6368 * regcache.c (regcache_cooked_read_value): Remove.
6370 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6372 * regcache.h (regcache_cooked_write): Remove, update callers to
6373 use regcache::cooked_write.
6374 * regcache.c (regcache_cooked_write): Remove.
6376 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6378 * regcache.h (regcache_invalidate): Remove, update callers to
6379 use detached_regcache::invalidate instead.
6380 * regcache.c (regcache_invalidate): Remove.
6382 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6384 * regcache.h (regcache_raw_write_part): Remove, update callers
6385 to use regcache::raw_write_part instead.
6386 * regcache.c (regcache_raw_write_part): Remove.
6388 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6390 * regcache.h (regcache_raw_read_part): Remove, update callers to
6391 use readable_regcache::raw_read_part instead.
6392 * regcache.c (regcache_raw_read_part): Remove.
6394 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6396 * regcache.h (regcache_cooked_read): Remove, update callers to
6397 use readable_regcache::cooked_read instead.
6398 * regcache.c (regcache_cooked_read): Remove.
6400 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6402 * regcache.h (regcache_raw_write): Remove, update callers to use
6403 regcache::raw_write instead.
6404 * regcache.c (regcache_raw_write): Remove.
6406 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6408 * regcache.h (regcache_raw_read): Remove, update callers to use
6409 readable_regcache::raw_read instead.
6410 * regcache.c (regcache_raw_read): Remove.
6412 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6414 * regcache.h (regcache_raw_update): Remove, update callers to
6415 use readable_regcache::raw_update instead.
6416 * regcache.c (regcache_raw_update): Remove.
6418 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6420 * regcache.h (regcache_register_status): Remove, update callers
6421 to use reg_buffer::get_register_status directly instead.
6422 * regcache.c (regcache_register_status): Remove.
6424 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6426 * regcache.h (regcache_get_ptid): Remove, update all callers to
6427 call regcache::ptid instead.
6428 * regcache.c (regcache_get_ptid): Remove.
6430 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6432 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6434 2018-05-30 Pedro Alves <palves@redhat.com>
6436 * common/common-exceptions.h (exception_rethrow): Use
6439 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6441 * breakpoint.c (print_solib_event, check_status_catch_solib):
6442 Remove struct keyword in range-based for loops.
6443 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6444 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6446 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6448 * symfile.c (addr_info_make_relative): Likewise.
6449 * thread.c (value_in_thread_stack_temporaries): Likewise.
6451 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6454 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6455 aggregate type to get its real type before accessing it.
6457 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6459 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6460 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6461 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6462 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6463 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6464 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6465 * printcmd.c (info_address_command): Likewise.
6467 2018-05-29 Tom Tromey <tom@tromey.com>
6469 * windows-nat.c (handle_exception): Update fall-through comment.
6471 2018-05-29 Tom Tromey <tom@tromey.com>
6473 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6474 (struct program_space) <added_solibs>: Now a std::vector.
6475 * breakpoint.c (print_solib_event): Update.
6476 (check_status_catch_solib): Update.
6477 * progspace.c (clear_program_space_solib_cache): Update.
6478 * solib.c (update_solib_list): Update.
6480 2018-05-29 Tom Tromey <tom@tromey.com>
6482 * python/py-type.c (typy_richcompare): Update.
6483 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6484 * gdbtypes.h (types_deeply_equal): Return bool.
6485 (types_equal): Likewise.
6486 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6488 (check_types_equal): Change worklist to std::vector. Return
6490 (struct type_equality_entry): Add constructor.
6491 (compare_maybe_null_strings): Return bool.
6492 (check_types_worklist): Return bool. Change worklist to
6494 (types_deeply_equal): Use std::vector.
6495 (types_equal): Return bool.
6496 (compare_maybe_null_strings): Simplify.
6498 2018-05-29 Tom Tromey <tom@tromey.com>
6500 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
6502 2018-05-29 Tom Tromey <tom@tromey.com>
6504 * objc-lang.h: Don't include cp-support.h.
6505 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
6508 2018-05-27 Tom Tromey <tom@tromey.com>
6510 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
6512 2018-05-25 Tom Tromey <tom@tromey.com>
6514 * value.c (value::location): Initialize.
6516 2018-05-25 Tom Tromey <tom@tromey.com>
6518 * dbxread.c (init_bincl_list): Remove.
6519 (bincl_list): Now a std::vector.
6520 (bincls_allocated, next_bincl): Remove.
6521 (free_bincl_list, do_free_bincl_list_cleanup)
6522 (make_cleanup_free_bincl_list): Remove.
6523 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
6525 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
6526 (struct header_file_location): Add constructor.
6527 (add_bincl_to_list): Remove.
6529 2018-05-25 Tom Tromey <tom@tromey.com>
6531 * tui/tui.c (tui_enable): Update.
6532 * mi/mi-interp.c (mi_interp::init): Update.
6533 * interps.h (class interp) <name>: New method.
6534 <m_name>: Rename from name.
6535 (~scoped_restore_interp): Update.
6536 * interps.c (interp::interp): Update.
6537 (interp_add, interp_set, interp_lookup_existing)
6538 (current_interp_named_p): Update.
6540 2018-05-25 Tom Tromey <tom@tromey.com>
6542 * interps.c (interp_name): Remove.
6543 * mi/mi-interp.c (mi_interp::init): Update.
6544 * interps.h (interp_name): Remove.
6545 (~scoped_restore_interp): Update.
6546 * tui/tui.c (tui_enable): Update.
6548 2018-05-25 Tom Tromey <tom@tromey.com>
6550 * utils.c (fputs_maybe_filtered): Update.
6551 * linespec.c (decode_line_full): Update.
6552 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
6553 (mi_print_breakpoint_for_event, mi_solib_loaded)
6554 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
6555 (mi_user_selected_context_changed): Update.
6556 * mi/mi-main.c (mi_execute_command): Update.
6557 * cli/cli-script.c (execute_control_command): Update.
6558 * python/python.c (execute_gdb_command): Update.
6559 * solib.c (info_sharedlibrary_command): Update.
6560 * interps.c (interp_ui_out): Remove.
6561 * interps.h (interp_ui_out): Remove.
6563 2018-05-25 Tom Tromey <tom@tromey.com>
6565 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
6566 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
6567 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
6569 2018-05-25 Tom Tromey <tom@tromey.com>
6571 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
6572 * interps.c (interp_exec): Use scoped_restore.
6574 2018-05-25 Tom Tromey <tom@tromey.com>
6576 * remote.c (remote_target::remote_file_get): Use
6578 (remote_target::remote_file_put): Likewise.
6580 2018-05-25 Tom Tromey <tom@tromey.com>
6582 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
6584 (get_pe_section_index, add_pe_exported_sym): Update.
6585 (read_pe_exported_syms): Use gdb::def_vector.
6587 2018-05-25 Tom Tromey <tom@tromey.com>
6589 * frame.c (remove_prev_frame): Remove.
6590 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
6592 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6594 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
6596 * mips-linux-nat.c (supply_fpregset): Always call
6597 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
6598 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
6599 `mips_fill_fpregset'.
6600 * mips-linux-tdep.c (mips_supply_fpregset)
6601 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
6602 (mips_fill_fpregset_wrapper): Remove functions.
6603 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
6604 (mips_linux_fpregset): Remove variable.
6605 (mips_linux_iterate_over_regset_sections): Use
6606 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
6607 (mips_linux_o32_sigframe_init): Remove comment.
6609 2018-05-25 Pedro Alves <palves@redhat.com>
6611 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
6612 (struct readahead_cache, struct packet_reg, struct
6613 remote_arch_state, class remote_state): Move higher up in the
6615 (remote_target::m_remote_state): Now an object instead of a pointer.
6616 (remote_target::get_remote_state): Adjust.
6618 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6620 * stack.c (select_and_print_frame): Delete.
6621 (struct function_bounds): Move struct within function.
6622 (func_command): Most content moved into new function
6623 find_frame_for_function, use new function, print result, add
6625 (find_frame_for_function): New function, now returns a result.
6627 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6629 * stack.c (iterate_over_block_arg_vars): Fix comment.
6630 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
6632 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
6636 (scoped_restore_selected_frame::scoped_restore_selected_frame):
6638 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
6640 * frame.h (class scoped_restore_selected_frame): New class.
6641 * stack.c (print_frame_local_vars): Remove catching and rethrowing
6642 of any exception, use scoped_restore_selected_frame to restore the
6645 2018-05-24 Pedro Alves <palves@redhat.com>
6647 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
6650 2018-05-23 Tom Tromey <tom@tromey.com>
6652 * complaints.c (struct complaints): Remove.
6653 (symfile_complaint_book): Remove.
6654 (series): New global.
6655 (complaint_internal): Update.
6656 (clear_complaints): Update.
6658 2018-05-23 Tom Tromey <tom@tromey.com>
6660 * complaints.c (counters): New global.
6661 (struct complain): Remove.
6662 (struct complaints) <root>: Remove.
6663 (complaint_sentinel): Remove.
6664 (symfile_complaint_book): Update.
6665 (find_complaint) Remove.
6666 (complaint_internal, clear_complaints): Update.
6668 2018-05-23 Tom Tromey <tom@tromey.com>
6670 * complaints.c (struct complain) <file, line>: Remove.
6671 (find_complaint): Remove file, line parameters.
6672 (complaint_internal): Update.
6674 2018-05-23 Tom Tromey <tom@tromey.com>
6676 * complaints.c (vcomplaint): Remove.
6677 (complaint_internal) Merge in contents of vcomplaint.
6679 2018-05-23 Tom Tromey <tom@tromey.com>
6681 * complaints.c (struct complaints) <explanation>: Remove.
6682 (symfile_explanations): Remove.
6683 (symfile_complaint_book): Update.
6684 (vcomplaint): Update.
6685 (struct explanation): Remove.
6687 2018-05-23 Tom Tromey <tom@tromey.com>
6689 * complaints.c (symfile_complaints): Remove.
6690 (complaint_internal): Remove "complaints" parameter.
6691 (clear_complaints, vcomplaint): Remove "c" parameter.
6692 (get_complaints): Remove.
6693 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
6694 (dwarf2_debug_line_missing_file_complaint)
6695 (dwarf2_debug_line_missing_end_sequence_complaint)
6696 (dwarf2_complex_location_expr_complaint)
6697 (dwarf2_const_value_length_mismatch_complaint)
6698 (dwarf2_section_buffer_overflow_complaint)
6699 (dwarf2_macro_malformed_definition_complaint)
6700 (dwarf2_invalid_attrib_class_complaint)
6701 (create_addrmap_from_index, dw2_symtab_iter_next)
6702 (dw2_expand_marked_cus)
6703 (dw2_debug_names_iterator::find_vec_in_debug_names)
6704 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
6705 (create_debug_type_hash_table, init_cutu_and_read_dies)
6706 (partial_die_parent_scope, add_partial_enumeration)
6707 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
6708 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
6709 (read_import_statement, read_file_scope, create_dwo_cu_reader)
6710 (create_cus_hash_table, create_dwp_hash_table)
6711 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6712 (dwarf2_rnglists_process, dwarf2_ranges_process)
6713 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
6714 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
6715 (handle_struct_member_die, process_structure_scope)
6716 (read_array_type, read_common_block, read_module_type)
6717 (read_tag_pointer_type, read_typedef, read_base_type)
6718 (read_subrange_type, load_partial_dies, partial_die_info::read)
6719 (partial_die_info::read, partial_die_info::read)
6720 (partial_die_info::read, read_checked_initial_length_and_offset)
6721 (dwarf2_string_attr, read_formatted_entries)
6722 (dwarf_decode_line_header)
6723 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
6724 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
6725 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
6726 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
6727 (get_signatured_type, get_DW_AT_signature_type)
6728 (decode_locdesc, file_file_name, consume_improper_spaces)
6729 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
6730 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6731 (dwarf2_symbol_mark_computed, set_die_type)
6732 (read_attribute_value): Update.
6733 * stap-probe.c (handle_stap_probe, get_stap_base_address):
6735 * dbxread.c (unknown_symtype_complaint)
6736 (lbrac_mismatch_complaint, repeated_header_complaint)
6737 (set_namestring, function_outside_compilation_unit_complaint)
6738 (read_dbx_symtab, process_one_symbol): Update.
6739 * gdbtypes.c (stub_noname_complaint): Update.
6740 * windows-nat.c (handle_unload_dll): Update.
6741 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
6742 (decode_base_type): Update.
6743 * xcoffread.c (bf_notfound_complaint, ef_complaint)
6744 (eb_complaint, record_include_begin, record_include_end)
6745 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
6746 (process_xcoff_symbol, read_symbol)
6747 (function_outside_compilation_unit_complaint)
6748 (scan_xcoff_symtab): Update.
6749 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
6750 * buildsym.c (finish_block_internal, make_blockvector)
6751 (end_symtab_get_static_block, augment_type_symtab): Update.
6752 * dtrace-probe.c (dtrace_process_dof)
6753 (dtrace_static_probe_ops::get_probes): Update.
6754 * complaints.h (struct complaint): Don't declare.
6755 (symfile_complaints): Remove.
6756 (complaint_internal): Remove "complaints" parameter.
6757 (complaint): Likewise.
6758 (clear_complaints): Likewise.
6759 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6760 (reread_symbols): Update.
6761 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
6762 (dwarf2_frame_cache, decode_frame_entry): Update.
6763 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
6764 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6765 (info_selectors_command): Update.
6766 * macrotab.c (macro_include, check_for_redefinition)
6767 (macro_undef): Update.
6768 * objfiles.c (filter_overlapping_sections): Update.
6769 * stabsread.c (invalid_cpp_abbrev_complaint)
6770 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
6771 (define_symbol, error_type, read_type, rs6000_builtin_type)
6772 (stabs_method_name_from_physname, read_member_functions)
6773 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
6774 (attach_fields_to_type, complain_about_struct_wipeout)
6775 (read_range_type, read_args, common_block_start)
6776 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
6778 * mdebugread.c (index_complaint, unknown_ext_complaint)
6779 (basic_type_complaint, bad_tag_guess_complaint)
6780 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
6781 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
6782 (parse_procedure, parse_lines)
6783 (function_outside_compilation_unit_complaint)
6784 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
6785 (bad_tag_guess_complaint, reg_value_complaint): Update.
6786 * cp-support.c (demangled_name_complaint): Update.
6787 * macroscope.c (sal_macro_scope): Update.
6788 * dwarf-index-write.c (class debug_names): Update.
6790 2018-05-23 Tom Tromey <tom@tromey.com>
6792 * complaints.c (clear_complaints): Remove "noisy" parameter.
6793 * complaints.h (clear_complaints): Update.
6794 * symfile.c (syms_from_objfile_1, finish_new_objfile)
6795 (reread_symbols): Update.
6797 2018-05-23 Tom Tromey <tom@tromey.com>
6799 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
6801 (vcomplaint, clear_complaints): Update.
6802 (symfile_explanations): Remove some messages.
6804 2018-05-23 Tom Tromey <tom@tromey.com>
6806 * complaints.c (internal_complaint): Remove.
6807 * complaints.h (internal_complaint): Remove.
6809 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6811 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
6813 2018-05-22 Pedro Alves <palves@redhat.com>
6815 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
6816 (remote_fileio_badfd, remote_fileio_return_errno)
6817 (remote_fileio_return_success, remote_fileio_func_open)
6818 (remote_fileio_func_open, remote_fileio_func_close)
6819 (remote_fileio_func_read, remote_fileio_func_write)
6820 (remote_fileio_func_lseek, remote_fileio_func_rename)
6821 (remote_fileio_func_unlink, remote_fileio_func_stat)
6822 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
6823 (remote_fileio_func_isatty, remote_fileio_func_system): Add
6824 remote_target parameter.
6825 (remote_fio_func_map) <func>: Add remote_target parameter.
6826 (do_remote_fileio_request, remote_fileio_request):
6827 * remote-fileio.h (remote_fileio_request):
6828 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
6829 remote_target parameter.
6830 (remote_notif_process, handle_notification): Adjust to pass down
6832 (remote_notif_state_allocate): Add remote_target parameter. Save
6834 * remote-notif.h (struct remote_target): Forward declare.
6835 (struct notif_client) <parse, ack, can_get_pending_events>: Add
6836 remote_target parameter.
6837 (struct remote_notif_state) <remote>: New field.
6838 (remote_notif_ack, remote_notif_parse): Add remote_target
6840 (remote_notif_state_allocate, remote_notif_state_allocate): Add
6841 remote_target parameter.
6842 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
6843 (threads_listing_context, rmt_thread_action, protocol_feature)
6844 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
6845 (packet_result, struct threads_listing_context, remote_state):
6846 Move definitions and declarations higher up.
6847 (remote_target) <~remote_target>: Declare.
6848 (remote_download_command_source, remote_file_put, remote_file_get)
6849 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
6850 (remote_hostio_pread_vFile, remote_hostio_send_command)
6851 (remote_hostio_set_filesystem, remote_hostio_open)
6852 (remote_hostio_close, remote_hostio_unlink, remote_state)
6853 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
6854 (get_memory_write_packet_size, get_memory_read_packet_size)
6855 (append_pending_thread_resumptions, remote_detach_1)
6856 (append_resumption, remote_resume_with_vcont)
6857 (add_current_inferior_and_thread, wait_ns, wait_as)
6858 (process_stop_reply, remote_notice_new_inferior)
6859 (process_initial_stop_replies, remote_add_thread)
6860 (btrace_sync_conf, remote_btrace_maybe_reopen)
6861 (remove_new_fork_children, kill_new_fork_children)
6862 (discard_pending_stop_replies, stop_reply_queue_length)
6863 (check_pending_events_prevent_wildcard_vcont)
6864 (discard_pending_stop_replies_in_queue, stop_reply)
6865 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
6866 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
6867 (remote_interrupt_as, remote_interrupt_ns)
6868 (remote_get_noisy_reply, remote_query_attached)
6869 (remote_add_inferior, remote_current_thread, get_current_thread)
6870 (set_thread, set_general_thread, set_continue_thread)
6871 (set_general_process, write_ptid)
6872 (remote_unpack_thread_info_response, remote_get_threadinfo)
6873 (parse_threadlist_response, remote_get_threadlist)
6874 (remote_threadlist_iterator, remote_get_threads_with_ql)
6875 (remote_get_threads_with_qxfer)
6876 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
6877 (get_offsets, remote_check_symbols, remote_supported_packet)
6878 (remote_query_supported, remote_packet_size)
6879 (remote_serial_quit_handler, remote_detach_pid)
6880 (remote_vcont_probe, remote_resume_with_hc)
6881 (send_interrupt_sequence, interrupt_query)
6882 (remote_notif_get_pending_events, fetch_register_using_p)
6883 (send_g_packet, process_g_packet, fetch_registers_using_g)
6884 (store_register_using_P, store_registers_using_G)
6885 (set_remote_traceframe, check_binary_download)
6886 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
6887 (remote_xfer_live_readonly_partial, remote_read_bytes)
6888 (remote_send_printf, remote_flash_write, readchar)
6889 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
6890 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
6891 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
6892 (extended_remote_disable_randomization, extended_remote_run)
6893 (send_environment_packet, extended_remote_environment_support)
6894 (extended_remote_set_inferior_cwd, remote_write_qxfer)
6895 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
6896 (packet_command): Now methods of ...
6897 (remote_target): ... this class.
6898 (m_remote_state) <remote_target>: New field.
6899 (struct remote_state) <stop_reply_queue,
6900 remote_async_inferior_event_token, wait_forever_enabled_p>: New
6902 (remote_state::remote_state): Allocate stop_reply_queue.
6903 (remote_state): Delete global.
6904 (get_remote_state_raw): Delete.
6905 (remote_target::get_remote_state): Allocate m_remote_state on
6907 (get_current_remote_target): New.
6908 (remote_ops, extended_remote_ops): Delete.
6909 (wait_forever_enabled_p, remote_async_inferior_event_token):
6910 Delete, moved to struct remote_state.
6911 (remote_target::close): Delete self. Destruction bits split to
6913 (remote_target::~remote_target): ... this.
6914 (show_memory_packet_size): Adjust to use
6915 get_current_remote_target.
6916 (struct protocol_feature) <func>: Add remote_target parameter.
6917 All callers adjusted.
6918 (curr_quit_handler_target): New.
6919 (remote_serial_quit_handler): Reimplement.
6920 (remote_target::open_1): Adjust to use get_current_remote_target.
6921 Heap-allocate remote_target/extended_remote_target instances.
6922 (vcont_builder::vcont_builder): Add remote_target parameter, and
6923 save it in m_remote. All callers adjusted.
6924 (vcont_builder::m_remote): New field.
6925 (vcont_builder::restart, vcont_builder::flush)
6926 (vcont_builder::push_action): Use it.
6927 (remote_target::commit_resume): Use it.
6928 (struct queue_iter_param) <remote>: New field.
6929 (remote_target::remove_new_fork_children): Fill in 'remote' field.
6930 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
6931 (check_pending_event_prevents_wildcard_vcont_callback)
6932 (remote_target::check_pending_events_prevent_wildcard_vcont)
6933 (remote_target::discard_pending_stop_replies)
6934 (remote_target::discard_pending_stop_replies_in_queue)
6935 (remote_target::remote_notif_remove_queued_reply): Fill in
6937 (remote_notif_get_pending_events): New.
6938 (remote_target::readchar, remote_target::remote_serial_write):
6939 Save/restore curr_quit_handler_target.
6941 (kill_new_fork_children): Fill in 'remote' field.
6942 (packet_command): Use get_current_remote_target, defer to
6943 remote_target method of same name.
6944 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
6945 parameter, and save it in m_remote. All callers adjusted.
6946 (scoped_remote_fd::release): Use m_remote.
6947 (scoped_remote_fd::m_remote): New field.
6948 (remote_file_put, remote_file_get, remote_file_delete): Use
6949 get_current_remote_target, defer to remote_target method of same
6951 (remote_btrace_reset): Add remote_state paremeter. Update all
6953 (remote_async_inferior_event_handler). Pass down 'data'.
6954 (remote_new_objfile): Use get_current_remote_target.
6955 (remote_target::vcont_r_supported): New.
6956 (set_range_stepping): Use get_current_remote_target and
6957 remote_target::vcont_r_supported.
6958 (_initialize_remote): Don't allocate 'remote_state' and
6959 'stop_reply_queue' globals.
6960 * remote.h (struct remote_target): Forward declare.
6961 (getpkt, putpkt, remote_notif_get_pending_events): Add
6962 'remote_target' parameter.
6964 2018-05-22 Pedro Alves <palves@redhat.com>
6966 * remote.c (vcont_builder): Now a class. Make all data members
6968 (vcont_builder) <vcont_builder, restart, flush, push_action>:
6970 (vcont_builder_restart): Rename to ...
6971 (vcont_builder::restart): ... this.
6972 (vcont_builder_flush): Rename to ...
6973 (vcont_builder::flush): ... this.
6974 (vcont_builder_push_action): Rename to ...
6975 (vcont_builder::push_action): ... this.
6976 (remote_target::commit_resume): Adjust.
6978 2018-05-22 Pedro Alves <palves@redhat.com>
6980 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
6981 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
6982 (get_fixed_memory_packet_size): New.
6983 (get_memory_packet_size): Use it.
6984 (set_memory_packet_size): Don't override the config size with
6985 DEFAULT_MAX_MEMORY_PACKET_SIZE.
6986 (show_memory_packet_size): Use get_fixed_memory_packet_size.
6987 Don't refer to get_memory_packet_size if not connected to a remote
6988 target. Show "(default)" if configured size is 0.
6990 2018-05-22 Pedro Alves <palves@redhat.com>
6992 * remote.c (remote_target::mourn_inferior): Move
6993 discard_pending_stop_replies call here from ...
6994 (_initialize_remote): ... here.
6996 2018-05-22 Pedro Alves <palves@redhat.com>
6998 * remote.c (compare_section_command): Remove set_general_process
7001 2018-05-22 Pedro Alves <palves@redhat.com>
7003 * remote.c (struct packet_reg, struct remote_arch_state):
7004 Move higher up in the file.
7005 (remote_state) <m_arch_states>: Store remote_arch_state values
7006 instead of remote_arch_state pointers.
7007 (remote_state::get_remote_arch_state): Adjust.
7009 2018-05-22 Pedro Alves <palves@redhat.com>
7011 * remote.c: Include <unordered_map>.
7012 (remote_state): Now a class.
7013 (remote_state) <get_remote_arch_state>: Declare method.
7014 <get_remote_arch_state>: New field.
7015 (remote_arch_state) <remote_arch_state>: Declare ctor.
7016 <regs>: Now a unique_ptr.
7017 (remote_gdbarch_data_handle): Delete.
7018 (get_remote_arch_state): Delete.
7019 (remote_state::get_remote_arch_state): New.
7020 (get_remote_state): Adjust to call remote_state's
7021 get_remote_arch_state method.
7022 (init_remote_state): Delete, bits factored out to ...
7023 (remote_arch_state::remote_arch_state): ... this new method.
7024 (get_remote_packet_size, get_memory_packet_size)
7025 (process_g_packet, remote_target::fetch_registers)
7026 (remote_target::prepare_to_store, store_registers_using_G)
7027 (remote_target::store_registers, remote_target::get_trace_status):
7028 Adjust to call remote_state's method.
7029 (_initialize_remote): Remove reference to
7030 remote_gdbarch_data_handle.
7032 2018-05-22 Pedro Alves <palves@redhat.com>
7034 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7035 pread>: New method declarations.
7036 (remote_target::open_1): Adjust.
7037 (readahead_cache_invalidate): Rename to ...
7038 (readahead_cache::invalidate): ... this, and adjust to be a class
7040 (readahead_cache_invalidate_fd): Rename to ...
7041 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7043 (remote_hostio_pwrite): Adjust.
7044 (remote_hostio_pread_from_cache): Rename to ...
7045 (readahead_cache::pread): ... this, and adjust to be a class
7047 (remote_hostio_close): Adjust.
7049 2018-05-22 Pedro Alves <palves@redhat.com>
7051 * remote.c (remote_hostio_close_cleanup): Delete.
7052 (class scoped_remote_fd): New.
7053 (remote_file_put, remote_file_get): Use it.
7055 2018-05-22 Pedro Alves <palves@redhat.com>
7057 (struct vCont_action_support): Use bool and initialize all fields.
7058 (struct readahead_cache): Initialize all fields.
7059 (remote_state): Use bool and initialize all fields.
7060 (remote_state::remote_state, remote_state::~remote_state): New.
7061 (new_remote_state): Delete.
7062 (_initialize_remote): Use new to allocate remote_state.
7064 2018-05-22 Pedro Alves <palves@redhat.com>
7068 * c-exp.y: Include "c-support.h".
7069 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7070 of tolower. Use c_ident_is_alpha to scan names.
7071 * c-lang.c: Include "c-support.h".
7072 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7073 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7074 * c-support.h: New file, with bits factored out from ...
7075 * cp-name-parser.y: ... this file.
7076 Include "c-support.h".
7077 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7078 c-support.h and renamed.
7079 (symbol_end, yylex): Adjust.
7081 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7083 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7084 parameter type to CORE_ADDR.
7085 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7086 parameter type in declaration to CORE_ADDR.
7087 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7088 target_auxv_search to get AT_HWCAP and use the result to get the
7090 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7091 to CORE_ADDR. Remove the cast of the return value to unsigned
7092 long. Fix error predicate of target_auxv_search.
7093 (ppc_linux_nat_target::read_description): Change the type of the
7094 hwcap variable to CORE_ADDR.
7096 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7098 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7099 if the size of fpscr is larger than 32 bits.
7101 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7103 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7104 (ppc32_linux_vsxregmap): New global.
7105 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7106 regcache_supply_regset, and regcache_collect_regset.
7107 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7108 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7109 (fetch_vsx_register, store_vsx_register): Remove.
7110 (fetch_vsx_registers): Add regno parameter. Get regset using
7111 ppc_linux_vsxregset. Use regset to supply registers.
7112 (store_vsx_registers): Add regno parameter. Get regset using
7113 ppc_linux_vsxregset. Use regset to collect registers.
7114 (fetch_register): Call fetch_vsx_registers instead of
7116 (store_register): Call store_vsx_registers instead of
7118 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7119 new regno parameter.
7120 (store_ppc_registers): Call store_vsx_registers with -1 for the
7121 new regno parameter.
7122 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7123 (ppc_collect_vsxregset): Remove.
7125 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7127 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7129 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7130 for vector register offset fields.
7131 (ppc64_fbsd_reg_offsets): Likewise.
7132 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7133 to vector register offset fields.
7134 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7135 to vector register offset fields.
7136 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7137 vector register offset fields.
7138 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7139 initializers for vector register offset fields.
7140 (rs6000_aix64_reg_offsets): Likewise.
7141 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7142 (ppc_supply_vrregset): Remove.
7143 (ppc_collect_vrregset): Remove.
7144 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7145 (ppc_linux_vrregset) : New function.
7146 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7147 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7148 (ppc32_linux_vrregset): Remove.
7149 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7150 and use result instead of ppc32_linux_vrregset.
7151 (ppc32_linux_reg_offsets): Remove initializers for vector register
7153 (ppc64_linux_reg_offsets): Likewise.
7154 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7155 * ppc-linux-nat.c: Include regset.h.
7156 (gdb_vrregset_t): Adjust comment to account for little-endian
7158 (supply_vrregset, fill_vrregset): Remove.
7159 (fetch_altivec_register, store_altivec_register): Remove.
7160 (fetch_altivec_registers): Add regno parameter. Get regset using
7161 ppc_linux_vrregset. Use regset to supply registers.
7162 (store_altivec_registers): Add regno parameter. Get regset using
7163 ppc_linux_vrregset. Use regset to collect registers.
7164 (fetch_register): Call fetch_altivec_registers instead of
7165 fetch_altivec_register.
7166 (store_register): Call store_altivec_registers instead of
7167 store_altivec_register.
7168 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7169 the new regno parameter.
7170 (store_ppc_registers): Call store_altivec_registers with -1 for
7171 the new regno parameter.
7173 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7175 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7176 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7177 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7178 (gdb_vrregset_t): Change array type size to
7179 PPC_LINUX_SIZEOF_VRREGSET.
7180 (gdb_vsxregset_t): Change array type size to
7181 PPC_LINUX_SIZEOF_VSXREGSET.
7182 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7183 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7184 PPC_LINUX_SIZEOF_VSXREGSET.
7186 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7188 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7189 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7191 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7192 ppc_linux_target_wordsize with tid.
7193 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7195 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7196 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7197 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7198 tid parameter. Remove static specifier.
7199 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7200 (ppc_linux_target_wordsize): New declaration.
7202 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7204 * arch/ppc-linux-common.c: New file.
7205 * arch/ppc-linux-common.h: New file.
7206 * arch/ppc-linux-tdesc.h: New file.
7207 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7208 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7209 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7210 arch/ppc-linux-tdesc.h.
7211 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7212 arch/ppc-linux-tdesc.h.
7213 (ppc_linux_nat_target::read_description): Remove target
7214 description matching code. Fill a ppc_linux_features struct and
7215 call ppc_linux_match_description with it. Move comment about ISA
7216 2.05 to ppc-linux-common.c.
7217 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7218 arch/ppc-linux-tdesc.h.
7219 (ppc_linux_core_read_description): Remove target description
7220 matching code. Fill a ppc_linux_features struct and call
7221 ppc_linux_match_description with it.
7222 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7223 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7224 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7225 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7226 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7227 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7228 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7229 (tdesc_powerpc_e500l): Remove.
7231 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7233 * ada-lang.c (catch_assert_command): Pass empty string instead
7234 of NULL for excep_string argument.
7236 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7238 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7239 the width of the requested register exceeds the width of the
7242 2018-05-21 Tom Tromey <tom@tromey.com>
7244 * printcmd.c (output_command): Remove.
7245 (output_command_const): Rename to output_command.
7246 * valprint.h (output_command): Rename from output_command_const.
7247 * tracepoint.c (trace_dump_actions): Call output_command.
7249 2018-05-21 Tom Tromey <tom@tromey.com>
7251 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7252 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7253 * ada-lang.h (create_ada_exception_catchpoint): Update.
7254 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7256 (create_excep_cond_exprs, ~ada_catchpoint)
7257 (should_stop_exception, print_one_exception)
7258 (print_mention_exception, print_recreate_exception): Update.
7259 (ada_get_next_arg): Remove.
7260 (catch_ada_exception_command_split): Use std::string. Change type
7261 of "excep_string", "cond_string".
7262 (catch_ada_exception_command): Update.
7263 (create_ada_exception_catchpoint): Change type of excep_string.
7264 (ada_exception_sal): Remove excep_string parameter.
7265 (~ada_catchpoint): Remove.
7267 2018-05-21 Tom Tromey <tom@tromey.com>
7269 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7272 2018-05-21 Tom Tromey <tom@tromey.com>
7274 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7275 Return unique_xmalloc_ptr.
7276 (print_it_exception): Update.
7278 2018-05-21 Tom Tromey <tom@tromey.com>
7280 * tracepoint.c (trace_dump_actions): Use std::string.
7282 2018-05-21 Tom Tromey <tom@tromey.com>
7284 * symfile.c (reread_symbols): Use std::string for original_name.
7286 2018-05-21 Tom Tromey <tom@tromey.com>
7288 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7289 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7292 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7294 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7296 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7297 * objfiles.c (get_objfile_bfd_data): Allocate
7298 objfile_per_bfd_storage with obstack_new when allocating on
7301 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7303 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7305 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7306 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7307 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7308 (add_pending): Likewise.
7309 (parse_symbol): Likewise.
7310 (parse_partial_symbols): Likewise.
7311 (psymtab_to_symtab_1): Likewise.
7312 (new_psymtab): Likewise.
7313 (elfmdebug_build_psymtabs): Likewise.
7314 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7315 * objfiles.c (get_objfile_bfd_data): Likewise.
7316 (objfile_register_static_link): Likewise.
7317 * psymtab.c (allocate_psymtab): Likewise.
7318 * stabsread.c (read_member_functions): Likewise.
7319 * xcoffread.c (xcoff_end_psymtab): Likewise.
7321 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7323 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7324 compiler supports std::is_trivially_constructible.
7325 * common/poison.h: Include obstack.h.
7326 (IsMallocable): Define to is_trivially_constructible if the
7327 compiler supports it, define to true_type otherwise.
7331 (XOBNEWVEC): Redefine.
7332 * gdb_obstack.h (obstack_zalloc): New.
7333 (OBSTACK_ZALLOC): Redefine.
7334 (obstack_calloc): New.
7335 (OBSTACK_CALLOC): Redefine.
7337 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7338 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7340 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7341 obstack_calloc/obstack_zalloc.
7342 (gdbarch_obstack_zalloc): Remove.
7343 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7345 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7347 * stack.c (backtrace_command_1): Remove useless variable int i.
7349 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7351 * stack.c (print_frame_info): Fix comment.
7353 2018-05-18 Tom Tromey <tom@tromey.com>
7355 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7356 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7357 (~dwarf2_per_objfile): Update
7358 (dwarf2_get_dwz_file): Use new.
7359 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7362 2018-05-18 Tom Tromey <tom@tromey.com>
7364 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7366 * dwarf2read.c (struct dwp_file): Add constructor and
7368 (open_and_init_dwp_file): Return a unique_ptr.
7369 (dwarf2_per_objfile, create_dwp_hash_table)
7370 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7371 (lookup_dwo_unit_in_dwp): Update.
7372 (open_and_init_dwp_file, get_dwp_file): Update.
7374 2018-05-18 Tom Tromey <tom@tromey.com>
7376 * dwarf2read.c (dwarf2_per_objfile): Update.
7377 (struct mapped_index): Add initializers.
7378 (dwarf2_read_index): Use new.
7379 (dw2_symtab_iter_init): Update.
7380 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7383 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7385 * dwarf2read.c (mapped_index) <total_size>: Remove.
7387 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7389 * unittests/format_pieces-selftests.c (test_format_specifier):
7392 2018-05-18 Tom Tromey <tom@tromey.com>
7394 * c-typeprint.c (maybe_print_hole): New function.
7395 (c_print_type_struct_field_offset): Update.
7396 (c_type_print_base_struct_union): Call maybe_print_hole.
7398 2018-05-17 Keith Seitz <keiths@redhat.com>
7400 * breakpoint.c (build_bpstat_chain): New function, moved from
7402 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7403 If no stop chain is passed, call build_bpstat_chain to build it.
7404 * breakpoint.h (build_bpstat_chain): Declare.
7405 (bpstat_stop_status): Move documentation here from breakpoint.c.
7406 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7407 build the stop chain and pass it to skip_inline_frames.
7408 Pass this stop chain to bpstat_stop_status.
7409 * inline-frame.c: Include breakpoint.h.
7410 (stopped_by_user_bp_inline_frame): New function.
7411 (skip_inline_frames): Add parameter `stop_chain'.
7412 Move documention to inline-frame.h.
7413 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7414 whether the frame should be elided.
7415 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7416 Add moved documentation and update for new parameter.
7418 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7421 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7422 unittests/format_pieces-selftests.c.
7423 * common/format.h (format_piece) <operator==>: New.
7424 (format_pieces) <operator[]>: Remove.
7425 * common/format.c (format_pieces::format_pieces): Handle \e.
7426 * unittests/format_pieces-selftests.c: New.
7428 2018-05-17 Tom Tromey <tom@tromey.com>
7431 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7432 (dw2_instantiate_symtab): Add skip_partial parameter.
7433 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7434 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7435 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7436 (dw2_expand_symtabs_matching_one)
7437 (dw2_find_pc_sect_compunit_symtab)
7438 (dw2_debug_names_lookup_symbol)
7439 (dw2_debug_names_expand_symtabs_for_function): Update.
7440 (init_cutu_and_read_dies): Add skip_partial parameter.
7441 (process_psymtab_comp_unit, build_type_psymtabs_1)
7442 (process_skeletonless_type_unit, load_partial_comp_unit)
7443 (psymtab_to_symtab_1): Update.
7444 (load_full_comp_unit): Add skip_partial parameter.
7445 (process_imported_unit_die, dwarf2_read_addr_index)
7446 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7447 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7448 (read_signatured_type): Update.
7450 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7452 * value.c (release_value): Remove unused variable.
7453 (record_latest_value): Likewise.
7454 (access_value_history): Likewise.
7455 (preserve_values): Likewise.
7457 2018-05-17 Tom Tromey <tom@tromey.com>
7459 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7462 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7465 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7466 Also handle registers whose width is not a multiple of
7468 (linux_nat_trad_target::store_register): Likewise.
7470 2018-05-16 Tom Tromey <tom@tromey.com>
7472 * gdbcore.h (core_bfd): Redefine.
7473 * corelow.c (core_target::close): Update.
7474 (core_target_open): Update.
7475 * progspace.h (struct program_space) <cbfd>: Now a
7478 2018-05-16 Tom Tromey <tom@tromey.com>
7481 * symfile-add-flags.h (enum symfile_add_flags)
7482 <SYMFILE_NOT_FILENAME>: New constant.
7483 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7484 objfile name from BFD.
7485 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7486 * minidebug.c (find_separate_debug_file_in_section): Put
7487 ".gnu_debugdata" into BFD's file name.
7489 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7491 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7494 2018-05-15 Tamar Christina <tamar.christina@arm.com>
7497 * aarch64-tdep.c (aarch64_analyze_prologue,
7498 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
7499 Indicate not interested in errors.
7501 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7503 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
7504 Supply the MIPS_ZERO_REGNUM register.
7506 2018-05-15 Maciej W. Rozycki <macro@mips.com>
7508 * mips-tdep.c (mask_address_var): Make variable static.
7510 2018-05-14 Tom Tromey <tom@tromey.com>
7512 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
7514 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
7516 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
7517 FXSAVE_ADDR for the mxcsr register.
7519 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
7521 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
7523 2018-05-11 Pedro Alves <palves@redhat.com>
7525 * corelow.c (core_target) <core_target>: No longer inline.
7526 Initialize m_core_gdbarch, m_core_vec and build the section table
7528 <~core_target>: New.
7529 <core_gdbarch, get_core_register_section>: New methods.
7530 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
7531 factored out from ...
7532 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
7534 (sniff_core_bfd): Add gdbarch parameter.
7535 (core_close): Delete, merged into ...
7536 (core_target::close): ... here. Delete self.
7537 (core_close_cleanup): Delete.
7538 (core_target_open): Allocate a core_target on the heap. Use a
7539 unique_ptr instead of a cleanup. Bits moved into the core_target
7540 ctor. Adjust to use core_target methods instead of globals.
7541 (get_core_register_section): Rename to ...
7542 (core_target::get_core_register_section): ... this and adjust.
7543 (struct get_core_registers_cb_data): New.
7544 (get_core_registers_cb): Use it. Use bool.
7545 (core_target::fetch_registers, core_target::files_info)
7546 (core_target::xfer_partial, core_target::read_description)
7547 (core_target::pid_to, core_target::thread_name): Adjust to
7548 reference class fields instead of globals.
7549 * target.h (struct target_ops_deleter, target_ops_up): New.
7551 2018-05-11 Pedro Alves <palves@redhat.com>
7553 * corefile.c (core_file_command): Move to corelow.c.
7554 * corelow.c (the_core_target): Delete.
7555 (core_file_command): Moved from corefile.c. Check exec_bfd
7556 instead of the_core_target. Use target_detach instead of calling
7557 into the_core_target directly.
7558 (maybe_say_no_core_file_now): New.
7559 (core_target::detach): Use it.
7560 (_initialize_corelow): Remove references to the_core_target.
7561 * gdbcore.h (the_core_target): Delete.
7563 2018-05-11 Tom Tromey <tromey@redhat.com>
7564 Pedro Alves <palves@redhat.com>
7566 * corefile.c (core_bfd): Remove.
7567 * gdbcore.h (core_bfd): Now a macro.
7568 * progspace.h (struct program_space) <cbfd>: New field.
7570 2018-05-11 Tom Tromey <tom@tromey.com>
7572 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
7575 2018-05-10 Tom Tromey <tom@tromey.com>
7577 * configure: Rebuild.
7578 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
7580 2018-05-10 Joel Brobecker <brobecker@adacore.com>
7583 * regformats/regdat.sh: Adjust script, following the addition
7584 of the new expedite_regs parameter to init_target_desc.
7586 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
7589 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
7590 set_gdbarch_significant_addr_bit.
7591 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
7592 set_gdbarch_significant_addr_bit.
7593 * utils.c (address_significant): Update to sign extend addr.
7595 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
7597 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
7598 (xtensa_linux_init_abi): Limit tdep->num_regs by
7599 tdep->num_nopriv_regs.
7600 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
7601 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
7604 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
7606 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
7608 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
7610 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
7611 (I387_MXCSR_INIT_VAL): New constant.
7612 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
7613 buffer if it was supplied by the inferior.
7614 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
7615 (i387_xsave_get_clear_bv): New function.
7616 (i387_supply_xsave): Only read x87 control registers from the
7617 xsave buffer if the feature is enabled, and the state will have
7618 been written, otherwise, provide a suitable default.
7619 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
7620 including x87 control registers. Update control registers if they
7621 have changed from the default value, and mark features as enabled
7623 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
7625 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7627 * spu-tdep.c (info_spu_event_command): Fix output formatting.
7629 2018-05-07 Tom Tromey <tom@tromey.com>
7631 * configure: Rebuild.
7632 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
7634 2018-05-07 Tom Tromey <tom@tromey.com>
7637 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
7638 bit. Use correct value for VDIV.
7640 2018-05-04 Tom Tromey <tom@tromey.com>
7642 * configure: Rebuild.
7643 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
7645 2018-05-04 Tom Tromey <tom@tromey.com>
7647 * linux-record.c (record_linux_system_call) <case
7648 RECORD_SYS_RECVFROM>: Add "break".
7650 2018-05-04 Tom Tromey <tom@tromey.com>
7652 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
7653 Add missing "break".
7654 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
7655 Add missing "break".
7657 2018-05-04 Tom Tromey <tom@tromey.com>
7659 * rs6000-tdep.c (ppc_process_record_op4)
7660 (ppc_process_record_op63): Add fall-through comment.
7662 2018-05-04 Tom Tromey <tom@tromey.com>
7664 * i386-tdep.c (i386_process_record): Add fall-through comment.
7666 2018-05-04 Tom Tromey <tom@tromey.com>
7668 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
7671 2018-05-04 Tom Tromey <tom@tromey.com>
7673 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
7674 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
7675 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
7677 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
7679 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
7682 2018-05-04 Tom Tromey <tom@tromey.com>
7684 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
7686 2018-05-04 Tom Tromey <tom@tromey.com>
7688 * s390-tdep.c (s390_process_record): Fix fall-through comments.
7689 * xcoffread.c (scan_xcoff_symtab): Move comment later.
7690 * symfile.c (section_is_mapped): Fix fall-through comment.
7691 * stabsread.c (define_symbol, read_member_functions): Fix
7692 fall-through comment.
7693 * s390-linux-tdep.c (s390_process_record): Fix fall-through
7695 * remote.c (remote_wait_as): Fix fall-through comment.
7696 * p-exp.y (yylex): Fix fall-through comment.
7697 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
7699 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
7700 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
7701 * jv-exp.y (yylex): Fix fall-through comment.
7702 * go-exp.y (lex_one_token): Fix fall-through comment.
7703 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
7704 fall-through comment.
7705 * f-exp.y (yylex): Fix fall-through comment.
7706 * dwarf2read.c (process_die): Fix fall-through comments.
7707 * dbxread.c (process_one_symbol): Fix fall-through comment.
7708 * d-exp.y (lex_one_token): Fix fall-through comment.
7709 * cp-name-parser.y (yylex): Fix fall-through comment.
7710 * coffread.c (coff_symtab_read): Fix fall-through comment.
7711 * c-exp.y (lex_one_token): Fix fall-through comment.
7712 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
7714 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
7717 2018-05-04 Tom Tromey <tom@tromey.com>
7720 * NEWS: Mention gdb.execute change.
7721 * gdbcmd.h (execute_control_command): Don't declare.
7722 * python/python.c (execute_gdb_command): Use read_command_lines_1,
7723 execute_control_commands, execute_control_commands_to_string.
7724 * cli/cli-script.h (execute_control_commands)
7725 (execute_control_commands_to_string): Declare.
7726 (execute_control_command): Add from_tty parameter.
7727 * cli/cli-script.c (execute_control_commands)
7728 (execute_control_commands_to_string): New functions.
7729 (execute_user_command): Use execute_control_commands.
7730 (execute_control_command_1): Add "from_tty" parameter. Update.
7731 (execute_control_command): Likewise.
7733 2018-05-04 Tom Tromey <tom@tromey.com>
7736 * NEWS: Mention that breakpoint commands are writable.
7737 * python/py-breakpoint.c (bppy_set_commands): New function.
7738 (breakpoint_object_getset) <"commands">: Use it.
7740 2018-05-04 Tom Tromey <tom@tromey.com>
7742 * tracepoint.c (actions_command): Update.
7743 * mi/mi-cmd-break.c (mi_command_line_array)
7744 (mi_command_line_array_cnt, mi_command_line_array_ptr)
7745 (mi_read_next_line): Remove.
7746 (mi_cmd_break_commands): Update.
7747 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
7749 * cli/cli-script.c (get_command_line): Update.
7750 (process_next_line): Use function_view. Constify.
7751 (recurse_read_control_structure, read_command_lines)
7752 (read_command_lines_1): Change argument types to function_view.
7753 (do_define_command, document_command): Update.
7754 * breakpoint.h (check_tracepoint_command): Don't declare.
7755 * breakpoint.c (check_tracepoint_command): Remove.
7756 (commands_command_1, create_tracepoint_from_upload): Update.
7758 2018-05-04 Tom Tromey <tom@tromey.com>
7761 * cli/cli-script.h (enum command_control_type) <define_control>:
7763 * cli/cli-script.c (multi_line_command_p): Handle define_control.
7764 (build_command_line, execute_control_command_1)
7765 (process_next_line): Likewise.
7766 (do_define_command): New function, extracted from define_command.
7767 (define_command): Use it.
7769 2018-05-04 Tom Tromey <tom@tromey.com>
7771 * tracepoint.c (actions_command): Update.
7772 * cli/cli-script.h (read_command_lines): Update.
7773 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
7774 (MAX_TMPBUF): Remove define.
7775 (define_command): Use string_printf.
7776 (document_command): Likewise.
7777 * breakpoint.c (commands_command_1): Update.
7779 2018-05-04 Tom Tromey <tom@tromey.com>
7781 * top.c (execute_command): Update.
7782 * cli/cli-script.h (print_command_lines): Now varargs.
7783 * cli/cli-script.c (print_command_lines): Now varargs.
7784 (execute_control_command_1) <case while_control, case if_control>:
7787 2018-05-04 Tom Tromey <tom@tromey.com>
7789 * tracepoint.c (all_tracepoint_actions): Rename from
7790 all_tracepoint_actions_and_cleanup. Change return type.
7791 (actions_command, encode_actions_1, encode_actions)
7792 (trace_dump_actions, tdump_command): Update.
7793 * remote.c (remote_download_command_source): Update.
7794 * python/python.c (gdbpy_eval_from_control_command)
7795 (python_command, python_interactive_command): Update.
7796 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
7797 * guile/guile.c (guile_command)
7798 (gdbscm_eval_from_control_command, guile_command): Update.
7799 * compile/compile.c (compile_code_command)
7800 (compile_print_command, compile_to_object): Update.
7801 * cli/cli-script.h (struct command_lines_deleter): New.
7802 (counted_command_line): New typedef.
7803 (struct command_line): Add constructor, destructor.
7804 <body_list>: Remove.
7805 <body_list_0, body_list_1>: New members.
7806 (command_line_up): Remove typedef.
7807 (read_command_lines, read_command_lines_1, get_command_line):
7809 (copy_command_lines): Don't declare.
7810 * cli/cli-script.c (build_command_line): Use "new".
7811 (get_command_line): Return counted_command_line.
7812 (print_command_lines, execute_user_command)
7813 (execute_control_command_1, while_command, if_command): Update.
7814 (realloc_body_list): Remove.
7815 (process_next_line, recurse_read_control_structure): Update.
7816 (read_command_lines, read_command_lines_1): Return counted_command_line.
7817 (free_command_lines): Use "delete".
7818 (copy_command_lines): Remove.
7819 (define_command, document_command, show_user_1): Update.
7820 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
7821 a counted_command_line.
7822 * breakpoint.h (counted_command_line): Remove typedef.
7823 (breakpoint_set_commands): Update.
7824 * breakpoint.c (check_no_tracepoint_commands)
7825 (validate_commands_for_breakpoint): Update.
7826 (breakpoint_set_commands): Change commands to be a
7827 counted_command_line.
7828 (commands_command_1, update_dprintf_command_list)
7829 (create_tracepoint_from_upload): Update.
7831 2018-05-04 Tom Tromey <tom@tromey.com>
7833 * cli/cli-decode.h (cmd_list_element): New constructor.
7834 (~cmd_list_element): New destructor.
7835 (struct cmd_list_element): Add initializers.
7836 * cli/cli-decode.c (do_add_cmd): Use "new".
7837 (delete_cmd): Use "delete".
7839 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7840 Pedro Alves <palves@redhat.com>
7842 PR breakpoints/19806 and support for PR external/20207.
7843 * NEWS: Mention Aarch64 watchpoint improvements.
7844 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
7845 watchpoints and PR external/20207 watchpoints.
7846 * nat/aarch64-linux-hw-point.c
7847 (kernel_supports_any_contiguous_range): New.
7848 (aarch64_watchpoint_offset): New.
7849 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
7850 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
7851 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
7852 (aarch64_align_watchpoint): New parameters aligned_offset_p and
7853 next_addr_orig_p. Support PR external/20207 watchpoints.
7854 (aarch64_downgrade_regs): New.
7855 (aarch64_dr_state_insert_one_point): New parameters offset and
7857 (aarch64_dr_state_remove_one_point): Likewise.
7858 (aarch64_handle_breakpoint): Update caller.
7859 (aarch64_handle_aligned_watchpoint): Likewise.
7860 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
7862 (aarch64_linux_set_debug_regs): Remove const from state. Call
7863 aarch64_downgrade_regs.
7864 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
7865 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
7866 (DR_CONTROL_MASK): ... this.
7867 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
7868 (unsigned int aarch64_watchpoint_offset): New prototype.
7869 (aarch64_linux_set_debug_regs): Remove const from state.
7870 * utils.c (align_up, align_down): Move to ...
7871 * common/common-utils.c (align_up, align_down): ... here.
7872 * utils.h (align_up, align_down): Move to ...
7873 * common/common-utils.h (align_up, align_down): ... here.
7875 2018-05-04 Joel Brobecker <brobecker@adacore.com>
7877 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
7878 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
7879 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
7880 Re-implement to match the ABI as summarized in GCC's
7881 gcc/config/sparc/sparc.c. All callers updated.
7882 (sparc32_store_arguments): Remove assertion.
7884 2018-05-04 Tom Tromey <tom@tromey.com>
7886 * printcmd.c: Don't include tui.h.
7887 (decode_format): Use skip_spaces.
7889 2018-05-04 Tom Tromey <tom@tromey.com>
7892 * printcmd.c (last_count): New global.
7893 (x_command): Use saved count when repeating.
7895 2018-05-04 Tom Tromey <tom@tromey.com>
7897 * nto-procfs.c (do_closedir_cleanup): Remove.
7898 (procfs_pidlist): Use gdb_dir_up.
7899 * procfs.c (do_closedir_cleanup): Remove.
7900 (proc_update_threads): Use gdb_dir_up.
7901 * common/filestuff.h (struct gdb_dir_deleter): New.
7902 (gdb_dir_up): New typedef.
7904 2018-05-04 Tom Tromey <tom@tromey.com>
7906 * ada-lang.c (print_mention_exception): Use std::string.
7908 2018-05-04 Tom Tromey <tom@tromey.com>
7910 * ada-lang.c (create_excep_cond_exprs): Update.
7911 (ada_exception_catchpoint_cond_string): Use std::string.
7913 2018-05-04 Tom Tromey <tom@tromey.com>
7915 * ada-lang.c (xget_renaming_scope): Return std::string.
7916 (old_renaming_is_invisible): Update.
7918 2018-05-04 Tom Tromey <tom@tromey.com>
7920 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
7921 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
7923 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7925 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
7927 2018-05-04 Tom Tromey <tom@tromey.com>
7929 * remote.c (remote_query_supported_append): Change type.
7930 (remote_check_symbols): Update.
7932 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
7935 * configure.ac: Prepend libpython.
7936 * python/python-config.py: Likewise.
7937 * configure: Regenerate.
7939 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
7941 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
7943 2018-05-03 Pedro Alves <palves@redhat.com>
7946 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
7947 override. Write 'true' instead of '1'.
7948 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
7951 2018-05-02 Pedro Alves <palves@redhat.com>
7953 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
7954 add_inf_child_target.
7955 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
7956 add_inf_child_target.
7957 * aix-thread.c (aix_thread_target_info): New.
7958 (aix_thread_target) <shortname, longname, doc>: Delete.
7960 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
7961 add_inf_child_target.
7962 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
7963 add_inf_child_target.
7964 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
7965 add_inf_child_target.
7966 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
7967 add_inf_child_target.
7968 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
7969 add_inf_child_target.
7970 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
7971 add_inf_child_target.
7972 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
7973 add_inf_child_target.
7974 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
7975 add_inf_child_target.
7976 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
7977 add_inf_child_target.
7978 * bfd-target.c (target_bfd_target_info): New.
7979 (target_bfd) <shortname, longname, doc>: Delete.
7981 * bsd-kvm.c (bsd_kvm_target_info): New.
7982 (bsd_kvm_target) <shortname, longname, doc>: Delete.
7984 (bsd_kvm_target::open): Rename to ...
7985 (bsd_kvm_target_open): ... this. Adjust.
7986 * bsd-uthread.c (bsd_uthread_target_info): New.
7987 (bsd_uthread_target) <shortname, longname, doc>: Delete.
7989 * corefile.c (core_file_command): Adjust.
7990 * corelow.c (core_target_info): New.
7991 (core_target) <shortname, longname, doc>: Delete.
7993 (core_target::open): Rename to ...
7994 (core_target_open): ... this. Adjust.
7995 * ctf.c (ctf_target_info): New.
7996 (ctf_target) <shortname, longname, doc>: Delete.
7998 (ctf_target::open): Rename to ...
7999 (ctf_target_open): ... this.
8000 (_initialize_ctf): Adjust.
8001 * exec.c (exec_target_info): New.
8002 (exec_target) <shortname, longname, doc>: Delete.
8004 (exec_target::open): Rename to ...
8005 (exec_target_open): ... this.
8006 * gdbcore.h (core_target_open): Declare.
8007 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8008 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8009 add_inf_child_target.
8010 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8011 add_inf_child_target.
8012 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8013 add_inf_child_target.
8014 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8015 add_inf_child_target.
8016 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8017 add_inf_child_target.
8018 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8019 add_inf_child_target.
8020 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8021 add_inf_child_target.
8022 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8023 add_inf_child_target.
8024 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8025 add_inf_child_target.
8026 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8027 add_inf_child_target.
8028 * inf-child.c (inf_child_target_info): New.
8029 (inf_child_target::info): New.
8030 (inf_child_open_target): Remove 'target' parameter. Use
8031 get_native_target instead.
8032 (inf_child_target::open): Delete.
8033 (add_inf_child_target): New.
8034 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8037 (add_inf_child_target): Declare.
8038 (inf_child_open_target): Declare.
8039 * linux-thread-db.c (thread_db_target_info): New.
8040 (thread_db_target) <shortname, longname, doc>: Delete.
8042 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8043 add_inf_child_target.
8044 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8045 add_inf_child_target.
8046 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8047 add_inf_child_target.
8048 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8049 add_inf_child_target.
8050 * make-target-delegates (print_class): Adjust.
8051 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8052 add_inf_child_target.
8053 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8054 add_inf_child_target.
8055 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8056 add_inf_child_target.
8057 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8058 add_inf_child_target.
8059 * nto-procfs.c (nto_native_target_info): New.
8060 (nto_procfs_target_native) <shortname, longname, doc>:
8063 (nto_procfs_target_info): New.
8064 (nto_procfs_target_procfs) <shortname, longname, doc>:
8067 (init_procfs_targets): Adjust.
8068 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8069 add_inf_child_target.
8070 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8071 add_inf_child_target.
8072 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8073 add_inf_child_target.
8074 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8075 add_inf_child_target.
8076 * ravenscar-thread.c (ravenscar_target_info): New.
8077 (ravenscar_thread_target) <shortname, longname, doc>:
8080 * record-btrace.c (record_btrace_target_info):
8081 (record_btrace_target) <shortname, longname, doc>: Delete.
8083 (record_btrace_target::open): Rename to ...
8084 (record_btrace_target_open): ... this. Adjust.
8085 * record-full.c (record_longname, record_doc): New.
8086 (record_full_base_target) <shortname, longname, doc>: Delete.
8088 (record_full_target_info): New.
8089 (record_full_target): <shortname>: Delete.
8091 (record_full_core_open_1, record_full_open_1): Update comments.
8092 (record_full_base_target::open): Rename to ...
8093 (record_full_open): ... this.
8094 (cmd_record_full_restore): Update.
8095 (_initialize_record_full): Update.
8096 * remote-sim.c (remote_sim_target_info): New.
8097 (gdbsim_target) <shortname, longname, doc>: Delete.
8099 (gdbsim_target::open): Rename to ...
8100 (gdbsim_target_open): ... this.
8101 (_initialize_remote_sim): Adjust.
8102 * remote.c (remote_doc): New.
8103 (remote_target_info): New.
8104 (remote_target) <shortname, longname, doc>: Delete.
8106 (extended_remote_target_info): New.
8107 (extended_remote_target) <shortname, longname, doc>: Delete.
8109 (remote_target::open_1): Make static. Adjust.
8110 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8111 * s390-linux-nat.c (_initialize_s390_nat): Use
8112 add_inf_child_target.
8113 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8114 add_inf_child_target.
8115 * sol-thread.c (thread_db_target_info): New.
8116 (sol_thread_target) <shortname, longname, doc>: Delete.
8118 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8119 add_inf_child_target.
8120 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8121 add_inf_child_target.
8122 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8123 add_inf_child_target.
8124 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8125 add_inf_child_target.
8126 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8127 add_inf_child_target.
8128 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8129 add_inf_child_target.
8130 * spu-linux-nat.c (_initialize_spu_nat): Use
8131 add_inf_child_target.
8132 * spu-multiarch.c (spu_multiarch_target_info): New.
8133 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8135 * target-delegates.c: Regenerate.
8136 * target.c: Include <unordered_map>.
8137 (target_ops_p): Delete.
8138 (DEF_VEC_P(target_ops_p)): Delete.
8139 (target_factories): New.
8140 (test_target_info): New.
8141 (test_target_ops::info): New.
8142 (open_target): Adjust to use target_factories.
8143 (add_target_with_completer): Rename to ...
8144 (add_target): ... this. Change prototype. Register target_info
8145 and open callback in target_factories. Register target_info in
8146 command context instead of target_ops.
8147 (add_target): Delete old implementation.
8148 (add_deprecated_target_alias): Change prototype. Adjust.
8149 (the_native_target): New.
8150 (set_native_target, get_native_target): New.
8151 (find_default_run_target): Use the_native_target.
8152 (find_attach_target, find_run_target): Simplify.
8153 (target_ops::open): Delete.
8154 (dummy_target_info): New.
8155 (dummy_target::shortname, dummy_target::longname)
8156 (dummy_target::doc): Delete.
8157 (dummy_target::info): New.
8158 (debug_target::shortname, debug_target::longname)
8159 (debug_target::doc): Delete.
8160 (debug_target::info): New.
8161 * target.h (struct target_info): New.
8162 (target_ops::~target_ops): Add comment.
8163 (target_ops::info): New.
8164 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8165 longer virtual. Implement in terms of target_info.
8166 (set_native_target, get_native_target): Declare.
8167 (target_open_ftype): New.
8168 (add_target, add_target_with_completer)
8169 (add_deprecated_target_alias): Change prototype.
8170 (test_target) <shortname, longname, doc>: Delete.
8172 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8173 add_inf_child_target.
8174 * tracefile-tfile.c (tfile_target_info): New.
8175 (tfile_target) <shortname, longname, doc>: Delete.
8177 (tfile_target::open): Rename to ...
8178 (tfile_target_open): ... this.
8179 (_initialize_tracefile_tfile): Adjust.
8180 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8181 add_inf_child_target.
8182 * windows-nat.c (_initialize_windows_nat): Use
8183 add_inf_child_target.
8184 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8185 add_inf_child_target.
8187 2018-05-02 Pedro Alves <palves@redhat.com>
8189 * linux-nat.h (linux_nat_target) <low_new_thread,
8190 low_delete_thread, low_new_fork, low_forget_process,
8191 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8192 New virtual methods.
8193 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8194 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8195 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8196 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8197 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8199 * linux-fork.c (delete_fork): Adjust to call low method.
8200 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8201 (linux_nat_new_fork, linux_nat_forget_process_hook)
8202 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8203 (linux_nat_status_is_event):
8204 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8205 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8207 (sigtrap_is_event): Rename to ...
8208 (linux_nat_target::low_status_is_event): ... this.
8209 (linux_nat_set_status_is_event): Delete.
8210 (save_stop_reason, linux_nat_wait_1)
8211 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8213 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8214 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8215 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8216 (linux_nat_set_prepare_to_resume): Delete.
8217 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8218 low virtual methods.
8219 * amd64-linux-nat.c: Likewise.
8220 * arm-linux-nat.c: Likewise.
8221 * i386-linux-nat.c: Likewise.
8222 * ia64-linux-nat.c: Likewise.
8223 * mips-linux-nat.c: Likewise.
8224 * ppc-linux-nat.c: Likewise.
8225 * s390-linux-nat.c: Likewise.
8226 * sparc64-linux-nat.c: Likewise.
8227 * x86-linux-nat.c: Likewise.
8228 * x86-linux-nat.h: Include "nat/x86-linux.h".
8229 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8230 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8233 2018-05-02 Pedro Alves <palves@redhat.com>
8235 * target.h (target_ops)
8236 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8237 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8238 stopped_by_watchpoint, have_continuable_watchpoint,
8239 stopped_data_address, watchpoint_addr_within_range,
8240 can_accel_watchpoint_condition, can_run, thread_alive,
8241 has_all_memory, has_memory, has_stack, has_registers,
8242 has_execution, can_async_p, is_async_p, supports_non_stop,
8243 always_non_stop_p, can_execute_reverse, supports_multi_process,
8244 supports_enable_disable_tracepoint,
8245 supports_disable_randomization, supports_string_tracing,
8246 supports_evaluation_of_breakpoint_conditions,
8247 can_run_breakpoint_commands, filesystem_is_local,
8248 can_download_tracepoint, get_trace_state_variable_value,
8249 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8250 record_is_replaying, record_will_replay,
8251 augmented_libraries_svr4_read>: Adjust to return bool.
8252 * aarch64-linux-nat.c: All implementations adjusted.
8253 * aix-thread.c: All implementations adjusted.
8254 * arm-linux-nat.c: All implementations adjusted.
8255 * breakpoint.c: All implementations adjusted.
8256 * bsd-kvm.c: All implementations adjusted.
8257 * bsd-uthread.c: All implementations adjusted.
8258 * corelow.c: All implementations adjusted.
8259 * ctf.c: All implementations adjusted.
8260 * darwin-nat.c: All implementations adjusted.
8261 * darwin-nat.h: All implementations adjusted.
8262 * exec.c: All implementations adjusted.
8263 * fbsd-nat.c: All implementations adjusted.
8264 * fbsd-nat.h: All implementations adjusted.
8265 * gnu-nat.c: All implementations adjusted.
8266 * gnu-nat.h: All implementations adjusted.
8267 * go32-nat.c: All implementations adjusted.
8268 * ia64-linux-nat.c: All implementations adjusted.
8269 * inf-child.c: All implementations adjusted.
8270 * inf-child.h: All implementations adjusted.
8271 * inf-ptrace.c: All implementations adjusted.
8272 * inf-ptrace.h: All implementations adjusted.
8273 * linux-nat.c: All implementations adjusted.
8274 * linux-nat.h: All implementations adjusted.
8275 * mips-linux-nat.c: All implementations adjusted.
8276 * nto-procfs.c: All implementations adjusted.
8277 * ppc-linux-nat.c: All implementations adjusted.
8278 * procfs.c: All implementations adjusted.
8279 * ravenscar-thread.c: All implementations adjusted.
8280 * record-btrace.c: All implementations adjusted.
8281 * record-full.c: All implementations adjusted.
8282 * remote-sim.c: All implementations adjusted.
8283 * remote.c: All implementations adjusted.
8284 * s390-linux-nat.c: All implementations adjusted.
8285 * sol-thread.c: All implementations adjusted.
8286 * spu-multiarch.c: All implementations adjusted.
8287 * target-delegates.c: All implementations adjusted.
8288 * target.c: All implementations adjusted.
8289 * target.h: All implementations adjusted.
8290 * tracefile-tfile.c: All implementations adjusted.
8291 * tracefile.c: All implementations adjusted.
8292 * tracefile.h: All implementations adjusted.
8293 * windows-nat.c: All implementations adjusted.
8294 * x86-linux-nat.h: All implementations adjusted.
8295 * x86-nat.h: All implementations adjusted.
8297 2018-05-02 Pedro Alves <palves@redhat.com>
8299 * make-target-delegates (scan_target_h): Don't trim lines here.
8300 Replace sequences of tabs and/or whitespace with a single
8302 (top level, parsing methods): Trim each line before processing it
8305 2018-05-02 Pedro Alves <palves@redhat.com>
8306 John Baldwin <jhb@freebsd.org>
8308 * target.h (enum strata) <debug_stratum>: New.
8309 (struct target_ops) <all delegation methods>: Replace by C++
8310 virtual methods, and drop "to_" prefix. All references updated
8312 <to_shortname, to_longname, to_doc, to_data,
8313 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8314 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8315 virtual methods. All references updated throughout.
8316 <can_attach, supports_terminal_ours, can_create_inferior,
8317 get_thread_control_capabilities, attach_no_wait>: New
8319 <insert_breakpoint, remove_breakpoint>: Now
8320 TARGET_DEFAULT_NORETURN methods.
8321 <info_proc>: Now returns bool.
8323 (OPS_MAGIC): Delete.
8324 (current_target): Delete. All references replaced by references
8326 (target_stack): ... this. New.
8327 (target_shortname, target_longname): Adjust.
8328 (target_can_run): Now a function declaration.
8329 (default_child_has_all_memory, default_child_has_memory)
8330 (default_child_has_stack, default_child_has_registers)
8331 (default_child_has_execution): Remove target_ops parameter.
8332 (complete_target_initialization): Delete.
8333 (memory_breakpoint_target): New template class.
8334 (test_target_ops): Refactor as a C++ class with virtual methods.
8335 * make-target-delegates (NAME_PART): Tighten.
8336 (POINTER_PART, CP_SYMBOL): New.
8337 (SIMPLE_RETURN_PART): Reimplement.
8338 (VEC_RETURN_PART): Expect less.
8339 (RETURN_PART, VIRTUAL_PART): New.
8340 (METHOD): Adjust to C++ virtual methods.
8341 (scan_target_h): Remove reference to C99.
8342 (dname): Output "target_ops::" prefix.
8343 (write_function_header): Adjust to output a C++ class method.
8344 (write_declaration): New.
8345 (write_delegator): Adjust to output a C++ class method.
8346 (tdname): Output "dummy_target::" prefix.
8347 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8349 (tdefault_names, debug_names): Delete.
8350 (return_types, tdefaults, styles, argtypes_array): New.
8351 (top level): All methods are delegators.
8353 (top level): Print dummy_target and debug_target classes.
8354 * target-delegates.c: Regenerate.
8355 * target-debug.h (target_debug_print_enum_info_proc_what)
8356 (target_debug_print_thread_control_capabilities)
8357 (target_debug_print_thread_info_p): New.
8358 * target.c (dummy_target): Delete.
8359 (the_dummy_target, the_debug_target): New.
8360 (target_stack): Now extern.
8361 (set_targetdebug): Push/unpush debug target.
8362 (default_child_has_all_memory, default_child_has_memory)
8363 (default_child_has_stack, default_child_has_registers)
8364 (default_child_has_execution): Remove target_ops parameter.
8365 (complete_target_initialization): Delete.
8366 (add_target_with_completer): No longer call
8367 complete_target_initialization.
8368 (target_supports_terminal_ours): Use regular delegation.
8369 (update_current_target): Delete.
8370 (push_target): No longer check magic number. Don't call
8371 update_current_target.
8372 (unpush_target): Don't call update_current_target.
8373 (target_is_pushed): No longer check magic number.
8374 (target_require_runnable): Skip for all stratums over
8376 (target_ops::info_proc): New.
8377 (target_info_proc): Use find_target_at and
8378 find_default_run_target.
8379 (target_supports_disable_randomization): Use regular delegation.
8380 (target_get_osdata): Use find_target_at.
8381 (target_ops::open, target_ops::close, target_ops::can_attach)
8382 (target_ops::attach, target_ops::can_create_inferior)
8383 (target_ops::create_inferior, target_ops::can_run)
8384 (target_can_run): New.
8385 (default_fileio_target): Use regular delegation.
8386 (target_ops::fileio_open, target_ops::fileio_pwrite)
8387 (target_ops::fileio_pread, target_ops::fileio_fstat)
8388 (target_ops::fileio_close, target_ops::fileio_unlink)
8389 (target_ops::fileio_readlink): New.
8390 (target_fileio_open_1, target_fileio_unlink)
8391 (target_fileio_readlink): Always call the target method. Handle
8393 (return_zero, return_zero_has_execution): Delete.
8394 (init_dummy_target): Delete.
8395 (dummy_target::dummy_target, dummy_target::shortname)
8396 (dummy_target::longname, dummy_target::doc)
8397 (debug_target::debug_target, debug_target::shortname)
8398 (debug_target::longname, debug_target::doc): New.
8399 (target_supports_delete_record): Use regular delegation.
8400 (setup_target_debug): Delete.
8401 (maintenance_print_target_stack): Skip debug_stratum.
8402 (initialize_targets): Instantiate the_dummy_target and
8404 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8406 (target_auxv_search, fprint_target_auxv): Adjust.
8407 (info_auxv_command): Adjust to use target_stack.
8408 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8409 * exceptions.c (print_flush): Handle a NULL target_stack.
8410 * regcache.c (target_ops_no_register): Refactor as class with
8413 * exec.c (exec_target): New class.
8414 (exec_ops): Now an exec_target.
8415 (exec_open, exec_close_1, exec_get_section_table)
8416 (exec_xfer_partial, exec_files_info, exec_has_memory)
8417 (exec_make_note_section): Refactor as exec_target methods.
8418 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8420 (exec_target::find_memory_regions): New.
8421 (_initialize_exec): Don't call init_exec_ops.
8422 * gdbcore.h (exec_file_clear): Delete.
8424 * corefile.c (core_target): Delete.
8425 (core_file_command): Adjust.
8426 * corelow.c (core_target): New class.
8427 (the_core_target): New.
8428 (core_close): Remove target_ops parameter.
8429 (core_close_cleanup): Adjust.
8430 (core_target::close): New.
8431 (core_open, core_detach, get_core_registers, core_files_info)
8432 (core_xfer_partial, core_thread_alive, core_read_description)
8433 (core_pid_to_str, core_thread_name, core_has_memory)
8434 (core_has_stack, core_has_registers, core_info_proc): Rework as
8435 core_target methods.
8436 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8437 (_initialize_corelow): Initialize the_core_target.
8438 * gdbcore.h (core_target): Delete.
8439 (the_core_target): New.
8441 * ctf.c: (ctf_target): New class.
8442 (ctf_ops): Now a ctf_target.
8443 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8444 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8445 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8447 (init_ctf_ops): Delete.
8448 (_initialize_ctf): Don't call it.
8449 * tracefile-tfile.c (tfile_target): New class.
8450 (tfile_ops): Now a tfile_target.
8451 (tfile_open, tfile_close, tfile_files_info)
8452 (tfile_get_tracepoint_status, tfile_trace_find)
8453 (tfile_fetch_registers, tfile_xfer_partial)
8454 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8455 Refactor as tfile_target methods.
8456 (tfile_xfer_partial_features): Remove target_ops parameter.
8457 (init_tfile_ops): Delete.
8458 (_initialize_tracefile_tfile): Don't call it.
8459 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8460 (tracefile_has_stack, tracefile_has_registers)
8461 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8462 tracefile_target methods.
8463 (init_tracefile_ops): Delete.
8464 (tracefile_target::tracefile_target): New.
8465 * tracefile.h: Include "target.h".
8466 (tracefile_target): New class.
8467 (init_tracefile_ops): Delete.
8469 * spu-multiarch.c (spu_multiarch_target): New class.
8470 (spu_ops): Now a spu_multiarch_target.
8471 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8472 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8473 (spu_search_memory, spu_mourn_inferior): Refactor as
8474 spu_multiarch_target methods.
8475 (init_spu_ops): Delete.
8476 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8477 complete_target_initialization.
8479 * ravenscar-thread.c (ravenscar_thread_target): New class.
8480 (ravenscar_ops): Now a ravenscar_thread_target.
8481 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8482 (ravenscar_thread_alive, ravenscar_pid_to_str)
8483 (ravenscar_fetch_registers, ravenscar_store_registers)
8484 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8485 (ravenscar_stopped_by_hw_breakpoint)
8486 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8487 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8488 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8490 (init_ravenscar_thread_ops): Delete.
8491 (_initialize_ravenscar): Remove references to
8492 init_ravenscar_thread_ops and complete_target_initialization.
8494 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
8495 (bsd_uthread_target): New class.
8496 (bsd_uthread_ops): Now a bsd_uthread_target.
8497 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
8498 (bsd_uthread_close, bsd_uthread_mourn_inferior)
8499 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
8500 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
8501 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
8502 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
8503 (bsd_uthread_target): Delete function.
8504 (_initialize_bsd_uthread): Remove reference to
8505 complete_target_initialization.
8507 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
8508 (target_bfd): ... this new class.
8509 (target_bfd_xfer_partial, target_bfd_get_section_table)
8510 (target_bfd_close): Refactor as target_bfd methods.
8511 (target_bfd::~target_bfd): New.
8512 (target_bfd_reopen): Adjust.
8513 (target_bfd::close): New.
8515 * record-btrace.c (record_btrace_target): New class.
8516 (record_btrace_ops): Now a record_btrace_target.
8517 (record_btrace_open, record_btrace_stop_recording)
8518 (record_btrace_disconnect, record_btrace_close)
8519 (record_btrace_async, record_btrace_info)
8520 (record_btrace_insn_history, record_btrace_insn_history_range)
8521 (record_btrace_insn_history_from, record_btrace_call_history)
8522 (record_btrace_call_history_range)
8523 (record_btrace_call_history_from, record_btrace_record_method)
8524 (record_btrace_is_replaying, record_btrace_will_replay)
8525 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8526 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
8527 (record_btrace_store_registers, record_btrace_prepare_to_store)
8528 (record_btrace_to_get_unwinder)
8529 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
8530 (record_btrace_commit_resume, record_btrace_wait)
8531 (record_btrace_stop, record_btrace_can_execute_reverse)
8532 (record_btrace_stopped_by_sw_breakpoint)
8533 (record_btrace_supports_stopped_by_sw_breakpoint)
8534 (record_btrace_stopped_by_hw_breakpoint)
8535 (record_btrace_supports_stopped_by_hw_breakpoint)
8536 (record_btrace_update_thread_list, record_btrace_thread_alive)
8537 (record_btrace_goto_begin, record_btrace_goto_end)
8538 (record_btrace_goto, record_btrace_stop_replaying_all)
8539 (record_btrace_execution_direction)
8540 (record_btrace_prepare_to_generate_core)
8541 (record_btrace_done_generating_core): Refactor as
8542 record_btrace_target methods.
8543 (init_record_btrace_ops): Delete.
8544 (_initialize_record_btrace): Remove reference to
8545 init_record_btrace_ops.
8546 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
8547 the execution_direction global.
8548 (record_full_base_target, record_full_target)
8549 (record_full_core_target): New classes.
8550 (record_full_ops): Now a record_full_target.
8551 (record_full_core_ops): Now a record_full_core_target.
8552 (record_full_target::detach, record_full_target::disconnect)
8553 (record_full_core_target::disconnect)
8554 (record_full_target::mourn_inferior, record_full_target::kill):
8556 (record_full_open, record_full_close, record_full_async): Refactor
8557 as methods of the record_full_base_target class.
8558 (record_full_resume, record_full_commit_resume): Refactor
8559 as methods of the record_full_target class.
8560 (record_full_wait, record_full_stopped_by_watchpoint)
8561 (record_full_stopped_data_address)
8562 (record_full_stopped_by_sw_breakpoint)
8563 (record_full_supports_stopped_by_sw_breakpoint)
8564 (record_full_stopped_by_hw_breakpoint)
8565 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
8566 methods of the record_full_base_target class.
8567 (record_full_store_registers, record_full_xfer_partial)
8568 (record_full_insert_breakpoint, record_full_remove_breakpoint):
8569 Refactor as methods of the record_full_target class.
8570 (record_full_can_execute_reverse, record_full_get_bookmark)
8571 (record_full_goto_bookmark, record_full_execution_direction)
8572 (record_full_record_method, record_full_info, record_full_delete)
8573 (record_full_is_replaying, record_full_will_replay)
8574 (record_full_goto_begin, record_full_goto_end, record_full_goto)
8575 (record_full_stop_replaying): Refactor as methods of the
8576 record_full_base_target class.
8577 (record_full_core_resume, record_full_core_kill)
8578 (record_full_core_fetch_registers)
8579 (record_full_core_prepare_to_store)
8580 (record_full_core_store_registers, record_full_core_xfer_partial)
8581 (record_full_core_insert_breakpoint)
8582 (record_full_core_remove_breakpoint)
8583 (record_full_core_has_execution): Refactor
8584 as methods of the record_full_core_target class.
8585 (record_full_base_target::supports_delete_record): New.
8586 (init_record_full_ops): Delete.
8587 (init_record_full_core_ops): Delete.
8588 (record_full_save): Refactor as method of the
8589 record_full_base_target class.
8590 (_initialize_record_full): Remove references to
8591 init_record_full_ops and init_record_full_core_ops.
8593 * remote.c (remote_target, extended_remote_target): New classes.
8594 (remote_ops): Now a remote_target.
8595 (extended_remote_ops): Now an extended_remote_target.
8596 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
8597 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
8598 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
8599 (remote_pass_signals, remote_set_syscall_catchpoint)
8600 (remote_program_signals, )
8601 (remote_thread_always_alive): Remove target_ops parameter.
8602 (remote_thread_alive, remote_thread_name)
8603 (remote_update_thread_list, remote_threads_extra_info)
8604 (remote_static_tracepoint_marker_at)
8605 (remote_static_tracepoint_markers_by_strid)
8606 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
8607 (remote_open): Refactor as methods of remote_target.
8608 (extended_remote_open, extended_remote_detach)
8609 (extended_remote_attach, extended_remote_post_attach):
8610 (extended_remote_supports_disable_randomization)
8611 (extended_remote_create_inferior): : Refactor as method of
8612 extended_remote_target.
8613 (remote_set_permissions, remote_open_1, remote_detach)
8614 (remote_follow_fork, remote_follow_exec, remote_disconnect)
8615 (remote_resume, remote_commit_resume, remote_stop)
8616 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
8617 (remote_terminal_ours, remote_wait, remote_fetch_registers)
8618 (remote_prepare_to_store, remote_store_registers)
8619 (remote_flash_erase, remote_flash_done, remote_files_info)
8620 (remote_kill, remote_mourn, remote_insert_breakpoint)
8621 (remote_remove_breakpoint, remote_insert_watchpoint)
8622 (remote_watchpoint_addr_within_range)
8623 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
8624 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
8625 (remote_supports_stopped_by_sw_breakpoint)
8626 (remote_stopped_by_hw_breakpoint)
8627 (remote_supports_stopped_by_hw_breakpoint)
8628 (remote_stopped_by_watchpoint, remote_stopped_data_address)
8629 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
8630 (remote_verify_memory): Refactor as methods of remote_target.
8631 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
8633 (remote_xfer_partial, remote_get_memory_xfer_limit)
8634 (remote_search_memory, remote_rcmd, remote_memory_map)
8635 (remote_pid_to_str, remote_get_thread_local_address)
8636 (remote_get_tib_address, remote_read_description): Refactor as
8637 methods of remote_target.
8638 (remote_target::fileio_open, remote_target::fileio_pwrite)
8639 (remote_target::fileio_pread, remote_target::fileio_close): New.
8640 (remote_hostio_readlink, remote_hostio_fstat)
8641 (remote_filesystem_is_local, remote_can_execute_reverse)
8642 (remote_supports_non_stop, remote_supports_disable_randomization)
8643 (remote_supports_multi_process, remote_supports_cond_breakpoints)
8644 (remote_supports_enable_disable_tracepoint)
8645 (remote_supports_string_tracing)
8646 (remote_can_run_breakpoint_commands, remote_trace_init)
8647 (remote_download_tracepoint, remote_can_download_tracepoint)
8648 (remote_download_trace_state_variable, remote_enable_tracepoint)
8649 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
8650 (remote_trace_start, remote_get_trace_status)
8651 (remote_get_tracepoint_status, remote_trace_stop)
8652 (remote_trace_find, remote_get_trace_state_variable_value)
8653 (remote_save_trace_data, remote_get_raw_trace_data)
8654 (remote_set_disconnected_tracing, remote_core_of_thread)
8655 (remote_set_circular_trace_buffer, remote_traceframe_info)
8656 (remote_get_min_fast_tracepoint_insn_len)
8657 (remote_set_trace_buffer_size, remote_set_trace_notes)
8658 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
8659 (remote_disable_btrace, remote_teardown_btrace)
8660 (remote_read_btrace, remote_btrace_conf)
8661 (remote_augmented_libraries_svr4_read, remote_load)
8662 (remote_pid_to_exec_file, remote_can_do_single_step)
8663 (remote_execution_direction, remote_thread_handle_to_thread_info):
8664 Refactor as methods of remote_target.
8665 (init_remote_ops, init_extended_remote_ops): Delete.
8666 (remote_can_async_p, remote_is_async_p, remote_async)
8667 (remote_thread_events, remote_upload_tracepoints)
8668 (remote_upload_trace_state_variables): Refactor as methods of
8670 (_initialize_remote): Remove references to init_remote_ops and
8671 init_extended_remote_ops.
8673 * remote-sim.c (gdbsim_target): New class.
8674 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
8675 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
8676 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
8677 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
8678 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
8679 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
8680 Refactor as methods of gdbsim_target.
8681 (gdbsim_ops): Now a gdbsim_target.
8682 (init_gdbsim_ops): Delete.
8683 (gdbsim_cntrl_c): Adjust.
8684 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
8686 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
8687 (the_amd64_linux_nat_target): New.
8688 (amd64_linux_fetch_inferior_registers)
8689 (amd64_linux_store_inferior_registers): Refactor as methods of
8690 amd64_linux_nat_target.
8691 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
8692 * i386-linux-nat.c: Don't include "linux-nat.h".
8693 (i386_linux_nat_target): New class.
8694 (the_i386_linux_nat_target): New.
8695 (i386_linux_fetch_inferior_registers)
8696 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
8697 as methods of i386_linux_nat_target.
8698 (_initialize_i386_linux_nat): Adjust. Set linux_target.
8699 * inf-child.c (inf_child_ops): Delete.
8700 (inf_child_fetch_inferior_registers)
8701 (inf_child_store_inferior_registers): Delete.
8702 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
8703 methods of inf_child_target.
8704 (inf_child_target::supports_terminal_ours)
8705 (inf_child_target::terminal_init)
8706 (inf_child_target::terminal_inferior)
8707 (inf_child_target::terminal_ours_for_output)
8708 (inf_child_target::terminal_ours, inf_child_target::interrupt)
8709 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
8711 (inf_child_open, inf_child_disconnect, inf_child_close)
8712 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
8713 (inf_child_post_startup_inferior, inf_child_can_run)
8714 (inf_child_pid_to_exec_file): Refactor as methods of
8716 (inf_child_follow_fork): Delete.
8717 (inf_child_target::can_create_inferior)
8718 (inf_child_target::can_attach): New.
8719 (inf_child_target::has_all_memory, inf_child_target::has_memory)
8720 (inf_child_target::has_stack, inf_child_target::has_registers)
8721 (inf_child_target::has_execution): New.
8722 (inf_child_fileio_open, inf_child_fileio_pwrite)
8723 (inf_child_fileio_pread, inf_child_fileio_fstat)
8724 (inf_child_fileio_close, inf_child_fileio_unlink)
8725 (inf_child_fileio_readlink, inf_child_use_agent)
8726 (inf_child_can_use_agent): Refactor as methods of
8728 (return_zero, inf_child_target): Delete.
8729 (inf_child_target::inf_child_target): New.
8730 * inf-child.h: Include "target.h".
8731 (inf_child_target): Delete function prototype.
8732 (inf_child_target): New class.
8733 (inf_child_open_target, inf_child_mourn_inferior)
8734 (inf_child_maybe_unpush_target): Delete.
8735 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
8736 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
8737 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
8738 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
8739 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
8740 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
8741 (inf_ptrace_wait, inf_ptrace_xfer_partial)
8742 (inf_ptrace_thread_alive, inf_ptrace_files_info)
8743 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
8744 methods of inf_ptrace_target.
8745 (inf_ptrace_target): Delete function.
8746 * inf-ptrace.h: Include "inf-child.h".
8747 (inf_ptrace_target): Delete function declaration.
8748 (inf_ptrace_target): New class.
8749 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
8750 * linux-nat.c (linux_target): New.
8751 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
8752 (linux_nat_target::~linux_nat_target): New.
8753 (linux_child_post_attach, linux_child_post_startup_inferior)
8754 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
8755 (linux_child_remove_fork_catchpoint)
8756 (linux_child_insert_vfork_catchpoint)
8757 (linux_child_remove_vfork_catchpoint)
8758 (linux_child_insert_exec_catchpoint)
8759 (linux_child_remove_exec_catchpoint)
8760 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
8761 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
8762 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
8763 (linux_nat_stopped_data_address)
8764 (linux_nat_stopped_by_sw_breakpoint)
8765 (linux_nat_supports_stopped_by_sw_breakpoint)
8766 (linux_nat_stopped_by_hw_breakpoint)
8767 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
8768 (linux_nat_kill, linux_nat_mourn_inferior)
8769 (linux_nat_xfer_partial, linux_nat_thread_alive)
8770 (linux_nat_update_thread_list, linux_nat_pid_to_str)
8771 (linux_nat_thread_name, linux_child_pid_to_exec_file)
8772 (linux_child_static_tracepoint_markers_by_strid)
8773 (linux_nat_is_async_p, linux_nat_can_async_p)
8774 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
8775 (linux_nat_supports_multi_process)
8776 (linux_nat_supports_disable_randomization, linux_nat_async)
8777 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
8778 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
8779 (linux_nat_fileio_open, linux_nat_fileio_readlink)
8780 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
8781 methods of linux_nat_target.
8782 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
8783 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
8785 (check_stopped_by_watchpoint): Adjust.
8786 (linux_xfer_partial): Delete.
8787 (linux_target_install_ops, linux_target, linux_nat_add_target):
8789 (linux_nat_target::linux_nat_target): New.
8790 * linux-nat.h: Include "inf-ptrace.h".
8791 (linux_nat_target): New.
8792 (linux_target, linux_target_install_ops, linux_nat_add_target):
8793 Delete function declarations.
8794 (linux_target): Declare global.
8795 * linux-thread-db.c (thread_db_target): New.
8796 (thread_db_target::thread_db_target): New.
8797 (thread_db_ops): Delete.
8798 (the_thread_db_target): New.
8799 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
8800 (thread_db_update_thread_list, thread_db_pid_to_str)
8801 (thread_db_extra_thread_info)
8802 (thread_db_thread_handle_to_thread_info)
8803 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
8804 (thread_db_resume): Refactor as methods of thread_db_target.
8805 (init_thread_db_ops): Delete.
8806 (_initialize_thread_db): Remove reference to init_thread_db_ops.
8807 * x86-linux-nat.c: Don't include "linux-nat.h".
8808 (super_post_startup_inferior): Delete.
8809 (x86_linux_nat_target::~x86_linux_nat_target): New.
8810 (x86_linux_child_post_startup_inferior)
8811 (x86_linux_read_description, x86_linux_enable_btrace)
8812 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
8813 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
8814 methods of x86_linux_nat_target.
8815 (x86_linux_create_target): Delete. Bits folded ...
8816 (x86_linux_add_target): ... here. Now takes a linux_nat_target
8818 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
8819 (x86_linux_nat_target): New class.
8820 (x86_linux_create_target): Delete.
8821 (x86_linux_add_target): Now takes a linux_nat_target pointer.
8822 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
8823 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
8824 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
8825 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
8826 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
8828 (x86_use_watchpoints): Delete.
8829 * x86-nat.h: Include "breakpoint.h" and "target.h".
8830 (x86_use_watchpoints): Delete.
8831 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
8832 (x86_stopped_by_watchpoint, x86_stopped_data_address)
8833 (x86_insert_watchpoint, x86_remove_watchpoint)
8834 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
8835 (x86_stopped_by_hw_breakpoint): New declarations.
8836 (x86_nat_target): New template class.
8838 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
8839 (the_ppc_linux_nat_target): New.
8840 (ppc_linux_fetch_inferior_registers)
8841 (ppc_linux_can_use_hw_breakpoint)
8842 (ppc_linux_region_ok_for_hw_watchpoint)
8843 (ppc_linux_ranged_break_num_registers)
8844 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
8845 (ppc_linux_insert_mask_watchpoint)
8846 (ppc_linux_remove_mask_watchpoint)
8847 (ppc_linux_can_accel_watchpoint_condition)
8848 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
8849 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
8850 (ppc_linux_watchpoint_addr_within_range)
8851 (ppc_linux_masked_watch_num_registers)
8852 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
8853 (ppc_linux_read_description): Refactor as methods of
8854 ppc_linux_nat_target.
8855 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
8857 * procfs.c (procfs_xfer_partial): Delete forward declaration.
8858 (procfs_target): New class.
8859 (the_procfs_target): New.
8860 (procfs_target): Delete function.
8861 (procfs_auxv_parse, procfs_attach, procfs_detach)
8862 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
8863 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
8864 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
8865 (procfs_create_inferior, procfs_update_thread_list)
8866 (procfs_thread_alive, procfs_pid_to_str)
8867 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
8868 (procfs_stopped_data_address, procfs_insert_watchpoint)
8869 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
8870 (proc_find_memory_regions, procfs_info_proc)
8871 (procfs_make_note_section): Refactor as methods of procfs_target.
8872 (_initialize_procfs): Adjust.
8873 * sol-thread.c (sol_thread_target): New class.
8874 (sol_thread_ops): Now a sol_thread_target.
8875 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
8876 (sol_thread_fetch_registers, sol_thread_store_registers)
8877 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
8878 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
8879 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
8880 (init_sol_thread_ops): Delete.
8881 (_initialize_sol_thread): Adjust. Remove references to
8882 init_sol_thread_ops and complete_target_initialization.
8884 * windows-nat.c (windows_nat_target): New class.
8885 (windows_fetch_inferior_registers)
8886 (windows_store_inferior_registers, windows_resume, windows_wait)
8887 (windows_attach, windows_detach, windows_pid_to_exec_file)
8888 (windows_files_info, windows_create_inferior)
8889 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
8890 (windows_close, windows_pid_to_str, windows_xfer_partial)
8891 (windows_get_tib_address, windows_get_ada_task_ptid)
8892 (windows_thread_name, windows_thread_alive): Refactor as
8893 windows_nat_target methods.
8894 (do_initial_windows_stuff): Adjust.
8895 (windows_target): Delete function.
8896 (_initialize_windows_nat): Adjust.
8898 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
8899 (darwin_mourn_inferior, darwin_kill_inferior)
8900 (darwin_create_inferior, darwin_attach, darwin_detach)
8901 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
8902 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
8903 (darwin_supports_multi_process): Refactor as darwin_nat_target
8905 (darwin_resume_to, darwin_files_info): Delete.
8906 (_initialize_darwin_inferior): Rename to ...
8907 (_initialize_darwin_nat): ... this. Adjust to C++ification.
8908 * darwin-nat.h: Include "inf-child.h".
8909 (darwin_nat_target): New class.
8910 (darwin_complete_target): Delete.
8911 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
8912 (darwin_target): New.
8913 (i386_darwin_fetch_inferior_registers)
8914 (i386_darwin_store_inferior_registers): Refactor as methods of
8916 (darwin_complete_target): Delete, with ...
8917 (_initialize_i386_darwin_nat): ... bits factored out here.
8919 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
8920 (the_alpha_linux_nat_target): New.
8921 (alpha_linux_register_u_offset): Refactor as
8922 alpha_linux_nat_target method.
8923 (_initialize_alpha_linux_nat): Adjust.
8924 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
8925 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
8926 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
8927 methods of linux_nat_trad_target.
8928 (linux_trad_target): Delete.
8929 * linux-nat-trad.h (linux_trad_target): Delete function.
8930 (linux_nat_trad_target): New class.
8931 * mips-linux-nat.c (mips_linux_nat_target): New class.
8932 (super_fetch_registers, super_store_registers, super_close):
8934 (the_mips_linux_nat_target): New.
8935 (mips64_linux_regsets_fetch_registers)
8936 (mips64_linux_regsets_store_registers)
8937 (mips64_linux_fetch_registers, mips64_linux_store_registers)
8938 (mips_linux_register_u_offset, mips_linux_read_description)
8939 (mips_linux_can_use_hw_breakpoint)
8940 (mips_linux_stopped_by_watchpoint)
8941 (mips_linux_stopped_data_address)
8942 (mips_linux_region_ok_for_hw_watchpoint)
8943 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
8944 (mips_linux_close): Refactor as methods of mips_linux_nat.
8945 (_initialize_mips_linux_nat): Adjust to C++ification.
8947 * aix-thread.c (aix_thread_target): New class.
8948 (aix_thread_ops): Now an aix_thread_target.
8949 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
8950 (aix_thread_fetch_registers, aix_thread_store_registers)
8951 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
8952 (aix_thread_thread_alive, aix_thread_pid_to_str)
8953 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
8954 Refactor as methods of aix_thread_target.
8955 (init_aix_thread_ops): Delete.
8956 (_initialize_aix_thread): Remove references to init_aix_thread_ops
8957 and complete_target_initialization.
8958 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
8959 (rs6000_nat_target): New class.
8960 (the_rs6000_nat_target): New.
8961 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
8962 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
8963 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
8964 (super_create_inferior): Delete.
8965 (_initialize_rs6000_nat): Adjust to C++ification.
8967 * arm-linux-nat.c (arm_linux_nat_target): New class.
8968 (the_arm_linux_nat_target): New.
8969 (arm_linux_fetch_inferior_registers)
8970 (arm_linux_store_inferior_registers, arm_linux_read_description)
8971 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
8972 (arm_linux_remove_hw_breakpoint)
8973 (arm_linux_region_ok_for_hw_watchpoint)
8974 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
8975 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
8976 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
8977 arm_linux_nat_target.
8978 (_initialize_arm_linux_nat): Adjust to C++ification.
8980 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
8981 (the_aarch64_linux_nat_target): New.
8982 (aarch64_linux_fetch_inferior_registers)
8983 (aarch64_linux_store_inferior_registers)
8984 (aarch64_linux_child_post_startup_inferior)
8985 (aarch64_linux_read_description)
8986 (aarch64_linux_can_use_hw_breakpoint)
8987 (aarch64_linux_insert_hw_breakpoint)
8988 (aarch64_linux_remove_hw_breakpoint)
8989 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
8990 (aarch64_linux_region_ok_for_hw_watchpoint)
8991 (aarch64_linux_stopped_data_address)
8992 (aarch64_linux_stopped_by_watchpoint)
8993 (aarch64_linux_watchpoint_addr_within_range)
8994 (aarch64_linux_can_do_single_step): Refactor as methods of
8995 aarch64_linux_nat_target.
8996 (super_post_startup_inferior): Delete.
8997 (_initialize_aarch64_linux_nat): Adjust to C++ification.
8999 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9000 (the_hppa_linux_nat_target): New.
9001 (hppa_linux_fetch_inferior_registers)
9002 (hppa_linux_store_inferior_registers): Refactor as methods of
9003 hppa_linux_nat_target.
9004 (_initialize_hppa_linux_nat): Adjust to C++ification.
9006 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9007 (the_ia64_linux_nat_target): New.
9008 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9009 (ia64_linux_stopped_data_address)
9010 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9011 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9012 ia64_linux_nat_target methods.
9013 (super_xfer_partial): Delete.
9014 (_initialize_ia64_linux_nat): Adjust to C++ification.
9016 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9017 (the_m32r_linux_nat_target): New.
9018 (m32r_linux_fetch_inferior_registers)
9019 (m32r_linux_store_inferior_registers): Refactor as
9020 m32r_linux_nat_target methods.
9021 (_initialize_m32r_linux_nat): Adjust to C++ification.
9023 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9024 (the_m68k_linux_nat_target): New.
9025 (m68k_linux_fetch_inferior_registers)
9026 (m68k_linux_store_inferior_registers): Refactor as
9027 m68k_linux_nat_target methods.
9028 (_initialize_m68k_linux_nat): Adjust to C++ification.
9030 * s390-linux-nat.c (s390_linux_nat_target): New class.
9031 (the_s390_linux_nat_target): New.
9032 (s390_linux_fetch_inferior_registers)
9033 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9034 (s390_insert_watchpoint, s390_remove_watchpoint)
9035 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9036 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9037 (s390_auxv_parse, s390_read_description): Refactor as methods of
9038 s390_linux_nat_target.
9039 (_initialize_s390_nat): Adjust to C++ification.
9041 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9042 (the_sparc_linux_nat_target): New.
9043 (_initialize_sparc_linux_nat): Adjust to C++ification.
9044 * sparc-nat.c (sparc_fetch_inferior_registers)
9045 (sparc_store_inferior_registers): Remove target_ops parameter.
9046 * sparc-nat.h (sparc_fetch_inferior_registers)
9047 (sparc_store_inferior_registers): Remove target_ops parameter.
9048 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9049 (the_sparc64_linux_nat_target): New.
9050 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9052 * spu-linux-nat.c (spu_linux_nat_target): New class.
9053 (the_spu_linux_nat_target): New.
9054 (spu_child_post_startup_inferior, spu_child_post_attach)
9055 (spu_child_wait, spu_fetch_inferior_registers)
9056 (spu_store_inferior_registers, spu_xfer_partial)
9057 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9059 (_initialize_spu_nat): Adjust to C++ification.
9061 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9062 (the_tilegx_linux_nat_target): New.
9063 (fetch_inferior_registers, store_inferior_registers):
9064 Refactor as methods.
9065 (_initialize_tile_linux_nat): Adjust to C++ification.
9067 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9068 (the_xtensa_linux_nat_target): New.
9069 (xtensa_linux_fetch_inferior_registers)
9070 (xtensa_linux_store_inferior_registers): Refactor as
9071 xtensa_linux_nat_target methods.
9072 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9074 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9075 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9076 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9077 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9078 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9079 (fbsd_stopped_by_sw_breakpoint)
9080 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9081 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9082 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9083 (fbsd_post_startup_inferior, fbsd_post_attach)
9084 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9085 (fbsd_set_syscall_catchpoint)
9086 (super_xfer_partial, super_resume, super_wait)
9087 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9088 (fbsd_handle_debug_trap): Remove target_ops parameter.
9089 (fbsd_nat_add_target): Delete.
9090 * fbsd-nat.h: Include "inf-ptrace.h".
9091 (fbsd_nat_add_target): Delete.
9092 (USE_SIGTRAP_SIGINFO): Define.
9093 (fbsd_nat_target): New class.
9095 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9096 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9097 (amd64bsd_target): Delete.
9098 * amd64-bsd-nat.h: New file.
9099 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9101 (amd64_fbsd_nat_target): New class.
9102 (the_amd64_fbsd_nat_target): New.
9103 (amd64fbsd_read_description): Refactor as method of
9104 amd64_fbsd_nat_target.
9105 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9106 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9107 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9108 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9109 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9110 (i386bsd_target): Delete.
9111 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9112 (i386bsd_fetch_inferior_registers)
9113 (i386bsd_store_inferior_registers): Declare.
9114 (i386_bsd_nat_target): New class.
9115 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9116 (the_i386_fbsd_nat_target): New.
9117 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9118 i386_fbsd_nat_target methods.
9119 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9120 (_initialize_i386fbsd_nat): Adjust to C++ification.
9121 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9122 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9123 (_initialize_x86_bsd_nat): Adjust to C++ification.
9124 * x86-bsd-nat.h: Include "x86-nat.h".
9125 (x86bsd_target): Delete declaration.
9126 (x86bsd_nat_target): New class.
9128 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9129 (the_aarch64_fbsd_nat_target): New.
9130 (aarch64_fbsd_fetch_inferior_registers)
9131 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9132 aarch64_fbsd_nat_target.
9133 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9134 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9135 (the_alpha_bsd_nat_target): New.
9136 (alphabsd_fetch_inferior_registers)
9137 (alphabsd_store_inferior_registers): Refactor as
9138 alpha_bsd_nat_target methods.
9139 (_initialize_alphabsd_nat): Refactor as methods of
9140 alpha_bsd_nat_target.
9141 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9142 (the_amd64_nbsd_nat_target): New.
9143 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9144 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9145 (the_amd64_obsd_nat_target): New.
9146 (_initialize_amd64obsd_nat): Adjust to C++ification.
9147 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9148 (the_arm_fbsd_nat_target): New.
9149 (arm_fbsd_fetch_inferior_registers)
9150 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9151 (_initialize_arm_fbsd_nat): Refactor as methods of
9152 arm_fbsd_nat_target.
9153 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9154 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9155 (the_arm_netbsd_nat_target): New.
9156 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9157 arm_netbsd_nat_target.
9158 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9159 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9160 (the_hppa_nbsd_nat_target): New.
9161 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9162 hppa_nbsd_nat_target methods.
9163 (_initialize_hppanbsd_nat): Adjust to C++ification.
9164 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9165 (the_hppa_obsd_nat_target): New.
9166 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9167 methods of hppa_obsd_nat_target.
9168 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9170 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9171 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9173 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9174 (_initialize_i386obsd_nat): Use add_target.
9175 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9176 (the_m68k_bsd_nat_target): New.
9177 (m68kbsd_fetch_inferior_registers)
9178 (m68kbsd_store_inferior_registers): Refactor as methods of
9179 m68k_bsd_nat_target.
9180 (_initialize_m68kbsd_nat): Adjust to C++ification.
9181 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9182 (the_mips_fbsd_nat_target): New.
9183 (mips_fbsd_fetch_inferior_registers)
9184 (mips_fbsd_store_inferior_registers): Refactor as methods of
9185 mips_fbsd_nat_target.
9186 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9188 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9189 (the_mips_nbsd_nat_target): New.
9190 (mipsnbsd_fetch_inferior_registers)
9191 (mipsnbsd_store_inferior_registers): Refactor as methods of
9192 mips_nbsd_nat_target.
9193 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9194 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9195 (the_mips64_obsd_nat_target): New.
9196 (mips64obsd_fetch_inferior_registers)
9197 (mips64obsd_store_inferior_registers): Refactor as methods of
9198 mips64_obsd_nat_target.
9199 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9201 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9203 * nbsd-nat.h: Include "inf-ptrace.h".
9204 (nbsd_nat_target): New class.
9205 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9206 (obsd_wait): Refactor as methods of obsd_nat_target.
9207 (obsd_add_target): Delete.
9208 * obsd-nat.h: Include "inf-ptrace.h".
9209 (obsd_nat_target): New class.
9210 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9211 (the_ppc_fbsd_nat_target): New.
9212 (ppcfbsd_fetch_inferior_registers)
9213 (ppcfbsd_store_inferior_registers): Refactor as methods of
9214 ppc_fbsd_nat_target.
9215 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9217 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9218 (the_ppc_nbsd_nat_target): New.
9219 (ppcnbsd_fetch_inferior_registers)
9220 (ppcnbsd_store_inferior_registers): Refactor as methods of
9221 ppc_nbsd_nat_target.
9222 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9223 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9224 (the_ppc_obsd_nat_target): New.
9225 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9226 methods of ppc_obsd_nat_target.
9227 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9229 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9230 (the_sh_nbsd_nat_target): New.
9231 (shnbsd_fetch_inferior_registers)
9232 (shnbsd_store_inferior_registers): Refactor as methods of
9234 (_initialize_shnbsd_nat): Adjust to C++ification.
9235 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9236 (inf_ptrace_xfer_partial): Delete.
9237 (sparc_xfer_partial, sparc_target): Delete.
9238 * sparc-nat.h (sparc_fetch_inferior_registers)
9239 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9240 (sparc_target): Delete function declaration.
9241 (sparc_target): New template class.
9242 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9243 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9244 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9245 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9247 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9248 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9249 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9250 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9252 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9253 (the_vax_bsd_nat_target): New.
9254 (vaxbsd_fetch_inferior_registers)
9255 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9257 (_initialize_vaxbsd_nat): Adjust to C++ification.
9259 * bsd-kvm.c (bsd_kvm_target): New class.
9260 (bsd_kvm_ops): Now a bsd_kvm_target.
9261 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9262 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9263 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9265 (bsd_kvm_return_one): Delete.
9266 (bsd_kvm_add_target): Adjust to C++ification.
9268 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9269 (nto_procfs_target_procfs): New classes.
9270 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9271 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9272 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9273 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9274 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9275 (procfs_remove_hw_breakpoint, procfs_resume)
9276 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9277 (procfs_kill_inferior, procfs_store_registers)
9278 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9279 as methods of nto_procfs_target.
9280 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9281 (nto_native_ops): Delete.
9282 (procfs_open, procfs_native_open): Delete.
9283 (nto_native_ops): Now an nto_procfs_target_native.
9284 (init_procfs_targets): Adjust to C++ification.
9285 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9286 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9287 Refactor as methods of nto_procfs_target.
9289 * go32-nat.c (go32_nat_target): New class.
9290 (the_go32_nat_target): New.
9291 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9292 (go32_store_registers, go32_xfer_partial, go32_files_info)
9293 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9294 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9295 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9296 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9297 (go32_target): Delete.
9298 (_initialize_go32_nat): Adjust to C++ification.
9300 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9301 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9302 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9303 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9305 (gnu_target): Delete.
9306 * gnu-nat.h (gnu_target): Delete.
9307 (gnu_nat_target): New class.
9308 * i386-gnu-nat.c (gnu_base_target): New.
9309 (i386_gnu_nat_target): New class.
9310 (the_i386_gnu_nat_target): New.
9311 (_initialize_i386gnu_nat): Adjust to C++ification.
9313 2018-05-02 Pedro Alves <palves@redhat.com>
9315 * bfd-target.c (target_bfd_xclose): Rename to ...
9316 (target_bfd_close): ... this.
9317 (target_bfd_reopen): Adjust.
9318 * target.c (target_close): Remove references to to_xclose.
9319 * target.h (target_ops::to_xclose): Delete.
9320 (target_ops::to_close): Update comments.
9322 2018-05-02 Pedro Alves <palves@redhat.com>
9324 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9326 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9327 * inf-ptrace.c (inf_ptrace_register_u_offset)
9328 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9329 (inf_ptrace_store_register, inf_ptrace_store_registers)
9330 (inf_ptrace_trad_target): Move to ...
9331 * linux-nat-trad.c: ... this new file.
9332 * linux-nat-trad.h: New file.
9333 * linux-nat.c (linux_target_install_ops): Make extern.
9334 (linux_trad_target): Delete.
9335 * linux-nat.h (linux_trad_target): Delete declaration.
9336 (linux_target_install_ops): Declare.
9337 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9340 2018-05-02 Pedro Alves <palves@redhat.com>
9342 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9343 procfs_target/add_target here.
9344 * procfs.c (procfs_target): Make static.
9345 (_initialize_procfs): Call add_target here.
9346 * procfs.h (struct target_ops): Remove forward declaration.
9347 (procfs_target): Remove declaration.
9348 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9350 2018-05-02 Pedro Alves <palves@redhat.com>
9352 * procfs.c (procfs_stopped_by_watchpoint)
9353 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9354 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9356 (procfs_use_watchpoints): Delete, move contents...
9357 (procfs_target): ... here.
9358 * procfs.h (procfs_use_watchpoints): Delete declaration.
9359 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9360 procfs_use_watchpoints.
9361 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9362 procfs_use_watchpoints.
9364 2018-05-02 Tom Tromey <tom@tromey.com>
9367 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9368 and var_zuinteger_unlimited.
9369 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9370 and PARAM_ZUINTEGER_UNLIMITED.
9371 (set_parameter_value): Handle var_zuinteger and
9372 var_zuinteger_unlimited.
9373 (add_setshow_generic): Likewise.
9374 (parmpy_init): Likewise.
9376 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9379 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9380 pointer is not null before dereferencing it.
9382 2018-04-30 Tom Tromey <tom@tromey.com>
9384 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9387 2018-04-30 Tom Tromey <tom@tromey.com>
9389 * breakpoint.c (mention): Remove use of is_mi_like_p.
9390 (print_mention_ranged_breakpoint): Likewise.
9391 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9394 2018-04-30 Tom Tromey <tom@tromey.com>
9396 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9398 2018-04-30 Tom Tromey <tom@tromey.com>
9400 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9401 (info_spu_event_command): Remove some uses of is_mi_like_p.
9403 2018-04-30 Tom Tromey <tom@tromey.com>
9405 * python/py-framefilter.c (py_print_single_arg)
9406 (enumerate_locals, py_print_args, py_print_frame): Remove some
9407 uses of is_mi_like_p.
9409 2018-04-30 Tom Tromey <tom@tromey.com>
9412 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9413 * ui-out.h (ui_out::is_mi_like_p): Now const.
9414 (ui_out::do_is_mi_like_p): Now const.
9415 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9417 2018-04-30 Tom Tromey <tom@tromey.com>
9419 * varobj.c (varobj_set_visualizer): Use new_reference.
9420 * python/python.c (gdbpy_decode_line): Use new_reference.
9421 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9424 2018-04-30 Tom Tromey <tom@tromey.com>
9426 * varobj.c (install_new_value): Use new_reference.
9427 * value.h (value_incref): Return void. Swap intro comment with
9429 * value.c (set_value_parent): Use new_reference.
9430 (value_incref): Return void. Update intro comment.
9431 (release_value): Use new_reference.
9432 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9434 2018-04-30 Tom Tromey <tom@tromey.com>
9436 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9437 * gdb_bfd.h (new_bfd_ref): Remove.
9438 (gdb_bfd_open): Update comment.
9439 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9440 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9441 (gdb_bfd_fdopenr): Use new_reference.
9442 * exec.c (exec_file_attach): Use new_reference.
9444 2018-04-30 Tom Tromey <tom@tromey.com>
9446 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9449 2018-04-30 Tom Tromey <tom@tromey.com>
9451 * jit.c (jit_read_code_entry): Use type_align.
9452 * i386-tdep.c (i386_gdbarch_init): Don't call
9453 set_gdbarch_long_long_align_bit.
9454 * gdbarch.sh: Remove long_long_align_bit.
9455 * gdbarch.c, gdbarch.h: Rebuild.
9456 * arc-tdep.c (arc_type_align): New function.
9457 (arc_gdbarch_init): Use arc_type_align. Don't call
9458 set_gdbarch_long_long_align_bit.
9460 2018-04-30 Tom Tromey <tom@tromey.com>
9462 * rust-lang.c (rust_type_alignment): Remove.
9463 (rust_composite_type): Use type_align.
9465 2018-04-30 Tom Tromey <tom@tromey.com>
9467 * NEWS: Mention Type.align.
9468 * python/py-type.c (typy_get_alignof): New function.
9469 (type_object_getset): Add "alignof".
9471 2018-04-30 Tom Tromey <tom@tromey.com>
9475 * std-operator.def (UNOP_ALIGNOF): New operator.
9476 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9478 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9479 * c-lang.c (c_op_print_tab): Add alignof.
9480 * c-exp.y (ALIGNOF): New token.
9481 (exp): Add "ALIGNOF" production.
9482 (ident_tokens): Add _Alignof and alignof.
9484 2018-04-30 Tom Tromey <tom@tromey.com>
9486 * i386-tdep.c (i386_type_align): New function.
9487 (i386_gdbarch_init): Update.
9488 * gdbarch.sh (type_align): New method.
9489 * gdbarch.c, gdbarch.h: Rebuild.
9490 * arch-utils.h (default_type_align): Declare.
9491 * arch-utils.c (default_type_align): New function.
9492 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9493 (struct type) <align_log2>: New field.
9494 <instance_flags>: Now a bitfield.
9495 (TYPE_RAW_ALIGN): New macro.
9496 (type_align, type_raw_align, set_type_align): Declare.
9497 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
9499 * dwarf2read.c (quirk_rust_enum): Set type alignment.
9500 (get_alignment, maybe_set_alignment): New functions.
9501 (read_structure_type, read_enumeration_type, read_array_type)
9502 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
9503 (read_subrange_type, read_base_type): Set type alignment.
9505 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
9507 * dwarf2read.c (read_index_from_section): Use bool.
9509 2018-04-29 Fabian Groffen <grobian@gentoo.org>
9512 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
9515 2018-04-29 John Reiser <jreiser@BitWagon.com>
9518 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
9519 last step, and do it atomically.
9521 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
9523 * compile/compile-c-types.c (convert_int, convert_float):
9526 2018-04-27 Tom Tromey <tom@tromey.com>
9529 * rust-lang.c (rust_inclusive_range_type_p): New function.
9530 (rust_range): Handle inclusive ranges.
9531 (rust_compute_range): Likewise.
9532 * rust-exp.y (struct rust_op) <inclusive>: New field.
9533 (DOTDOTEQ): New constant.
9534 (range_expr): Add "..=" productions.
9535 (operator_tokens): Add "..=" token.
9536 (ast_range): Add "inclusive" parameter.
9537 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
9539 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
9541 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
9542 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
9544 * expprint.c (print_subexp_standard): Handle new bounds values.
9545 (dump_subexp_body_standard): Likewise.
9547 2018-04-27 Tom Tromey <tom@tromey.com>
9549 * configure: Rebuild.
9550 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
9551 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
9553 (class symbol_needs_eval_context): Likewise.
9554 * dwarf2read.c (mock_mapped_index::symbol_name_count)
9555 (mock_mapped_index::symbol_name_at): Use "override". Remove
9557 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
9559 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
9560 * aarch64-tdep.c (instruction_reader::read): Use "override".
9561 (instruction_reader_test::read): Likewise.
9562 * arm-tdep.c (instruction_reader::read): Use "override".
9563 (instruction_reader_thumb::read): Likewise.
9565 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
9568 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
9569 instead of remote_send.
9570 (remote_send): Remove.
9572 2018-04-26 Pedro Alves <palves@redhat.com>
9574 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
9575 find_function_start_sal instead of find_pc_line.
9577 2018-04-26 Pedro Alves <palves@redhat.com>
9579 * breakpoint.c (set_breakpoint_location_function): Handle
9581 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
9582 * elfread.c (elf_symtab_read): Give data symbols with
9583 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
9584 (elf_rel_plt_read): Update comment.
9585 * linespec.c (convert_linespec_to_sals): Handle
9587 (minsym_found): Handle mst_data_gnu_ifunc.
9588 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
9589 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
9590 * parse.c (find_minsym_type_and_address): Handle
9592 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
9593 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
9594 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
9596 <mst_data_gnu_ifunc>: New enumerator.
9598 2018-04-26 Pedro Alves <palves@redhat.com>
9600 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
9601 (lookup_minimal_symbol_by_pc_section): ... this. Replace
9602 'want_trampoline' parameter by a lookup_msym_prefer parameter.
9604 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
9605 (lookup_minimal_symbol_by_pc): Adjust.
9606 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
9607 (lookup_solib_trampoline_symbol_by_pc): Adjust.
9608 * minsyms.h (lookup_msym_prefer): New enum.
9609 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9610 parameter by a lookup_msym_prefer parameter.
9612 2018-04-26 Pedro Alves <palves@redhat.com>
9614 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
9615 ends in "@plt" instead of looking at the symbol's section.
9617 2018-04-26 Pedro Alves <palves@redhat.com>
9619 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
9621 (find_pc_partial_function_gnu_ifunc): Rename to ...
9622 (find_pc_partial_function): ... this, and remove references to
9624 (find_pc_partial_function): Delete old implementation.
9625 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
9627 2018-04-26 Pedro Alves <palves@redhat.com>
9629 * linespec.c (struct bound_minimal_symbol_search_key): New.
9630 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
9631 skip first line if we found a GNU ifunc minimal symbol by name.
9632 (compare_msymbols): Change parameters to work with a destructured
9634 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
9637 2018-04-26 Pedro Alves <palves@redhat.com>
9639 * breakpoint.c (set_breakpoint_location_function): Don't resolve
9640 ifunc targets here. Instead, if we have an ifunc minsym, use its
9642 (add_location_to_breakpoint): Store the minsym and the objfile in
9643 the breakpoint location.
9644 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
9645 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
9646 Record the minsym in the sal.
9647 * symtab.h (symtab_and_line) <msymbol>: New field.
9649 2018-04-26 Pedro Alves <palves@redhat.com>
9651 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
9652 unless we actually resolved the ifunc.
9654 2018-04-26 Pedro Alves <palves@redhat.com>
9656 * c-exp.y (variable production): Prefer ifunc minsyms over
9657 regular function symbols.
9658 * symtab.c (find_gnu_ifunc): New function.
9659 * minsyms.h (lookup_msym_prefer): New enum.
9660 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
9661 parameter by a lookup_msym_prefer parameter.
9662 * symtab.h (find_gnu_ifunc): New declaration.
9664 2018-04-26 Pedro Alves <palves@redhat.com>
9666 * blockframe.c (find_gnu_ifunc_target_type): New function.
9667 (find_function_type): New.
9668 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
9669 return a value with a memory address.
9670 (eval_call): For calls to GNU ifunc functions, try to find the
9671 type of the target function from the type that the resolver
9673 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
9675 * infcall.c (find_function_return_type): Delete.
9676 (find_function_addr): Add 'function_type' parameter. For calls to
9677 GNU ifunc functions, try to find the type of the target function
9678 from the type that the resolver returns, and return it via
9680 (call_function_by_hand_dummy): Adjust to use the function type
9681 returned by find_function_addr.
9682 (find_function_addr): Add 'function_type' parameter and move
9684 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
9687 2018-04-26 Pedro Alves <palves@redhat.com>
9689 * c-exp.y (variable production): Skip finding an alias for ifunc
9692 2018-04-26 Pedro Alves <palves@redhat.com>
9694 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
9696 2018-04-25 Pedro Alves <palves@redhat.com>
9698 * infcmd.c (kill_command): Print the pid as string, not the whole
9699 thread's ptid. Add comment. s/has been killed/killed/ in output
9701 * remote.c (remote_detach_1): Print the pid as string, not the
9702 whole thread's ptid.
9704 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9705 Sergio Durigan Junior <sergiodj@redhat.com>
9706 Pedro Alves <palves@redhat.com>
9708 * infcmd.c (kill_command): Print message when inferior has
9710 * inferior.c (print_inferior_events): Remove 'static'. Set as
9712 (add_inferior): Improve message printed when
9713 'print_inferior_events' is on.
9714 (exit_inferior): Remove message printed when
9715 'print_inferior_events' is on.
9716 (detach_inferior): Improve message printed when
9717 'print_inferior_events' is on.
9718 (initialize_inferiors): Use 'add_inferior_silent' to set
9719 'current_inferior_'.
9720 * inferior.h (print_inferior_events): Declare here as
9722 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
9723 '[Detaching...]' messages when 'print_inferior_events' is on.
9724 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
9725 as prefix/suffix for messages. Remove periods. Fix erroneous
9726 'Detaching after fork from child...', replace it by '... from
9728 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
9729 prefix/suffix when printing 'Detaching...' messages. Print
9730 them when 'print_inferior_events' is on.
9731 * remote.c (remote_detach_1): Print message when detaching
9732 from inferior and '!is_fork_parent'.
9734 2018-04-24 Tom Tromey <tom@tromey.com>
9736 * cli-out.h: Reindent.
9738 2018-04-24 Tom Tromey <tom@tromey.com>
9740 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
9741 (cli_ui_out::do_field_string): Use fputs_filtered.
9742 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
9744 2018-04-23 Tom Tromey <tom@tromey.com>
9746 * guile/scm-frame.c (gdbscm_frame_read_var): Use
9747 gdb::unique_xmalloc_ptr.
9749 2018-04-23 Tom Tromey <tom@tromey.com>
9751 * configure: Rebuild.
9753 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
9756 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
9757 prepare_for_testing. Set normal_bp to r_debug_state if target
9760 2018-04-21 Pedro Alves <palves@redhat.com>
9761 Rajendra SY <rajendra.sy@gmail.com>
9763 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
9764 * remote.c (extended_remote_attach): In all-stop mode, mark the
9765 thread as executing.
9767 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9769 * thread.c (thread_apply_all_command): Fix comment.
9770 (thread_command): Fix comment.
9772 2018-04-10 Alan Hayward <alan.hayward@arm.com>
9774 * common/tdesc.h (tdesc_create_feature): Remove xml filename
9776 * features/aarch64-core.c (create_feature_aarch64_core):
9778 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
9780 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
9782 * features/i386/32bit-avx512.c
9783 (create_feature_i386_32bit_avx512): Likewise.
9784 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
9786 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
9788 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
9790 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
9792 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
9794 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
9796 * features/i386/64bit-avx512.c
9797 (create_feature_i386_64bit_avx512): Likewise.
9798 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
9800 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
9802 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
9804 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
9806 * features/i386/64bit-segments.c
9807 (create_feature_i386_64bit_segments): Likewise.
9808 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
9810 * features/i386/x32-core.c
9811 (create_feature_i386_x32_core): Likewise.
9812 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
9813 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
9814 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
9815 * target-descriptions.c: In generated code, don't pass xml
9818 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9820 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
9821 (print_xml_feature::visit_post): Likewise.
9822 (print_xml_feature::visit): Likewise.
9823 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
9824 (print_xml_feature): Add new class.
9825 * regformats/regdat.sh: Null xmltarget on feature targets.
9826 * target-descriptions.c (struct target_desc): Add xmltarget.
9827 (maintenance_check_tdesc_xml_convert): Add unittest function.
9828 (tdesc_get_features_xml): Add function to get xml.
9829 (maintenance_check_xml_descriptions): Test xml generation.
9830 * xml-tdesc.c (string_read_description_xml): Add function.
9831 * xml-tdesc.h (string_read_description_xml): Add declaration.
9833 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9835 * features/Makefile: Add feature marker to targets with new style
9836 target descriptions.
9837 * regformats/aarch64.dat: Regenerate.
9838 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
9839 * regformats/i386/amd64-avx-linux.dat: Likewise.
9840 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
9841 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
9842 * regformats/i386/amd64-linux.dat: Likewise.
9843 * regformats/i386/amd64-mpx-linux.dat: Likewise.
9844 * regformats/i386/amd64.dat: Likewise.
9845 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
9846 * regformats/i386/i386-avx-linux.dat: Likewise.
9847 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
9848 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
9849 * regformats/i386/i386-linux.dat: Likewise.
9850 * regformats/i386/i386-mmx-linux.dat: Likewise.
9851 * regformats/i386/i386-mpx-linux.dat: Likewise.
9852 * regformats/i386/i386.dat: Likewise.
9853 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
9854 * regformats/i386/x32-avx-linux.dat: Likewise.
9855 * regformats/i386/x32-linux.dat: Likewise.
9856 * regformats/tic6x-c62x-linux.dat: Likewise.
9857 * regformats/tic6x-c64x-linux.dat: Likewise.
9858 * regformats/tic6x-c64xp-linux.dat: Likewise.
9859 * regformats/regdat.sh: Parse feature marker.
9861 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9863 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
9864 (tdesc_osabi_name): Likewise.
9865 * target-descriptions.c (tdesc_architecture_name): Add new
9867 (tdesc_osabi_name): Likewise.
9869 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9871 * common/tdesc.c (tdesc_predefined_type): Move to here.
9872 (tdesc_named_type): Likewise.
9873 (tdesc_create_vector): Likewise.
9874 (tdesc_create_struct): Likewise.
9875 (tdesc_set_struct_size): Likewise.
9876 (tdesc_create_union): Likewise.
9877 (tdesc_create_flags): Likewise.
9878 (tdesc_create_enum): Likewise.
9879 (tdesc_add_field): Likewise.
9880 (tdesc_add_typed_bitfield): Likewise.
9881 (tdesc_add_bitfield): Likewise.
9882 (tdesc_add_flag): Likewise.
9883 (tdesc_add_enum_value): Likewise.
9884 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
9885 (struct tdesc_type_vector): Likewise.
9886 (struct tdesc_type_field): Likewise.
9887 (struct tdesc_type_with_fields): Likewise.
9888 (tdesc_create_enum): Add declaration.
9889 (tdesc_add_typed_bitfield): Likewise.
9890 (tdesc_add_enum_value): Likewise.
9891 * target-descriptions.c (tdesc_type_field): Move from here.
9892 (tdesc_type_builtin): Likewise.
9893 (tdesc_type_vector): Likewise.
9894 (tdesc_type_with_fields): Likewise.
9895 (tdesc_predefined_types): Likewise.
9896 (tdesc_named_type): Likewise.
9897 (tdesc_create_vector): Likewise.
9898 (tdesc_create_struct): Likewise.
9899 (tdesc_set_struct_size): Likewise.
9900 (tdesc_create_union): Likewise.
9901 (tdesc_create_flags): Likewise.
9902 (tdesc_create_enum): Likewise.
9903 (tdesc_add_field): Likewise.
9904 (tdesc_add_typed_bitfield): Likewise.
9905 (tdesc_add_bitfield): Likewise.
9906 (tdesc_add_flag): Likewise.
9907 (tdesc_add_enum_value): Likewise.
9908 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
9909 (tdesc_add_typed_bitfield): Likewise.
9910 (tdesc_add_enum_value): Likewise.
9912 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9914 * common/tdesc.c (tdesc_feature::accept): Move to here.
9915 (tdesc_feature::operator==): Likewise.
9916 (tdesc_create_reg): Likewise.
9917 * common/tdesc.h (tdesc_type_kind): Likewise.
9918 (struct tdesc_type): Likewise.
9919 (struct tdesc_feature): Likewise.
9920 * regformats/regdat.sh: Create a feature.
9921 * target-descriptions.c (tdesc_type_kind): Move from here.
9922 (tdesc_type): Likewise.
9923 (tdesc_type_up): Likewise.
9924 (tdesc_feature): Likewise.
9925 (tdesc_create_reg): Likewise.
9927 2018-04-18 Alan Hayward <alan.hayward@arm.com>
9929 * Makefile.in: Add arch/tdesc.c
9930 * common/tdesc.c: New file.
9931 * common/tdesc.h (tdesc_element_visitor): Move to here.
9932 (tdesc_element): Likewise.
9933 (tdesc_reg): Likewise.
9934 (tdesc_reg_up): Likewise.
9935 * regformats/regdef.h (reg): Add offset to constructors.
9936 * target-descriptions.c (tdesc_element_visitor): Move from here.
9937 (tdesc_element): Likewise.
9938 (tdesc_reg): Likewise.
9939 (tdesc_reg_up): Likewise.
9941 2018-04-17 Tom Tromey <tom@tromey.com>
9943 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
9946 2018-04-17 Tom Tromey <tom@tromey.com>
9948 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
9950 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
9952 * symtab.c (print_symbol_info): Skip printing filename and line
9953 number when `last' is NULL.
9954 (symtab_symbol_info): Use empty string instead of NULL for first
9955 invocation of print_symbol_info.
9956 (rbreak_command): Pass NULL to `last' parameter of
9959 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
9961 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
9964 2018-04-16 Pedro Alves <palves@redhat.com>
9966 * MAINTAINERS (sh): Remove.
9967 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
9968 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
9969 (ALLDEPFILES): Remove sh64-tdep.c.
9970 * NEWS: Mentions that support for SH-5/SH64 is removed.
9971 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
9972 (sh*-*-openbsd*): Ditto.
9973 (sh64-*-elf*): Remove.
9975 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
9976 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
9977 * sh-tdep.c: No longer include "sh64-tdep.h".
9978 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
9979 * sh64-tdep.c, sh64-tdep.h: Remove files.
9981 2018-04-16 Pedro Alves <palves@redhat.com>
9983 * MAINTAINERS: Remove m88k.
9984 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
9985 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
9986 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
9987 * NEWS: Mention that support for m88k was removed.
9988 * configure.host (m88*-*-*): Remove support.
9989 * configure.nat (m88k-*-*): Remove support.
9990 * configure.tgt (m88*-*-openbsd*): Remove.
9991 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
9993 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
9995 * configure.tgt (x86_tobjs): New variable.
9996 (amd64_tobjs, i386_tobjs): Use it.
9998 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10000 * symtab.c (print_symbol_info): Precede the symbol definition by
10001 the line number when available.
10002 * NEWS: Advertise this enhancement.
10004 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10006 * NEWS (New options): announce set/show record btrace cpu.
10007 * btrace.c: Include record-btrace.h.
10008 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10009 the vendor is unknown.
10010 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10011 Maybe overwrite the btrace configuration's cpu.
10012 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10013 (btrace_fetch): Add cpu parameter. Update callers.
10014 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10015 Maybe overwrite the btrace configuration's cpu. Skip enabling
10016 errata workarounds if the vendor is unknown.
10017 * python/py-record-btrace.c: Include record-btrace.h.
10018 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10019 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10020 * record-btrace.c (record_btrace_cpu_state_kind): New.
10021 (record_btrace_cpu): New.
10022 (set_record_btrace_cpu_cmdlist): New.
10023 (record_btrace_get_cpu): New.
10024 (require_btrace_thread, record_btrace_info)
10025 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10026 (cmd_set_record_btrace_cpu_none): New.
10027 (cmd_set_record_btrace_cpu_auto): New.
10028 (cmd_set_record_btrace_cpu): New.
10029 (cmd_show_record_btrace_cpu): New.
10030 (_initialize_record_btrace): Initialize set/show record btrace cpu
10032 * record-btrace.h (record_btrace_get_cpu): New.
10034 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10036 * record.c (set_record_command): Fix typo in message.
10038 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10040 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10042 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10044 * infrun.c (process_event_stop_test): Call
10045 gdbarch_in_indirect_branch_thunk.
10046 * gdbarch.sh (in_indirect_branch_thunk): New.
10047 * gdbarch.c: Regenerated.
10048 * gdbarch.h: Regenerated.
10051 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10052 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10053 (ALLDEPFILES): Add x86-tdep.c.
10054 * arch-utils.h (default_in_indirect_branch_thunk): New.
10055 * arch-utils.c (default_in_indirect_branch_thunk): New.
10056 * i386-tdep: Include x86-tdep.h.
10057 (i386_in_indirect_branch_thunk): New.
10058 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10060 * amd64-tdep: Include x86-tdep.h.
10061 (amd64_in_indirect_branch_thunk): New.
10062 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10064 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10067 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10068 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10069 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10072 2018-04-12 Tom Tromey <tom@tromey.com>
10074 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10075 (rust_evaluate_subexp): Likewise.
10077 2018-04-12 Pedro Alves <palves@redhat.com>
10079 * procfs.c (procfs_detach): Make forward declaration's prototype
10080 match definition's protototype.
10081 (proc_get_LDT_entry): Remove stale do_cleanups call.
10083 2018-04-12 Pedro Alves <palves@redhat.com>
10085 * target.h (target_ops::to_has_exited): Delete.
10086 (target_has_exited): Delete.
10087 * target-delegates.c: Regenerate.
10089 2018-04-11 Pedro Alves <palves@redhat.com>
10091 * target.c (fileio_fh_t::t): Add comment.
10092 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10093 (target_fileio_close): Handle a NULL target.
10094 (invalidate_fileio_fh): New.
10095 (target_close): Call it.
10096 * remote.c (remote_hostio_send_command): No longer check whether
10097 remote_desc is open.
10099 2018-04-11 Pedro Alves <palves@redhat.com>
10101 * target.c (fileio_fh_t): Make it a named struct instead of a
10103 (fileio_fh_t::is_closed): New method.
10104 (DEF_VEC_O (fileio_fh_t)): Remove.
10105 (fileio_fhandles): Now a std::vector.
10106 (is_closed_fileio_fh): Delete.
10107 (acquire_fileio_fd): Adjust. Rename parameters.
10108 (release_fileio_fd): Adjust.
10109 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10110 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10111 (target_fileio_close): Adjust.
10113 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10115 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10118 2018-04-10 Pedro Alves <palves@redhat.com>
10120 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10121 (scoped_finish_thread_state): New class.
10122 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10124 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10125 (fetch_inferior_event, normal_stop): Likewise.
10126 * thread.c (finish_thread_state_cleanup): Delete.
10128 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10129 Pedro Alves <palves@redhat.com>
10131 * value.c: Include "selftest.h" and "common/array-view.h".
10132 (struct range) <operator ==>: New.
10133 (test_ranges_contain): New.
10134 (check_ranges_vector): New.
10135 (test_insert_into_bit_range_vector): New.
10136 (_initialize_values): Register selftests.
10137 * common/array-view.h (operator==, operator!=): New.
10139 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10141 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10143 * inline-frame.c: Include <algorithm>.
10144 (struct inline_state): Add constructor.
10145 (inline_state_s): Remove.
10146 (DEF_VEC_O(inline_state_s)): Remove.
10147 (inline_states): Change type to std::vector.
10148 (find_inline_frame_state): Adjust to std::vector.
10149 (allocate_inline_frame_state): Remove.
10150 (clear_inline_frame_state): Adjust to std::vector.
10151 (skip_inline_frames): Adjust to std::vector.
10153 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10155 * tracepoint.h (struct trace_state_variable): Add constructor.
10156 <name>: Change type to std::string.
10157 * tracepoint.c (tsv_s): Remove.
10158 (DEF_VEC_O(tsv_s)): Remove.
10159 (tvariables): Change to std::vector.
10160 (create_trace_state_variable): Adjust to std::vector.
10161 (find_trace_state_variable): Likewise.
10162 (find_trace_state_variable_by_number): Likewise.
10163 (delete_trace_state_variable): Likewise.
10164 (trace_variable_command): Adjust to std::string.
10165 (delete_trace_variable_command): Likewise.
10166 (tvariables_info_1): Adjust to std::vector.
10167 (save_trace_state_variables): Likewise.
10168 (start_tracing): Likewise.
10169 (merge_uploaded_trace_state_variables): Adjust to std::vector
10171 * target.h (struct target_ops)
10172 <to_download_trace_state_variable>: Pass reference to
10173 trace_state_variable.
10174 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10175 * target-delegates.c: Re-generate.
10176 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10177 (mi_tsv_deleted): Likewise.
10178 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10179 * remote.c (remote_download_trace_state_variable): Change
10180 pointer to reference and adjust.
10181 * make-target-delegates (parse_argtypes): Handle references.
10182 (write_function_header): Likewise.
10183 (munge_type): Likewise.
10185 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10187 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10188 string_view-selftests.c.
10189 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10191 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10192 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10193 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10194 * unittests/basic_string_view/element_access/char/1.cc:
10196 * unittests/basic_string_view/element_access/char/empty.cc:
10198 * unittests/basic_string_view/element_access/char/front_back.cc:
10200 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10201 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10203 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10205 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10207 * unittests/basic_string_view/operations/compare/char/1.cc:
10209 * unittests/basic_string_view/operations/compare/char/13650.cc:
10211 * unittests/basic_string_view/operations/copy/char/1.cc:
10213 * unittests/basic_string_view/operations/data/char/1.cc:
10215 * unittests/basic_string_view/operations/find/char/1.cc:
10217 * unittests/basic_string_view/operations/find/char/2.cc:
10219 * unittests/basic_string_view/operations/find/char/3.cc:
10221 * unittests/basic_string_view/operations/find/char/4.cc:
10223 * unittests/basic_string_view/operations/rfind/char/1.cc:
10225 * unittests/basic_string_view/operations/rfind/char/2.cc:
10227 * unittests/basic_string_view/operations/rfind/char/3.cc:
10229 * unittests/basic_string_view/operations/substr/char/1.cc:
10231 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10232 * unittests/string_view-selftests.c: New file.
10234 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10236 * unittests/basic_string_view/capacity/1.cc: New file.
10237 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10238 * unittests/basic_string_view/cons/char/1.cc: New file.
10239 * unittests/basic_string_view/cons/char/2.cc: New file.
10240 * unittests/basic_string_view/cons/char/3.cc: New file.
10241 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10242 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10243 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10244 * unittests/basic_string_view/element_access/char/1.cc: New file.
10245 * unittests/basic_string_view/element_access/char/2.cc: New file.
10246 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10247 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10248 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10249 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10250 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10251 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10252 * unittests/basic_string_view/include.cc: New file.
10253 * unittests/basic_string_view/inserters/char/1.cc: New file.
10254 * unittests/basic_string_view/inserters/char/2.cc: New file.
10255 * unittests/basic_string_view/inserters/char/3.cc: New file.
10256 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10257 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10258 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10259 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10260 * unittests/basic_string_view/literals/types.cc: New file.
10261 * unittests/basic_string_view/literals/values.cc: New file.
10262 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10263 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10264 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10265 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10266 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10267 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10268 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10269 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10270 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10271 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10272 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10273 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10274 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10275 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10276 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10277 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10278 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10279 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10280 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10281 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10282 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10283 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10284 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10285 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10286 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10287 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10288 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10289 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10290 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10291 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10292 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10293 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10294 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10295 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10296 * unittests/basic_string_view/operators/char/2.cc: New file.
10297 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10298 * unittests/basic_string_view/range_access/char/1.cc: New file.
10299 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10300 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10301 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10302 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10303 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10304 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10305 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10306 * unittests/basic_string_view/typedefs.cc: New file.
10307 * unittests/basic_string_view/types/1.cc: New file.
10309 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10311 * common/gdb_string_view.h: Remove libstdc++ implementation
10312 details, adjust to gdb reality.
10313 * common/gdb_string_view.tcc: Likewise.
10314 * cli/cli-script.c (struct string_view): Remove.
10315 (user_args) <m_args>: Change element type to gdb::string_view.
10316 (user_args::insert_args): Adjust.
10318 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10320 * common/gdb_string_view.h: New file.
10321 * common/gdb_string_view.tcc: New file.
10323 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10325 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10326 * configure: Re-generate.
10328 2018-04-09 Pedro Alves <palves@redhat.com>
10330 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10331 (set_target_gdbarch): Call
10332 gdb::observers::architecture_changed.notify instead of
10333 observer_notify_architecture_changed.
10335 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10337 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10338 (do_restore_current_traceframe_cleanup): Remove.
10339 (restore_current_traceframe_cleanup_dtor): Remove.
10340 (make_cleanup_restore_current_traceframe): Remove.
10341 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10343 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10344 * infrun.c (fetch_inferior_event): Use
10345 scoped_restore_current_traceframe.
10347 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10349 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10351 <n_allocated_type_units>: Remove.
10352 <all_type_units>: Change to std::vector.
10353 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10354 to std::vector change.
10355 (dwarf2_per_objfile::get_cutu): Likewise.
10356 (dwarf2_per_objfile::get_tu): Likewise.
10357 (create_signatured_type_table_from_index): Likewise.
10358 (create_signatured_type_table_from_debug_names): Likewise.
10359 (dw2_symtab_iter_next): Likewise.
10360 (dw2_print_stats): Likewise.
10361 (dw2_expand_all_symtabs): Likewise.
10362 (dw2_expand_marked_cus): Likewise.
10363 (dw2_debug_names_iterator::next): Likewise.
10364 (dwarf2_initialize_objfile): Likewise.
10365 (add_signatured_type_cu_to_table): Likewise.
10366 (create_all_type_units): Likewise.
10367 (add_type_unit): Likewise.
10368 (struct tu_abbrev_offset): Add constructor.
10369 (build_type_psymtabs_1): Adjust to std::vector change.
10370 (print_tu_stats): Likewise.
10371 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10372 (write_debug_names): Likewise.
10374 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10376 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10377 Make an std::vector.
10378 <n_comp_units>: Remove.
10379 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10380 to std::vector change.
10381 (dwarf2_per_objfile::get_cutu): Likewise.
10382 (dwarf2_per_objfile::get_cu): Likewise.
10383 (create_cus_from_index): Likewise.
10384 (create_addrmap_from_index): Likewise.
10385 (create_addrmap_from_aranges): Likewise.
10386 (dwarf2_read_index): Likewise.
10387 (dw2_find_last_source_symtab): Likewise.
10388 (dw2_map_symtabs_matching_filename): Likewise.
10389 (dw2_symtab_iter_next): Likewise.
10390 (dw2_print_stats): Likewise.
10391 (dw2_expand_all_symtabs): Likewise.
10392 (dw2_expand_symtabs_with_fullname): Likewise.
10393 (dw2_expand_marked_cus): Likewise.
10394 (dw2_map_symbol_filenames): Likewise.
10395 (create_cus_from_debug_names): Likewise.
10396 (dwarf2_read_debug_names): Likewise.
10397 (dw2_debug_names_iterator::next): Likewise.
10398 (dwarf2_initialize_objfile): Likewise.
10399 (set_partial_user): Likewise.
10400 (dwarf2_build_psymtabs_hard): Likewise.
10401 (read_comp_units_from_section): Remove arguments, adjust to
10402 std::vector change.
10403 (create_all_comp_units): Adjust to std::vector and
10404 read_comp_units_from_section changes.
10405 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10407 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10408 (psyms_seen_size): Likewise.
10409 (write_gdbindex): Likewise.
10410 (write_debug_names): Likewise.
10412 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10414 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10415 with dwarf2_per_objfile.
10416 (create_cus_from_index): Likewise.
10417 (create_signatured_type_table_from_index): Likewise.
10418 (dwarf2_read_index): Likewise.
10419 (dwarf2_initialize_objfile): Likewise.
10420 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10421 per_cu rather than get_dwarf2_per_objfile.
10423 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10425 * dwarf2read.h (struct signatured_type): Forward declare.
10426 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10428 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10429 (dw2_get_cutu): ...this.
10430 (dwarf2_per_objfile::get_cu): Rename from...
10431 (dw2_get_cu): ...this.
10432 (dwarf2_per_objfile::get_tu): New.
10433 (create_addrmap_from_index): Adjust.
10434 (create_addrmap_from_aranges): Adjust.
10435 (dw2_find_last_source_symtab): Adjust.
10436 (dw2_map_symtabs_matching_filename): Adjust.
10437 (dw2_symtab_iter_next): Adjust.
10438 (dw2_print_stats): Adjust.
10439 (dw2_expand_all_symtabs): Adjust.
10440 (dw2_expand_symtabs_with_fullname): Adjust.
10441 (dw2_expand_marked_cus): Adjust.
10442 (dw_expand_symtabs_matching_file_matcher): Adjust.
10443 (dw2_map_symbol_filenames): Adjust.
10444 (dw2_debug_names_iterator::next): Adjust.
10445 (dwarf2_initialize_objfile): Adjust.
10446 (set_partial_user): Adjust.
10447 (dwarf2_build_psymtabs_hard): Adjust.
10449 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10451 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10452 Remove unused variables.
10453 (dw2_map_symtabs_matching_filename): Likewise.
10454 (dwarf2_record_block_ranges): Likewise.
10455 (dwarf2_read_addr_index): Likewise.
10456 (follow_die_offset): Likewise.
10458 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10460 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10461 to symbol_file_add_main.
10463 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10466 * mi/mi-console.c (do_fputc_async_safe): New.
10467 (mi_console_file::write_async_safe): New.
10468 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10469 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10471 * ui-file.c (ui_file::putstrn): Adjust call to
10472 fputstrn_unfiltered.
10473 * utils.c (printchar): Replace do_fputs and do_fprintf
10474 parameters by do_fputc.
10475 (fputstr_filtered): Adjust call to printchar.
10476 (fputstr_unfiltered): Likewise.
10477 (fputstrn_filtered): Likewise.
10478 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10480 * utils.h (do_fputc_ftype): New typedef.
10481 (fputstrn_unfiltered): Add do_fputc parameter.
10483 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10485 * regformats/i386/i386-avx.dat: Remove.
10487 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10490 * amd64-tdep.c (amd64_none_init_abi): New function.
10491 (amd64_x32_none_init_abi): New function.
10492 (_initialize_amd64_tdep): Register handlers for x86-64 and
10493 x64_32 with GDB_OSABI_NONE.
10494 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
10495 GDB_OSABI_NONE osabi.
10497 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10500 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
10502 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
10503 * osabi.c (gdb_osabi_names): Add "unknown" entry.
10505 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10507 * common/byte-vector.h (char_vector): New type.
10508 * target.h (target_read_alloc): Return
10509 gdb::optional<byte_vector>.
10510 (target_read_stralloc): Return gdb::optional<char_vector>.
10511 (target_get_osdata): Return gdb::optional<char_vector>.
10512 * target.c (target_read_alloc_1): Templatize. Replacement
10513 manual memory management with vector.
10514 (target_read_alloc): Change return type, adjust.
10515 (target_read_stralloc): Change return type, adjust.
10516 (target_get_osdata): Change return type, adjust.
10517 * auxv.c (struct auxv_info) <length>: Remove.
10518 <data>: Change type to gdb::optional<byte_vector>.
10519 (auxv_inferior_data_cleanup): Free auxv_info with delete.
10520 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
10521 (target_auxv_search): Adjust.
10522 (fprint_target_auxv): Adjust.
10523 * avr-tdep.c (avr_io_reg_read_command): Adjust.
10524 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
10525 (linux_make_corefile_notes): Adjust.
10526 * osdata.c (get_osdata): Adjust.
10527 * remote.c (remote_get_threads_with_qxfer): Adjust.
10528 (remote_memory_map): Adjust.
10529 (remote_traceframe_info): Adjust.
10530 (btrace_read_config): Adjust.
10531 (remote_read_btrace): Adjust.
10532 (remote_pid_to_exec_file): Adjust.
10533 * solib-aix.c (solib_aix_get_library_list): Adjust.
10534 * solib-dsbt.c (decode_loadmap): Don't free buf.
10535 (dsbt_get_initial_loadmaps): Adjust.
10536 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
10537 * solib-target.c (solib_target_current_sos): Adjust.
10538 * tracepoint.c (sdata_make_value): Adjust.
10539 * xml-support.c (xinclude_start_include): Adjust.
10540 (xml_fetch_content_from_file): Adjust.
10541 * xml-support.h (xml_fetch_another): Change return type.
10542 (xml_fetch_content_from_file): Change return type.
10543 * xml-syscall.c (xml_init_syscalls_info): Adjust.
10544 * xml-tdesc.c (file_read_description_xml): Adjust.
10545 (fetch_available_features_from_target): Change return type.
10546 (target_fetch_description_xml): Adjust.
10547 (target_read_description_xml): Adjust.
10549 2018-04-06 Tom Tromey <tom@tromey.com>
10551 * value.c (~value): Update.
10552 (struct value) <contents>: Now unique_xmalloc_ptr.
10553 (value_contents_bits_eq, allocate_value_contents)
10554 (value_contents_raw, value_contents_all_raw)
10555 (value_contents_for_printing, value_contents_for_printing_const)
10556 (set_value_enclosing_type): Update.
10558 2018-04-06 Tom Tromey <tom@tromey.com>
10560 * value.c (range_s): Remove typedef, VEC.
10561 (struct range): Add operator<.
10562 (range_lessthan): Remove.
10563 (ranges_contain): Change type.
10565 (struct value) <unavailable, optimized_out>: Now std::vector.
10566 (value_entirely_available)
10567 (value_entirely_covered_by_range_vector)
10568 (value_entirely_unavailable, value_entirely_optimized_out):
10570 (insert_into_bit_range_vector): Change argument type.
10571 (find_first_range_overlap): Likewise.
10572 (struct ranges_and_idx, value_contents_bits_eq)
10573 (require_not_optimized_out, require_available): Update.
10574 (ranges_copy_adjusted): Change argument types.
10575 (value_optimized_out, value_copy, value_fetch_lazy): Update.
10577 2018-04-06 Tom Tromey <tom@tromey.com>
10579 * value.c (~value): Update.
10580 (struct value) <parent>: Now a value_ref_ptr.
10581 (value_parent, set_value_parent, value_address, value_copy):
10584 2018-04-06 Tom Tromey <tom@tromey.com>
10586 * value.c (struct value): Add constructor, destructor, and member
10588 (allocate_value_lazy, value_decref): Update.
10590 2018-04-06 Tom Tromey <tom@tromey.com>
10592 * value.c (struct value) <released, next>: Remove.
10593 (all_values): Now a std::vector.
10594 (allocate_value_lazy): Update.
10595 (value_next): Remove.
10596 (value_mark, value_free_to_mark, release_value)
10597 (value_release_to_mark): Update.
10599 2018-04-06 Tom Tromey <tom@tromey.com>
10601 * value.h (fetch_subexp_value, value_release_to_mark): Update.
10602 (free_value_chain): Remove.
10603 * value.c (free_value_chain): Remove.
10604 (value_release_to_mark): Return a std::vector.
10605 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
10607 (check_condition): Update.
10608 * eval.c (fetch_subexp_value): Change "val_chain" to a
10610 * breakpoint.c (update_watchpoint): Update.
10611 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
10613 2018-04-06 Tom Tromey <tom@tromey.com>
10615 * value.h (free_all_values): Remove.
10616 * value.c (free_all_values): Remove.
10618 2018-04-06 Tom Tromey <tom@tromey.com>
10620 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
10621 (value_history_chain, value_history_count): Remove.
10622 (value_history): New global.
10623 (record_latest_value, access_value_history, show_values)
10624 (preserve_values): Update.
10626 2018-04-06 Tom Tromey <tom@tromey.com>
10628 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
10629 * varobj.c (varobj_set_display_format, varobj_set_value)
10630 (install_default_visualizer, construct_visualizer)
10631 (install_new_value, ~varobj, varobj_get_value_type)
10632 (my_value_of_variable, varobj_editable_p): Update.
10633 * c-varobj.c (c_describe_child, c_value_of_variable)
10634 (cplus_number_of_children, cplus_describe_child): Update.
10635 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
10636 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
10637 (ada_value_of_variable, ada_value_is_changeable_p): Update.
10639 2018-04-06 Tom Tromey <tom@tromey.com>
10641 * printcmd.c (last_examine_address): Change type to
10643 (do_examine, x_command): Update.
10645 2018-04-06 Tom Tromey <tom@tromey.com>
10647 * value.c (release_value): Update.
10648 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
10649 (struct bpstats) <val>: Now a value_ref_ptr.
10650 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10651 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10652 (~watchpoint, print_it_watchpoint, watch_command_1)
10653 (invalidate_bp_value_on_memory_change): Update.
10655 2018-04-06 Tom Tromey <tom@tromey.com>
10657 * varobj.c (varobj_clear_saved_item)
10658 (update_dynamic_varobj_children, install_new_value, ~varobj):
10660 * value.h (value_incref): Move declaration earlier.
10661 (value_decref): Rename from value_free.
10662 (struct value_ref_policy): New.
10663 (value_ref_ptr): New typedef.
10664 (struct value_deleter): Remove.
10665 (gdb_value_up): Remove typedef.
10666 (release_value): Change return type.
10667 (release_value_or_incref): Remove.
10668 * value.c (set_value_parent): Update.
10669 (value_incref): Change return type.
10670 (value_decref): Rename from value_free.
10671 (value_free_to_mark, free_all_values, free_value_chain): Update.
10672 (release_value): Return value_ref_ptr.
10673 (release_value_or_incref): Remove.
10674 (record_latest_value, set_internalvar, clear_internalvar):
10676 * stack.c (info_frame_command): Don't call value_free.
10677 * python/py-value.c (valpy_dealloc, valpy_new)
10678 (value_to_value_object): Update.
10679 * printcmd.c (do_examine): Update.
10680 * opencl-lang.c (lval_func_free_closure): Update.
10681 * mi/mi-main.c (register_changed_p): Don't call value_free.
10682 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
10683 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
10684 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
10686 * guile/scm-value.c (vlscm_free_value_smob)
10687 (vlscm_scm_from_value): Update.
10688 * frame.c (frame_register_unwind, frame_unwind_register_signed)
10689 (frame_unwind_register_unsigned, get_frame_register_bytes)
10690 (put_frame_register_bytes): Don't call value_free.
10691 * findvar.c (address_from_register): Don't call value_free.
10692 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
10693 * dwarf2loc.c (entry_data_value_free_closure)
10694 (value_of_dwarf_reg_entry, free_pieced_value_closure)
10695 (dwarf2_evaluate_loc_desc_full): Update.
10696 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
10697 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
10698 (~watchpoint, watch_command_1)
10699 (invalidate_bp_value_on_memory_change): Update.
10700 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
10702 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
10705 * warning.m4: Add -Wno-error=deprecated-register.
10706 * configure: Re-generate.
10708 2018-04-05 Tom Tromey <tom@tromey.com>
10710 * linespec.h: Remove include of "vec.h".
10712 2018-04-05 Tom Tromey <tom@tromey.com>
10714 * linespec.c (typep): Remove typedef.
10715 (find_methods, find_superclass_methods): Take a std::vector.
10716 (find_method): Use std::vector.
10718 2018-04-05 Tom Tromey <tom@tromey.com>
10720 * utils.c (compare_strings): Remove.
10721 * utils.h (compare_strings): Remove.
10722 * objc-lang.h (find_imps): Update.
10723 * objc-lang.c (find_methods): Take a std::vector.
10724 (uniquify_strings, find_imps): Likewise.
10725 * linespec.c (find_methods): Take a std::vector.
10726 (decode_objc): Use std::vector.
10727 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
10729 (find_method, find_function_symbols): Use std::vector.
10731 2018-04-05 Tom Tromey <tom@tromey.com>
10733 * completer.c (completion_tracker::completion_tracker): Remove
10735 (completion_tracker::discard_completions): Likewise.
10736 * breakpoint.c (ambiguous_names_p): Remove cast.
10737 * ada-lang.c (_initialize_ada_language): Remove cast.
10738 * utils.h (streq): Update.
10739 (streq_hash): Add new declaration.
10740 * utils.c (streq): Return bool.
10741 (streq_hash): New function.
10743 2018-04-05 Tom Tromey <tom@tromey.com>
10745 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
10746 Remove a string copy.
10748 2018-04-05 Tom Tromey <tom@tromey.com>
10750 * linespec.c (filter_results): Use std::vector.
10751 (decode_line_2, decode_line_full): Update.
10753 2018-04-05 Tom Tromey <tom@tromey.com>
10755 * linespec.c (canonical_to_fullform): Return std::string.
10756 (filter_results): Update.
10757 (struct decode_line_2_item): Add constructor.
10758 <fullform, displayform>: Now std::string.
10759 (decode_line_2_compare_items): Now a std::sort comparator.
10760 (decode_line_2): Update.
10762 2018-04-05 Tom Tromey <tom@tromey.com>
10764 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
10765 (unexpected_linespec_error): Update.
10766 (linespec_parse_basic, parse_linespec): Update.
10768 2018-04-05 Tom Tromey <tom@tromey.com>
10770 * linespec.c (linespec_parse_basic): Reindent.
10772 2018-04-05 Tom Tromey <tom@tromey.com>
10774 * minsyms.h (iterate_over_minimal_symbols): Update.
10775 * minsyms.c (iterate_over_minimal_symbols): Take a
10776 gdb::function_view.
10777 * linespec.c (struct collect_minsyms): Remove.
10778 (compare_msyms): Now a std::sort comparator.
10779 (add_minsym): Add parameters.
10780 (search_minsyms_for_name): Update. Use std::vector.
10782 2018-04-03 Tom Tromey <tom@tromey.com>
10784 * mipsread.c (read_alphacoff_dynamic_symtab): Use
10787 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10789 * MAINTAINERS (Write After Approval): Add Weimin Pan.
10791 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
10794 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
10795 printing static type.
10797 2018-04-01 Tom Tromey <tom@tromey.com>
10799 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
10800 (rs6000_xfer_shared_libraries): Update.
10802 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10804 * common/gdb_vecs.h (char_ptr): Remove.
10805 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
10807 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10809 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
10811 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
10813 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
10815 * tracepoint.h (struct uploaded_tp): Initialize fields.
10816 <actions, step_actions, cmd_strings>: Change type to
10817 std::vector<char *>.
10818 * tracepoint.c (get_uploaded_tp): Allocate with new.
10819 (free_uploaded_tps): Free with delete.
10820 (parse_tracepoint_definition): Adjust to std::vector change.
10821 * breakpoint.c (read_uploaded_action): Likewise.
10822 (create_tracepoint_from_upload): Likewise.
10823 * ctf.c (ctf_write_uploaded_tp): Likewise.
10824 (SET_ARRAY_FIELD): Likewise.
10825 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
10827 2018-03-30 Tom Tromey <tom@tromey.com>
10829 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
10831 (svr4_keep_data_in_core): Update.
10832 (svr4_read_so_list): Update.
10834 2018-03-30 Tom Tromey <tom@tromey.com>
10836 * windows-nat.c (handle_output_debug_string, handle_exception):
10838 * target.h (target_read_string): Update.
10839 * target.c (target_read_string): Change "string" to
10840 unique_xmalloc_ptr.
10841 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
10843 * solib-frv.c (frv_current_sos): Update.
10844 * solib-dsbt.c (dsbt_current_sos): Update.
10845 * solib-darwin.c (darwin_current_sos): Update.
10846 * linux-thread-db.c (inferior_has_bug): Update.
10847 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
10848 Update. Remove alloca.
10849 * ada-lang.c (ada_main_name): Update.
10851 2018-03-30 Tom Tromey <tom@tromey.com>
10853 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
10854 (struct dwo_file_deleter): New.
10855 (dwo_file_up): New typedef.
10856 (open_and_init_dwo_file): Use dwo_file_up.
10857 (free_dwo_file_cleanup): Remove.
10859 2018-03-30 Tom Tromey <tom@tromey.com>
10861 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
10862 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
10864 2018-03-30 Tom Tromey <tom@tromey.com>
10866 * dwarf2read.c (class free_cached_comp_units): New class.
10867 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
10868 (free_cached_comp_units): Remove function.
10870 2018-03-30 Tom Tromey <tom@tromey.com>
10872 * utils.h (make_cleanup_unpush_target): Remove.
10873 * inf-ptrace.c (struct target_unpusher): New.
10874 (target_unpush_up) New typedef.
10875 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
10877 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
10879 2018-03-27 Tom Tromey <tom@tromey.com>
10881 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
10883 2018-03-27 Pedro Alves <palves@redhat.com>
10884 Tom Tromey <tom@tromey.com>
10886 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
10887 destructor. Now a class.
10888 (gdb_readline_wrapper_cleanup): Remove function.
10889 (gdb_readline_wrapper): Remove cleanups.
10891 2018-03-27 Tom Tromey <tom@tromey.com>
10893 * typeprint.h (struct type_print_options) <local_typedefs,
10894 global_typedefs>: Remove "struct" keyword.
10895 (class typedef_hash_table): New class.
10896 (recursively_update_typedef_hash, add_template_parameters)
10897 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
10898 (find_typedef_in_hash): Don't declare.
10899 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
10900 (typedef_hash_table::recursively_update): Rename from
10901 recursively_update_typedef_hash. Now a member.
10902 (typedef_hash_table::add_template_parameters): Rename from
10903 add_template_parameters. Now a member.
10904 (typedef_hash_table::typedef_hash_table): Now a constructor;
10905 rename from create_typedef_hash.
10906 (typedef_hash_table::~typedef_hash_table): Now a destructor;
10907 rename from free_typedef_hash.
10908 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
10909 (do_free_global_table): Remove.
10910 (typedef_hash_table::typedef_hash_table): New constructor; renamed
10911 from copy_type_recursive.
10912 (create_global_typedef_table): Remove.
10913 (typedef_hash_table::find_global_typedef): Now a member of
10914 typedef_hash_table.
10915 (typedef_hash_table::find_typedef): Rename from
10916 find_typedef_in_hash; now a member.
10917 (whatis_exp): Update.
10918 * extension.h (struct ext_lang_type_printers): Add constructor and
10920 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
10922 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
10923 Now a constructor; rename from start_ext_lang_type_printers.
10924 (ext_lang_type_printers): Now a destructor; rename from
10925 free_ext_lang_type_printers.
10926 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
10928 (c_type_print_base_struct_union): Update. Remove cleanups.
10930 2018-03-27 Tom Tromey <tom@tromey.com>
10932 * dwarf-index-write.c: Include <cmath>.
10934 2018-03-27 Joel Brobecker <brobecker@adacore.com>
10936 * NEWS: Add entry describing new "set|show varsize-limit" command.
10937 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
10939 * printcmd.c (_initialize_printcmd): Add "set var" alias of
10942 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
10944 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
10945 dwarf-index-write.c
10946 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
10947 * dwarf-index-common.c: New file.
10948 * dwarf-index-common.h: New file.
10949 * dwarf-index-write.c: New file.
10950 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
10951 (struct dwarf2_section_info): Move from here.
10952 (dwarf2_section_info_def): Likewise.
10953 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
10954 (offset_type): Likewise.
10955 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
10956 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
10957 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
10958 (byte_swap): Likewise.
10959 (MAYBE_SWAP): Likewise.
10960 (dwarf2_per_cu_ptr): Likewise.
10961 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
10962 (struct tu_stats): Likewise.
10963 (struct dwarf2_per_objfile): Likewise.
10964 (struct dwarf2_per_cu_data): Likewise.
10965 (struct signatured_type): Likewise.
10966 (sig_type_ptr): Likewise.
10967 (DEF_VEC_P (sig_type_ptr)): Likewise.
10968 (INDEX4_SUFFIX): Likewise.
10969 (INDEX5_SUFFIX): Likewise.
10970 (DEBUG_STR_SUFFIX): Likewise.
10971 (dwarf2_read_section): Make non-static.
10972 (mapped_index_string_hash): Move from here.
10973 (dwarf5_djb_hash): Likewise.
10974 (file_write): Likewise.
10975 (class data_buf): Likewise.
10976 (struct symtab_index_entry): Likewise.
10977 (struct mapped_symtab): Likewise.
10978 (find_slot): Likewise.
10979 (hash_expand): Likewise.
10980 (add_index_entry): Likewise.
10981 (uniquify_cu_indices): Likewise.
10982 (class c_str_view): Likewise.
10983 (class c_str_view_hasher): Likewise.
10984 (class vector_hasher): Likewise.
10985 (write_hash_table): Likewise.
10986 (psym_index_map): Likewise.
10987 (struct addrmap_index_data): Likewise.
10988 (add_address_entry): Likewise.
10989 (add_address_entry_worker): Likewise.
10990 (write_address_map): Likewise.
10991 (symbol_kind): Likewise.
10992 (write_psymbols): Likewise.
10993 (struct signatured_type_index_data): Likewise.
10994 (write_one_signatured_type): Likewise.
10995 (recursively_count_psymbols): Likewise.
10996 (recursively_write_psymbols): Likewise.
10997 (class debug_names): Likewise.
10998 (check_dwarf64_offsets): Likewise.
10999 (psyms_seen_size): Likewise.
11000 (write_gdbindex): Likewise.
11001 (write_debug_names): Likewise.
11002 (assert_file_size): Likewise.
11003 (write_psymtabs_to_index): Likewise.
11004 (save_gdb_index_command): Likewise.
11005 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11007 * dwarf2read.h: New file.
11009 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11012 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11013 symbol name if the CU's language stores symbol names in linkage
11015 * language.h (struct language_defn)
11016 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11017 all instances of this struct.
11019 2018-03-26 Tom Tromey <tom@tromey.com>
11021 * stack.c (backtrace_command_1): Remove verbose code.
11023 2018-03-26 Tom Tromey <tom@tromey.com>
11025 * python/py-framefilter.c (py_print_type): Don't catch
11026 exceptions. Return void.
11027 (py_print_value): Likewise.
11028 (py_print_single_arg): Likewise.
11029 (enumerate_args): Don't catch exceptions.
11030 (py_print_args): Likewise.
11031 (py_print_frame): Likewise.
11032 (gdbpy_apply_frame_filter): Catch exceptions here.
11034 2018-03-26 Tom Tromey <tom@tromey.com>
11036 * stack.c (_initialize_stack): Remove trailing newlines from help
11037 text. Add "Usage" line to "backtrace" help.
11039 2018-03-26 Tom Tromey <tom@tromey.com>
11042 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11044 2018-03-26 Tom Tromey <tom@tromey.com>
11046 * python/py-framefilter.c (py_print_single_arg): Return
11047 EXT_LANG_BT_ERROR from catch.
11049 2018-03-26 Tom Tromey <tom@tromey.com>
11051 PR backtrace/15584:
11052 * stack.c (backtrace_command_1): Move some code into no-filters
11055 2018-03-26 Tom Tromey <tom@tromey.com>
11057 * python/py-framefilter.c (throw_quit_or_print_exception): New
11059 (gdbpy_apply_frame_filter): Use it.
11061 2018-03-26 Tom Tromey <tom@tromey.com>
11064 * python/py-framefilter.c (py_print_type, py_print_value)
11065 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11068 2018-03-26 Tom Tromey <tom@tromey.com>
11070 * python/py-framefilter.c (enumerate_args): Use
11071 gdb::unique_xmalloc_ptr.
11073 2018-03-26 Tom Tromey <tom@tromey.com>
11075 * python/py-framefilter.c (py_print_frame): Return
11077 (gdbpy_apply_frame_filter): Update comment.
11078 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11080 <EXT_LANG_BT_NO_FILTERS>: Change value.
11082 2018-03-26 Tom Tromey <tom@tromey.com>
11084 PR backtrace/15582:
11085 * stack.c (backtrace_command): Parse "hide" argument.
11086 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11087 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11090 2018-03-26 Tom Tromey <tom@tromey.com>
11092 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11094 (backtrace_command): Remove "fulltrace", add "flags".
11096 2018-03-26 Tom Tromey <tom@tromey.com>
11098 * stack.c (backtrace_command): Rewrite command line parsing.
11100 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11102 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11104 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11106 * filename-seen-cache.h: Add include guard.
11108 2018-03-26 Keith Seitz <keiths@redhat.com>
11110 * symfile.c (place_section): Remove "struct" from section_addr_info
11112 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11113 "struct" keyword from section_addr_info.
11115 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11117 * regformats/regdef.h (reg): Add constructors.
11119 2018-03-25 Pedro Alves <palves@redhat.com>
11121 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11122 if then/else bodies in var_func_name extraction.
11124 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11126 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11127 lookup_minimal_symbol() to find symbol entry.
11128 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11130 2018-03-23 Keith Seitz <keiths@redhat.com>
11133 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11134 nested type definitions for C++, too.
11136 2018-03-23 Tom Tromey <tom@tromey.com>
11138 * machoread.c (struct oso_el): Add a constructor. Don't define as
11140 (macho_register_oso): Remove.
11141 (macho_symtab_read): Take a std::vector.
11142 (oso_el_compare_name): Now a std::sort comparator.
11143 (macho_symfile_read_all_oso): Take a std::vector.
11144 (macho_symfile_read): Use std::vector. Remove cleanups.
11146 2018-03-22 Tom Tromey <tom@tromey.com>
11148 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11149 (record_full_goto_bookmark): Use std::string.
11151 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11154 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11157 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11159 * rs6000-tdep.c (store_insn_p): New function.
11160 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11161 and cr_reg to their unshifted values. Use store_insn_p to
11162 match LR saves using either R1 or fdata->alloca_reg. Use
11163 store_insn_p to match CR saves. Set alloca_reg_offset
11164 when alloca_reg and framep are set. Remove lr_reg shift
11165 when assigning to fdata->lr_register.
11167 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11169 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11170 command line args instead of emitting a warning.
11172 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11174 * tracepoint.h (struct static_tracepoint_marker): Initialize
11175 fields, define default constructor, move constructor and move
11176 assignment, disable the rest.
11177 <str_id, extra>: Make std::string.
11178 (release_static_tracepoint_marker): Remove.
11179 (free_current_marker): Remove.
11180 * tracepoint.c (free_current_marker): Remove.
11181 (parse_static_tracepoint_marker_definition): Adjust to
11182 std::string, use new hex2str overload.
11183 (release_static_tracepoint_marker): Remove.
11184 (print_one_static_tracepoint_marker): Get marker by reference
11185 and adjust to std::string.
11186 (info_static_tracepoint_markers_command): Adjust to std::vector
11188 * target.h (static_tracepoint_marker_p): Remove typedef.
11189 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11190 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11192 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11194 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11195 (target_debug_print_std_vector_static_tracepoint_marker): New.
11196 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11198 (target_debug_print_static_tracepoint_marker_p): ... this.
11199 * target-delegates.c: Re-generate.
11200 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11202 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11203 (decode_static_tracepoint_spec): Adjust to std::vector.
11204 (tracepoint_print_one_detail): Adjust to std::string.
11205 (strace_marker_decode_location): Adjust to std::string.
11206 (update_static_tracepoint): Adjust to std::string, remove call
11207 to release_static_tracepoint_marker.
11208 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11209 Adjust to std::vector.
11210 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11211 (remote_static_tracepoint_markers_by_strid): Adjust to
11213 * common/rsp-low.h (hex2str): New overload with explicit count
11215 * common/rsp-low.c (hex2str): New overload with explicit count
11217 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11218 (_initialize_rsp_low_selftests): Add test_hex2str test.
11219 * unittests/tracepoint-selftests.c
11220 (test_parse_static_tracepoint_marker_definition): Adjust to
11223 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11225 * tracepoint.c (parse_static_tracepoint_marker_definition):
11226 Consider case where the definition is followed by more
11228 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11229 tracepoint-selftests.c.
11230 * unittests/tracepoint-selftests.c: New.
11232 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11234 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11237 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11239 * symtab.c (find_pc_sect_line): fixed indentation.
11241 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11243 * symtab.c (find_pc_sect_line): now uses binary search.
11245 2018-03-19 Tom Tromey <tom@tromey.com>
11247 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11248 "IDENT" production.
11250 2018-03-19 Pedro Alves <palves@redhat.com>
11251 Tom Tromey <tom@tromey.com>
11253 * unittests/observable-selftests.c: New file.
11254 * common/observable.h: New file.
11255 * observable.h: New file.
11256 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11257 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11258 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11259 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11260 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11261 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11262 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11263 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11264 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11265 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11266 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11267 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11268 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11269 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11270 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11271 tui/tui-interp.c, valops.c: Update all users.
11272 * tui/tui-hooks.c (tui_bp_created_observer)
11273 (tui_bp_deleted_observer, tui_bp_modified_observer)
11274 (tui_inferior_exit_observer, tui_before_prompt_observer)
11275 (tui_normal_stop_observer, tui_register_changed_observer):
11277 (tui_observers_token): New global.
11278 (attach_or_detach, tui_attach_detach_observers): New functions.
11279 (tui_install_hooks, tui_remove_hooks): Use
11280 tui_attach_detach_observers.
11281 * record-btrace.c (record_btrace_thread_observer): Remove.
11282 (record_btrace_thread_observer_token): New global.
11283 * observer.sh: Remove.
11284 * observer.c: Rename to observable.c.
11285 * observable.c (namespace gdb_observers): Define new objects.
11286 (observer_debug): Move into gdb_observers namespace.
11287 (struct observer, struct observer_list, xalloc_observer_list_node)
11288 (xfree_observer_list_node, generic_observer_attach)
11289 (generic_observer_detach, generic_observer_notify): Remove.
11290 (_initialize_observer): Update.
11291 Don't include observer.inc.
11292 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11293 (clean mostlyclean): Likewise.
11294 (observer.h, observer.inc): Remove targets.
11295 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11296 (COMMON_SFILES): Use observable.c, not observer.c.
11297 * .gitignore: Remove observer.h.
11299 2018-03-18 Tom Tromey <tom@tromey.com>
11301 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11303 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11305 2018-03-17 Tom Tromey <tom@tromey.com>
11307 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11309 2018-03-17 Tom Tromey <tom@tromey.com>
11311 * target.c (class scoped_target_fd): New.
11312 (target_fileio_close_cleanup): Remove.
11313 (target_fileio_read_alloc_1): Use scoped_target_fd.
11315 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11317 * silent-rules.mk: New.
11318 * Makefile.in: Include silent-rules.mk
11319 (srcdir, VPATH, top_srcdir): Move up.
11320 (COMPILE): Add ECHO_CXX.
11321 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11322 (init.c): Add ECHO_INIT_C.
11323 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11324 (version.c): Add ECHO_GEN.
11325 (printcmd.o): Add ECHO_CXX.
11326 (target-float.o): Add ECHO_CXX.
11327 (ada-exp.o): Add ECHO_CXX.
11328 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11329 (insight$(EXEEXT)): Add ECHO_CXXLD.
11330 * gnulib/configure.ac: Add AM_SILENT_RULES.
11331 * gnulib/aclocal.m4: Re-generate.
11332 * gnulib/configure: Re-generate.
11333 * gnulib/import/Makefile.in: Re-generate.
11335 2018-03-16 Tom Tromey <tom@tromey.com>
11337 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11338 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11339 * utils.c (do_free_section_addr_info)
11340 (make_cleanup_free_section_addr_info): Remove.
11341 * symfile.h (struct other_sections): Add constructor.
11342 (struct section_addr_info): Remove.
11343 (section_addr_info): New typedef.
11344 (struct sym_fns) <sym_offsets>: Change type of parameter.
11345 (build_section_addr_info_from_objfile)
11346 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11347 (default_symfile_offsets, symbol_file_add)
11348 (symbol_file_add_from_bfd)
11349 (build_section_addr_info_from_section_table): Update.
11350 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11351 * symfile.c (alloc_section_addr_info): Remove.
11352 (build_section_addr_info_from_section_table): Change return type.
11354 (build_section_addr_info_from_bfd)
11355 (build_section_addr_info_from_objfile): Likewise.
11356 (free_section_addr_info): Remove.
11357 (relative_addr_info_to_section_offsets): Change type of "addrs".
11358 (addrs_section_compar): Now a std::sort comparator.
11359 (addrs_section_sort): Change return type.
11360 (addr_info_make_relative): Change type of "addrs". Update.
11361 (default_symfile_offsets, syms_from_objfile_1)
11362 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11363 (symbol_file_add_separate): Update.
11364 (symbol_file_add): Change type of "addrs". Update.
11365 (add_symbol_file_command): Update. Remove cleanups.
11366 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11368 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11369 * solib.c (solib_read_symbols): Update.
11370 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11371 * machoread.c (macho_symfile_offsets): Update.
11372 * jit.c (jit_bfd_try_read_symtab): Update.
11374 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11376 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11377 unittests/utils-selftests.c.
11378 * unittests/utils-selftests.c: New file.
11380 2018-03-14 Tom Tromey <tom@tromey.com>
11383 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11386 2018-03-14 Tom Tromey <tom@tromey.com>
11389 * printcmd.c (printf_pointer): Allow "-" in format.
11391 2018-03-14 Tom Tromey <tom@tromey.com>
11393 * printcmd.c (_initialize_printcmd): Add usage to printf.
11395 2018-03-14 Yao Qi <qiyao@sourceware.org>
11397 * MAINTAINERS: Update my email address.
11399 2018-03-13 Tom Tromey <tom@tromey.com>
11401 * machoread.c (macho_check_dsym): Change filenamep to a
11403 (macho_symfile_read): Update.
11404 * symfile.c (load_command): Use std::string.
11406 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11408 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11409 to error message string.
11410 (riscv_register_name): Use xsnprintf instead of sprintf.
11411 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11413 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11415 (riscv_push_dummy_call): Likewise.
11417 2018-03-12 Tom Tromey <tom@tromey.com>
11419 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11420 Use gdb::byte_vector.
11421 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11423 2018-03-12 Yao Qi <yao.qi@linaro.org>
11425 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11426 parameter type to readable_regcache.
11427 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11430 2018-03-11 Tom Tromey <tom@tromey.com>
11432 * dwarf2read.c (struct nextfield): Add initializers.
11433 (struct nextfnfield): Remove.
11434 (struct fnfieldlist): Add initializers. Remove "length" and
11435 "head", use std::vector.
11436 (struct decl_field_list): Remove.
11437 (struct field_info): Add initializers.
11438 <fields, baseclasses>: Now std::vector.
11439 <nbaseclasses, nfnfields, typedef_field_list_count,
11440 nested_types_list_count>: Remove.
11441 (dwarf2_add_field, dwarf2_add_type_defn)
11442 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11443 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11444 (process_structure_scope): Update.
11446 2018-03-11 Tom Tromey <tom@tromey.com>
11448 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11449 for use by std::sort.
11450 (build_type_psymtabs_1): Use std::vector.
11452 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11454 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11455 and LIBMPFR in the printed configuration.
11457 2018-03-08 Tom Tromey <tom@tromey.com>
11459 * source.c (get_filename_and_charpos): Use scoped_fd.
11460 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11461 (procfs_pidlist): Likewise.
11462 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11463 (iterate_over_mappings): Likewise.
11465 2018-03-08 Tom Tromey <tom@tromey.com>
11467 * infcall.c (struct call_return_meta_info)
11468 <stack_temporaries_enabled>: Remove.
11469 (get_call_return_value, call_function_by_hand_dummy): Update.
11470 * thread.c (disable_thread_stack_temporaries): Remove.
11471 (enable_thread_stack_temporaries): Remove.
11472 (thread_stack_temporaries_enabled_p): Return bool.
11473 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11474 (get_last_thread_stack_temporary): Update.
11475 * eval.c (evaluate_subexp): Update.
11476 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11477 class, not a function.
11478 (value_ptr, value_vec): Remove typedefs.
11479 (class thread_info) <stack_temporaries_enabled>: Now bool.
11480 <stack_temporaries>: Now a std::vector.
11481 (thread_stack_temporaries_enabled_p)
11482 (value_in_thread_stack_temporaries): Return bool.
11484 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11486 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11487 (getpkt_or_notif_sane_1): Likewise.
11489 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11491 * build-id.c (build_id_to_debug_bfd): Use std::string.
11493 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11495 * build-id.c (find_separate_debug_file_by_buildid): Return
11497 * build-id.h (find_separate_debug_file_by_buildid): Return
11499 * coffread.c (coff_symfile_read): Adjust to std::string.
11500 * elfread.c (elf_symfile_read): Adjust to std::string.
11501 * symfile.c (separate_debug_file_exists): Change parameter to
11503 (find_separate_debug_file): Return std::string.
11504 (find_separate_debug_file_by_debuglink): Return std::string.
11505 * symfile.h (find_separate_debug_file_by_debuglink): Return
11508 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11510 * common/xml-utils.c (xml_escape_text): Move code to...
11511 (xml_escape_text_append): ... this new function.
11512 * common/xml-utils.h (xml_escape_text_append): New declaration.
11513 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
11515 (_initialize_xml_utils): register test_xml_escape_text_append as
11518 2018-03-07 Alan Hayward <alan.hayward@arm.com>
11520 * defs.h: Remove MAX_REGISTER_SIZE.
11521 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
11523 * python/py-unwind.c (pyuw_sniffer): Likewise.
11525 2018-03-07 Tom Tromey <tom@tromey.com>
11527 * linux-tdep.c (linux_info_proc): Update.
11528 * target.h (struct target_ops) <to_fileio_readlink>: Return
11530 (target_fileio_readlink): Return optional<string>.
11531 * remote.c (remote_hostio_readlink): Return optional<string>.
11532 * inf-child.c (inf_child_fileio_readlink): Return
11534 * target.c (target_fileio_readlink): Return optional<string>.
11536 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11538 * regcache.c (cooked_read_test): Add riscv to the list of
11539 architectures that have a save_reggroup.
11541 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
11543 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
11544 value is not a dynamic class object.
11546 2018-03-06 Tom Tromey <tom@tromey.com>
11548 * rust-exp.y: Formatting fixes.
11550 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11552 * riscv-tdep.c (riscv_register_name): Remove target description
11554 (riscv_gdbarch_init): Remove target description check.
11556 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11558 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
11560 * riscv-tdep.h: Likewise.
11562 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11564 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
11565 (riscv_pseudo_register_write): Delete.
11566 (riscv_gdbarch_init): Remove all use of pseudo registers.
11568 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11570 * record-btrace.c (btrace_print_lines): Replace cleanup
11571 parameter with RAII equivalents.
11572 (btrace_insn_history): Replace cleanup with RAII equivalents.
11573 * ui-out.h (make_cleanup_ui_out_list_begin_end,
11574 make_cleanup_ui_out_tuple_begin_end): Remove.
11575 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
11576 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
11577 make_cleanup_ui_out_list_begin_end): Remove.
11579 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11581 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
11582 parameter types to std::vector. Use bool.
11583 (record_btrace_wait): Replace VEC(tp_t) with
11584 std::vector<thread_info *>.
11585 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
11587 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11589 * record-btrace.c (record_btrace_disable_callback): Remove.
11590 (struct scoped_btrace_disable): New.
11591 (record_btrace_open): Use scoped_btrace_disable.
11593 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11595 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
11596 reading values from registers.
11598 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11600 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
11603 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11605 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
11606 change parameter type. Use GDB's print functions, and use
11607 core_addr_to_string where appropriate.
11608 (riscv_push_dummy_call): Use core_addr_to_string where
11609 appropriate, update call to riscv_print_arg_location, and reindent
11611 (riscv_return_value): Update call to riscv_print_arg_location.
11613 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11614 Tim Newsome <tim@sifive.com>
11615 Albert Ou <a0u@eecs.berkeley.edu>
11616 Darius Rad <darius@bluespec.com>
11618 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
11619 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
11620 (ALLDEPFILES): Add riscv-tdep.c
11621 * configure.tgt: Add riscv support.
11622 * riscv-tdep.c: New file.
11623 * riscv-tdep.h: New file.
11624 * NEWS: Mention new target.
11625 * MAINTAINERS: Add entry for riscv.
11627 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11629 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
11630 fields within aggregates.
11632 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
11634 * record-btrace.c (btrace_print_lines): Change type of flags to
11635 gdb_disassembly_flags.
11637 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11639 * fbsd-nat.c: Include "inf-ptrace.h".
11640 (USE_SIGTRAP_SIGINFO): Conditionally define.
11641 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
11642 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
11643 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
11645 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
11647 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
11649 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
11650 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
11651 "supports_stopped_by_hw_breakpoint" target methods.
11653 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11655 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
11656 * fbsd-nat.c (debug_fbsd_nat): New variable.
11657 (show_fbsd_nat_debug): New function.
11658 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
11659 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
11661 2018-03-04 John Baldwin <jhb@FreeBSD.org>
11663 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
11664 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
11666 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
11667 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
11670 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11672 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
11673 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
11675 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11677 * charset.c (struct charset_vector): New.
11678 (charsets): Change type to charset_vector.
11679 (find_charset_names): Adjust.
11681 (_initialize_charset): Adjust.
11683 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11685 * progspace.h (struct program_space) <deleted_solibs>: Change
11686 type to std::vector<std::string>.
11687 * progspace.c (clear_program_space_solib_cache): Adjust.
11688 * breakpoint.c (print_solib_event): Adjust.
11689 (check_status_catch_solib): Adjust.
11690 * solib.c (update_solib_list): Adjust.
11691 * ui-out.h (class ui_out) <field_string>: New overload.
11692 * ui-out.c (ui_out::field_string): New overload.
11694 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11696 * progspace.h (struct program_space): Add constructor and
11697 destructor, initialize fields.
11698 (add_program_space): Remove.
11699 * progspace.c (add_program_space): Rename to...
11700 (program_space::program_space): ... this.
11701 (release_program_space): Rename to...
11702 (program_space::~program_space): ... this.
11703 (delete_program_space): Use delete to delete program_space.
11704 (initialize_progspace): Use new to allocate program_space.
11705 * inferior.c (add_inferior_with_spaces): Likewise.
11706 (clone_inferior_command): Likewise.
11707 * infrun.c (follow_fork_inferior): Likewise.
11708 (handle_vfork_child_exec_or_exit): Likewise.
11710 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11712 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
11713 (delim_string_to_char_ptr_vec): Return std::vector of
11714 gdb::unique_xmalloc_ptr.
11715 (dirnames_to_char_ptr_vec_append): Take std::vector of
11716 gdb::unique_xmalloc_ptr.
11717 (dirnames_to_char_ptr_vec): Return std::vector of
11718 gdb::unique_xmalloc_ptr.
11719 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
11720 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
11721 (delim_string_to_char_ptr_vec): Return an std::vector of
11722 gdb::unique_xmalloc_ptr, adjust the code.
11723 (dirnames_to_char_ptr_vec_append): Take an std::vector of
11724 gdb::unique_xmalloc_ptr, adjust the code.
11725 (dirnames_to_char_ptr_vec): Return an std::vector of
11726 gdb::unique_xmalloc_ptr, adjust the code.
11727 * auto-load.c (auto_load_safe_path_vec): Change type to
11728 std::vector of gdb::unique_xmalloc_ptr.
11729 (auto_load_expand_dir_vars): Return an std::vector of
11730 gdb::unique_xmalloc_ptr, adjust the code.
11731 (auto_load_safe_path_vec_update): Adjust.
11732 (filename_is_in_auto_load_safe_path_vec): Adjust.
11733 (auto_load_objfile_script_1): Adjust.
11734 * build-id.c (build_id_to_debug_bfd): Adjust.
11735 * linux-thread-db.c (thread_db_load_search): Adjust.
11736 * source.c (add_path): Adjust.
11738 * symfile.c (find_separate_debug_file): Adjust.
11739 * utils.c (do_free_char_ptr_vec): Remove.
11740 (make_cleanup_free_char_ptr_vec): Remove.
11742 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
11745 * common/pathstuff.c: Conditionally include "<windows.h>".
11747 2018-03-01 Georg Sauthoff <mail@georg.so>
11750 * gcore.in: Quote variables and switch interpreter to bash.
11752 2018-03-01 Tom Tromey <tom@tromey.com>
11754 * dwarf2read.c (alloc_discriminant_info): Fix default_index
11755 assertion. Add assertion for discriminant_index.
11756 (quirk_rust_enum): Use correct base type name in univariant case.
11758 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
11760 * record.c (get_call_history_modifiers): Return a
11761 record_print_flags.
11762 (cmd_record_call_history): Adjust.
11763 * record-btrace.c (record_btrace_call_history): Adjust.
11764 (record_btrace_call_history_range): Adjust.
11765 (record_btrace_call_history_from): Adjust.
11766 * target-debug.h (target_debug_print_record_print_flags): New.
11767 * target-delegates.c: Re-generate.
11768 * target.c (target_call_history): Change flags type.
11769 (target_call_history_from): Likewise.
11770 (target_call_history_range): Likewise.
11771 * target.h (struct target_ops) <target_call_history>: Likewise.
11772 (target_call_history_from): Likewise.
11773 (target_call_history_range): Likewise.
11775 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11776 Simon Marchi <simon.marchi@polymtl.ca>
11778 * common/common-utils.c: Include "sys/stat.h".
11779 (is_regular_file): Move here from "source.c"; change return
11781 * common/common-utils.h (is_regular_file): New prototype.
11782 * common/pathstuff.c (contains_dir_separator): New function.
11783 * common/pathstuff.h (contains_dir_separator): New prototype.
11784 * source.c: Don't include "sys/stat.h".
11785 (is_regular_file): Move to "common/common-utils.c".
11787 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
11789 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
11790 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
11791 * auto-load.c: Include "common/pathstuff.h".
11792 * common/common-def.h (current_directory): Move here.
11793 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
11795 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
11797 * common/pathstuff.c: New file.
11798 * common/pathstuff.h: New file.
11799 * compile/compile.c: Include "common/pathstuff.h".
11800 * defs.h (current_directory): Move to "common/common-defs.h".
11801 * dwarf2read.c: Include "common/pathstuff.h".
11802 * exec.c: Likewise.
11803 * guile/scm-safe-call.c: Likewise.
11804 * linux-thread-db.c: Likewise.
11805 * main.c: Likewise.
11806 * nto-tdep.c: Likewise.
11807 * objfiles.c: Likewise.
11808 * source.c: Likewise.
11809 * symtab.c: Likewise.
11810 * utils.c: Include "common/pathstuff.h".
11811 (gdb_realpath): Move to "common/pathstuff.c".
11812 (gdb_realpath_keepfile): Likewise.
11813 (gdb_abspath): Likewise.
11814 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
11815 (gdb_realpath_keepfile): Likewise.
11816 (gdb_abspath): Likewise.
11818 2018-02-28 John Baldwin <jhb@FreeBSD.org>
11820 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
11821 wildcard process pid for super_resume for kernels with a
11824 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
11826 * compile/compile.c (get_args): Add additional comments
11827 explaining function.
11829 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
11830 Tom Tromey <tom@tromey.com>
11832 * target.h (memory_write_request_s): Remove typedef. Don't define
11834 (target_write_memory_blocks): Change argument to std::vector.
11835 (struct memory_write_request): Add constructor.
11836 * target-memory.c (compare_block_starting_address): Return bool.
11837 Change argument types.
11838 (claim_memory): Change arguments to use std::vector.
11839 (split_regular_and_flash_blocks, blocks_to_erase)
11840 (compute_garbled_blocks): Likewise.
11841 (cleanup_request_data, cleanup_write_requests_vector): Remove.
11842 (target_write_memory_blocks): Change argument to std::vector.
11843 * symfile.c (struct load_section_data): Add constructor and
11844 destructor. Use std::vector for "requests".
11845 (struct load_progress_data): Add initializers.
11846 (load_section_callback): Update. Use "new".
11847 (clear_memory_write_data): Remove.
11848 (generic_load): Update.
11850 2018-02-27 Alan Hayward <alan.hayward@arm.com>
11852 * arch/aarch64.h: Use common/tdesc.h.
11854 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11856 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
11857 architecture with a 64-bit ABI.
11859 2018-02-26 Maciej W. Rozycki <macro@mips.com>
11861 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
11862 ahead of target description loading.
11864 2018-02-26 Tom Tromey <tom@tromey.com>
11866 * stack.c (backtrace_command_1): Update.
11867 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
11869 * python/py-framefilter.c (py_print_frame)
11870 (gdbpy_apply_frame_filter): Change type of "flags".
11871 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
11873 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
11874 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
11875 * extension.h (enum frame_filter_flag): Rename from
11876 frame_filter_flags.
11877 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
11878 (apply_ext_lang_frame_filter): Change type of "flags".
11879 * extension.c (apply_ext_lang_frame_filter): Change type of
11881 * extension-priv.h (struct extension_language_ops)
11882 <apply_frame_filter>: Change type of "flags".
11884 2018-02-26 Tom Tromey <tom@tromey.com>
11887 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
11888 off-by-one in py_end computation.
11889 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
11891 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
11894 2018-02-26 Tom Tromey <tom@tromey.com>
11896 * dwarf2read.c (struct variant_field): New.
11897 (struct nextfield) <variant>: New field.
11898 (dwarf2_add_field): Handle DW_TAG_variant_part.
11899 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
11900 discriminated union.
11901 (read_structure_type): Handle DW_TAG_variant_part.
11902 (handle_struct_member_die): New function, extracted from
11903 process_structure_scope. Handle DW_TAG_variant.
11904 (process_structure_scope): Handle discriminated unions. Call
11905 handle_struct_member_die.
11907 2018-02-26 Tom Tromey <tom@tromey.com>
11909 * rust-lang.h (rust_last_path_segment): Declare.
11910 * rust-lang.c (rust_last_path_segment): Now public. Change
11912 (struct disr_info): Remove.
11913 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
11914 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
11915 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
11916 (rust_enum_p, rust_enum_variant): New function.
11917 (rust_underscore_fields): Remove "offset" parameter.
11918 (rust_print_enum): New function.
11919 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
11920 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
11921 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
11923 (rust_internal_print_type): New function, from rust_print_type.
11925 (rust_print_type): Call rust_internal_print_type.
11926 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
11927 Update enum handling.
11928 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
11929 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
11930 (rust_union_quirks): New functions.
11931 (process_full_comp_unit, process_full_type_unit): Call
11933 (process_structure_scope): Update rust_unions if necessary.
11935 2018-02-26 Tom Tromey <tom@tromey.com>
11937 * value.h (value_union_variant): Declare.
11938 * valops.c (value_union_variant): New function.
11939 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
11940 (struct discriminant_info): New.
11941 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
11943 (struct main_type) <flag_discriminated_union>: New field.
11945 2018-02-26 Tom Tromey <tom@tromey.com>
11947 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11948 unittests/unpack-selftests.c.
11949 * unittests/unpack-selftests.c: New file.
11950 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
11952 2018-02-26 Yao Qi <yao.qi@linaro.org>
11954 * dwarf2read.c (struct partial_die_info) <read>: New method.
11955 (read_partial_die): Remove the declaration.
11956 (load_partial_dies): Update.
11957 (partial_die_info::partial_die_info):
11958 (read_partial_die): Change it to partial_die_info::read.
11960 2018-02-26 Yao Qi <yao.qi@linaro.org>
11962 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
11963 (fixup_partial_die): Remove declaration.
11964 (scan_partial_symbols): Update.
11965 (partial_die_parent_scope): Likewise.
11966 (partial_die_full_name): Likewise.
11967 (fixup_partial_die): Change it to partial_die_info::fixup.
11969 2018-02-26 Yao Qi <yao.qi@linaro.org>
11971 * dwarf2read.c (read_partial_die): Update the declaration.
11972 (load_partial_dies): Caller update.
11973 (read_partial_die): Remove one argument abbrev_len.
11975 2018-02-26 Yao Qi <yao.qi@linaro.org>
11977 * dwarf2read.c (struct partial_die_info): Add ctor, delete
11978 assignment operator.
11979 (load_partial_dies): Use ctor and copy ctor.
11980 (read_partial_die): Update.
11981 (dwarf2_cu::find_partial_die): Use ctor.
11983 2018-02-26 Yao Qi <yao.qi@linaro.org>
11985 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
11986 (find_partial_die_in_comp_unit): Change it to
11987 dwarf2_cu::find_partial_die.
11988 (find_partial_die): Update.
11990 2018-02-26 Yao Qi <yao.qi@linaro.org>
11992 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
11995 2018-02-26 Yao Qi <yao.qi@linaro.org>
11997 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
11999 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12001 * arch/amd64.h: Use common/tdesc.h.
12002 * arch/i386.c: Likewise.
12003 * arch/i386.h: Likewise.
12004 * arch/tic6x.c: Likewise.
12005 * arch/tdesc.h: Move file from here...
12006 * common/tdesc.h: ...to here.
12007 * features/aarch64-core.c: Regenerate.
12008 * features/aarch64-fpu.c: Regenerate.
12009 * features/i386/32bit-avx.c: Regenerate.
12010 * features/i386/32bit-avx512.c: Regenerate.
12011 * features/i386/32bit-core.c: Regenerate.
12012 * features/i386/32bit-linux.c: Regenerate.
12013 * features/i386/32bit-mpx.c: Regenerate.
12014 * features/i386/32bit-pkeys.c: Regenerate.
12015 * features/i386/32bit-sse.c: Regenerate.
12016 * features/i386/64bit-avx.c: Regenerate.
12017 * features/i386/64bit-avx512.c: Regenerate.
12018 * features/i386/64bit-core.c: Regenerate.
12019 * features/i386/64bit-linux.c: Regenerate.
12020 * features/i386/64bit-mpx.c: Regenerate.
12021 * features/i386/64bit-pkeys.c: Regenerate.
12022 * features/i386/64bit-segments.c: Regenerate.
12023 * features/i386/64bit-sse.c: Regenerate.
12024 * features/i386/x32-core.c: Regenerate.
12025 * features/tic6x-c6xp.c: Regenerate.
12026 * features/tic6x-core.c: Regenerate.
12027 * features/tic6x-gp.c: Regenerate.
12028 * target-descriptions.c: Use common/tdesc.h.
12029 * target-descriptions.h: Likewise.
12031 2018-02-24 Tom Tromey <tom@tromey.com>
12033 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12034 (try_thread_db_load_from_dir, thread_db_load_search): Use
12036 (info_auto_load_libthread_db_compare): Return bool. Change
12038 (info_auto_load_libthread_db): Use std::vector, std::string.
12041 2018-02-24 Tom Tromey <tom@tromey.com>
12043 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12045 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12047 * gdbarch.c: Rebuild.
12048 * gdbarch.h: Rebuild.
12049 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12050 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12051 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12054 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12056 * gdbtypes.h (sect_offset): Change type to uint64_t.
12057 (sect_offset_str): New function.
12058 * dwarf2read.c (create_addrmap_from_aranges): Use
12060 (error_check_comp_unit_head): Likewise.
12061 (create_debug_type_hash_table): Likewise.
12062 (read_cutu_die_from_dwo): Likewise.
12063 (init_cutu_and_read_dies): Likewise.
12064 (init_cutu_and_read_dies_no_follow): Likewise.
12065 (process_psymtab_comp_unit_reader): Likewise.
12066 (partial_die_parent_scope): Likewise.
12067 (peek_die_abbrev): Likewise.
12068 (process_queue): Likewise.
12069 (dwarf2_physname): Likewise.
12070 (read_namespace_alias): Likewise.
12071 (read_import_statement): Likewise.
12072 (create_dwo_cu_reader): Likewise.
12073 (create_cus_hash_table): Likewise.
12074 (lookup_dwo_cutu): Likewise.
12075 (inherit_abstract_dies): Likewise.
12076 (read_func_scope): Likewise.
12077 (read_call_site_scope): Likewise.
12078 (dwarf2_add_member_fn): Likewise.
12079 (read_common_block): Likewise.
12080 (read_module_type): Likewise.
12081 (read_typedef): Likewise.
12082 (read_subrange_type): Likewise.
12083 (load_partial_dies): Likewise.
12084 (read_partial_die): Likewise.
12085 (find_partial_die): Likewise.
12086 (read_str_index): Likewise.
12087 (dwarf2_string_attr): Likewise.
12088 (build_error_marker_type): Likewise.
12089 (lookup_die_type): Likewise.
12090 (dump_die_shallow): Likewise.
12091 (follow_die_ref): Likewise.
12092 (dwarf2_fetch_die_loc_sect_off): Likewise.
12093 (dwarf2_fetch_constant_bytes): Likewise.
12094 (follow_die_sig): Likewise.
12095 (get_signatured_type): Likewise.
12096 (get_DW_AT_signature_type): Likewise.
12097 (dwarf2_find_containing_comp_unit): Likewise.
12098 (set_die_type): Likewise.
12100 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12102 * arch/aarch64.c: Include "common-defs.h".
12103 * arch/amd64.c: Likewise.
12104 * arch/i386.c: Likewise.
12106 2018-02-21 Tom Tromey <tom@tromey.com>
12108 * value.h: (extract_field_op): Update.
12109 * eval.c (extract_field_op): Return a const char *.
12110 * expression.h (parse_expression_for_completion): Update.
12111 * completer.c (complete_expression): Update.
12112 (add_struct_fields): Make fieldname const.
12113 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12114 (mark_completion_tag, parse_exp_in_context_1): Update.
12115 (parse_expression_for_completion): Change "name" to
12116 unique_xmalloc_ptr*.
12118 2018-02-21 Tom Tromey <tom@tromey.com>
12120 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12122 2018-02-21 Yao Qi <yao.qi@linaro.org>
12124 * avr-tdep.c (avr_read_pc): Change parameter type to
12126 * gdbarch.sh (read_pc): Likewise.
12127 * gdbarch.c: Re-generated.
12128 * gdbarch.h: Re-generated.
12129 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12131 * ia64-tdep.c (ia64_read_pc): Likewise.
12132 * mips-tdep.c (mips_read_pc): Likewise.
12133 * spu-tdep.c (spu_read_pc): Likewise.
12135 2018-02-21 Yao Qi <yao.qi@linaro.org>
12137 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12138 * regcache-dump.c: New file.
12139 * regcache.c: Move register_dump to regcache-dump.c.
12140 (maintenance_print_registers): Likewise.
12141 (maintenance_print_raw_registers): Likewise.
12142 (maintenance_print_cooked_registers): Likewise.
12143 (maintenance_print_register_groups): Likewise.
12144 (maintenance_print_remote_registers): Likewise.
12145 (_initialize_regcache): Likewise.
12146 * regcache.h (register_dump): Moved from regcache.c.
12148 2018-02-21 Yao Qi <yao.qi@linaro.org>
12150 * regcache.c (regcache::regcache): Update.
12151 (regcache::invalidate): Move it to detached_regcache::invalidate.
12152 (get_thread_arch_aspace_regcache): Update.
12153 (regcache::raw_update): Update.
12154 (regcache::cooked_read): Remove some code.
12155 (regcache::cooked_read_value): Likewise.
12156 (regcache::raw_write): Remove assert on m_readonly_p.
12157 (regcache::raw_supply_integer): Move it to
12158 detached_regcache::raw_supply_integer.
12159 (regcache::raw_supply_zeroed): Likewise.
12160 * regcache.h (detached_regcache) <raw_supply_integer>: New
12162 <raw_supply_zeroed, invalidate>: Likewise.
12163 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12164 <invalidate>: Likewise.
12165 <m_readonly_p>: Removed.
12167 2018-02-21 Yao Qi <yao.qi@linaro.org>
12169 * infcmd.c (get_return_value): Let stop_regs point to
12170 get_current_regcache.
12171 * regcache.c (regcache::regcache): Remove.
12172 (register_dump_reg_buffer): New class.
12173 (regcache_print): Adjust.
12174 * regcache.h (regcache): Remove constructors.
12176 2018-02-21 Yao Qi <yao.qi@linaro.org>
12178 * regcache.c (class register_dump): New class.
12179 (register_dump_regcache, register_dump_none): New class.
12180 (register_dump_remote, register_dump_groups): New class.
12181 (regcache_print): Update.
12182 * regcache.h (regcache_dump_what): Move it to regcache.c.
12183 (regcache) <dump>: Remove.
12185 2018-02-21 Yao Qi <yao.qi@linaro.org>
12187 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12189 (jit_unwind_reg_set_impl): Call raw_supply.
12190 (jit_frame_sniffer): Use reg_buffer_rw.
12191 * record-full.c (record_full_core_regbuf): Change its type.
12192 (record_full_core_open_1): Use reg_buffer_rw.
12193 (record_full_close): Likewise.
12194 (record_full_core_fetch_registers): Use regcache->raw_supply.
12195 (record_full_core_store_registers): Likewise.
12196 * regcache.c (regcache::get_register_status): Move it to
12198 (regcache_raw_set_cached_value): Remove.
12199 (regcache::raw_set_cached_value): Remove.
12200 (regcache::raw_write): Call raw_supply.
12201 (regcache::raw_supply): Move it to reg_buffer_rw.
12202 * regcache.h (regcache_raw_set_cached_value): Remove.
12203 (reg_buffer_rw): New class.
12205 2018-02-21 Yao Qi <yao.qi@linaro.org>
12207 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12208 readonly_detached_regcache.
12209 (dummy_frame_prev_register): Use regcache->cooked_read.
12210 * frame.c (frame_save_as_regcache): Change return type.
12211 (frame_pop): Update.
12212 * frame.h (frame_save_as_regcache): Update declaration.
12213 * inferior.h (get_infcall_suspend_state_regcache): Update
12215 * infrun.c (infcall_suspend_state) <registers>: use
12216 readonly_detached_regcache.
12217 (save_infcall_suspend_state): Don't use regcache_dup.
12218 (get_infcall_suspend_state_regcache): Change return type.
12219 * linux-fork.c (struct fork_info) <savedregs>: Change to
12220 readonly_detached_regcache.
12222 (fork_save_infrun_state): Don't use regcache_dup.
12223 (info_checkpoints_command): Adjust.
12224 * mi/mi-main.c (register_changed_p): Update declaration.
12225 (mi_cmd_data_list_changed_registers): Use
12226 readonly_detached_regcache.
12227 (register_changed_p): Change parameter type to
12228 readonly_detached_regcache.
12229 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12230 readonly_detached_regcache.
12231 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12232 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12234 (regcache::save): Move it to reg_buffer.
12235 (regcache::restore): Change parameter type.
12236 (regcache_dup): Remove.
12237 * regcache.h (reg_buffer) <save>: New method.
12238 (readonly_detached_regcache): New class.
12239 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12240 readonly_detached_regcache.
12241 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12243 2018-02-21 Yao Qi <yao.qi@linaro.org>
12245 * frame.c (frame_save_as_regcache): Use regcache method save.
12246 (frame_pop): Use regcache method restore.
12247 * infrun.c (restore_infcall_suspend_state): Likewise.
12248 * linux-fork.c (fork_load_infrun_state): Likewise.
12249 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12251 * regcache.c (regcache_save): Remove.
12252 (regcache::restore): More asserts.
12253 (regcache_cpy): Remove.
12254 * regcache.h (regcache_save): Remove the declaration.
12255 (regcache::restore): Move from private to public.
12256 Remove the friend declaration of regcache_cpy.
12257 (regcache_cpy): Remove declaration.
12259 2018-02-21 Yao Qi <yao.qi@linaro.org>
12261 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12262 parameter type to 'readable_regcache *'.
12263 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12264 * arm-tdep.c (arm_neon_quad_read): Likewise.
12265 (arm_pseudo_read): Likewise.
12266 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12267 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12268 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12269 * gdbarch.c: Re-generated.
12270 * gdbarch.h: Re-generated.
12271 * gdbarch.sh (pseudo_register_read): Change parameter type to
12272 'readable_regcache *'.
12273 (pseudo_register_read_value): Likewise.
12274 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12275 (h8300_pseudo_register_read): Likewise.
12276 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12277 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12278 (i386_pseudo_register_read_into_value): Likewise.
12279 (i386_pseudo_register_read_value): Likewise.
12280 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12282 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12283 * m32c-tdep.c (m32c_raw_read): Likewise.
12284 (m32c_read_flg): Likewise.
12285 (m32c_banked_register): Likewise.
12286 (m32c_banked_read): Likewise.
12287 (m32c_sb_read): Likewise.
12288 (m32c_part_read): Likewise.
12289 (m32c_cat_read): Likewise.
12290 (m32c_r3r2r1r0_read): Likewise.
12291 (m32c_pseudo_register_read): Likewise.
12292 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12293 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12294 (mep_pseudo_cr64_read): Likewise.
12295 (mep_pseudo_register_read): Likewise.
12296 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12297 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12298 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12299 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12300 (regcache::cooked_read): Likewise.
12301 (regcache::cooked_read_value): Likewise.
12302 (regcache_cooked_read_signed):
12303 (regcache::cooked_read): Likewise.
12304 * regcache.h (readable_regcache): New class.
12305 (regcache): Inherit readable_regcache. Move some methods to
12307 * rl78-tdep.c (rl78_pseudo_register_read): Change
12308 parameter type to 'readable_regcache *'.
12309 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12310 (e500_pseudo_register_read): Change parameter type to
12311 'readable_regcache *'.
12312 (dfp_pseudo_register_read): Likewise.
12313 (vsx_pseudo_register_read): Likewise.
12314 (efpr_pseudo_register_read): Likewise.
12315 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12316 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12317 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12318 (sh64_pseudo_register_read): Likewise.
12319 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12320 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12321 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12322 (spu_pseudo_register_read): Likewise.
12323 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12324 (xtensa_pseudo_register_read): Likewise.
12326 2018-02-21 Yao Qi <yao.qi@linaro.org>
12328 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12329 (regcache::arch): Move it to reg_buffer::arch.
12330 (regcache::register_buffer): Likewise.
12331 (regcache::assert_regnum): Likewise.
12332 (regcache::num_raw_registers): Likewise.
12333 * regcache.h (reg_buffer): New class.
12334 (regcache): Inherit reg_buffer.
12336 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12338 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12339 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12341 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12343 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12345 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12347 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12348 (SFILES): Remove common/*.c files.
12349 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12350 * common/common.host: Add common reference.
12351 * configure.ac: Likewise.
12352 * configure: Regenerate.
12354 2018-02-16 Yao Qi <yao.qi@linaro.org>
12356 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12357 (block_initialize_namespace): Use new.
12358 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12359 (dwarf2_free_objfile): Use delete.
12360 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12361 (copy_type_recursive): Use new.
12362 * gdb_obstack.h (allocate_on_obstack): New.
12364 2018-02-15 Yao Qi <yao.qi@linaro.org>
12367 * inferior.c (exit_inferior_1): Reset inf->control.
12369 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12371 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12374 2018-02-14 Pedro Alves <palves@redhat.com>
12376 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12377 frame_cleanup_after_sniffer on exception.
12379 2018-02-14 Tom Tromey <tom@tromey.com>
12381 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12383 (solib_bfd_open): Make pathname const.
12384 * solib.c (solib_bfd_open): Make pathname const.
12385 * solib-spu.c (spu_bfd_fopen): Make name const.
12386 (spu_bfd_open): Make pathname const.
12387 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12388 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12390 2018-02-14 Tom Tromey <tom@tromey.com>
12392 * symfile.c (symfile_bfd_open): Update.
12393 * source.h (openp, source_full_path_of, find_and_open_source):
12394 Change argument type to unique_xmalloc_ptr.
12395 * source.c (openp): Take a unique_xmalloc_ptr.
12396 (source_full_path_of, find_and_open_source): Likewise.
12397 (open_source_file, symtab_to_fullname): Update.
12398 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12399 unique_xmalloc_ptr.
12400 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12401 (exec_file_find): Update.
12402 * psymtab.c (psymtab_to_fullname): Update.
12403 * nto-tdep.h (nto_find_and_open_solib): Update.
12404 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12405 unique_xmalloc_ptr.
12406 * exec.c (exec_file_attach): Update.
12407 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12408 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12410 2018-02-14 Tom Tromey <tom@tromey.com>
12412 * solib.c: Include source.h.
12413 * nto-tdep.c: Include source.h.
12414 * mi/mi-cmd-env.c: Include source.h.
12415 * infcmd.c: Include source.h.
12416 * exec.c: Include source.h.
12417 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12418 (add_path, directory_switch, source_path, init_source_path): Move
12420 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12421 (add_path, directory_switch, source_path, init_source_path):
12424 2018-02-14 Tom Tromey <tom@tromey.com>
12426 * solist.h (exec_file_find, solib_find): Return
12427 unique_xmalloc_ptr.
12428 (solib_bfd_fopen): Take a const char *.
12429 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12430 (exec_file_find, solib_find): Likewise.
12431 (solib_bfd_fopen): Do not take ownership of "pathname".
12432 (solib_bfd_open): Use unique_xmalloc_ptr.
12433 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12434 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12435 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12436 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12438 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12440 * ada-lang.c (name_match_type_from_name): Remove reference to
12441 ada_name_for_lookup in function's documentation.
12442 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12444 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12446 * defs.h (enum openp_flags): New enum.
12447 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12448 Move to enum openp_flags.
12449 (openp_flags): New enum flags.
12450 (openp): Change parameter type to openp_flags.
12451 * source.c (openp): Change parameter type to openp_flags.
12452 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12453 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12455 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12457 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12460 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12462 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12464 (class dwarf2_queue_guard): ...the destructor of this new class.
12465 (dw2_do_instantiate_symtab): Create instance of the new class
12466 dwarf2_queue_guard, remove cleanup.
12468 2018-02-09 Tom Tromey <tom@tromey.com>
12470 * source.c (find_source_lines): Don't reference past the end of
12473 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12475 * remote.c (remote_btrace_maybe_reopen): Change error message.
12476 * btrace.c (btrace_enable): Likewise.
12477 (parse_xml_btrace): Likewise.
12478 (parse_xml_btrace_conf): Likewise.
12480 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12482 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12483 (linux_enable_pt, linux_enable_bts): Call
12484 diagnose_perf_event_open_fail.
12486 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12488 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12489 Remove parameter and change return type. Update callers. Move it.
12490 (linux_enable_bts, linux_enable_pt): Improve error message.
12491 (linux_enable_pt): Remove zero buffer size check.
12492 (linux_enable_btrace): Improve error messages. Remove NULL return
12495 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12497 * btrace.c (btrace_enable): Remove target_supports_btrace call.
12498 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
12499 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
12500 (linux_supports_pt, linux_supports_btrace): Remove.
12501 (linux_enable_bts): Call cpu_supports_bts.
12502 * nat/linux-btrace.h (linux_supports_btrace): Remove.
12503 * remote.c (remote_supports_btrace): Remove.
12504 (init_remote_ops): Remove remote_supports_btrace.
12505 * target-delegates.c: Regenerated.
12506 * target.c (target_supports_btrace): Remove.
12507 * target.h (target_ops) <to_supports_btrace>: Remove
12508 (target_supports_btrace): Remove.
12509 * x86-linux-nat.c (x86_linux_create_target): Remove
12510 linux_supports_btrace.
12512 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12514 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
12516 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
12517 exception and use message in own exception.
12519 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12521 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
12522 (perf_event_pt_event_type): Use gdb_file_up.
12523 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
12524 scoped_fd, and scoped_mmap.
12526 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12528 * common/scoped_mmap.h: New.
12529 * unittests/scoped_mmap-selftest.c: New.
12530 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12531 unittests/scoped_mmap-selftest.c.
12533 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12535 * common/scoped_fd.h: New.
12536 * unittests/scoped_fd-selftest.c: New.
12537 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12538 unittests/scoped_fd-selftest.c.
12540 2018-02-09 Tom Tromey <tom@tromey.com>
12542 * auto-load.c (auto_load_section_scripts): Use
12543 gdb::unique_xmalloc_ptr.
12545 2018-02-09 Tom Tromey <tom@tromey.com>
12547 * auto-load.c (execute_script_contents): Use std::string.
12549 2018-02-09 Joel Brobecker <brobecker@adacore.com>
12551 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
12552 Python function, rather than a new command.
12554 2018-02-08 Tom Tromey <tom@tromey.com>
12556 * solib.c (solib_find_1): Use std::string.
12557 (solib_bfd_fopen): Use unique_xmalloc_ptr.
12559 2018-02-08 Tom Tromey <tom@tromey.com>
12561 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
12563 2018-02-08 Tom Tromey <tom@tromey.com>
12565 * source.c (find_source_lines): Use gdb::def_vector.
12567 2018-02-08 Tom Tromey <tom@tromey.com>
12569 * macrocmd.c (struct temporary_macro_definition): New.
12570 (macro_define_command): Use temporary_macro_definition. Remove
12572 (free_macro_definition_ptr): Remove.
12574 2018-02-08 Tom Tromey <tom@tromey.com>
12576 * macroexp.c (maybe_expand): Use std::string.
12578 2018-02-08 Tom Tromey <tom@tromey.com>
12580 * macroexp.c (struct macro_buffer): Add initializers for some
12582 (init_buffer, init_shared_buffer, free_buffer)
12583 (free_buffer_return_text): Remove.
12584 (macro_buffer): New constructors.
12585 (~macro_buffer): New destructor.
12586 (macro_buffer::set_shared): New method.
12587 (macro_buffer::resize_buffer, macro_buffer::appendc)
12588 (macro_buffer::appendmem): Now methods, not free functions.
12589 (set_token, append_tokens_without_splicing, stringify)
12590 (macro_stringify): Update.
12591 (gather_arguments): Change return type. Remove argc_p argument,
12592 add args_ptr argument. Use std::vector.
12593 (substitute_args): Remove argc argument. Accept std::vector.
12594 (expand): Update. Use std::vector.
12595 (scan, macro_expand, macro_expand_next): Update.
12597 2018-02-08 Tom Tromey <tom@tromey.com>
12599 * symtab.c (default_collect_symbol_completion_matches_break_on):
12600 Use unique_xmalloc_ptr.
12601 * macroscope.h: (sal_macro_scope, user_macro_scope)
12602 (default_macro_scope): Return unique_xmalloc_ptr.
12603 * macroscope.c (sal_macro_scope, user_macro_scope)
12604 (default_macro_scope): Return unique_xmalloc_ptr.
12605 * macroexp.h (macro_expand, macro_expand_once): Return
12606 unique_xmalloc_ptr.
12607 * macroexp.c (macro_expand, macro_expand_once): Return
12608 unique_xmalloc_ptr.
12609 * macrocmd.c (macro_expand_command, macro_expand_once_command)
12610 (info_macro_command, info_macros_command): Use
12611 unique_xmalloc_ptr.
12612 * compile/compile-c-support.c (write_macro_definitions): Use
12613 unique_xmalloc_ptr.
12614 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
12616 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
12618 * value.c (value_static_field): Assign field type instead of
12619 containing type when returning an optimized out value.
12621 2018-02-06 Yao Qi <yao.qi@linaro.org>
12623 * ft32-tdep.c (ft32_read_pc): Remove.
12624 (ft32_write_pc): Remove.
12625 (ft32_gdbarch_init): Update.
12626 * m32r-tdep.c (m32r_read_pc): Remove.
12627 (m32r_gdbarch_init): Update.
12628 * mep-tdep.c (mep_read_pc): Remove.
12629 (mep_gdbarch_init): Update.
12630 * microblaze-tdep.c (microblaze_write_pc): Remove.
12631 (microblaze_gdbarch_init): Update.
12632 * mn10300-tdep.c (mn10300_read_pc): Remove.
12633 (mn10300_write_pc): Remove.
12634 (mn10300_gdbarch_init): Update.
12635 * moxie-tdep.c (moxie_read_pc): Remove.
12636 (moxie_write_pc): Remove.
12637 (moxie_gdbarch_init): Update.
12639 2018-02-06 Yao Qi <yao.qi@linaro.org>
12641 * expprint.c (print_subexp_standard): Handle
12642 OP_F77_UNDETERMINED_ARGLIST.
12643 (dump_subexp_body_standard): Likewise.
12645 2018-02-05 Alan Hayward <alan.hayward@arm.com>
12647 * target-descriptions.c (tdesc_element_visitor) Add empty
12649 (tdesc_type): Move make_gdb_type from here.
12650 (tdesc_type_builtin): Likewise.
12651 (tdesc_type_vector): Likewise.
12652 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
12653 (make_gdb_type_struct): Move from tdesc_type_with_fields.
12654 (make_gdb_type_union): Likewise.
12655 (make_gdb_type_flags): Likewise.
12656 (make_gdb_type_enum): Likewise.
12657 (make_gdb_type): New function.
12658 (tdesc_register_type): Use static make_gdb_type.
12660 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
12662 * infcmd.c (default_print_one_register_info): Align natural-format
12663 column values consistently one under another.
12664 (pad_to_column): New function.
12666 2018-02-05 Joel Brobecker <brobecker@adacore.com>
12668 * dwarf2read.c (dwarf2_physname): Move commment.
12670 2018-02-01 Leszek Swirski <leszeks@google.com>
12672 * varobj.c (varobj_formatted_print_options): Allow recursive
12673 pretty printing if pretty printing is enabled.
12675 2018-02-01 Leszek Swirski <leszeks@google.com>
12677 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
12678 names after a structop as a filename.
12680 2018-02-01 Yao Qi <yao.qi@linaro.org>
12682 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
12683 (arm_record_coproc_data_proc): Likewise.
12685 2018-02-01 Yao Qi <yao.qi@linaro.org>
12687 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
12689 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
12691 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
12692 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
12694 2018-01-31 Pedro Alves <palves@redhat.com>
12696 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
12697 * inflow.c (child_terminal_save_inferior): Wrap reference to
12698 tcgetpgrp in HAVE_TERMIOS_H.
12699 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
12701 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
12702 always iterate over all inferiors.
12703 (gdbsim_cntrl_c): Adjust.
12704 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
12706 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12708 * gdbtypes.c (lookup_array_range_type): Make sure the array's
12709 index type is objfile-owned if the element type is as well.
12711 2018-01-31 Joel Brobecker <brobecker@adacore.com>
12715 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
12717 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
12718 "features/s390x-linux64.c".
12719 (_initialize_s390_linux_tdep): Remove initialization of tdescs
12720 s390_linux32 and s390x_linux64.
12721 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
12723 * s390-tdep.c: Include "features/s390-linux32.c" and
12724 "features/s390x-linux64.c".
12725 (s390_tdesc_valid): Add check for tdesc_has_registers.
12726 (s390_gdbarch_init): Make sure there is always a valid tdesc.
12727 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
12728 tdesc_s390x_linux64.
12729 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
12730 tdesc_s390x_linux64 to...
12731 * s390-tdep.h: ...here.
12733 2018-01-30 Pedro Alves <palves@redhat.com>
12736 * config.in, configure: Regenerate.
12737 * configure.ac: Check for getpgid.
12738 * go32-nat.c (go32_pass_ctrlc): New.
12739 (go32_target): Install it.
12740 * inf-child.c (inf_child_target): Install
12741 child_terminal_save_inferior, child_pass_ctrlc and
12743 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
12744 (inf_ptrace_target): No longer install it.
12745 * infcmd.c (interrupt_target_1): Adjust.
12746 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
12747 (child_interrupt): Declare.
12748 (inferior::terminal_state): New.
12749 * inflow.c (struct terminal_info): Update comments.
12750 (inferior_process_group): Delete.
12751 (terminal_is_ours): Delete.
12752 (gdb_tty_state): New.
12753 (child_terminal_init): Adjust.
12754 (is_gdb_terminal, sharing_input_terminal_1)
12755 (sharing_input_terminal): New functions.
12756 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
12757 Set the process's actual process group in the foreground if
12758 possible. Handle is_ours_for_output/is_ours distinction. Don't
12759 mark terminal as the inferior's if not sharing GDB's terminal.
12760 Don't check attach_flag.
12761 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
12762 pass down a target_terminal_state.
12763 (child_terminal_save_inferior): New, factored out from ...
12764 (child_terminal_ours_1): ... this. Handle
12765 target_terminal_state::is_ours_for_output.
12766 (child_interrupt, child_pass_ctrlc): New.
12767 (inflow_inferior_exit): Clear the inferior's terminal_state.
12768 (copy_terminal_info): Copy the inferior's terminal state.
12769 (_initialize_inflow): Remove reference to terminal_is_ours.
12770 * inflow.h (inferior_process_group): Delete.
12771 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
12772 * procfs.c (procfs_target): Don't install procfs_interrupt.
12773 (procfs_interrupt): Delete.
12774 * remote.c (remote_serial_quit_handler): Adjust.
12775 (remote_interrupt): Remove ptid parameter. Adjust.
12776 * target-delegates.c: Regenerate.
12777 * target.c: Include "terminal.h".
12778 (target_terminal::terminal_state): Rename to ...
12779 (target_terminal::m_terminal_state): ... this.
12780 (target_terminal::init): Adjust.
12781 (target_terminal::inferior): Adjust to per-inferior
12783 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
12784 (target_terminal::ours, target_terminal::ours_for_output): Use
12785 target_terminal_is_ours_kind.
12786 (target_interrupt): Remove ptid parameter. Adjust.
12787 (default_target_pass_ctrlc): Adjust.
12788 * target.h (target_ops::to_terminal_save_inferior): New field.
12789 (target_ops::to_interrupt): Remove ptid_t parameter.
12790 (target_interrupt): Remove ptid_t parameter. Update comment.
12791 (target_pass_ctrlc): Update comment.
12792 * target/target.h (target_terminal_state): New scoped enum,
12793 factored out of ...
12794 (target_terminal::terminal_state): ... here.
12795 (target_terminal::inferior): Update comments.
12796 (target_terminal::restore_inferior): New.
12797 (target_terminal::is_inferior, target_terminal::is_ours)
12798 (target_terminal::is_ours_for_output): Adjust.
12799 (target_terminal::scoped_restore_terminal_state): Adjust to
12800 rename, and call restore_inferior() instead of inferior().
12801 (target_terminal::scoped_restore_terminal_state::m_state): Change
12803 (target_terminal::terminal_state): Rename to ...
12804 (target_terminal::m_terminal_state): ... this and change type.
12806 2018-01-30 Pedro Alves <palves@redhat.com>
12808 * linux-nat.c (wait_for_signal): New function.
12809 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
12811 (async_terminal_is_ours)
12812 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
12813 (linux_nat_add_target): Don't override
12814 to_terminal_inferior/to_terminal_ours.
12816 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
12818 * remote.c (remote_follow_fork): Don't call "detach_inferior".
12820 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
12822 * dwarf2read.c (free_dwo_files): Add forward-declaration.
12823 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
12824 dwarf2_per_objfile_free here.
12825 (dwarf2_per_objfile_free): Remove.
12826 (_initialize_dwarf2_read): Don't register
12827 dwarf2_per_objfile_free as a registry cleanup.
12829 2018-01-27 Eli Zaretskii <eliz@gnu.org>
12831 Avoid compilation errors in MinGW native builds
12833 The error is triggered by including python-internal.h, and the
12836 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
12837 from build-gnulib/import/math.h:27,
12838 from d:/usr/Python26/include/pyport.h:235,
12839 from d:/usr/Python26/include/Python.h:58,
12840 from python/python-internal.h:94,
12841 from python/py-arch.c:24:
12842 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
12846 This happens because Python headers define 'hypot' to expand t
12847 '_hypot' in the Windows builds.
12848 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
12849 'hypoth'. This avoids a compilation error.
12851 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12853 * MAINTAINERS (Write After Approval): Fix ordering.
12855 2018-01-26 Alan Hayward <alan.hayward@arm.com>
12857 * MAINTAINERS (Write After Approval): Add Alan Hayward.
12859 2018-01-26 Alan Modra <amodra@gmail.com>
12861 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
12862 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
12863 Remove nop. Make const. Comment.
12864 (powerpc32_plt_stub_so_2): New.
12865 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
12866 Correct count. Update uses.
12867 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
12868 Move common code reading PLT entry word. Correct
12869 powerpc32_plt_stub PLT address calculation.
12870 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
12871 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
12872 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
12873 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
12874 (ppc64_standard_linkage8): Likewise.
12875 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
12876 Correct insns description.
12877 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
12879 2018-01-24 Pedro Alves <palves@redhat.com>
12881 GCC PR libstdc++/83906
12882 * gdbtypes.c (operator==(const dynamic_prop &,
12883 const dynamic_prop &)): New.
12884 (operator==(const range_bounds &, const range_bounds &)): New.
12885 (check_types_equal): Use them instead of memcmp.
12886 * gdbtypes.h (operator==(const dynamic_prop &,
12887 const dynamic_prop &)): Declare.
12888 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
12889 (operator==(const range_bounds &, const range_bounds &)): Declare.
12890 (operator!=(const range_bounds &, const range_bounds &)): Declare.
12892 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12894 * s390-linux-tdep.c (s390_record_address_mask)
12895 (s390_record_calc_disp_common, s390_record_calc_disp)
12896 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12897 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12898 (s390_process_record): Move to s390-tdep.c.
12899 (s390_linux_init_abi_any): Adjust.
12900 * s390-tdep.c (s390_record_address_mask)
12901 (s390_record_calc_disp_common, s390_record_calc_disp)
12902 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
12903 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
12904 (s390_process_record): Moved from s390-linux-tdep.c
12905 (s390_gdbarch_init): Adjust.
12907 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12909 * s390-linux-nat.c (s390-tdep.h): New include.
12910 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
12911 (HFILES_NO_SRCDIR): Add s390-tdep.h.
12912 (ALLDEPFILES): Add s390-tdep.c.
12913 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
12914 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
12915 * s390-tdep.h: ...this. New file.
12916 * s390-linux-tdep.c (s390-tdep.h): New include.
12917 (_initialize_s390_tdep): Rename to...
12918 (_initialize_s390_linux_tdep): ...this and adjust.
12919 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
12920 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
12922 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
12923 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
12924 (s390_is_partial_instruction, s390_software_single_step)
12925 (is_non_branch_ril, s390_displaced_step_copy_insn)
12926 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
12927 (s390_prologue_data, s390_addr, s390_store, s390_load)
12928 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
12929 (s390_register_call_saved, s390_guess_tracepoint_registers)
12930 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
12931 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
12932 (s390_pseudo_register_name, s390_pseudo_register_type)
12933 (s390_pseudo_register_read, s390_pseudo_register_write)
12934 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
12935 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
12936 (s390_addr_bits_remove, s390_address_class_type_flags)
12937 (s390_address_class_type_flags_to_name)
12938 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
12939 (s390_function_arg_float, s390_function_arg_vector)
12940 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
12941 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
12942 (s390_frame_align, s390_register_return_value, s390_return_value)
12943 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
12944 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
12945 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
12946 (s390_trad_frame_prev_register, s390_unwind_cache)
12947 (s390_prologue_frame_unwind_cache)
12948 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
12949 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
12950 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
12951 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
12952 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
12953 (s390_frame_base_address, s390_local_base_address)
12954 (s390_frame_base, s390_gcc_target_options)
12955 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
12956 (s390_validate_reg_range, s390_tdesc_valid)
12957 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
12958 * s390-tdep.c: ...this. New file.
12960 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12962 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
12963 (s390_process_record, s390_gdbarch_tdep_alloc)
12964 (s390_linux_init_abi_any): Use/set new hook.
12966 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12968 * s390-linux-tdep.c (osabi.h): New include.
12969 (s390_linux_init_abi_31, s390_linux_init_abi_64)
12970 (s390_linux_init_abi_any): New functions.
12971 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
12973 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12975 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
12976 tdesc_has_registers check
12978 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12980 * s390-linux-tdep.c (s390_tdesc_valid): New function.
12981 (s390_validate_reg_range): New macro.
12982 (s390_gdbarch_init): Adjust.
12984 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12986 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
12987 (s390_gdbarch_tdep_alloc): Adjust.
12988 (s390_gdbarch_init): Adjust.
12990 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12992 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
12993 <have_tdb>: Change type to bool.
12994 (s390_gdbarch_tdep_alloc): Adjust.
12995 (s390_gdbarch_init): Adjust.
12997 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
12999 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13000 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13001 (s390_gdbarch_tdep_alloc): New function.
13002 (s390_gdbarch_init): Allocate tdep at start and use its fields
13003 instead of separate variables.
13005 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13007 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13008 when looking for cached gdbarch and add comment for remaining.
13010 2018-01-22 Pedro Alves <palves@redhat.com>
13011 Sergio Durigan Junior <sergiodj@redhat.com>
13013 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13016 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13018 * MAINTAINERS: Update my company e-mail address.
13020 2018-01-22 Yao Qi <yao.qi@linaro.org>
13022 * regcache.c (cooked_write_test): New function.
13023 (_initialize_regcache): Register the test.
13025 2018-01-22 Yao Qi <yao.qi@linaro.org>
13027 * ia64-tdep.c (ia64_pseudo_register_read): Call
13028 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13029 * m32c-tdep.c (m32c_cat_read): Likewise.
13030 (m32c_r3r2r1r0_read): Likewise.
13031 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13032 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13034 2018-01-22 Yao Qi <yao.qi@linaro.org>
13036 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13037 method raw_read instead of regcache_raw_read.
13038 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13039 * arm-tdep.c (arm_neon_quad_read): Likewise.
13040 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13041 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13042 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13043 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13044 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13045 (i386_pseudo_register_read_into_value): Likewise.
13046 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13047 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13048 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13049 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13050 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13051 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13052 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13053 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13054 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13056 2018-01-22 Yao Qi <yao.qi@linaro.org>
13058 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13059 * configure.tgt: Remove target mt.
13060 * mt-tdep.c: Remove.
13061 * regcache.c (cooked_read_test): Remove the check for mt.
13063 2018-01-22 Yao Qi <yao.qi@linaro.org>
13065 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13066 instead of gdbarch_pseudo_register_read_value.
13068 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13070 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13073 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13075 * linespec.c (create_sals_line_offset): Remove code that preserved
13076 the symtab_and_line's line number.
13078 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13080 * varobj.c (varobj_create): Don't set valid_block when creating a
13083 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13085 * varobj.c (varobj_create): Remove out of date comment.
13087 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13090 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13091 updating innermost block.
13092 * parse.c (innermost_block_tracker::update): Take extra type
13093 parameter, and check types match before updating innermost block.
13094 (write_dollar_variable): Update innermost block for registers.
13095 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13096 (innermost_block_tracker::innermost_block_tracker): Initialise
13098 (innermost_block_tracker::reset): Take type parameter.
13099 (innermost_block_tracker::update): Take type parameter, and pass
13100 type through as needed.
13101 (innermost_block_tracker::m_types): New member.
13102 * varobj.c (varobj_create): Pass type when reseting innermost
13105 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13107 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13108 * ada-lang.c (resolve_subexp): Likewise.
13109 * breakpoint.c (set_breakpoint_condition) Likewise.
13110 (watch_command_1) Likewise.
13111 * c-exp.y (variable): Likewise.
13112 * d-exp.y (PrimaryExpression): Likewise.
13113 * f-exp.y (variable): Likewise.
13114 * go-exp.y (variable): Likewise.
13115 * m2-exp.y (variable): Likewise.
13116 * objfiles.c (objfile::~objfile): Likewise.
13117 * p-exp.y (variable): Likewise.
13118 * parse.c (innermost_block): Change type.
13119 * parser-defs.h (class innermost_block_tracker): New.
13120 (innermost_block): Change to innermost_block_tracker.
13121 * printcmd.c (display_command): Switch to innermost_block API.
13122 (do_one_display): Likewise.
13123 * rust-exp.y (do_one_display): Likewise.
13124 * symfile.c (clear_symtab_users): Likewise.
13125 * varobj.c (varobj_create): Switch to innermost_block API, replace
13126 use of innermost_block with block stored on varobj object.
13128 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13130 * expression.h (innermost_block): Remove declaration.
13131 * varobj.c: Add 'parser-defs.h' include.
13133 2018-01-19 Tom Tromey <tom@tromey.com>
13135 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13136 symbols in the static and global blocks.
13138 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13140 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13141 gdb_ptrace.h, and move including gdb_wait.h ...
13142 * nat/linux-ptrace.h: ... to here.
13144 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13146 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13147 inf_ptrace_detach_success.
13148 (inf_ptrace_detach_success): Add inferior parameter, use it
13149 instead of inferior_ptid, pass it to detach_inferior.
13150 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13152 * inferior.c (detach_inferior): Add overload that takes an
13154 * inferior.h (detach_inferior): Likewise.
13155 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13156 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13157 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13159 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13161 * target.h (struct target_ops) <to_detach>: Add inferior
13163 (target_detach): Likewise.
13164 * target.c (dispose_inferior): Pass inferior down.
13165 (target_detach): Pass inferior down. Assert that it is equal to
13166 the current inferior.
13167 * aix-thread.c (aix_thread_detach): Pass inferior down.
13168 * corefile.c (core_file_command): Pass current_inferior() down.
13169 * corelow.c (core_detach): Add inferior parameter.
13170 * darwin-nat.c (darwin_detach): Likewise.
13171 * gnu-nat.c (gnu_detach): Likewise.
13172 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13173 * infcmd.c (detach_command): Pass current_inferior() down to
13175 * infrun.c (follow_fork_inferior): Pass parent_inf to
13177 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13179 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13180 * linux-thread-db.c (thread_db_detach): Likewise.
13181 * nto-procfs.c (procfs_detach): Likewise.
13182 * procfs.c (procfs_detach): Likewise.
13183 * record.c (record_detach): Likewise.
13184 * record.h (struct inferior): Forward-declare.
13185 (record_detach): Add inferior parameter.
13186 * remote-sim.c (gdbsim_detach): Likewise.
13187 * remote.c (remote_detach_1): Likewise.
13188 (remote_detach): Likewise.
13189 (extended_remote_detach): Likewise.
13190 * sol-thread.c (sol_thread_detach): Likewise.
13191 * target-debug.h (target_debug_print_inferior_p): New macro.
13192 * target-delegates.c: Re-generate.
13193 * top.c (kill_or_detach): Pass inferior down to target_detach.
13194 * windows-nat.c (windows_detach): Add inferior parameter.
13196 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13198 * target.h (struct target_ops) <to_detach>: Remove args
13200 (target_detach): Likewise.
13201 * target.c (dispose_inferior): Adjust.
13202 (target_detach): Remove args parameter, adjust.
13203 * aix-thread.c (aix_thread_detach): Adjust.
13204 * corefile.c (core_file_command): Adjust.
13205 * corelow.c (core_detach): Adjust.
13206 * darwin-nat.c (darwin_detach): Adjust.
13207 * gnu-nat.c (gnu_detach): Adjust.
13208 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13209 * infcmd.c (detach_command): Adjust
13210 * infrun.c (follow_fork_inferior): Adjust.
13211 (handle_vfork_child_exec_or_exit): Adjust.
13212 * linux-fork.c (linux_fork_detach): Remove args parameter.
13213 * linux-fork.h (linux_fork_detach): Likewise.
13214 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13215 * linux-thread-db.c (thread_db_detach): Likewise.
13216 * nto-procfs.c (procfs_detach): Likewise.
13217 * procfs.c (procfs_detach): Likewise.
13218 (do_detach): Remove signo parameter.
13219 * record.c (record_detach): Remove args parameter.
13220 * record.h (record_detach): Likewise.
13221 * remote-sim.c (gdbsim_detach): Likewise.
13222 * remote.c (remote_detach_1): Likewise.
13223 (remote_detach): Likewise.
13224 (extended_remote_detach): Likewise.
13225 * sol-thread.c (sol_thread_detach): Likewise.
13226 * target-delegates.c: Re-generate.
13227 * top.c (struct qt_args) <args>: Remove field.
13228 (kill_or_detach): Don't pass args.
13229 (quit_force): Don't set args.
13230 * windows-nat.c (windows_detach): Remove args parameter.
13232 2018-01-19 Yao Qi <yao.qi@linaro.org>
13234 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13235 (arm_linux_init_abi): Install it.
13237 2018-01-19 Yao Qi <yao.qi@linaro.org>
13239 * osabi.c (gdb_osabi_names): Extend the regexp for
13240 arm-linux-gnueabihf.
13242 2018-01-18 Yao Qi <yao.qi@linaro.org>
13244 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13246 (abbrev_table::add_abbrev): Update.
13247 (abbrev_table::lookup_abbrev): Update.
13249 2018-01-18 Yao Qi <yao.qi@linaro.org>
13251 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13253 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13255 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13258 2018-01-17 Tom Tromey <tom@tromey.com>
13260 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13262 2018-01-17 Tom Tromey <tom@tromey.com>
13264 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13265 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13266 (create_array_type_with_stride): Update.
13267 * dwarf2read.c (set_die_type): Update.
13269 2018-01-17 Tom Tromey <tom@tromey.com>
13271 * dwarf2read.c (delayed_method_info): Remove typedef.
13272 (dwarf2_cu::method_info): Now a std::vector.
13273 (add_to_method_list): Update.
13274 (free_delayed_list): Remove.
13275 (compute_delayed_physnames): Update.
13276 (process_full_comp_unit, process_full_type_unit): Clear the method
13277 list. Remove cleanups.
13278 (psymtab_include_file_name): Add name_holder parameter. Use
13279 unique_xmalloc_ptr.
13280 (dwarf_decode_lines): Update.
13282 2018-01-17 Tom Tromey <tom@tromey.com>
13283 Simon Marchi <simon.marchi@ericsson.com>
13285 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13286 (dwarf2_per_objfile::free_cached_comp_units)
13287 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13288 (init_cutu_and_read_dies_no_follow): Update.
13289 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13290 (dwarf2_cu::~dwarf2_cu): New.
13291 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13292 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13294 2018-01-17 Tom Tromey <tom@tromey.com>
13295 Simon Marchi <simon.marchi@ericsson.com>
13297 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13298 (struct die_reader_specs) <abbrev_table>: New member.
13299 (struct abbrev_table): Add constructor.
13300 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13301 <abbrev_obstack>: Now an auto_obstack.
13302 (abbrev_table_up): New typedef.
13303 (init_cu_die_reader): Add abbrev_table parameter.
13304 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13305 Add result_dwo_abbrev_table.
13306 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13307 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13309 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13311 (skip_children): Update.
13312 (abbrev_table::alloc_abbrev): Rename from
13313 abbrev_table_alloc_abbrev.
13314 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13315 (abbrev_table::lookup_abbrev): Rename from
13316 abbrev_table_lookup_abbrev.
13317 (abbrev_table_read_table): Return abbrev_table_up.
13318 (abbrev_table_free, abbrev_table_free_cleanup)
13319 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13320 (load_partial_dies): Update.
13322 2018-01-17 Tom Tromey <tom@tromey.com>
13324 * dwarf2read.c (dwarf2_compute_name): Update comment.
13325 (read_func_scope, read_variable): Update.
13326 (new_symbol): Remove.
13327 (new_symbol_full): Rename to new_symbol.
13329 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13332 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13333 a warning instead of throwing an error, set section size to 0 and return
13335 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13337 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13339 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13341 (linux_ptrace_attach_fail_reason_string): Likewise.
13342 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13344 (linux_ptrace_attach_fail_reason_string): Likewise.
13345 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13347 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13349 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13351 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13354 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13355 checking for fs_base/gs_base fields in struct user_regs_struct.
13356 * configure: Regenerate.
13358 2018-01-17 Yao Qi <yao.qi@linaro.org>
13360 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13362 (aarch64_linux_init_abi): Install it to gdbarch hook
13363 gcc_target_options.
13365 2018-01-15 Pedro Alves <palves@redhat.com>
13367 * common/signals-state-save-restore.c
13368 (save_original_signals_state): Fix typos.
13370 2017-01-12 Tom Tromey <tom@tromey.com>
13371 Sergio Durigan Junior <sergiodj@redhat.com>
13373 * Makefile.in (install-only): Install gdb-add-index.
13375 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13377 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13379 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13381 * infrun.c (keep_going_pass_signal): Clear step-over info when
13382 insert_breakpoints fails.
13384 2018-01-11 Pedro Alves <palves@redhat.com>
13387 * infrun.c (resume): Rename to ...
13388 (resume_1): ... this.
13389 (resume): Reimplement as wrapper around resume_1.
13391 2018-01-11 Pedro Alves <palves@redhat.com>
13394 * remote.c (remote_parse_stop_reply): Default to the last-set
13395 general thread instead of to 'magic_null_ptid'.
13397 2018-01-10 Pedro Alves <palves@redhat.com>
13399 * language.h (language_get_symbol_name_matcher): Rename ...
13400 (get_symbol_name_matcher): ... this.
13401 * language.c (language_get_symbol_name_matcher): Ditto.
13402 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13405 2018-01-10 Pedro Alves <palves@redhat.com>
13409 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13410 Adjust to use language_get_symbol_name_matcher instead of
13411 language_defn::la_get_symbol_name_matcher.
13412 * language.c (language_get_symbol_name_matcher): If in Ada mode
13413 and the lookup name is a verbatim match, return Ada's matcher.
13414 * language.h (language_get_symbol_name_matcher): Adjust comment.
13415 (ada_lookup_name_info::verbatim_p):: New method.
13417 2018-01-10 Pedro Alves <palves@redhat.com>
13420 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13421 minsym's language is language_auto or language_cplus, pass down
13422 language_ada instead.
13423 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13425 2018-01-10 Pedro Alves <palves@redhat.com>
13428 * minsyms.c (linkage_name_str): New function.
13429 (iterate_over_minimal_symbols): Use it.
13431 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13433 * NEWS: Document that 'info proc' now works on FreeBSD.
13435 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13437 * configure.ac: Check for kinfo_getfile in libutil.
13438 * configure: Regenerate.
13439 * config.in: Regenerate.
13440 * fbsd-nat.c: Include "fbsd-tdep.h".
13441 (fbsd_fetch_cmdline): New.
13442 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13443 rather than calling error.
13444 (fbsd_info_proc): New.
13445 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13446 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13447 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13449 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13451 * fbsd-nat.c (struct free_deleter): Remove.
13452 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13454 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13456 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13457 NULL for an empty pathname.
13459 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13461 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13462 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13463 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13464 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13465 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13466 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13467 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13468 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13469 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13470 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13471 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13472 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13473 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13474 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13475 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13477 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13479 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13480 (gnu_xfer_auxv): New function.
13481 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13482 TARGET_OBJECT_AUXV.
13484 2018-01-08 Yao Qi <yao.qi@linaro.org>
13485 Simon Marchi <simon.marchi@ericsson.com>
13487 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13489 (COMMON_OBS): Remove selftest.o.
13490 * configure.ac: Append selftest-arch.c and common/selftest.c to
13491 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13492 * configure: Re-generated.
13493 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
13495 (maintenance_info_selftests): Likewise.
13497 2018-01-08 Xavier Roirand <roirand@adacore.com>
13499 * ada-valprint.c (val_print_packed_array_elements): Use
13500 proper number of elements when printing an array indexed
13501 by an enumeration type.
13503 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13505 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
13506 (dw2_get_file_names_reader): Adjust.
13507 (lookup_dwo_signatured_type): Adjust.
13508 (lookup_dwp_signatured_type): Adjust.
13509 (lookup_signatured_type): Adjust.
13510 (create_type_unit_group): Adjust.
13511 (get_type_unit_group): Adjust.
13512 (process_psymtab_comp_unit_reader): Adjust.
13513 (build_type_psymtabs_reader): Adjust.
13514 (scan_partial_symbols): Adjust.
13515 (add_partial_symbol): Adjust.
13516 (add_partial_subprogram): Adjust.
13517 (peek_die_abbrev): Adjust.
13518 (fixup_go_packaging): Adjust.
13519 (process_imported_unit_die): Adjust.
13520 (dwarf2_compute_name): Adjust.
13521 (dwarf2_physname): Adjust.
13522 (read_import_statement): Adjust.
13523 (handle_DW_AT_stmt_list): Adjust.
13524 (read_file_scope): Adjust.
13525 (read_func_scope): Adjust.
13526 (read_lexical_block_scope): Adjust.
13527 (read_call_site_scope): Adjust.
13528 (read_variable): Adjust.
13529 (dwarf2_rnglists_process): Adjust.
13530 (dwarf2_ranges_process): Adjust.
13531 (dwarf2_ranges_read): Adjust.
13532 (dwarf2_get_pc_bounds): Adjust.
13533 (dwarf2_record_block_ranges): Adjust.
13534 (dwarf2_add_field): Adjust.
13535 (dwarf2_add_member_fn): Adjust.
13536 (read_structure_type): Adjust.
13537 (process_structure_scope): Adjust.
13538 (read_enumeration_type): Adjust.
13539 (read_array_type): Adjust.
13540 (mark_common_block_symbol_computed): Adjust.
13541 (read_common_block): Adjust.
13542 (read_namespace_type): Adjust.
13543 (read_namespace): Adjust.
13544 (read_module_type): Adjust.
13545 (read_tag_pointer_type): Adjust.
13546 (read_tag_ptr_to_member_type): Adjust.
13547 (read_tag_string_type): Adjust.
13548 (read_subroutine_type): Adjust.
13549 (read_typedef): Adjust.
13550 (read_base_type): Adjust.
13551 (attr_to_dynamic_prop): Adjust.
13552 (read_subrange_type): Adjust.
13553 (read_unspecified_type): Adjust.
13554 (dwarf2_read_abbrevs): Adjust.
13555 (load_partial_dies): Adjust.
13556 (read_partial_die): Adjust.
13557 (find_partial_die): Adjust.
13558 (guess_partial_die_structure_name): Adjust.
13559 (fixup_partial_die): Adjust.
13560 (read_attribute_value): Adjust.
13561 (read_addr_index): Adjust.
13562 (read_addr_index_from_leb128): Adjust.
13563 (read_str_index): Adjust.
13564 (dwarf2_string_attr): Adjust.
13565 (get_debug_line_section): Adjust.
13566 (dwarf_decode_line_header): Adjust.
13567 (lnp_state_machine::check_line_address): Adjust.
13568 (dwarf_decode_lines_1): Adjust.
13569 (dwarf_decode_lines): Adjust.
13570 (dwarf2_start_symtab): Adjust.
13571 (var_decode_location): Adjust.
13572 (new_symbol_full): Adjust.
13573 (dwarf2_const_value_data): Adjust.
13574 (dwarf2_const_value_attr): Adjust.
13575 (dwarf2_const_value): Adjust.
13576 (die_type): Adjust.
13577 (die_containing_type): Adjust.
13578 (build_error_marker_type): Adjust.
13579 (lookup_die_type): Adjust.
13580 (guess_full_die_structure_name): Adjust.
13581 (anonymous_struct_prefix): Adjust.
13582 (determine_prefix): Adjust.
13583 (dwarf2_name): Adjust.
13584 (follow_die_ref_or_sig): Adjust.
13585 (follow_die_offset): Adjust.
13586 (follow_die_ref): Adjust.
13587 (follow_die_sig_1): Adjust.
13588 (follow_die_sig): Adjust.
13589 (get_signatured_type): Adjust.
13590 (get_DW_AT_signature_type): Adjust.
13591 (decode_locdesc): Adjust.
13592 (dwarf_decode_macros): Adjust.
13593 (cu_debug_loc_section): Adjust.
13594 (fill_in_loclist_baton): Adjust.
13595 (dwarf2_symbol_mark_computed): Adjust.
13596 (init_one_comp_unit): Don't assign
13597 dwarf2_cu::dwarf2_per_objfile.
13598 (set_die_type): Adjust.
13600 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13602 * dwarf2read.c (struct mapped_debug_names): Add constructor.
13603 <dwarf2_per_objfile>: New field.
13604 (dwarf2_per_objfile): Remove global.
13605 (get_dwarf2_per_objfile): New function.
13606 (set_dwarf2_per_objfile): New function.
13607 (dwarf2_build_psymtabs_hard): Change objfile parameter to
13608 dwarf2_per_objfile.
13609 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13610 (read_abbrev_offset): Likewise.
13611 (read_indirect_string): Likewise.
13612 (read_indirect_line_string): Likewise.
13613 (read_indirect_string_at_offset): Likewise.
13614 (read_indirect_string_from_dwz): Likewise.
13615 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13616 dwarf2_per_objfile.
13617 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13618 (create_all_comp_units): Change objfile parameter to
13619 dwarf2_per_objfile.
13620 (create_all_type_units): Likewise.
13621 (process_queue): Add dwarf2_per_objfile parameter.
13622 (read_and_check_comp_unit_head): Likewise.
13623 (lookup_dwo_unit_in_dwp): Likewise.
13624 (get_dwp_file): Likewise.
13625 (process_cu_includes): Likewise.
13626 (struct free_dwo_file_cleanup_data): New struct.
13627 (dwarf2_has_info): Use get_dwarf2_per_objfile and
13628 set_dwarf2_per_objfile.
13629 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
13630 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
13631 context, adjust calls.
13632 (dw2_instantiate_symtab): Likewise.
13633 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
13634 (dw2_get_cu): Likewise.
13635 (create_cu_from_index_list): Change objfile parameter to
13636 dwarf2_per_objfile.
13637 (create_cus_from_index_list): Get dwarf2_per_objfile from
13638 context, adjust calls.
13639 (create_cus_from_index): Likewise.
13640 (create_signatured_type_table_from_index): Change objfile
13641 parameter to dwarf2_per_objfile.
13642 (create_signatured_type_table_from_debug_names): Change objfile
13643 parameter to dwarf2_per_objfile.
13644 (create_addrmap_from_index): Likewise.
13645 (create_addrmap_from_aranges): Likewise.
13646 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
13647 (dw2_setup): Remove.
13648 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
13650 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
13651 get_dwarf2_per_objfile.
13652 (dw2_forget_cached_source_info): Likewise.
13653 (dw2_map_symtabs_matching_filename): Likewise.
13654 (struct dw2_symtab_iterator) <index>: Remove.
13655 <dwarf2_per_objfile>: New field.
13656 (dw2_symtab_iter_init): Replace index parameter with
13657 dwarf2_per_objfile.
13658 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
13659 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
13660 (dw2_print_stats): Likewise.
13661 (dw2_dump): Likewise.
13662 (dw2_expand_symtabs_for_function): Likewise.
13663 (dw2_expand_all_symtabs): Likewise.
13664 (dw2_expand_symtabs_with_fullname): Likewise.
13665 (dw2_expand_marked_cus): Replace index and objfile parameters
13666 with dwarf2_per_objfile.
13667 (dw_expand_symtabs_matching_file_matcher): Add
13668 dwarf2_per_objfile parameter and adjust calls.
13669 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
13671 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
13672 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
13674 (create_cus_from_debug_names_list): Replace objfile parameter
13675 with dwarf2_per_objfile and adjust calls.
13676 (create_cus_from_debug_names): Likewise.
13677 (dwarf2_read_debug_names): Likewise.
13678 (mapped_debug_names::namei_to_name): Adjust call.
13679 (dw2_debug_names_iterator::next): Likewise.
13680 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
13681 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
13682 (dw2_debug_names_dump): Likewise.
13683 (dw2_debug_names_expand_symtabs_for_function): Likewise.
13684 (dw2_debug_names_expand_symtabs_matching): Likewise.
13685 (dwarf2_initialize_objfile): Likewise.
13686 (dwarf2_build_psymtabs): Likewise.
13687 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
13689 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
13690 (read_and_check_comp_unit_head): Likewise.
13691 (read_abbrev_offset): Likewise.
13692 (create_debug_type_hash_table): Likewise.
13693 (create_debug_types_hash_table): Likewise.
13694 (create_all_type_units): Replace objfile parameter with
13695 dwarf2_per_objfile.
13696 (add_type_unit): Add dwarf2_per_objfile parameter.
13697 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
13698 with dwarf2_per_objfile.
13699 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
13700 (lookup_dwp_signatured_type): Likewise.
13701 (lookup_signatured_type): Likewise.
13702 (read_cutu_die_from_dwo): Likewise.
13703 (init_tu_and_read_dwo_dies): Likewise.
13704 (init_cutu_and_read_dies): Likewise.
13705 (init_cutu_and_read_dies_no_follow): Likewise.
13706 (allocate_type_unit_groups_table): Add objfile parameter.
13707 (create_type_unit_group): Use dwarf2_per_objfile from cu.
13708 (get_type_unit_group): Likewise.
13709 (process_psymtab_comp_unit): Update call.
13710 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
13711 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
13712 (print_tu_stats): Likewise.
13713 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
13714 in void* parameter.
13715 (build_type_psymtabs): Change objfile parameter to
13716 dwarf2_per_objfile.
13717 (process_skeletonless_type_unit): Use dwarf2_per_objfile
13718 passed in void* parameter.
13719 (process_skeletonless_type_units): Change objfile parameter to
13720 dwarf2_per_objfile.
13721 (set_partial_user): Likewise.
13722 (dwarf2_build_psymtabs_hard): Likewise.
13723 (read_comp_units_from_section): Likewise.
13724 (create_all_comp_units): Likewise.
13725 (scan_partial_symbols): Update calls.
13726 (add_partial_symbol): Likewise.
13727 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
13728 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
13729 (process_queue): Add dwarf2_per_objfile parameter.
13730 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
13731 (compute_compunit_symtab_includes): Likewise.
13732 (process_cu_includes): Add dwarf2_per_objfile parameter.
13733 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
13734 (process_full_type_unit): Likewise.
13735 (process_imported_unit_die): Update call.
13736 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
13737 (read_file_scope): Likewise.
13738 (allocate_dwo_file_hash_table): Add objfile parameter.
13739 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
13740 (create_cus_hash_table): Likewise.
13741 (create_dwp_hash_table): Likewise.
13742 (create_dwo_unit_in_dwp_v1): Likewise.
13743 (create_dwp_v2_section): Likewise.
13744 (create_dwo_unit_in_dwp_v2): Likewise.
13745 (lookup_dwo_unit_in_dwp): Likewise.
13746 (try_open_dwop_file): Likewise.
13747 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
13748 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
13749 cleanup to include a reference to dwarf2_per_objfile.
13750 (open_dwp_file): Add dwarf2_per_objfile parameter.
13751 (open_and_init_dwp_file): Likewise.
13752 (get_dwp_file): Likewise.
13753 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
13754 (queue_and_load_all_dwo_tus): Update call.
13755 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
13757 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
13758 (dwarf2_ranges_process): Likewise.
13759 (dwarf2_get_pc_bounds): Likewise.
13760 (mark_common_block_symbol_computed): Likewise.
13761 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
13762 (dwarf2_read_abbrevs): Update call.
13763 (read_partial_die): Use dwarf2_per_objfile from cu.
13764 (find_partial_die): Likewise.
13765 (fixup_partial_die): Likewise.
13766 (read_attribute_value): Likewise.
13767 (read_indirect_string_at_offset_from): Add objfile parameter.
13768 (read_indirect_string_at_offset): Add dwarf2_per_objfile
13770 (read_indirect_string_from_dwz): Add objfile parameter.
13771 (read_indirect_string): Add objfile parameter.
13772 (read_addr_index_1): Add dwarf2_per_objfile parameter.
13773 (read_addr_index): Use dwarf2_per_objfile from cu.
13774 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
13776 (read_str_index): Use dwarf2_per_objfile from cu.
13777 (get_debug_line_section): Likewise.
13778 (read_formatted_entries): Add dwarf2_per_objfile parameter.
13779 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
13780 (new_symbol_full): Use dwarf2_per_objfile from cu.
13781 (build_error_marker_type): Likewise.
13782 (lookup_die_type): Likewise.
13783 (determine_prefix): Likewise.
13784 (follow_die_offset): Likewise.
13785 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
13786 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
13787 (dwarf2_fetch_die_type_sect_off): Likewise.
13788 (dwarf2_get_die_type): Likewise.
13789 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
13790 (get_signatured_type): Likewise.
13791 (get_DW_AT_signature_type): Likewise.
13792 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
13793 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
13794 (cu_debug_loc_section): Likewise.
13795 (fill_in_loclist_baton): Likewise.
13796 (dwarf2_symbol_mark_computed): Likewise.
13797 (dwarf2_find_containing_comp_unit): Change objfile parameter to
13798 dwarf2_per_objfile.
13799 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
13801 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
13802 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
13803 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
13804 (set_die_type): Use dwarf2_free_objfile from cu.
13805 (get_die_type_at_offset): Likewise.
13806 (dwarf2_per_objfile_free): Don't assign global variable.
13807 (debug_names) <constructor>: Add dwarf2_per_objfile
13808 parameter, update m_debugstrlookup construction.
13809 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
13811 <m_dwarf2_per_objfile>: New field.
13812 <lookup>: Use m_dwarf2_per_objfile.
13813 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
13814 (psyms_seen_size): Likewise.
13815 (write_gdbindex): Replace objfile parameter with
13816 dwarf2_per_objfile.
13817 (write_debug_names): Likewise.
13818 (write_psymtabs_to_index): Likewise.
13819 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
13822 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13824 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
13825 <dwarf2_per_objfile>: New field.
13826 (struct dwarf2_per_cu_data) <objfile>: Remove.
13827 <dwarf2_per_objfile>: New field.
13828 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
13830 (create_signatured_type_table_from_index): Likewise.
13831 (create_debug_type_hash_table): Likewise.
13832 (fill_in_sig_entry_from_dwo_entry): Likewise.
13833 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
13834 (create_type_unit_group): Assign dwarf2_per_objfile instead of
13836 (create_partial_symtab): Access objfile through
13837 dwarf2_per_objfile.
13838 (process_psymtab_comp_unit_reader): Likewise.
13839 (read_comp_units_from_section): Likewise.
13840 (scan_partial_symbols): Likewise.
13841 (add_partial_symbol): Likewise.
13842 (add_partial_subprogram): Likewise.
13843 (peek_die_abbrev): Likewise.
13844 (fixup_go_packaging): Likewise.
13845 (process_full_comp_unit): Likewise.
13846 (process_full_type_unit): Likewise.
13847 (process_imported_unit_die): Likewise.
13848 (dwarf2_compute_name): Likewise.
13849 (dwarf2_physname): Likewise.
13850 (read_import_statement): Likewise.
13851 (create_cus_hash_table): Assign dwarf2_physname instead of
13853 (read_func_scope): Access objfile through dwarf2_per_objfile.
13854 (read_lexical_block_scope): Likewise.
13855 (read_call_site_scope): Likewise.
13856 (read_variable): Likewise.
13857 (dwarf2_rnglists_process): Likewise.
13858 (dwarf2_ranges_process): Likewise.
13859 (dwarf2_ranges_read): Likewise.
13860 (dwarf2_record_block_ranges): Likewise.
13861 (dwarf2_add_field): Likewise.
13862 (dwarf2_add_member_fn): Likewise.
13863 (read_structure_type): Likewise.
13864 (process_structure_scope): Likewise.
13865 (read_enumeration_type): Likewise.
13866 (read_array_type): Likewise.
13867 (read_common_block): Likewise.
13868 (read_namespace_type): Likewise.
13869 (read_namespace): Likewise.
13870 (read_module_type): Likewise.
13871 (read_tag_pointer_type): Likewise.
13872 (read_tag_ptr_to_member_type): Likewise.
13873 (read_tag_string_type): Likewise.
13874 (read_subroutine_type): Likewise.
13875 (read_typedef): Likewise.
13876 (read_base_type): Likewise.
13877 (attr_to_dynamic_prop): Likewise.
13878 (read_subrange_type): Likewise.
13879 (read_unspecified_type): Likewise.
13880 (load_partial_dies): Likewise.
13881 (read_partial_die): Likewise.
13882 (find_partial_die): Likewise.
13883 (guess_partial_die_structure_name): Likewise.
13884 (fixup_partial_die): Likewise.
13885 (read_attribute_value): Likewise.
13886 (read_addr_index_from_leb128): Likewise.
13887 (dwarf2_read_addr_index): Likewise.
13888 (dwarf2_string_attr): Likewise.
13889 (lnp_state_machine::check_line_address): Likewise.
13890 (dwarf_decode_lines_1): Likewise.
13891 (dwarf_decode_lines): Likewise.
13892 (dwarf2_start_symtab): Likewise.
13893 (var_decode_location): Likewise.
13894 (new_symbol_full): Likewise.
13895 (dwarf2_const_value_data): Likewise.
13896 (dwarf2_const_value_attr): Likewise.
13897 (dwarf2_const_value): Likewise.
13898 (die_type): Likewise.
13899 (die_containing_type): Likewise.
13900 (lookup_die_type): Likewise.
13901 (guess_full_die_structure_name): Likewise.
13902 (anonymous_struct_prefix): Likewise.
13903 (dwarf2_name): Likewise.
13904 (follow_die_ref_or_sig): Likewise.
13905 (follow_die_offset): Likewise.
13906 (follow_die_ref): Likewise.
13907 (dwarf2_fetch_die_loc_sect_off): Likewise.
13908 (dwarf2_fetch_constant_bytes): Likewise.
13909 (dwarf2_fetch_die_type_sect_off): Likewise.
13910 (dwarf2_get_die_type): Likewise.
13911 (follow_die_sig): Likewise.
13912 (decode_locdesc): Likewise.
13913 (dwarf2_per_cu_objfile): Likewise.
13914 (dwarf2_per_cu_text_offset): Likewise.
13915 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
13917 (set_die_type): Access objfile through
13918 dwarf2_per_objfile.
13920 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
13922 * valprint.c (converted_character_d): Remove typedef.
13923 (DEF_VEC_O (converted_character_d)): Remove.
13924 (count_next_character): Use std::vector.
13925 (print_converted_chars_to_obstack): Likewise.
13926 (generic_printstr): Likewise.
13928 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13930 * xml-support.h (struct gdb_xml_value): Add constructor.
13931 <value>: Change type to unique_xmalloc_ptr.
13932 (gdb_xml_value_s): Remove typedef.
13933 (DEF_VEC_O (gdb_xml_value_s)): Remove.
13934 (gdb_xml_element_start_handler): Change parameter type to
13936 (xml_find_attribute): Likewise.
13937 * xml-support.c (xml_find_attribute): Change parameter type to
13938 std::vector and adjust.
13939 (gdb_xml_values_cleanup): Remove.
13940 (gdb_xml_parser::start_element): Adjust to std::vector.
13941 (xinclude_start_include): Change paraeter type to std::vector
13943 * btrace.c (check_xml_btrace_version): Likewise.
13944 (parse_xml_btrace_block): Likewise.
13945 (parse_xml_btrace_pt_config_cpu): Likewise.
13946 (parse_xml_btrace_pt): Likewise.
13947 (parse_xml_btrace_conf_bts): Likewise.
13948 (parse_xml_btrace_conf_pt): Likewise.
13949 * memory-map.c (memory_map_start_memory): Likewise.
13950 (memory_map_start_property): Likewise.
13951 * osdata.c (osdata_start_osdata): Likewise.
13952 (osdata_start_item): Likewise.
13953 (osdata_start_column): Likewise.
13954 * remote.c (start_thread): Likewise.
13955 * solib-aix.c (library_list_start_library): Likewise.
13956 (library_list_start_list): Likewise.
13957 * solib-svr4.c (library_list_start_library): Likewise.
13958 (svr4_library_list_start_list): Likewise.
13959 * solib-target.c (library_list_start_segment): Likewise.
13960 (library_list_start_section): Likewise.
13961 (library_list_start_library): Likewise.
13962 (library_list_start_list): Likewise.
13963 * tracepoint.c (traceframe_info_start_memory): Likewise.
13964 (traceframe_info_start_tvar): Likewise.
13965 * xml-syscall.c (syscall_start_syscall): Likewise.
13966 * xml-tdesc.c (tdesc_start_target): Likewise.
13967 (tdesc_start_feature): Likewise.
13968 (tdesc_start_reg): Likewise.
13969 (tdesc_start_union): Likewise.
13970 (tdesc_start_struct): Likewise.
13971 (tdesc_start_flags): Likewise.
13972 (tdesc_start_enum): Likewise.
13973 (tdesc_start_field): Likewise.
13974 (tdesc_start_enum_value): Likewise.
13975 (tdesc_start_vector): Likewise.
13977 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13979 * extension.h (struct xmethod_worker) <clone>: Remove.
13980 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
13982 (python_xmethod_worker::clone): Remove.
13983 * valops.c (find_overload_match): Use std::move instead of
13986 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
13988 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
13989 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
13990 <free_xmethod_worker_data>: Remove.
13991 <get_matching_xmethod_workers>: Chance VEC to std::vector.
13992 <get_xmethod_arg_types>: Remove.
13993 <get_xmethod_result_type>: Remove.
13994 <invoke_xmethod>: Remove.
13995 * extension.c (new_xmethod_worker): Remove.
13996 (clone_xmethod_worker): Remove.
13997 (get_matching_xmethod_workers): Return void, pass std::vector by
13999 (get_xmethod_arg_types): Rename to...
14000 (xmethod_worker::get_arg_types): ... this, and adjust.
14001 (get_xmethod_result_type): Rename to...
14002 (xmethod_worker::get_result_type): ... this, and adjust.
14003 (invoke_xmethod): Remove.
14004 (free_xmethod_worker): Remove.
14005 (free_xmethod_worker_vec): Remove.
14006 * extension.h (enum ext_lang_rc): Move here from
14008 (struct xmethod_worker): Add constructor and destructor.
14011 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14012 virtual pure methods.
14013 <get_arg_types, get_result_type>: New methods.
14014 (xmethod_worker_ptr): Remove typedef.
14015 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14016 (xmethod_worker_vec): Remove typedef.
14017 (xmethod_worker_up): New typedef.
14018 (invoke_xmethod): Remove.
14019 (clone_xmethod_worker): Remove.
14020 (free_xmethod_worker): Remove.
14021 (free_xmethod_worker_vec): Remove.
14022 (get_xmethod_arg_types): Remove.
14023 (get_xmethod_result_type): Remove.
14024 * valops.c (find_method_list): Use std::vector, don't use
14025 intermediate vector.
14026 (value_find_oload_method_list): Use std::vector.
14027 (find_overload_match): Use std::vector.
14028 (find_oload_champ): Use std::vector.
14029 * value.c (value_free): Use operator delete.
14030 (value_of_xmethod): Rename to...
14031 (value_from_xmethod): ... this. Don't assign
14032 xmethod_worker::value, take rvalue-reference.
14033 (result_type_of_xmethod): Adjust.
14034 (call_xmethod): Adjust.
14035 * value.h: Include extension.h.
14036 (struct xmethod_worker): Don't forward-declare.
14037 (value_of_xmethod): Rename to...
14038 (value_from_xmethod): ... this, take rvalue-reference.
14039 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14040 (struct python_xmethod_worker): ... this, add constructor and
14042 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14043 (gdbpy_free_xmethod_worker_data): Rename to...
14044 (python_xmethod_worker::~python_xmethod_worker): ... this and
14046 (gdbpy_clone_xmethod_worker_data): Rename to...
14047 (python_xmethod_worker::clone): ... this and adjust.
14048 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14050 (gdbpy_get_xmethod_arg_types): Rename to...
14051 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14052 (gdbpy_get_xmethod_result_type): Rename to...
14053 (python_xmethod_worker::do_get_result_type): ... this and
14055 (gdbpy_invoke_xmethod): Rename to...
14056 (python_xmethod_worker::invoke): ... this and adjust.
14057 (new_python_xmethod_worker): Rename to...
14058 (python_xmethod_worker::python_xmethod_worker): ... this and
14060 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14062 (gdbpy_free_xmethod_worker_data): Remove.
14063 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14064 (gdbpy_get_xmethod_arg_types): Remove.
14065 (gdbpy_get_xmethod_result_type): Remove.
14066 (gdbpy_invoke_xmethod): Remove.
14067 * python/python.c (python_extension_ops): Remove obsolete
14070 2018-01-05 Pedro Alves <palves@redhat.com>
14073 * common/signals-state-save-restore.c
14074 (save_original_signals_state): New parameter 'quiet'. Warn if we
14075 find a custom handler preinstalled, instead of internal erroring.
14076 But only warn if !quiet.
14077 * common/signals-state-save-restore.h
14078 (save_original_signals_state): New parameter 'quiet'.
14079 * main.c (captured_main_1): Move save_original_signals_state call
14080 after option handling, and pass QUIET.
14082 2018-01-05 Pedro Alves <palves@redhat.com>
14084 * spu-tdep.c (spu_catch_start): Pass
14085 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14087 2018-01-05 Pedro Alves <palves@redhat.com>
14090 * ada-lang.c (literal_symbol_name_matcher): New function.
14091 (ada_get_symbol_name_matcher): Use it for
14092 symbol_name_match_type::SEARCH_NAME.
14093 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14094 it down instead of assuming symbol_name_match_type::FULL.
14095 * block.h (block_lookup_symbol): New parameter 'match_type'.
14096 * c-valprint.c (print_unpacked_pointer): Use
14097 lookup_symbol_search_name instead of lookup_symbol.
14098 * compile/compile-object-load.c (get_out_value_type): Pass down
14099 symbol_name_match_type::SEARCH_NAME.
14100 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14101 symbol_name_match_type::FULL.
14102 * cp-support.c (cp_get_symbol_name_matcher): Handle
14103 symbol_name_match_type::SEARCH_NAME.
14104 * infrun.c (insert_exception_resume_breakpoint): Use
14105 lookup_symbol_search_name.
14106 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14107 * psymtab.c (maintenance_check_psymtabs): Use
14108 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14109 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14110 SYMBOL_SEARCH_NAME.
14111 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14112 if symbol_name_match_type::SEARCH_NAME.
14113 (lookup_symbol_in_language): Pass down
14114 symbol_name_match_type::FULL.
14115 (lookup_symbol_search_name): New.
14116 (lookup_language_this): Pass down
14117 symbol_name_match_type::SEARCH_NAME.
14118 (lookup_symbol_aux, lookup_local_symbol): New parameter
14119 'match_type'. Pass it down.
14120 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14121 (lookup_symbol_search_name): New declaration.
14122 (lookup_symbol_in_block): New 'match_type' parameter.
14124 2018-01-05 Pedro Alves <palves@redhat.com>
14127 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14129 (ada_lookup_symbol): Reimplement in terms of
14130 ada_lookup_symbol_list, bits factored out from
14131 ada_lookup_encoded_symbol.
14133 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14135 * ada-exp.y (write_object_renaming): When subscripting an array
14136 using a symbol as the index, pass the block in call to
14137 ada_lookup_encoded_symbol when looking that symbol up.
14139 2018-01-05 Jerome Guitton <guitton@adacore.com>
14141 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14144 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14146 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14147 the case where VALUE_LVAL (val0) is not lval_memory.
14149 2018-01-05 Xavier Roirand <roirand@adacore.com>
14151 * ada-valprint.c (print_optional_low_bound): Handle
14152 character-indexed array printing like boolean-indexed array
14155 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14157 * NEWS: Create a new section for the next release branch.
14158 Rename the section of the current branch, now that it has
14161 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14163 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14164 * version.in: Bump version to 8.1.50.DATE-git.
14166 2018-01-03 Xavier Roirand <roirand@adacore.com>
14168 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14170 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14172 (default_exception_support_info) <catch_handlers_sym>: Add field.
14173 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14174 (ada_exception_name_addr_1): Add "catch handlers" handling.
14175 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14176 Update all callers.
14177 (create_excep_cond_exprs) <ex>: Add parameter.
14178 (re_set_exception): Update create_excep_cond_exprs call.
14179 (print_it_exception, print_one_exception, print_mention_exception)
14180 (print_recreate_exception): Add "catch handler" handling.
14181 (allocate_location_catch_handlers, re_set_catch_handlers)
14182 (check_status_catch_handlers, print_it_catch_handlers)
14183 (print_one_catch_handlers, print_mention_catch_handlers)
14184 (print_recreate_catch_handlers): New function.
14185 (catch_handlers_breakpoint_ops): New variable.
14186 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14187 Add parameter. Add "catch handler" handling.
14188 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14189 Add "catch handler" handling.
14190 (ada_exception_catchpoint_cond_string): Add "catch handler"
14192 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14194 (catch_ada_handlers_command): New function.
14195 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14196 operations structure.
14197 (_initialize_ada_language): Add "catch handlers" command entry.
14198 * NEWS: Document "catch handlers" feature.
14200 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14202 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14203 account when creating the array type of the slice.
14204 (ada_value_slice): Likewise.
14206 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14208 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14210 (create_array_type_with_stride): Add byte_stride_prop parameter.
14211 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14212 New parameter. Update all callers in this file.
14213 (array_type_has_dynamic_stride): New function.
14214 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14215 of arrays with dynamic byte strides.
14216 * dwarf2read.c (read_array_type): Add support for dynamic
14217 DW_AT_byte_stride attributes.
14219 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14221 * dwarf2read.c (read_unspecified_type): Treat
14222 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14224 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14226 Update copyright year range in all GDB files.
14228 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14230 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14231 and gdb/testsuite/gdb.base/step-line.c.
14233 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14235 * copyright.py (main): Dump the contents of
14236 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14237 even if BY_HAND is empty.
14239 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14241 * top.c (print_gdb_version): Update Copyright year in version
14244 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14246 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14248 For older changes see ChangeLog-2017.
14254 version-control: never