This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Error while mappig shared library on Linux
- From: "Das, Diya (MED)" <Diya dot Das at geind dot ge dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 26 Dec 2001 19:08:05 +0530
- Subject: Error while mappig shared library on Linux
Hi,
I am getting the following error due to which i am not able to set break
points in functions in the shared library.
[netra:/homes/diyad/ios/SdC_src/src/servers/ars/vdi].diyad[91] gdb bench
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 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 "i386-redhat-linux"...
(gdb) br main
Breakpoint 1 at 0x80487c3: file bench.c, line 30.
(gdb) set args r 1 2
(gdb) r
Starting program: /homes/diyad/ios/SdC_src/src/servers/ars/vdi/bench r 1 2
hi
Error while mapping shared library sections:
libvdi.so: Success.
Breakpoint 1, main (argc=4, argv=0xbfffeecc) at bench.c:30
30 int t = -1;
(gdb) br S_scsi_cmd
Cannot access memory at address 0xe9d8
(gdb) br S_scsi_send
Cannot access memory at address 0xdb28
[netra:/homes/diyad/ios/SdC_src/src/servers/ars/vdi].diyad[94] ldd -r bench
libvdi.so => libvdi.so (0x40018000)
libc.so.6 => /lib/i686/libc.so.6 (0x4003f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
I am using gcc version 2.96
Is it a known problem?
-diya
"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."