public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* examine memory coomand
@ 2012-08-20  8:27 John Smith
  2012-08-20  8:34 ` Jan Kratochvil
  0 siblings, 1 reply; 2+ messages in thread
From: John Smith @ 2012-08-20  8:27 UTC (permalink / raw)
  To: gdb

hi,
   when gdb try to get memory data  from "examine " command , is  it
get  data  from  pythical memory with a  "mov" operation  or from
memory map  file?


thanks!

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

* Re: examine memory coomand
  2012-08-20  8:27 examine memory coomand John Smith
@ 2012-08-20  8:34 ` Jan Kratochvil
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2012-08-20  8:34 UTC (permalink / raw)
  To: John Smith; +Cc: gdb

On Mon, 20 Aug 2012 10:27:12 +0200, John Smith wrote:
>    when gdb try to get memory data  from "examine " command , is  it
> get  data  from  pythical memory with a  "mov" operation  or from
> memory map  file?

Assuming GNU/Linux OS here.

It is read by PTRACE_PEEKDATA or from /proc/PID/mem.  It is virtual address
space of the process (not physical memory), as provided by kernel.


Jan

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

end of thread, other threads:[~2012-08-20  8:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-20  8:27 examine memory coomand John Smith
2012-08-20  8:34 ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).