mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
b757528ff6
* acconfig.h: Add HAVE_TKILL_SYSCALL definition check. * config.in: Regenerated. * configure.in: Add test for syscall function and check for __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL. * configure: Regenerated. * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and <sys/syscall.h>. (kill_lwp): New function that uses tkill syscall or uses kill, depending on whether threading model is nptl or not. All callers of kill() changed to use kill_lwp(). (lin_lwp_wait): Make special check when WIFEXITED occurs to see if all threads have already exited in the nptl model. (stop_and_resume_callback): New callback function used by the lin_lwp_wait thread exit handling code. (stop_wait_callback): Check for threads already having exited and delete such threads fromt the lwp list when discovered. (stop_callback): Don't assert retcode of kill call. Roland McGrath <roland@redhat.com> * i386-linux-nat.c (ps_get_thread_area): New function needed by nptl libthread_db.
171 lines
4.7 KiB
C
171 lines
4.7 KiB
C
/* Enable GNU extensions on systems that have them. */
|
|
#ifndef _GNU_SOURCE
|
|
# undef _GNU_SOURCE
|
|
#endif
|
|
|
|
/* Define if your struct reg has r_fs. */
|
|
#undef HAVE_STRUCT_REG_R_FS
|
|
|
|
/* Define if your struct reg has r_gs. */
|
|
#undef HAVE_STRUCT_REG_R_GS
|
|
|
|
/* Define if pstatus_t type is available */
|
|
#undef HAVE_PSTATUS_T
|
|
|
|
/* Define if prrun_t type is available */
|
|
#undef HAVE_PRRUN_T
|
|
|
|
/* Define if fpregset_t type is available. */
|
|
#undef HAVE_FPREGSET_T
|
|
|
|
/* Define if gregset_t type is available. */
|
|
#undef HAVE_GREGSET_T
|
|
|
|
/* Define if <sys/procfs.h> has prgregset_t. */
|
|
#undef HAVE_PRGREGSET_T
|
|
|
|
/* Define if <sys/procfs.h> has prfpregset_t. */
|
|
#undef HAVE_PRFPREGSET_T
|
|
|
|
/* Define if <sys/procfs.h> has lwpid_t. */
|
|
#undef HAVE_LWPID_T
|
|
|
|
/* Define if <sys/procfs.h> has psaddr_t. */
|
|
#undef HAVE_PSADDR_T
|
|
|
|
/* Define if <sys/procfs.h> has prgregset32_t. */
|
|
#undef HAVE_PRGREGSET32_T
|
|
|
|
/* Define if <sys/procfs.h> has prfpregset32_t. */
|
|
#undef HAVE_PRFPREGSET32_T
|
|
|
|
/* Define if <sys/procfs.h> has prsysent_t */
|
|
#undef HAVE_PRSYSENT_T
|
|
|
|
/* Define if <sys/procfs.h> has pr_sigset_t */
|
|
#undef HAVE_PR_SIGSET_T
|
|
|
|
/* Define if <sys/procfs.h> has pr_sigaction64_t */
|
|
#undef HAVE_PR_SIGACTION64_T
|
|
|
|
/* Define if <sys/procfs.h> has pr_siginfo64_t */
|
|
#undef HAVE_PR_SIGINFO64_T
|
|
|
|
/* Define if <link.h> exists and defines struct link_map which has
|
|
members with an ``l_'' prefix. (For Solaris, SVR4, and
|
|
SVR4-like systems.) */
|
|
#undef HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS
|
|
|
|
/* Define if <link.h> exists and defines struct link_map which has
|
|
members with an ``lm_'' prefix. (For SunOS.) */
|
|
#undef HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS
|
|
|
|
/* Define if <link.h> exists and defines a struct so_map which has
|
|
members with an ``som_'' prefix. (Found on older *BSD systems.) */
|
|
#undef HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS
|
|
|
|
/* Define if <sys/link.h> has struct link_map32 */
|
|
#undef HAVE_STRUCT_LINK_MAP32
|
|
|
|
/* Define if <sys/link.h> has link_map32 (solaris sparc-64 target) */
|
|
#undef _SYSCALL32
|
|
|
|
/* Define if the prfpregset_t type is broken. */
|
|
#undef PRFPREGSET_T_BROKEN
|
|
|
|
/* Define if you want to use new multi-fd /proc interface
|
|
(replaces HAVE_MULTIPLE_PROC_FDS as well as other macros). */
|
|
#undef NEW_PROC_API
|
|
|
|
/* Define if ioctl argument PIOCSET is available. */
|
|
#undef HAVE_PROCFS_PIOCSET
|
|
|
|
/* Define if the `long long' type works. */
|
|
#undef CC_HAS_LONG_LONG
|
|
|
|
/* Define if the "ll" format works to print long long ints. */
|
|
#undef PRINTF_HAS_LONG_LONG
|
|
|
|
/* Define if the "%Lg" format works to print long doubles. */
|
|
#undef PRINTF_HAS_LONG_DOUBLE
|
|
|
|
/* Define if the "%Lg" format works to scan long doubles. */
|
|
#undef SCANF_HAS_LONG_DOUBLE
|
|
|
|
/* Define if using Solaris thread debugging. */
|
|
#undef HAVE_THREAD_DB_LIB
|
|
|
|
/* Define if you support the tkill syscall. */
|
|
#undef HAVE_TKILL_SYSCALL
|
|
|
|
/* Define on a GNU/Linux system to work around problems in sys/procfs.h. */
|
|
#undef START_INFERIOR_TRAPS_EXPECTED
|
|
#undef sys_quotactl
|
|
|
|
/* Define if you have HPUX threads */
|
|
#undef HAVE_HPUX_THREAD_SUPPORT
|
|
|
|
/* Define if you want to use the memory mapped malloc package (mmalloc). */
|
|
#undef USE_MMALLOC
|
|
|
|
/* Define if the runtime uses a routine from mmalloc before gdb has a chance
|
|
to initialize mmalloc, and we want to force checking to be used anyway.
|
|
This may cause spurious memory corruption messages if the runtime tries
|
|
to explicitly deallocate that memory when gdb calls exit. */
|
|
#undef MMCHECK_FORCE
|
|
|
|
/* Define to 1 if NLS is requested. */
|
|
#undef ENABLE_NLS
|
|
|
|
/* Define as 1 if you have catgets and don't want to use GNU gettext. */
|
|
#undef HAVE_CATGETS
|
|
|
|
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
|
|
#undef HAVE_GETTEXT
|
|
|
|
/* Define as 1 if you have the stpcpy function. */
|
|
#undef HAVE_STPCPY
|
|
|
|
/* Define if your locale.h file contains LC_MESSAGES. */
|
|
#undef HAVE_LC_MESSAGES
|
|
|
|
/* Define if you want to use the full-screen terminal user interface. */
|
|
#undef TUI
|
|
|
|
/* Define if <proc_service.h> on solaris uses int instead of
|
|
size_t, and assorted other type changes. */
|
|
#undef PROC_SERVICE_IS_OLD
|
|
|
|
/* Define if the simulator is being linked in. */
|
|
#undef WITH_SIM
|
|
|
|
/* Set to true if the save_state_t structure is present */
|
|
#undef HAVE_STRUCT_SAVE_STATE_T
|
|
|
|
/* Set to true if the save_state_t structure has the ss_wide member */
|
|
#undef HAVE_STRUCT_MEMBER_SS_WIDE
|
|
|
|
/* Define if <sys/ptrace.h> defines the PTRACE_GETREGS request. */
|
|
#undef HAVE_PTRACE_GETREGS
|
|
|
|
/* Define if <sys/ptrace.h> defines the PTRACE_GETFPXREGS request. */
|
|
#undef HAVE_PTRACE_GETFPXREGS
|
|
|
|
/* Define if <sys/ptrace.h> defines the PT_GETDBREGS request. */
|
|
#undef HAVE_PT_GETDBREGS
|
|
|
|
/* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request. */
|
|
#undef HAVE_PT_GETXMMREGS
|
|
|
|
/* Multi-arch enabled. */
|
|
#undef GDB_MULTI_ARCH
|
|
|
|
/* hostfile */
|
|
#undef GDB_XM_FILE
|
|
|
|
/* targetfile */
|
|
#undef GDB_TM_FILE
|
|
|
|
/* nativefile */
|
|
#undef GDB_NM_FILE
|