This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: guessing where address belongs to
On Thu, 2008-03-06 at 07:38 +0200, Yakov Lerner wrote:
> Ok, I will try to spec it. Regarding guessing of the
> "heap objects", I have this question:
>
> Gdb has no integration with malloc, correct ?
> Gdb has no way of enumerating all malloced
> pieces ("heap objects"), correct ?
>
> Or gdb does have a way of guessing which "heap
> object" some address X (that points inside the heap) belongs to ?
Nope -- the heap is just a big opaque blob.
GDB has no knowledge of what's inside it, and in fact
you're doing well if you can figure out where and how big
it is.