diff options
-rw-r--r-- | src/libmach/symstabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libmach/symstabs.c b/src/libmach/symstabs.c index 77c6bab7..e253f023 100644 --- a/src/libmach/symstabs.c +++ b/src/libmach/symstabs.c @@ -309,7 +309,8 @@ stabsline2pc(Fhdr *fhdr, u64int startpc, ulong line, u64int *pc) l.type = LADDR; l.addr = startpc; - if((s = ffindsym(fhdr, l, CTEXT)) == nil) + if((s = ffindsym(fhdr, l, CTEXT)) == nil + || stabsym(&fhdr->stabs, s->u.stabs.i, &ss) < 0) return -1; trigger = 0; |