- Fixes to compile with GCC 4.5.0.
SVN r2660 (trunk)
This commit is contained in:
parent
4b817cfd8b
commit
a2573e4bb3
9 changed files with 65 additions and 16 deletions
|
|
@ -69,6 +69,54 @@
|
|||
#include <time.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#if defined(_WIN64) && defined(__GNUC__)
|
||||
struct KNONVOLATILE_CONTEXT_POINTERS {
|
||||
union {
|
||||
PDWORD64 IntegerContext[16];
|
||||
struct {
|
||||
PDWORD64 Rax;
|
||||
PDWORD64 Rcx;
|
||||
PDWORD64 Rdx;
|
||||
PDWORD64 Rbx;
|
||||
PDWORD64 Rsp;
|
||||
PDWORD64 Rbp;
|
||||
PDWORD64 Rsi;
|
||||
PDWORD64 Rdi;
|
||||
PDWORD64 R8;
|
||||
PDWORD64 R9;
|
||||
PDWORD64 R10;
|
||||
PDWORD64 R11;
|
||||
PDWORD64 R12;
|
||||
PDWORD64 R13;
|
||||
PDWORD64 R14;
|
||||
PDWORD64 R15;
|
||||
};
|
||||
};
|
||||
};
|
||||
typedef
|
||||
EXCEPTION_DISPOSITION
|
||||
NTAPI
|
||||
EXCEPTION_ROUTINE (
|
||||
struct _EXCEPTION_RECORD *ExceptionRecord,
|
||||
PVOID EstablisherFrame,
|
||||
struct _CONTEXT *ContextRecord,
|
||||
PVOID DispatcherContext
|
||||
);
|
||||
NTSYSAPI
|
||||
EXCEPTION_ROUTINE *
|
||||
NTAPI
|
||||
RtlVirtualUnwind (
|
||||
DWORD HandlerType,
|
||||
DWORD64 ImageBase,
|
||||
DWORD64 ControlPc,
|
||||
PRUNTIME_FUNCTION FunctionEntry,
|
||||
PCONTEXT ContextRecord,
|
||||
PVOID *HandlerData,
|
||||
PDWORD64 EstablisherFrame,
|
||||
KNONVOLATILE_CONTEXT_POINTERS *ContextPointers
|
||||
);
|
||||
#endif
|
||||
|
||||
// MACROS ------------------------------------------------------------------
|
||||
|
||||
#define REMOTE_HOST "localhost"
|
||||
|
|
@ -1312,7 +1360,7 @@ static void StackWalk (HANDLE file, void *dumpaddress, DWORD *topOfStack, DWORD
|
|||
}
|
||||
// If we reach a RIP of zero, this means we've walked off the end of
|
||||
// the call stack and are done.
|
||||
if (context.Rip == NULL)
|
||||
if (context.Rip == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue