bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bt not printing source file or lines


From: David Terry
Subject: bt not printing source file or lines
Date: Thu, 10 May 2001 14:52:32 -0400

HI,
I just recently subscribed to this group so I'm not sure if this has been
addressed already.

I'm working on a project that uses shared libraries.  I'm running gdb
version 5.0 on hpux11.11

I start gdb and set the path to point to my ojbect files and the dir to
point to my source files.  I have compiled everything with the -g option
and nothing is stripped of symbols.

I set a breakpoint in main and when my libraries are loaded I set a break
in my specific function.  It seems to break at this point but when I do a
bt I get the following:


(gdb) bt
#0  0x7a8dc5a0 in ?? () from /tmp/dterry/45507/libatriaks.sl
#1  0x7a86d4ec in ?? () from /tmp/dterry/45507/libatriatbs.sl
#2  0x7a6eb0d8 in ?? () from /usr/atria/shlib/libatriaview.sl
#3  0x7a190ce8 in ?? () from /tmp/dterry/45507/libatriacmd.sl
#4  0x7a19045c in ?? () from /tmp/dterry/45507/libatriacmd.sl
#5  0x7a0876fc in ?? () from /tmp/dterry/45507/libatriacmdsyn.sl
#6  0x7a06bcf8 in ?? () from /tmp/dterry/45507/libatriacmdsyn.sl
#7  0x7a06c170 in ?? () from /tmp/dterry/45507/libatriacmdsyn.sl
#8  0x7a3dac28 in ?? () from /usr/atria/shlib/libatriatool.sl
#9  0xd3e4 in main ()
#10 0x7a98d6bc in ?? () from /lib/libc.1

why is the ?? showing up, why can't gdb tell what file and what line it is
currently in?  If I type l I get

(gdb) l
1       end.c: No such file or directory.

it doesn't give me the next ten lines from where it breaks.  I have
verified that the shared libraries are getting read in from the right
directories.  any thoughts?  wondering if this is a bug.  thanks,

below is a complete execution of my gdb session.


Dave


 /opt/gdb/bin/gdb /tmp/dterry/45507/cleartool
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "hppa2.0n-hp-hpux11.00"...
(gdb) path /view/dterry_V4.1/vobs/atria/lib/ks/hp11_pa
Executable and object file path:
/view/dterry_V4.1/vobs/atria/lib/ks/hp11_pa:.:/net/wywang02/export/home/dterry/bin/sun5:/usr2/public/bin:/usr/atria/bin:/usr/atria/sun5/etc:/usr/atria/sun5/etc/utils:/usr/atria/bugtrack:/opt/SUNWspro/bin:/usr/local/bin:/bin:/usr/bin:/usr/ccs/bin:/usr/dt/bin:/usr/openwin/bin:/usr/sbin:/usr/ucb:/etc:/usr/etc:/opt/SUNWmfwm/bin:/usr/lib/acct:/usr/lib/lp/postscript:/net/wywang02/export/home/dterry/lib
(gdb) dir /view/dterry_V4.1/vobs/atria/lib/ks
Source directories searched:
/view/dterry_V4.1/vobs/atria/lib/ks:$cdir:$cwd
(gdb) break main
Breakpoint 1 at 0xd050
(gdb) run mkview -tag testc /tmp/dterry/testc
Starting program: /tmp/dterry/45507/cleartool mkview -tag testc
/tmp/dterry/testc

Breakpoint 1, 0xd050 in main ()
(gdb) break sysutl_my_ieee_hostid
Breakpoint 2 at 0x7a8dc5a0
(gdb) c
Continuing.

Breakpoint 2, 0x7a8dc5a0 in ?? () from /tmp/dterry/45507/libatriaks.sl
(gdb) l
1       end.c: No such file or directory.
(gdb) br
Note: breakpoint 2 also set at pc 0x7a8dc5a0.
Breakpoint 3 at 0x7a8dc5a0
(gdb) bt
#0  0x7a8dc5a0 in ?? () from /tmp/dterry/45507/libatriaks.sl
#1  0x7a86d4ec in ?? () from /tmp/dterry/45507/libatriatbs.sl
#2  0x7a6eb0d8 in ?? () from /usr/atria/shlib/libatriaview.sl
#3  0x7a190ce8 in ?? () from /tmp/dterry/45507/libatriacmd.sl
#4  0x7a19045c in ?? () from /tmp/dterry/45507/libatriacmd.sl
#5  0x7a0876fc in ?? () from /tmp/dterry/45507/libatriacmdsyn.sl
#6  0x7a06bcf8 in ?? () from /tmp/dterry/45507/libatriacmdsyn.sl
#7  0x7a06c170 in ?? () from /tmp/dterry/45507/libatriacmdsyn.sl
#8  0x7a3dac28 in ?? () from /usr/atria/shlib/libatriatool.sl
#9  0xd3e4 in main ()
#10 0x7a98d6bc in ?? () from /lib/libc.1
(gdb)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]