[Lazarus] Viewing stack content
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Thu Aug 9 17:14:19 CEST 2012
Martin wrote:
> 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
Thanks, I'll try that later. I noticed the checkbox on the non-trunk
version on this machine, but it doesn't yet have any effect.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list