[PATCH] [Windows] Implementing backtracing of self

Zachary Turner zturner at google.com
Wed Mar 4 22:06:33 PST 2015


I found a problem with my initial implementation.  MSDN says that on x64, a full CONTEXT structure is required.  So this patch was broken for x64.  Luckily I learned of a new function which I was previously unaware of, RtlCaptureContext().  It captures a context for the current thread which is exactly what we need.  This patch is updated to reflect these changes, and we now no longer require setjmp.

Will commit this tomorrow.


http://reviews.llvm.org/D8068

Files:
  lib/Support/Windows/Signals.inc

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8068.21256.patch
Type: text/x-patch
Size: 7826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150305/6c762b95/attachment.bin>


More information about the llvm-commits mailing list