c++/1960: can't use typeid

Grover, Alan grover@kuchera.com
Mon Jun 20 11:38:00 GMT 2005

The following reply was made to PR c++/1960; it has been noted by GNATS.

From: "Grover, Alan" <grover@kuchera.com>
To: <gdb-gnats@sources.redhat.com>
Subject: Re: c++/1960: can't use typeid
Date: Mon, 20 Jun 2005 07:36:25 -0400

 The problem came about trying to debug a statement of the form:
 printf("Class id is %s\n", typeid(*this));
 which works on most classes.=A0 One one class the printf seems to =
 complete (ie, the output appears on the console), but the process gets a =
 SIGSEGV and terminates at this point.=A0 Any ideas for debugging a =
 problem like that would be appreciated.

More information about the Gdb-prs mailing list