From: Jan Kratochvil Date: Sun, 4 May 2008 12:44:16 +0000 (+0000) Subject: * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=ebd3bcc1327e6a7de6daf6536134cb20be9c2cfd;p=deliverable%2Fbinutils-gdb.git * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing SYMBOL_LOCATION_BATON. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f5c314fe83..4236270526 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-04 Jan Kratochvil + + * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing + SYMBOL_LOCATION_BATON. + 2008-05-04 Vladimir Prus * target.h (struct target_ops): New field to_auxv_parse. diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 4f3612e6ec..f6ef04f71b 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)