summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
authorroland <roland>2005-11-28 02:13:57 +0000
committerroland <roland>2005-11-28 02:13:57 +0000
commitb5bd7775e67d53aedb4af08e8b8ef724fd1ab1ab (patch)
tree61ea15b5b41cbe03e2db8f656784d1c108e5199b /loc2c.c
parent0737023292d463f9c131c48f0961accba1b9dcaa (diff)
downloadsystemtap-steved-b5bd7775e67d53aedb4af08e8b8ef724fd1ab1ab.tar.gz
systemtap-steved-b5bd7775e67d53aedb4af08e8b8ef724fd1ab1ab.tar.xz
systemtap-steved-b5bd7775e67d53aedb4af08e8b8ef724fd1ab1ab.zip
2005-11-27 Roland McGrath <roland@redhat.com>
* loc2c.c (location_from_address): Diagnose null FB_ATTR specially.
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,