2007-07-05 Michael Snyder * stack.c (print_frame_args): Check return value of lookup_symbol (Coverity). Index: stack.c =================================================================== RCS file: /cvs/src/src/gdb/stack.c,v retrieving revision 1.149 diff -p -r1.149 stack.c *** stack.c 18 Jun 2007 18:28:29 -0000 1.149 --- stack.c 5 Jul 2007 23:04:35 -0000 *************** print_frame_args (struct symbol *func, s *** 247,253 **** struct symbol *nsym; nsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (sym), b, VAR_DOMAIN, NULL, NULL); ! if (SYMBOL_CLASS (nsym) == LOC_REGISTER) { /* There is a LOC_ARG/LOC_REGISTER pair. This means that it was passed on the stack and loaded into a --- 247,257 ---- struct symbol *nsym; nsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (sym), b, VAR_DOMAIN, NULL, NULL); ! if (nsym == NULL) ! /* Not sure what to do here, but doing nothing ! should be safe... */ ! ; ! else if (SYMBOL_CLASS (nsym) == LOC_REGISTER) { /* There is a LOC_ARG/LOC_REGISTER pair. This means that it was passed on the stack and loaded into a