/* * Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk. * Distributed under the terms of the MIT License. */ #ifndef DEBUGWINDOW_H #define DEBUGWINDOW_H #include #include enum { kActionKillTeam, kActionDebugTeam, kActionWriteCoreFile, kActionSaveReportTeam, kActionPromptUser }; //#define HANDOVER_USE_GDB 1 #define HANDOVER_USE_DEBUGGER 1 #define USE_GUI true // define to false if the debug server shouldn't use GUI (i.e. an alert) class DebugWindow : public BWindow { public: DebugWindow(const char* appName); ~DebugWindow(); void MessageReceived(BMessage* message); int32 Go(); private: static BRect IconSize(); private: BBitmap fBitmap; BButton* fOKButton; sem_id fSemaphore; int32 fAction; }; #endif /* !DEBUGWINDOW_H */