* dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 4 May 2008 12:44:16 +0000 (12:44 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sun, 4 May 2008 12:44:16 +0000 (12:44 +0000)
SYMBOL_LOCATION_BATON.

gdb/ChangeLog
gdb/dwarf2loc.c

index f5c314fe8345677e2aede323ffe102c7c2ad31da..4236270526ab67f642d017fe10a65247539a9d6e 100644 (file)
@@ -1,3 +1,8 @@
+2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
+       SYMBOL_LOCATION_BATON.
+
 2008-05-04  Vladimir Prus  <vladimir@codesourcery.com>
 
        * target.h (struct target_ops): New field to_auxv_parse.
index 4f3612e6ecfed99b0e383fdcb1269fe7585d811f..f6ef04f71bc42e13b1ee60b1b2d62c45f612eb2c 100644 (file)
@@ -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)
This page took 0.030982 seconds and 4 git commands to generate.