public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Buggy code in f-typeprint.c:f_print_type()
@ 2004-09-27 18:05 Mark Kettenis
  0 siblings, 0 replies; only message in thread
From: Mark Kettenis @ 2004-09-27 18:05 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-27 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-27 18:05 Buggy code in f-typeprint.c:f_print_type() Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).