This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Buggy code in f-typeprint.c:f_print_type()
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb at sources dot redhat dot com
- Date: Mon, 27 Sep 2004 20:05:35 +0200 (CEST)
- Subject: Buggy code in f-typeprint.c:f_print_type()
Running the testsuite on amd64-unknown-openbsd3.6 made GDB dump core.
The cause is the following code in f-typeprint.c:f_print_type():
demangled_args = varstring[strlen (varstring) - 1] == ')';
Here VARSTRING can be an empty string ("") if one uses the command
(gdb) ptype type
where type is a type and not a variable. I'm not sure how to fix this
though, since I don't quite understand what this code is supposed to
do.
Mark