Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* view all the memory allocated to a process ?
@ 2009-11-16  8:29 nikos chistou
  2009-11-16 10:17 ` Jan Kratochvil
  0 siblings, 1 reply; 2+ messages in thread
From: nikos chistou @ 2009-11-16  8:29 UTC (permalink / raw)
  To: gdb


Hello ,
I'm new to GDB , and i'm thinking of using it for some cheat-engine related
tasks...

I want to know if there is a way to view all the memory allocated to a
process
(the regions or the offsets and their protection) , so i can dump it and
then compare the
results to find the right offset where the variable is stored.

Thanks in advance !

ps: sorry for my bad english.

-- 
View this message in context: http://old.nabble.com/view-all-the-memory-allocated-to-a-process---tp26362209p26362209.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.


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

* Re: view all the memory allocated to a process ?
  2009-11-16  8:29 view all the memory allocated to a process ? nikos chistou
@ 2009-11-16 10:17 ` Jan Kratochvil
  0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2009-11-16 10:17 UTC (permalink / raw)
  To: nikos chistou; +Cc: gdb

On Sun, 15 Nov 2009 20:12:12 +0100, nikos chistou wrote:
> I want to know if there is a way to view all the memory allocated to
> a process (the regions or the offsets and their protection)

this is offtopic for gdb.

And the standard glibc memory allocator does not provide allocated memory
introspection as it would reduce its performance.

You need to change the default allocator, you track the memory easily
yourself:
	info '(libc)Hooks for Malloc'
using some small .so loaded by:
(gdb) set env LD_PRELOAD=./myhook.so

Or rather check some tools like valgrind which may provide such functionality
out of the box (I do not know myself).


Regards,
Jan


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

end of thread, other threads:[~2009-11-15 19:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16  8:29 view all the memory allocated to a process ? nikos chistou
2009-11-16 10:17 ` Jan Kratochvil

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