[fpc-devel] What is / Where originates : FLAG_TRACE_BIT = $100; { our own invention } IN rtl\win\wininc\defines.inc

Martin Frb lazarus at mfriebe.de
Tue Apr 1 19:47:27 CEST 2014

On 01/04/2014 18:44, Dmitry Boyarintsev wrote:
> To add to that.
> *nixes are using ptrace() function and PTRACE_SINGLESTEP request.
> I do believe that setting EFlag (FLAG_TRACE_BIT for x86 machines) 
> would work for *nix systems (didn't try myself), but respecting 
> defined API is always a better approach.

I was mainly about win64.
I had mainly googled it as an argument to the windows API (which was 
where I had found it in fpdebug code), and I found nothing on msdn.

Anyway, If it exists for 64 bits, should/can it be added to 
rtl\win\wininc\defines.inc same as it is for 32 bit?

> On Mon, Mar 31, 2014 at 9:58 PM, Dmitry Boyarintsev 
> <skalogryz.lists at gmail.com <mailto:skalogryz.lists at gmail.com>> wrote:
>     http://en.wikipedia.org/wiki/FLAGS_register
>     It's a trap (single-step) flag. to stop after each instruction.
>     (IIRC with some exceptions).
>     I'd think it should be AMD64 compatible.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140401/7f3a9a8f/attachment.html>

More information about the fpc-devel mailing list