- added support for Asix Presto JTAG interface (thanks to Pavel Chromy and Asix for making this addition possible)
- added support for usbprog (thanks to Benedikt Sauter) - make OpenOCD listen for WM_QUIT messages on windows (thanks to Pavel Chromy) - register at_exit handler to do necessary unregistering (thanks to Pavel Chromy) - added dummy ETM capture driver to allow ETM to be registered without a capture driver git-svn-id: svn://svn.berlios.de/openocd/trunk@180 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -382,6 +382,12 @@ int server_loop(command_context_t *command_context)
|
||||
shutdown_openocd = 1;
|
||||
}
|
||||
}
|
||||
#else
|
||||
MSG msg;
|
||||
while (PeekMessage(&msg,NULL,0,0,PM_REMOVE))
|
||||
{
|
||||
if (msg.message==WM_QUIT) shutdown_openocd = 1;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -394,6 +400,10 @@ BOOL WINAPI ControlHandler(DWORD dwCtrlType)
|
||||
shutdown_openocd = 1;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void sig_handler(int sig) {
|
||||
shutdown_openocd = 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
int server_init()
|
||||
@@ -411,6 +421,11 @@ int server_init()
|
||||
}
|
||||
|
||||
SetConsoleCtrlHandler( ControlHandler, TRUE );
|
||||
|
||||
signal(SIGINT, sig_handler);
|
||||
signal(SIGTERM, sig_handler);
|
||||
signal(SIGBREAK, sig_handler);
|
||||
signal(SIGABRT, sig_handler);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user