[Lldb-commits] [lldb] r186871 - Fix i386 FreeBSD build
Ed Maste
emaste at freebsd.org
Mon Jul 22 13:51:08 PDT 2013
Author: emaste
Date: Mon Jul 22 15:51:08 2013
New Revision: 186871
URL: http://llvm.org/viewvc/llvm-project?rev=186871&view=rev
Log:
Fix i386 FreeBSD build
Modified:
lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp?rev=186871&r1=186870&r2=186871&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp (original)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp Mon Jul 22 15:51:08 2013
@@ -101,6 +101,7 @@ PtraceWrapper(int req, lldb::pid_t pid,
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,
log->Printf("PT_GETREGS: ax=0x%lx", r->r_rax);
}
}
+#endif
return result;
}
More information about the lldb-commits
mailing list