This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfa] patch for PR2116
Greetings,
Here is a trivial patch for a gdb crash in pr2116
http://sources.redhat.com/cgi-bin/gnatsweb.pl?database=gdb&pr=2116
--- gdb/valops.c.orig 2005-05-26 21:39:32.000000000 -0700
+++ gdb/valops.c 2006-05-26 09:49:59.026107248 -0700
@@ -1847,7 +1847,8 @@
else
{
const char *qualified_name = SYMBOL_CPLUS_DEMANGLED_NAME (fsym);
- func_name = cp_func_name (qualified_name);
+ if (qualified_name)
+ func_name = cp_func_name (qualified_name);
/* If the name is NULL this must be a C-style function.
Just return the same symbol. */