This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]