view all the memory allocated to a process ?
Jan Kratochvil
jan.kratochvil@redhat.com
Mon Nov 16 10:17:00 GMT 2009
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
More information about the Gdb
mailing list