diff options
author | jhb <jhb@FreeBSD.org> | 2012-05-17 20:21:55 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-05-17 20:21:55 +0000 |
commit | 9185c7e2f741f7dc245a2e427ace1736d7702ae7 (patch) | |
tree | 5739d4da47dab1acf0f1243247c736bc301c30c7 | |
parent | 17e1a41ad183ff20cd39435982450567e0b2e338 (diff) | |
download | FreeBSD-src-9185c7e2f741f7dc245a2e427ace1736d7702ae7.zip FreeBSD-src-9185c7e2f741f7dc245a2e427ace1736d7702ae7.tar.gz |
Don't expose i386-only ptrace constants on amd64. This broke gdb with
libthread_db on amd64.
Reported by: avg
-rw-r--r-- | sys/x86/include/ptrace.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/x86/include/ptrace.h b/sys/x86/include/ptrace.h index 475e369..16a04d1 100644 --- a/sys/x86/include/ptrace.h +++ b/sys/x86/include/ptrace.h @@ -40,8 +40,10 @@ * PT_GETXSTATE and PT_SETXSTATE. They should not be (re)used. */ -#define PT_GETXMMREGS (PT_FIRSTMACH + 0) /* i386 only */ -#define PT_SETXMMREGS (PT_FIRSTMACH + 1) /* i386 only */ +#ifdef __i386__ +#define PT_GETXMMREGS (PT_FIRSTMACH + 0) +#define PT_SETXMMREGS (PT_FIRSTMACH + 1) +#endif #define PT_GETXSTATE (PT_FIRSTMACH + 2) #define PT_SETXSTATE (PT_FIRSTMACH + 3) |