2007-07-05 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 25 Jul 2007 00:28:25 +0000 (00:28 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 25 Jul 2007 00:28:25 +0000 (00:28 +0000)
* stack.c (print_frame_args): Check return value of lookup_symbol.

gdb/ChangeLog
gdb/stack.c

index 59a3a022de3b1e6e234e00f78ad27084bcb32eb1..b4573836a474d482a70a90e33158023473b91ad4 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-05  Michael Snyder  <msnyder@access-company.com>
+
+       * stack.c (print_frame_args): Check return value of lookup_symbol.
+
 2007-07-24  Michael Snyder  <msnyder@access-company.com>
 
        * ax-gdb.c (find_field): Guard against null ptr.
index fdbb724f8da6719ad20d6055b05ee8196842e798..c022a3154bbc14681b8995743213746fb29de9d7 100644 (file)
@@ -247,6 +247,7 @@ print_frame_args (struct symbol *func, struct frame_info *frame,
              struct symbol *nsym;
              nsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (sym),
                                    b, VAR_DOMAIN, NULL, NULL);
+             gdb_assert (nsym != NULL);
              if (SYMBOL_CLASS (nsym) == LOC_REGISTER)
                {
                  /* There is a LOC_ARG/LOC_REGISTER pair.  This means