From: Michael Snyder Date: Wed, 25 Jul 2007 00:28:25 +0000 (+0000) Subject: 2007-07-05 Michael Snyder X-Git-Tag: binutils-2_18-branchpoint~121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55765a25f62ac4a16bf1ed5729da7ee45128e869;p=platform%2Fupstream%2Fbinutils.git 2007-07-05 Michael Snyder * stack.c (print_frame_args): Check return value of lookup_symbol. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59a3a02..b457383 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-07-05 Michael Snyder + + * stack.c (print_frame_args): Check return value of lookup_symbol. + 2007-07-24 Michael Snyder * ax-gdb.c (find_field): Guard against null ptr. diff --git a/gdb/stack.c b/gdb/stack.c index fdbb724..c022a31 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -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