diff options
Diffstat (limited to 'src/libmach/dwarfcfa.c')
-rw-r--r-- | src/libmach/dwarfcfa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmach/dwarfcfa.c b/src/libmach/dwarfcfa.c index de342cd7..d09edcb3 100644 --- a/src/libmach/dwarfcfa.c +++ b/src/libmach/dwarfcfa.c @@ -110,6 +110,10 @@ findfde(Dwarf *d, ulong pc, State *s, DwarfBuf *fde) ulong len, id, base, size; DwarfBuf b; + if(d->frame.data == nil){ + werrstr("no frame debugging information"); + return -1; + } b.d = d; b.p = d->frame.data; b.ep = b.p + d->frame.len; |