[Lazarus] Viewing stack content

Martin lazarus at mfriebe.de
Thu Aug 9 16:05:00 CEST 2012


On 09/08/2012 15:01, Mark Morgan Lloyd wrote:
> Martin wrote:
>> If you mean raw memory
>>
>> depends on cpu. Intel with esp, add a watch, set to memory dump:
>>   ^Byte($esp)[-20]
>>
>> starts 20 bytes before esp
>
> Thanks, I think that'll do. I'm trying to sort out a shared library 
> call- the interface to the library is working properly but I suspect a 
> higher-level shim is confusing a pointer and a value somewhere.
>

If you wont words, and use laz trunk, instead of memory-dump, you can 
set the watches "repeat count" to see multiple indexed elements, 
following the given one.

Then you can typecast ^word. The index is not in bytes, but whatever the 
size of the specified type




More information about the Lazarus mailing list