guessing where address belongs to

Andreas Schwab schwab@suse.de
Thu Mar 6 10:46:00 GMT 2008


"Yakov Lerner" <iler.ml@gmail.com> writes:

> 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 ?

The details are highly dependent on the malloc implementation.  There is
no way to find that out without intimate knowledge of the
implementation.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb mailing list