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.li...@gmail.com <mailto:skalogryz.li...@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.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel