c++/1960: can't use typeid

grover@kuchera.com grover@kuchera.com
Fri Jun 17 21:28:00 GMT 2005

>Number:         1960
>Category:       c++
>Synopsis:       can't use typeid
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 17 21:28:01 UTC 2005
>Originator:     grover@kuchera.com
>Release:        GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)

When I try expressions like 

print typeid(*this).name()

I get the error
No symbol "typeid" in current context.

AFAIK, typeid is a C++ operator, not a local or global symbol.  It would be very helpful if it were supported.



More information about the Gdb-prs mailing list