fix incorrect line numbers in NPE traces

This commit is contained in:
Joel Dice 2009-09-04 15:09:40 -06:00
parent e47c149fb1
commit b0ba70866e

View File

@ -6351,7 +6351,9 @@ class SegFaultHandler: public System::SignalHandler {
void* oldBase = t->base;
void* oldStack = t->stack;
t->ip = *ip;
// add one to the IP since findLineNumber will subract one
// when we make the trace:
t->ip = static_cast<uint8_t*>(*ip) + 1;
t->base = *base;
t->stack = static_cast<void**>(*stack)
- t->arch->frameReturnAddressSize();