summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/loc2c.c b/loc2c.c
index cfcb2a16..e7c07371 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -567,6 +567,9 @@ location_from_address (struct obstack *pool,
/* The main expression uses DW_OP_fbreg, so we need to compute
the DW_AT_frame_base attribute expression's value first. */
+ if (fb_attr == NULL)
+ FAIL (loc, N_("required DW_AT_frame_base attribute not supplied"));
+
Dwarf_Op *fb_expr;
size_t fb_len;
switch (dwarf_getlocation_addr (fb_attr, address - dwbias,