This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/60: GDB has problems with C++ symbols
- To: gdb-gnats at sources dot redhat dot com
- Subject: gdb/60: GDB has problems with C++ symbols
- From: Kevin_VanHorn at ndsu dot nodak dot edu
- Date: 11 Jun 2001 19:25:56 -0000
- Reply-To: Kevin_VanHorn at ndsu dot nodak dot edu
>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
>Closed-Date:
>Last-Modified:
>Originator: Kevin_VanHorn@ndsu.nodak.edu
>Release: 5.0
>Organization:
>Environment:
Redhat Linux 6.2
>Description:
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
message
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.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: