gdb/60: GDB has problems with C++ symbols
Mon Jun 11 12:28:00 GMT 2001

>Number:         60
>Category:       gdb
>Synopsis:       GDB has problems with C++ symbols
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 11 12:28:01 PDT 2001
>Release:        5.0
Redhat Linux 6.2
In a C++ program I have a function template that takes an
iterator as argument.  The program crashed and core dumped.
In trying to debug it, I went up the stack until I came
to the function template, and then I tried "print b[0]"
(b is an argument passed to the function; in this case it
is a vector<> iterator).  Gdb just spat out the error

Internal: Cannot demangle mangled name `__vc__Ct17__normal_iterator2ZPdZt6vector2ZdZt9allocator1ZdRCi'.

The program was compiled with gcc 2.95.2.

In general, I find that gdb falls apart when it comes to
any sort of template code or use of user-defined operators.




More information about the Gdb-prs mailing list