|
|
Problems loading dynamic libraries in HPUX 11.00 with gdb
Hi,
I can't load dynamic libraries with gdb. Below are some commnad lines:
m3vmsa4.BIedes /home/BIedes/current/bin > env|grep LD
LD_LIBRARY_PATH=/opt/sybase/lib:/opt/arbor/site_specific/lib:/home/BIedes/current/lib:/usr/lib:/usr/bin:/opt/sybase/lib
m3vmsa4.BIedes /home/BIedes/current/bin > ldd BI
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/usr/lib/libstream.2 => /usr/lib/libstream.2
/usr/lib/libstd.2 => /usr/lib/libstd.2
/usr/lib/libcl.2 => /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/opt/sybase/lib/libintl.sl => /opt/sybase/lib/libintl.sl
/usr/lib/libm.2 => /usr/lib/libm.2
/opt/sybase/lib/libcs_r.sl => /opt/sybase/lib/libcs_r.sl
/opt/sybase/lib/libcs.sl => /opt/sybase/lib/libcs.sl
/opt/sybase/lib/libct_r.sl => /opt/sybase/lib/libct_r.sl
/opt/sybase/lib/libtcl.sl => /opt/sybase/lib/libtcl.sl
/opt/sybase/lib/libsybdb.sl => /opt/sybase/lib/libsybdb.sl
/opt/sybase/lib/libcomn_dce.sl =>
/opt/sybase/lib/libcomn_dce.sl
/opt/sybase/lib/libcomn.sl => /opt/sybase/lib/libcomn.sl
/opt/sybase/lib/libct.sl => /opt/sybase/lib/libct.sl
m3vmsa4.BIedes /home/BIedes/current/bin > gdb BI
HP gdb 2.0
Copyright 1986 - 1999 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 2.0 (based on GDB 4.17-hpwdb-980821)
Wildebeest 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 Wildebeest. Type "show warranty" for
details.
Wildebeest was built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
...
(gdb) share
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the
program.
Error while reading dynamic library list.
(gdb) info share
No shared libraries loaded at this time.
(gdb)
Any hint?
Thanks in advance,
Jose Luis
|
|
0
|
|
|
|
Reply
|
jose_luis_fdez_diaz_news (88)
|
2/21/2006 10:37:50 AM |
|
"jose_luis_fdez_diaz_news@yahoo.es" <jose_luis_fdez_diaz_news@yahoo.es> writes:
> m3vmsa4.BIedes /home/BIedes/current/bin > gdb BI
[snip]
One question is: "what was omitted
> (gdb) share
> warning: The shared libraries were not privately mapped; setting a
> breakpoint in a shared library will not work until you rerun the
> program.
>
> Error while reading dynamic library list.
Gdb does not load shared libraries until you actually *run*
the executable. Your output doesn't necessarily indicate anything
is wrong. For example:
$ cat junk.c
int main() { return 0; }
$ cc -g junk.c
$ gdb -q ./a.out
(gdb) inf shared
No shared libraries loaded at this time.
(gdb) b main
Breakpoint 1 at 0x2588: file junk.c, line 1 from /home/paul/a.out.
(gdb) run
Breakpoint 1, main () at junk.c:1
1 int main() { return 0; }
(gdb) inf shared
Shared Object Libraries
flags tstart tend dstart dend dlt
/usr/lib/libc.2
0x03000301 0x7af0b000 0x7b04e000 0x7aef8000 0x7af0b000 0x7aef8790
/usr/lib/libdld.2
0x03000301 0x7aef1000 0x7aef4000 0x7aef0000 0x7aef1000 0x7aef000c
(gdb) quit
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
|
|
0
|
|
|
|
Reply
|
Paul
|
2/21/2006 4:10:14 PM
|
|
m3vmsa4.BIedes /home/BIedes/current/bin > ldd BI
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/usr/lib/libstream.2 => /usr/lib/libstream.2
/usr/lib/libstd.2 => /usr/lib/libstd.2
/usr/lib/libcl.2 => /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/opt/sybase/lib/libintl.sl => /opt/sybase/lib/libintl.sl
/usr/lib/libm.2 => /usr/lib/libm.2
/opt/sybase/lib/libcs_r.sl => /opt/sybase/lib/libcs_r.sl
/opt/sybase/lib/libcs.sl => /opt/sybase/lib/libcs.sl
/opt/sybase/lib/libct_r.sl => /opt/sybase/lib/libct_r.sl
/opt/sybase/lib/libtcl.sl => /opt/sybase/lib/libtcl.sl
/opt/sybase/lib/libsybdb.sl => /opt/sybase/lib/libsybdb.sl
/opt/sybase/lib/libcomn_dce.sl =>
/opt/sybase/lib/libcomn_dce.sl
/opt/sybase/lib/libcomn.sl => /opt/sybase/lib/libcomn.sl
/opt/sybase/lib/libct.sl => /opt/sybase/lib/libct.sl
m3vmsa4.BIedes /home/BIedes/current/bin > gdb ./BI
HP gdb 2.0
Copyright 1986 - 1999 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 2.0 (based on GDB 4.17-hpwdb-980821)
Wildebeest 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 Wildebeest. Type "show warranty" for
details.
Wildebeest was built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
...
(gdb) b main
Breakpoint 1 at 0x1123c: file BI.cpp, line 280.
(gdb) r 7 1
Starting program: /home/BIedes/release/v7.0/bin/./BI 7 1
Error while reading dynamic library list.
(gdb) share
--Adding symbols for shared library "/opt/sybase/lib/libct.sl"
--Adding symbols for shared library "/opt/sybase/lib/libcomn.sl"
--Adding symbols for shared library "/opt/sybase/lib/libcomn_dce.sl"
--Adding symbols for shared library "/opt/sybase/lib/libsybdb.sl"
--Adding symbols for shared library "/opt/sybase/lib/libtcl.sl"
--Adding symbols for shared library "/opt/sybase/lib/libct_r.sl"
--Adding symbols for shared library "/opt/sybase/lib/libcs.sl"
Error while reading dynamic library list.
Why doesn't it load the "/usr/lib/*" libs ?
Regards,
Jose Luis.
|
|
0
|
|
|
|
Reply
|
jose_luis_fdez_diaz_
|
2/21/2006 5:38:26 PM
|
|
Wow! You are using an ancient gdb. Please download the latest HP gdb 5.3
from www.hp.com/go/wdb and let us know if you still see the problem.
-Bindu
Himabindu Vuppula
HP Debugging and Performance Tools
<jose_luis_fdez_diaz_news@yahoo.es> wrote in message
news:1140543506.050096.18800@f14g2000cwb.googlegroups.com...
> m3vmsa4.BIedes /home/BIedes/current/bin > ldd BI
> /usr/lib/libdld.2 => /usr/lib/libdld.2
> /usr/lib/libc.2 => /usr/lib/libc.2
> /usr/lib/libdld.2 => /usr/lib/libdld.2
> /usr/lib/libc.2 => /usr/lib/libc.2
> /usr/lib/libCsup.2 => /usr/lib/libCsup.2
> /usr/lib/libstream.2 => /usr/lib/libstream.2
> /usr/lib/libstd.2 => /usr/lib/libstd.2
> /usr/lib/libcl.2 => /usr/lib/libcl.2
> /usr/lib/libisamstub.1 => /usr/lib/libisamstub.1
> /usr/lib/libdld.2 => /usr/lib/libdld.2
> /opt/sybase/lib/libintl.sl => /opt/sybase/lib/libintl.sl
> /usr/lib/libm.2 => /usr/lib/libm.2
> /opt/sybase/lib/libcs_r.sl => /opt/sybase/lib/libcs_r.sl
> /opt/sybase/lib/libcs.sl => /opt/sybase/lib/libcs.sl
> /opt/sybase/lib/libct_r.sl => /opt/sybase/lib/libct_r.sl
> /opt/sybase/lib/libtcl.sl => /opt/sybase/lib/libtcl.sl
> /opt/sybase/lib/libsybdb.sl => /opt/sybase/lib/libsybdb.sl
> /opt/sybase/lib/libcomn_dce.sl =>
> /opt/sybase/lib/libcomn_dce.sl
> /opt/sybase/lib/libcomn.sl => /opt/sybase/lib/libcomn.sl
> /opt/sybase/lib/libct.sl => /opt/sybase/lib/libct.sl
> m3vmsa4.BIedes /home/BIedes/current/bin > gdb ./BI
> HP gdb 2.0
> Copyright 1986 - 1999 Free Software Foundation, Inc.
> Hewlett-Packard Wildebeest 2.0 (based on GDB 4.17-hpwdb-980821)
> Wildebeest 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 Wildebeest. Type "show warranty" for
> details.
> Wildebeest was built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
> ..
> (gdb) b main
> Breakpoint 1 at 0x1123c: file BI.cpp, line 280.
> (gdb) r 7 1
> Starting program: /home/BIedes/release/v7.0/bin/./BI 7 1
> Error while reading dynamic library list.
>
> (gdb) share
> --Adding symbols for shared library "/opt/sybase/lib/libct.sl"
> --Adding symbols for shared library "/opt/sybase/lib/libcomn.sl"
> --Adding symbols for shared library "/opt/sybase/lib/libcomn_dce.sl"
> --Adding symbols for shared library "/opt/sybase/lib/libsybdb.sl"
> --Adding symbols for shared library "/opt/sybase/lib/libtcl.sl"
> --Adding symbols for shared library "/opt/sybase/lib/libct_r.sl"
> --Adding symbols for shared library "/opt/sybase/lib/libcs.sl"
> Error while reading dynamic library list.
>
>
> Why doesn't it load the "/usr/lib/*" libs ?
>
> Regards,
> Jose Luis.
>
|
|
0
|
|
|
|
Reply
|
Himabindu
|
2/21/2006 8:10:38 PM
|
|
|
3 Replies
188 Views
(page loaded in 0.042 seconds)
|
|
|
|
|
|
|
|
|