This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb "bad physname", no c++ symbols or stack


i have built a program consisting of mostly c++
sources with gcc.
when i try to debug it with gdb, almost none of the
functions or other symbols can be referenced for
breakpointing or otherwise.

i can not get a list of functions.
i can not get listing information for any c++ source.

i was able to put a break point in one of the c
sources.
when the program stopped there, the stack trace
effectively disappeared when it ascended up into the
c++ routines.

there is a consistent complaint to many of these
commands as follows: 
  bad physname
_ZNSt15const_mem_fun_tIv11packagemetaEC1EMS0_KFvvE


what might be wrong?

some debugging session output is shown below.




$ gcc --version
gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.

$ gdb setup 
GNU gdb 2002-12-19-cvs (cygwin-special)
Copyright 2002 Free Software Foundation, Inc.

(gdb) break download.cc:validateCachedPackage
bad physname
_ZNSt15const_mem_fun_tIv11packagemetaEC1EMS0_KFvvE

(gdb) break download.cc:67
bad physname
_ZNSt15const_mem_fun_tIv11packagemetaEC1EMS0_KFvvE


(gdb) break main.cc:473
bad physname
_ZNSt15const_mem_fun_tIv11packagemetaEC1EMS0_KFvvE

(gdb) info breakpoints
No breakpoints or watchpoints.
(gdb)  list main
bad physname
_ZNSt15const_mem_fun_tIv11packagemetaEC1EMS0_KFvvE

(gdb) break md5_process
Breakpoint 1 at 0x423d5d: file md5.c, line 135.
(gdb) info breakpoints
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x00423d5d in md5_process
at md5.c:135
(gdb) info functions
bad physname
_ZNSt15const_mem_fun_tIv11packagemetaEC1EMS0_KFvvE

(gdb) run
Starting program: /ntd/setup/setup-0/setup.exe
warning: LOG: 2 Starting cygwin install, version 2.415
warning: LOG: 2 Current Directory: h:\cygwin
warning: LOG: 2 Changing gid to Users
warning: LOG: 2 Could not open service McShield for
query, start and stop. McAfee may not be installed, or
we don't have access.

...



Breakpoint 1, md5_process (pms=0x22ef1c,
    data=0x22aefc "BZh91AY&SY_\231c&\004~3", ''
<repeats 34 times>, "\027\2173
A\006eh}1\235\206I") at md5.c:135
135             a = pms->abcd[0], b = pms->abcd[1],
Current language:  auto; currently c
(gdb) bt
#0  md5_process (pms=0x22ef1c,
    data=0x22aefc "BZh91AY&SY_\231c&\004~3", ''
<repeats 34 times>, "\027\2173
A\006eh}1\235\206I") at md5.c:135
#1  0x00424c0b in md5_append (pms=0x22ef1c,
    data=0x22aefc "BZh91AY&SY_\231c&\004~3", ''
<repeats 34 times>, "\027\2173
A\006eh}1\235\206I", nbytes=16384) at md5.c:353
bad physname
_ZNSt15const_mem_fun_tIv11packagemetaEC1EMS0_KFvvE


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]