Fix i386 FreeBSD build

llvm-svn: 186871
This commit is contained in:
Ed Maste 2013-07-22 20:51:08 +00:00
parent a3dd900c71
commit 7d4c0d5b8a
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,7 @@ PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data,
log->Printf("ptrace() failed; errno=%d (%s)", errno, str);
}
#ifdef __amd64__
if (log) {
if (req == PT_GETREGS) {
struct reg *r = (struct reg *) addr;
@ -111,6 +112,7 @@ PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data,
log->Printf("PT_GETREGS: ax=0x%lx", r->r_rax);
}
}
#endif
return result;
}