aboutsummaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authoryaworsky <yaworsky>2005-09-16 10:22:18 +0000
committeryaworsky <yaworsky>2005-09-16 10:22:18 +0000
commitc08f69a923394c54d6d7172359d7b81101789f01 (patch)
treeeec1468dd0e43e6e14368d2b88ccd05049387fd2 /daemon
parent0ac4bd4fdf06aee63cfc529a561ac7f506f9ae1b (diff)
downloadsyslog-win32-c08f69a923394c54d6d7172359d7b81101789f01.tar.gz
syslog-win32-c08f69a923394c54d6d7172359d7b81101789f01.tar.xz
syslog-win32-c08f69a923394c54d6d7172359d7b81101789f01.zip
Added #ifdef for machine type in exception handler.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index eb77bb7..91e9087 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -387,6 +387,8 @@ LONG WINAPI exception_handler( PEXCEPTION_POINTERS ei )
for( i = 0; i < ei->ExceptionRecord->NumberParameters; i++ )
fprintf( stderr, "\t%lX\n", ei->ExceptionRecord->ExceptionInformation[i] );
+#if defined(_X86_)
+
fprintf( stderr,
"ContextFlags=%lX\n"
"CS=%lX DS=%lX ES=%lX SS=%lX FS=%lX GS=%lX\n"
@@ -412,6 +414,11 @@ LONG WINAPI exception_handler( PEXCEPTION_POINTERS ei )
ei->ContextRecord->EFlags );
addr = (LPBYTE) (ei->ContextRecord->Esp);
+
+#else
+ fprintf( stderr, "FIXME: add more machines\n" );
+#endif
+
while( !IsBadReadPtr( addr, 16 ) )
{
int skip = ((DWORD) addr) & 15;