aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-25 00:28:25 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-25 00:28:25 +0000
commit55765a25f62ac4a16bf1ed5729da7ee45128e869 (patch)
tree3220e68521cb6ba4b71faf0b1e4649a700e180fb /gdb/stack.c
parent4cff3c28a34cadfba5c3bed067b1153cad94f91b (diff)
downloadgdb-55765a25f62ac4a16bf1ed5729da7ee45128e869.zip
gdb-55765a25f62ac4a16bf1ed5729da7ee45128e869.tar.gz
gdb-55765a25f62ac4a16bf1ed5729da7ee45128e869.tar.bz2
2007-07-05 Michael Snyder <msnyder@access-company.com>
* stack.c (print_frame_args): Check return value of lookup_symbol.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c1
1 files changed, 1 insertions, 0 deletions
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