diff --git a/sys/amd64/amd64/db_trace.c b/sys/amd64/amd64/db_trace.c index 676b0dc4ba50..add84d9f5423 100644 --- a/sys/amd64/amd64/db_trace.c +++ b/sys/amd64/amd64/db_trace.c @@ -214,7 +214,7 @@ db_nextframe(fp, ip) } break; case INTERRUPT: - tf = (struct trapframe *)((int)*fp + 16); + tf = (struct trapframe *)((int)*fp + 12); if (INKERNEL((int) tf)) { eip = tf->tf_eip; ebp = tf->tf_ebp; diff --git a/sys/i386/i386/db_trace.c b/sys/i386/i386/db_trace.c index 676b0dc4ba50..add84d9f5423 100644 --- a/sys/i386/i386/db_trace.c +++ b/sys/i386/i386/db_trace.c @@ -214,7 +214,7 @@ db_nextframe(fp, ip) } break; case INTERRUPT: - tf = (struct trapframe *)((int)*fp + 16); + tf = (struct trapframe *)((int)*fp + 12); if (INKERNEL((int) tf)) { eip = tf->tf_eip; ebp = tf->tf_ebp;