mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 13:54:19 +08:00
8d4b68a7c4
On MIPS, the correct structure for PtraceRegs is 'struct pt_regs' which is declared in linux/ptrace.h. Previously no PtraceRegs structure was created on MIPS because 'struct user_regs_struct' doesn't exist there. Fallback to using pt_regs when the PtraceRegs structure is generated in mksysinfo.sh, then adjust syscall_linux_mipsx.go to read the program counter from the correct field. In addition, implement PtraceGetRegs and PtraceSetRegs on all 3 ABI variants. syscall_linux_mips64x.go can now be removed since the ptrace code on all 3 ABIs is identical. Reviewed-on: https://go-review.googlesource.com/46150 From-SVN: r249472
418 lines
11 KiB
C
418 lines
11 KiB
C
/* config.h.in. Generated from configure.ac by autoheader. */
|
|
|
|
/* Define if building universal (internal helper macro) */
|
|
#undef AC_APPLE_UNIVERSAL_BUILD
|
|
|
|
/* Define to the flags needed for the .section .eh_frame directive. */
|
|
#undef EH_FRAME_FLAGS
|
|
|
|
/* Define to 1 if you have the `accept4' function. */
|
|
#undef HAVE_ACCEPT4
|
|
|
|
/* Define to 1 if you have the `acosl' function. */
|
|
#undef HAVE_ACOSL
|
|
|
|
/* Define to 1 if you have the `asinl' function. */
|
|
#undef HAVE_ASINL
|
|
|
|
/* Define if your assembler supports GNU comdat group syntax. */
|
|
#undef HAVE_AS_COMDAT_GAS
|
|
|
|
/* Define if your assembler supports unwind section type. */
|
|
#undef HAVE_AS_X86_64_UNWIND_SECTION_TYPE
|
|
|
|
/* Define if your assembler supports AES instructions. */
|
|
#undef HAVE_AS_X86_AES
|
|
|
|
/* Define if your assembler supports PC relative relocs. */
|
|
#undef HAVE_AS_X86_PCREL
|
|
|
|
/* Define to 1 if you have the `atan2l' function. */
|
|
#undef HAVE_ATAN2L
|
|
|
|
/* Define to 1 if you have the `atanl' function. */
|
|
#undef HAVE_ATANL
|
|
|
|
/* Define to 1 if you have the `cosl' function. */
|
|
#undef HAVE_COSL
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#undef HAVE_DLFCN_H
|
|
|
|
/* Define to 1 if you have the `dl_iterate_phdr' function. */
|
|
#undef HAVE_DL_ITERATE_PHDR
|
|
|
|
/* Define to 1 if you have the `dup3' function. */
|
|
#undef HAVE_DUP3
|
|
|
|
/* Define to 1 if you have the `epoll_create1' function. */
|
|
#undef HAVE_EPOLL_CREATE1
|
|
|
|
/* Define to 1 if you have the `expl' function. */
|
|
#undef HAVE_EXPL
|
|
|
|
/* Define to 1 if you have the `expm1l' function. */
|
|
#undef HAVE_EXPM1L
|
|
|
|
/* Define to 1 if you have the `faccessat' function. */
|
|
#undef HAVE_FACCESSAT
|
|
|
|
/* Define to 1 if you have the `fallocate' function. */
|
|
#undef HAVE_FALLOCATE
|
|
|
|
/* Define to 1 if you have the `fchmodat' function. */
|
|
#undef HAVE_FCHMODAT
|
|
|
|
/* Define to 1 if you have the `fchownat' function. */
|
|
#undef HAVE_FCHOWNAT
|
|
|
|
/* Define to 1 if you have the `futimesat' function. */
|
|
#undef HAVE_FUTIMESAT
|
|
|
|
/* Define if _Unwind_GetIPInfo is available. */
|
|
#undef HAVE_GETIPINFO
|
|
|
|
/* Define to 1 if you have the `getxattr' function. */
|
|
#undef HAVE_GETXATTR
|
|
|
|
/* Define to 1 if you have the `inotify_add_watch' function. */
|
|
#undef HAVE_INOTIFY_ADD_WATCH
|
|
|
|
/* Define to 1 if you have the `inotify_init' function. */
|
|
#undef HAVE_INOTIFY_INIT
|
|
|
|
/* Define to 1 if you have the `inotify_init1' function. */
|
|
#undef HAVE_INOTIFY_INIT1
|
|
|
|
/* Define to 1 if you have the `inotify_rm_watch' function. */
|
|
#undef HAVE_INOTIFY_RM_WATCH
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
/* Define to 1 if you have the `ldexpl' function. */
|
|
#undef HAVE_LDEXPL
|
|
|
|
/* Define to 1 if you have the <linux/ether.h> header file. */
|
|
#undef HAVE_LINUX_ETHER_H
|
|
|
|
/* Define to 1 if you have the <linux/filter.h> header file. */
|
|
#undef HAVE_LINUX_FILTER_H
|
|
|
|
/* Define to 1 if you have the <linux/fs.h> header file. */
|
|
#undef HAVE_LINUX_FS_H
|
|
|
|
/* Define to 1 if you have the <linux/if_addr.h> header file. */
|
|
#undef HAVE_LINUX_IF_ADDR_H
|
|
|
|
/* Define to 1 if you have the <linux/if_ether.h> header file. */
|
|
#undef HAVE_LINUX_IF_ETHER_H
|
|
|
|
/* Define to 1 if you have the <linux/if_tun.h> header file. */
|
|
#undef HAVE_LINUX_IF_TUN_H
|
|
|
|
/* Define to 1 if you have the <linux/netlink.h> header file. */
|
|
#undef HAVE_LINUX_NETLINK_H
|
|
|
|
/* Define to 1 if you have the <linux/ptrace.h> header file. */
|
|
#undef HAVE_LINUX_PTRACE_H
|
|
|
|
/* Define to 1 if you have the <linux/reboot.h> header file. */
|
|
#undef HAVE_LINUX_REBOOT_H
|
|
|
|
/* Define to 1 if you have the <linux/rtnetlink.h> header file. */
|
|
#undef HAVE_LINUX_RTNETLINK_H
|
|
|
|
/* Define to 1 if you have the `listxattr' function. */
|
|
#undef HAVE_LISTXATTR
|
|
|
|
/* Define to 1 if the system has the type `loff_t'. */
|
|
#undef HAVE_LOFF_T
|
|
|
|
/* Define to 1 if you have the `log10l' function. */
|
|
#undef HAVE_LOG10L
|
|
|
|
/* Define to 1 if you have the `log1pl' function. */
|
|
#undef HAVE_LOG1PL
|
|
|
|
/* Define to 1 if you have the `logl' function. */
|
|
#undef HAVE_LOGL
|
|
|
|
/* Define to 1 if you have the `matherr' function. */
|
|
#undef HAVE_MATHERR
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#undef HAVE_MEMORY_H
|
|
|
|
/* Define to 1 if you have the `mincore' function. */
|
|
#undef HAVE_MINCORE
|
|
|
|
/* Define to 1 if you have the `mkdirat' function. */
|
|
#undef HAVE_MKDIRAT
|
|
|
|
/* Define to 1 if you have the `mknodat' function. */
|
|
#undef HAVE_MKNODAT
|
|
|
|
/* Define to 1 if you have the <netinet/icmp6.h> header file. */
|
|
#undef HAVE_NETINET_ICMP6_H
|
|
|
|
/* Define to 1 if you have the <netinet/if_ether.h> header file. */
|
|
#undef HAVE_NETINET_IF_ETHER_H
|
|
|
|
/* Define to 1 if you have the <netinet/in_syst.h> header file. */
|
|
#undef HAVE_NETINET_IN_SYST_H
|
|
|
|
/* Define to 1 if you have the <netinet/ip.h> header file. */
|
|
#undef HAVE_NETINET_IP_H
|
|
|
|
/* Define to 1 if you have the <netinet/ip_mroute.h> header file. */
|
|
#undef HAVE_NETINET_IP_MROUTE_H
|
|
|
|
/* Define to 1 if you have the <netpacket/packet.h> header file. */
|
|
#undef HAVE_NETPACKET_PACKET_H
|
|
|
|
/* Define to 1 if you have the <net/if_arp.h> header file. */
|
|
#undef HAVE_NET_IF_ARP_H
|
|
|
|
/* Define to 1 if you have the <net/if.h> header file. */
|
|
#undef HAVE_NET_IF_H
|
|
|
|
/* Define to 1 if you have the <net/route.h> header file. */
|
|
#undef HAVE_NET_ROUTE_H
|
|
|
|
/* Define to 1 if the system has the type `off64_t'. */
|
|
#undef HAVE_OFF64_T
|
|
|
|
/* Define to 1 if you have the `open64' function. */
|
|
#undef HAVE_OPEN64
|
|
|
|
/* Define to 1 if you have the `openat' function. */
|
|
#undef HAVE_OPENAT
|
|
|
|
/* Define to 1 if you have the `pipe2' function. */
|
|
#undef HAVE_PIPE2
|
|
|
|
/* Define to 1 if you have the <port.h> header file. */
|
|
#undef HAVE_PORT_H
|
|
|
|
/* Define to 1 if you have the `removexattr' function. */
|
|
#undef HAVE_REMOVEXATTR
|
|
|
|
/* Define to 1 if you have the `renameat' function. */
|
|
#undef HAVE_RENAMEAT
|
|
|
|
/* Define to 1 if you have the <sched.h> header file. */
|
|
#undef HAVE_SCHED_H
|
|
|
|
/* Define to 1 if you have the <semaphore.h> header file. */
|
|
#undef HAVE_SEMAPHORE_H
|
|
|
|
/* Define to 1 if you have the `sem_timedwait' function. */
|
|
#undef HAVE_SEM_TIMEDWAIT
|
|
|
|
/* Define to 1 if you have the `setenv' function. */
|
|
#undef HAVE_SETENV
|
|
|
|
/* Define to 1 if you have the `setxattr' function. */
|
|
#undef HAVE_SETXATTR
|
|
|
|
/* Define to 1 if you have the `sinl' function. */
|
|
#undef HAVE_SINL
|
|
|
|
/* Define to 1 if you have the `splice' function. */
|
|
#undef HAVE_SPLICE
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#undef HAVE_STDINT_H
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#undef HAVE_STDLIB_H
|
|
|
|
/* Define to 1 if you have the `strerror_r' function. */
|
|
#undef HAVE_STRERROR_R
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#undef HAVE_STRINGS_H
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#undef HAVE_STRING_H
|
|
|
|
/* Define to 1 if you have the `strsignal' function. */
|
|
#undef HAVE_STRSIGNAL
|
|
|
|
/* Define to 1 if <math.h> defines struct exception */
|
|
#undef HAVE_STRUCT_EXCEPTION
|
|
|
|
/* Define to 1 if the compiler provides the __sync_add_and_fetch function for
|
|
uint64 */
|
|
#undef HAVE_SYNC_ADD_AND_FETCH_8
|
|
|
|
/* Define to 1 if the compiler provides the __sync_bool_compare_and_swap
|
|
function for uint32 */
|
|
#undef HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4
|
|
|
|
/* Define to 1 if the compiler provides the __sync_bool_compare_and_swap
|
|
function for uint64 */
|
|
#undef HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8
|
|
|
|
/* Define to 1 if the compiler provides the __sync_fetch_and_add function for
|
|
uint32 */
|
|
#undef HAVE_SYNC_FETCH_AND_ADD_4
|
|
|
|
/* Define to 1 if you have the `sync_file_range' function. */
|
|
#undef HAVE_SYNC_FILE_RANGE
|
|
|
|
/* Define to 1 if you have the `syscall' function. */
|
|
#undef HAVE_SYSCALL
|
|
|
|
/* Define to 1 if you have the <syscall.h> header file. */
|
|
#undef HAVE_SYSCALL_H
|
|
|
|
/* Define to 1 if you have the <sys/epoll.h> header file. */
|
|
#undef HAVE_SYS_EPOLL_H
|
|
|
|
/* Define to 1 if you have the <sys/event.h> header file. */
|
|
#undef HAVE_SYS_EVENT_H
|
|
|
|
/* Define to 1 if you have the <sys/file.h> header file. */
|
|
#undef HAVE_SYS_FILE_H
|
|
|
|
/* Define to 1 if you have the <sys/inotify.h> header file. */
|
|
#undef HAVE_SYS_INOTIFY_H
|
|
|
|
/* Define to 1 if you have the <sys/mman.h> header file. */
|
|
#undef HAVE_SYS_MMAN_H
|
|
|
|
/* Define to 1 if you have the <sys/mount.h> header file. */
|
|
#undef HAVE_SYS_MOUNT_H
|
|
|
|
/* Define to 1 if you have the <sys/prctl.h> header file. */
|
|
#undef HAVE_SYS_PRCTL_H
|
|
|
|
/* Define to 1 if you have the <sys/ptrace.h> header file. */
|
|
#undef HAVE_SYS_PTRACE_H
|
|
|
|
/* Define to 1 if you have the <sys/select.h> header file. */
|
|
#undef HAVE_SYS_SELECT_H
|
|
|
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
|
#undef HAVE_SYS_SOCKET_H
|
|
|
|
/* Define to 1 if you have the <sys/statfs.h> header file. */
|
|
#undef HAVE_SYS_STATFS_H
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
/* Define to 1 if you have the <sys/syscall.h> header file. */
|
|
#undef HAVE_SYS_SYSCALL_H
|
|
|
|
/* Define to 1 if you have the <sys/sysinfo.h> header file. */
|
|
#undef HAVE_SYS_SYSINFO_H
|
|
|
|
/* Define to 1 if you have the <sys/timex.h> header file. */
|
|
#undef HAVE_SYS_TIMEX_H
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
/* Define to 1 if you have the <sys/user.h> header file. */
|
|
#undef HAVE_SYS_USER_H
|
|
|
|
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
|
#undef HAVE_SYS_UTSNAME_H
|
|
|
|
/* Define to 1 if you have the <sys/vfs.h> header file. */
|
|
#undef HAVE_SYS_VFS_H
|
|
|
|
/* Define to 1 if you have the `tanl' function. */
|
|
#undef HAVE_TANL
|
|
|
|
/* Define to 1 if you have the `tee' function. */
|
|
#undef HAVE_TEE
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#undef HAVE_UNISTD_H
|
|
|
|
/* Define to 1 if you have the `unlinkat' function. */
|
|
#undef HAVE_UNLINKAT
|
|
|
|
/* Define to 1 if you have the `unsetenv' function. */
|
|
#undef HAVE_UNSETENV
|
|
|
|
/* Define to 1 if you have the `unshare' function. */
|
|
#undef HAVE_UNSHARE
|
|
|
|
/* Define to 1 if you have the <ustat.h> header file and it works. */
|
|
#undef HAVE_USTAT_H
|
|
|
|
/* Define to 1 if you have the `utimensat' function. */
|
|
#undef HAVE_UTIMENSAT
|
|
|
|
/* Define to 1 if you have the <utime.h> header file. */
|
|
#undef HAVE_UTIME_H
|
|
|
|
/* Define to 1 if you have the `wait4' function. */
|
|
#undef HAVE_WAIT4
|
|
|
|
/* Define if the linker support split stack adjustments */
|
|
#undef LINKER_SUPPORTS_SPLIT_STACK
|
|
|
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
*/
|
|
#undef LT_OBJDIR
|
|
|
|
/* Name of package */
|
|
#undef PACKAGE
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
/* Define to the full name of this package. */
|
|
#undef PACKAGE_NAME
|
|
|
|
/* Define to the full name and version of this package. */
|
|
#undef PACKAGE_STRING
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
#undef PACKAGE_TARNAME
|
|
|
|
/* Define to the home page for this package. */
|
|
#undef PACKAGE_URL
|
|
|
|
/* Define to the version of this package. */
|
|
#undef PACKAGE_VERSION
|
|
|
|
/* Define if setcontext clobbers TLS variables */
|
|
#undef SETCONTEXT_CLOBBERS_TLS
|
|
|
|
/* The size of `void *', as computed by sizeof. */
|
|
#undef SIZEOF_VOID_P
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
#undef STDC_HEADERS
|
|
|
|
/* Define if we're to use libffi. */
|
|
#undef USE_LIBFFI
|
|
|
|
/* Define if the compiler supports -fsplit-stack */
|
|
#undef USING_SPLIT_STACK
|
|
|
|
/* Version number of package */
|
|
#undef VERSION
|
|
|
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
|
#if defined AC_APPLE_UNIVERSAL_BUILD
|
|
# if defined __BIG_ENDIAN__
|
|
# define WORDS_BIGENDIAN 1
|
|
# endif
|
|
#else
|
|
# ifndef WORDS_BIGENDIAN
|
|
# undef WORDS_BIGENDIAN
|
|
# endif
|
|
#endif
|
|
|
|
/* Define to `long int' if <sys/types.h> does not define. */
|
|
#undef off_t
|