mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 00:57:50 +08:00
95252eadd6
* [stackwalker] add new port Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com> * Add note about the fix build patch already being submitted upstream. --------- Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com> Co-authored-by: Billy O'Neal (VC AIR) <bion@microsoft.com>
24 lines
1.3 KiB
Diff
24 lines
1.3 KiB
Diff
diff --git "a/Main/StackWalker/StackWalker.h" "b/Main/StackWalker/StackWalker.h"
|
|
index 67eb90575..e906dbc26 100644
|
|
--- "a/Main/StackWalker/StackWalker.h"
|
|
+++ "b/Main/StackWalker/StackWalker.h"
|
|
@@ -229,13 +229,11 @@ protected:
|
|
{ \
|
|
memset(&c, 0, sizeof(CONTEXT)); \
|
|
c.ContextFlags = contextFlags; \
|
|
- __asm { \
|
|
- call x \
|
|
- x: pop eax \
|
|
- mov c.Eip, eax \
|
|
- mov c.Ebp, ebp \
|
|
- mov c.Esp, esp \
|
|
- }; \
|
|
+ __asm call x \
|
|
+ __asm x: pop eax \
|
|
+ __asm mov c.Eip, eax \
|
|
+ __asm mov c.Ebp, ebp \
|
|
+ __asm mov c.Esp, esp \
|
|
} while (0);
|
|
// clang-format on
|
|
#endif
|