aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-05-04 12:44:16 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-05-04 12:44:16 +0000
commitebd3bcc1327e6a7de6daf6536134cb20be9c2cfd (patch)
tree75a363503f60d58272d6b213bfabc083fcdfed54 /gdb/dwarf2loc.c
parent96dff6a2f423ced8545f17f6f8f0fee770e4f77b (diff)
downloadgdb-ebd3bcc1327e6a7de6daf6536134cb20be9c2cfd.zip
gdb-ebd3bcc1327e6a7de6daf6536134cb20be9c2cfd.tar.gz
gdb-ebd3bcc1327e6a7de6daf6536134cb20be9c2cfd.tar.bz2
* dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
SYMBOL_LOCATION_BATON.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 4f3612e..f6ef04f 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -166,8 +166,13 @@ dwarf_expr_frame_base (void *baton, gdb_byte **start, size_t * length)
{
struct dwarf2_locexpr_baton *symbaton;
symbaton = SYMBOL_LOCATION_BATON (framefunc);
- *length = symbaton->size;
- *start = symbaton->data;
+ if (symbaton != NULL)
+ {
+ *length = symbaton->size;
+ *start = symbaton->data;
+ }
+ else
+ *start = NULL;
}
if (*start == NULL)