[llvm-commits] CVS: llvm/tools/lli/JIT/Callback.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 6 13:00:03 PST 2003
Changes in directory llvm/tools/lli/JIT:
Callback.cpp updated: 1.1 -> 1.2
---
Log message:
Print more info about bad segv's
---
Diffs of the changes:
Index: llvm/tools/lli/JIT/Callback.cpp
diff -u llvm/tools/lli/JIT/Callback.cpp:1.1 llvm/tools/lli/JIT/Callback.cpp:1.2
--- llvm/tools/lli/JIT/Callback.cpp:1.1 Mon Dec 23 18:01:04 2002
+++ llvm/tools/lli/JIT/Callback.cpp Mon Jan 6 12:58:06 2003
@@ -19,7 +19,9 @@
#ifdef REG_EIP /* this code does not compile on Sparc! */
if (SI->si_code != SEGV_MAPERR || SI->si_addr != 0 ||
ucp->uc_mcontext.gregs[REG_EIP] != 0) {
- std::cerr << "Bad SEGV encountered!\n";
+ std::cerr << "Bad SEGV encountered EIP = 0x" << std::hex
+ << ucp->uc_mcontext.gregs[REG_EIP] << " addr = "
+ << SI->si_addr << "!\n";
abort();
}
More information about the llvm-commits
mailing list