Buggy code in f-typeprint.c:f_print_type()
Mark Kettenis
kettenis@gnu.org
Mon Sep 27 18:05:00 GMT 2004
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
More information about the Gdb
mailing list