summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/x86_64/Gtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86_64/Gtrace.c b/src/x86_64/Gtrace.c
index 74122710..824527f9 100644
--- a/src/x86_64/Gtrace.c
+++ b/src/x86_64/Gtrace.c
@@ -540,7 +540,7 @@ tdep_trace (unw_cursor_t *cursor, void **buffer, int *size)
break;
/* Record this address in stack trace. We skipped the first address. */
- buffer[depth++] = (void *) (rip - d->use_prev_instr);
+ buffer[depth++] = (void *) rip;
}
#if UNW_DEBUG