From b5bd7775e67d53aedb4af08e8b8ef724fd1ab1ab Mon Sep 17 00:00:00 2001 From: roland Date: Mon, 28 Nov 2005 02:13:57 +0000 Subject: 2005-11-27 Roland McGrath * loc2c.c (location_from_address): Diagnose null FB_ATTR specially. --- loc2c.c | 3 +++ 1 file changed, 3 insertions(+) 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, -- cgit