[Issue 6024] Windows 2000 SP4 is not supported any more? And what is still supported?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 17 12:25:17 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6024



--- Comment #5 from Vladimir Panteleev <thecybershadow at gmail.com> 2011-05-17 12:21:10 PDT ---
(In reply to comment #4)
> (In reply to comment #2)
> > It looks like the RtlCaptureContext call can be replaced with some simple
> > assembler. All it needs is the contents of the EIP, EBP and ESP registers. Some
> > compilers offer intrinsics for special CPU registers, although I don't think
> > DMD does.
> 
> DMD has inline assembler, so this should be straightforward. What exactly is
> needed?

The contents of the EIP, EBP and ESP registers. (I only mentioned intrinsics
because they would be favorable to inline assembler.)

StackWalk64 also accepts a CONTEXT structure, which, according to its
documentation, is optional on x86, but may improve its behavior in certain
situations. Thus, RtlCaptureContext should still be used when it is available.

https://github.com/D-Programming-Language/druntime/blob/5098e60a74d5ff06aa808a5f02202f4762feac03/src/core/sys/windows/stacktrace.d#L288

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list