This is the mail archive of the gdb@sourceware.org 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]

Re: What exactly does "info sharedlibrary" command show?


Hi, Jacobowitz


2006/8/30, Daniel Jacobowitz <drow@false.org>:
Given this I have a hard time finding anything visually:

0x00002aaaaabd6910  0x00002aaaaabf1e58  Yes /lib/libreadline.so.5
0x00002aaaaad20ef0  0x00002aaaaad43cc8  Yes /usr/lib/libncurses.so.5
0x00002aaaaae61dd0  0x00002aaaaaea22b8  Yes /lib/libm.so.6
0x00002aaaaafe2000  0x00002aaaaafe2978  Yes /lib/libdl.so.2
0x00002aaaab1002d0  0x00002aaaab1e2a10  Yes /lib/libc.so.6
0x00002aaaaaaaba80  0x00002aaaaaabc857  Yes /lib64/ld-linux-x86-64.so.2
0x00002aaaab50a8e0  0x00002aaaab50dce8  Yes /lib/libthread_db.so.1

I find this much easier:

0x00002aaaaabd6000  0x00002aaaaabf2000  Yes /lib/libreadline.so.5
0x00002aaaaad20000  0x00002aaaaad44000  Yes /usr/lib/libncurses.so.5
0x00002aaaaae61000  0x00002aaaaaea3000  Yes /lib/libm.so.6
0x00002aaaaafe2000  0x00002aaaaafe3000  Yes /lib/libdl.so.2
0x00002aaaab100000  0x00002aaaab1e3000  Yes /lib/libc.so.6
0x00002aaaaaaab000  0x00002aaaaaabd000  Yes /lib64/ld-linux-x86-64.so.2
0x00002aaaab50a000  0x00002aaaab50e000  Yes /lib/libthread_db.so.1

So you mean in "0x00002aaaaabd6910 0x00002aaaaabf1e58 Yes /lib/libreadline.so.5" it's the real address of code (.text) segment?

> True.  Somehow we should make the load address of a shared library
> available.

Should we use segments in "info files" when available?

Are the "info files" reported the same result as "readelf" or "info shared"?


--
Daniel Jacobowitz
CodeSourcery



Regards,
Eric


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