Fix stupid tabs.
Thanks, QtCreator... ._.
This commit is contained in:
parent
4f6cd65c13
commit
aefa73ad11
@ -38,7 +38,7 @@ size_t getBacktrace(StackFrame *stack, size_t size, CONTEXT ctx)
|
|||||||
// This tracks whether the current EBP is valid.
|
// This tracks whether the current EBP is valid.
|
||||||
// When an invalid EBP is encountered, we stop walking the stack.
|
// When an invalid EBP is encountered, we stop walking the stack.
|
||||||
bool validEBP = true;
|
bool validEBP = true;
|
||||||
DWORD ebp = ctx.Ebp; // The current EBP (Extended Base Pointer)
|
DWORD ebp = ctx.Ebp; // The current EBP (Extended Base Pointer)
|
||||||
DWORD eip = ctx.Eip;
|
DWORD eip = ctx.Eip;
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < size; i++)
|
for (i = 0; i < size; i++)
|
||||||
@ -57,7 +57,7 @@ size_t getBacktrace(StackFrame *stack, size_t size, CONTEXT ctx)
|
|||||||
BYTE* caller = !i ? (BYTE*)eip : *((BYTE**) ebp + 1);
|
BYTE* caller = !i ? (BYTE*)eip : *((BYTE**) ebp + 1);
|
||||||
// The first ebp is the EBP from the CONTEXT.
|
// The first ebp is the EBP from the CONTEXT.
|
||||||
// On successive iterations, the EBP is the DWORD that the previous EBP points to.
|
// On successive iterations, the EBP is the DWORD that the previous EBP points to.
|
||||||
ebp = !i ? ebp : *(DWORD*)ebp;
|
ebp = !i ? ebp : *(DWORD*)ebp;
|
||||||
|
|
||||||
// Find the caller's module.
|
// Find the caller's module.
|
||||||
// We'll use VirtualQuery to get information about the caller's address.
|
// We'll use VirtualQuery to get information about the caller's address.
|
||||||
|
Loading…
Reference in New Issue
Block a user