1 /* 2 * Copyright 2019, Adrien Destugues, pulkomandy@pulkomandy.tk. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef DEBUGWINDOW_H 7 #define DEBUGWINDOW_H 8 9 10 #include <Bitmap.h> 11 #include <Window.h> 12 13 14 enum { 15 kActionKillTeam, 16 kActionDebugTeam, 17 kActionWriteCoreFile, 18 kActionSaveReportTeam, 19 kActionPromptUser 20 }; 21 22 23 //#define HANDOVER_USE_GDB 1 24 #define HANDOVER_USE_DEBUGGER 1 25 26 #define USE_GUI true 27 // define to false if the debug server shouldn't use GUI (i.e. an alert) 28 29 class DebugWindow : public BWindow { 30 public: 31 DebugWindow(const char* appName); 32 ~DebugWindow(); 33 34 void MessageReceived(BMessage* message); 35 int32 Go(); 36 private: 37 static BRect IconSize(); 38 39 private: 40 BBitmap fBitmap; 41 sem_id fSemaphore; 42 int32 fAction; 43 }; 44 45 46 #endif /* !DEBUGWINDOW_H */ 47