Ticket #7622: debugserver.diff
File debugserver.diff, 1.9 KB (added by , 13 years ago) |
---|
-
src/servers/debug/Jamfile
15 15 libbe.so # Haiku libbe 16 16 libdebug.so 17 17 $(TARGET_LIBSTDC++) 18 $(HAIKU_LOCALE_LIBS) 18 19 ; 20 21 DoCatalogs debug_server : 22 x-vnd.Haiku-debug_server 23 : 24 DebugServer.cpp 25 ; 26 -
src/servers/debug/DebugServer.cpp
16 16 #include <AppMisc.h> 17 17 #include <AutoDeleter.h> 18 18 #include <Autolock.h> 19 #include <Catalog.h> 19 20 #include <debug_support.h> 20 21 #include <Entry.h> 21 22 #include <Invoker.h> 23 #include <Locale.h> 22 24 23 25 #include <RegistrarDefs.h> 24 26 #include <RosterPrivate.h> … … 27 29 #include <util/DoublyLinkedList.h> 28 30 29 31 32 #undef B_TRANSLATE_CONTEXT 33 #define B_TRANSLATE_CONTEXT "DebugServer" 34 30 35 #define USE_GUI true 31 36 // define to false if the debug server shouldn't use GUI (i.e. an alert) 32 37 … … 569 574 _NotifyAppServer(fTeam); 570 575 _NotifyRegistrar(fTeam, true, false); 571 576 572 char buffer[1024];573 snprintf(buffer, sizeof(buffer), "The application:\n\n %s\n\n"577 BString buffer( 578 B_TRANSLATE("The application:\n\n %app\n\n" 574 579 "has encountered an error which prevents it from continuing. Haiku " 575 "will terminate the application and clean up.", fTeamInfo.args); 580 "will terminate the application and clean up.")); 581 buffer.ReplaceFirst("%app", fTeamInfo.args); 576 582 577 583 // TODO: It would be nice if the alert would go away automatically 578 584 // if someone else kills our teams. 579 BAlert *alert = new BAlert(NULL, buffer, "Debug", "OK", NULL, 585 BAlert *alert = new BAlert(NULL, buffer.String(), 586 B_TRANSLATE("Debug"), B_TRANSLATE("OK"), NULL, 580 587 B_WIDTH_AS_USUAL, B_WARNING_ALERT); 581 588 int32 result = alert->Go(); 582 589 kill = (result == 1);