List Info

Thread: which kind of memory does "x" command look into?




which kind of memory does "x" command look into?
user name
2006-08-30 05:55:31
Hi, All

As you know, in GDB there is a command "x" for
the purpose of looking
in to the contents of memory.

I did this:

$ GDB /boot/vmlinux
..............
..............
(GDB) x/10x 0xc0001234
(GDB) ........
          ........

As far as I know, "/boot/vmlinux" is an
uncompressed kernel image that
is in ELF format, right? So I guess the "x/10x
0xc0001234" command
just shows the kernel memory content which is provided by
vmlinux
file, not in real physical memory.

Could any buddy confirm my guess?

Thanks in advance!

Regards,
Eric
which kind of memory does "x" command look into?
user name
2006-08-30 12:39:51
On Wed, Aug 30, 2006 at 01:55:31PM +0800, chen free wrote:
> As far as I know, "/boot/vmlinux" is an
uncompressed kernel image that
> is in ELF format, right? So I guess the "x/10x
0xc0001234" command
> just shows the kernel memory content which is provided
by vmlinux
> file, not in real physical memory.

GDB has no way to deal with physical memory at all.  You're
looking at
the file contents.

-- 
Daniel Jacobowitz
CodeSourcery
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )