[Bug c++/12471] New: functions shown as ?? in gdb
gcc-bugzilla at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 1 02:31:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12471
Summary: functions shown as ?? in gdb
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: xu at cs dot wisc dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
If you compile the following simple program and debug it with gdb 5.3
64bit version, everything works fine except that when you press ^C and stop in
the gdb prompt and do a "where" command. You will not see the function names of
the c++ library. I have tried other calls and gdb was able to show function
name of /usr/lib/libc.so, for instance. I am not sure this is a bug of gcc or
gdb, I shall report to both.
Environment:
System: SunOS pinot.cs.wisc.edu 5.8 Generic_108528-23 sun4u sparc SUNW,Sun-Fire-880
Architecture: sun4
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: ../gcc-3.3/configure --prefix=/s/gcc-3.3 --enable-threads --enable-shared
How-To-Repeat:
For the following code:
#include <iostream>
using namespace std;
main() {
cout << "helo" << endl;
for(;;) {
cout << "a";
}
}
compile with
g++ -g -m64 -mcpu=v9 -ldl test.cc
debug with
gdb a.out
in gdb
run
^c
where
------- Additional Comments From xu at cs dot wisc dot edu 2003-10-01 02:30 -------
Fix:
if you know, let me know.
More information about the Gcc-bugs
mailing list