Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* What exactly does "info sharedlibrary" command show?
@ 2006-08-29 12:03 chen free
  2006-08-29 12:40 ` Daniel Jacobowitz
  2006-08-29 12:47 ` Frederic RISS
  0 siblings, 2 replies; 17+ messages in thread
From: chen free @ 2006-08-29 12:03 UTC (permalink / raw)
  To: gdb

Hi, all

Recently I'm looking for a proper method of finding the memory usage
of shared library of a specific program, and from the manual of GDB, I
found "info sharedlibrary" command.

However, I'm curious about the display of its result. Does anyone know
the meaning of memory address reported by GDB? Something like:
============

From        To          Syms Read   Shared Object Library
0x005cfc00  0x006bf800  Yes         /lib/tls/libc.so.6
0x0059e7a0  0x005b010f  Yes         /lib/ld-linux.so.2

============
I believe they are not the physical address, right?

If they are virtual memory address, why they are different from the
info from /proc/{PID}/maps? the {PID} is the specific program process
ID.

============
Contents of "maps"

0x0059e000  0x005b3000 r-xp    00000000 fd:00 3605642    /lib/ld-2.3.4.so
0x005b3000  0x005b4000 r--p    00014000 fd:00 3605642    /lib/ld-2.3.4.so
0x005b4000  0x005b5000 rw-p    00015000 fd:00 3605642    /lib/ld-2.3.4.so
0x005bb000  0x006de000 r-xp    00000000 fd:00 3605643    /lib/tls/libc-2.3.4.so
0x006de000  0x006df000 r--p    00123000 fd:00 3605643    /lib/tls/libc-2.3.4.so
0x006df000  0x006e2000 rw-p    00124000 fd:00 3605643    /lib/tls/libc-2.3.4.so
0x006e2000  0x006e4000 rw-p    006e2000 00:00 0
0x08048000  0x08049000 r-xp    00000000 00:2f 1025644    /home/Simple
0x08049000  0x0804a000 rw-p    00000000 00:2f 1025644    /home/Simple
0xb7fe2000  0xb7fe3000 rw-p    b7fe2000 00:00 0
0xb7fff000  0xb8000000 rw-p    b7fff000 00:00 0
0xbff63000  0xc0000000 rw-p    bff63000 00:00 0
0xffffe000  0xfffff000 ---p    00000000 00:00 0
============

Thanks in advance!

BRs,
Eric


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-08-30 13:24 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-29 12:03 What exactly does "info sharedlibrary" command show? chen free
2006-08-29 12:40 ` Daniel Jacobowitz
2006-08-29 19:15   ` Mark Kettenis
2006-08-29 19:28     ` Daniel Jacobowitz
2006-08-29 20:06       ` Mark Kettenis
2006-08-29 20:12         ` Daniel Jacobowitz
2006-08-29 21:05           ` Steve Eaton
2006-08-29 21:17             ` Daniel Jacobowitz
2006-08-29 21:08           ` Mark Kettenis
2006-08-29 21:24             ` Daniel Jacobowitz
2006-08-30  5:22           ` chen free
2006-08-30 12:39             ` Daniel Jacobowitz
2006-08-30 13:24               ` chen free
2006-08-29 12:47 ` Frederic RISS
2006-08-29 13:00   ` chen free
2006-08-29 13:20     ` Frederic RISS
2006-08-29 13:36       ` chen free

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox