Small fixes
This commit is contained in:
parent
79fc0df281
commit
435b3cd001
@ -348,6 +348,9 @@ if(CPPTRACE_UNWIND_WITH_WINAPI)
|
||||
endif()
|
||||
|
||||
if(CPPTRACE_UNWIND_WITH_DBGHELP)
|
||||
if(NOT HAS_STACKWALK)
|
||||
message(WARNING "Cpptrace: CPPTRACE_UNWIND_WITH_DBGHELP specified but dbghelp stackwalk64 doesn't seem to be available.")
|
||||
endif()
|
||||
target_compile_definitions(cpptrace PUBLIC CPPTRACE_UNWIND_WITH_DBGHELP)
|
||||
target_link_libraries(cpptrace PRIVATE dbghelp)
|
||||
endif()
|
||||
|
||||
@ -50,7 +50,7 @@ namespace detail {
|
||||
"label:\n\t"
|
||||
"mov{l %%ebp, %[cEbp] | %[cEbp], ebp};\n\t"
|
||||
"mov{l %%esp, %[cEsp] | %[cEsp], esp};\n\t"
|
||||
"mov{l $label, %%eax | eax, label};\n\t"
|
||||
"mov{l $label, %%eax | eax, OFFSET label};\n\t"
|
||||
"mov{l %%eax, %[cEip] | %[cEip], eax};\n\t"
|
||||
: [cEbp] "=r" (context.Ebp),
|
||||
[cEsp] "=r" (context.Esp),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user