From 8b3c26e60d7573aa5d5107f4d51a6b71ca58dd11 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 13 Oct 2009 14:38:51 +0200 Subject: lib/Plugins/CCpp.cpp: do not use temp file for gdb commands - use -ex CMD instead Signed-off-by: Denys Vlasenko --- src/Hooks/CCpp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Hooks/CCpp.cpp b/src/Hooks/CCpp.cpp index 5bbdc8a..e6768a6 100644 --- a/src/Hooks/CCpp.cpp +++ b/src/Hooks/CCpp.cpp @@ -181,7 +181,8 @@ int main(int argc, char** argv) dd.SaveText(FILENAME_CMDLINE, cmdline); dd.SaveText(FILENAME_REASON, std::string("Process was terminated by signal ") + signal_str); - snprintf(path + strlen(path), sizeof(path), "/%s", FILENAME_COREDUMP); + int len = strlen(path); + snprintf(path + len, sizeof(path) - len, "/"FILENAME_COREDUMP); int fd; /* We need coredumps to be readable by all, because -- cgit From 24efd6d2e6ac390c696c78bdfd0c5ee3d67c611b Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 13 Oct 2009 14:52:31 +0200 Subject: small fix in gui --- src/Gui/CCReporterDialog.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py index 1560464..eb311f7 100644 --- a/src/Gui/CCReporterDialog.py +++ b/src/Gui/CCReporterDialog.py @@ -80,9 +80,8 @@ class ReporterDialog(): # thu button has been pressed (probably) if response_id == gtk.RESPONSE_APPLY: if not self.check_settings(daemon): - print "smth is wrong" dialog.stop_emission("response") - self.wTree.get_widget("bApply").stop_emission("clicked") + self.wTree.get_widget("bSend").stop_emission("clicked") def on_send_toggled(self, cell, path, model): model[path][3] = not model[path][3] @@ -151,10 +150,10 @@ class ReporterDialog(): response = dialog.run() dialog.destroy() if response == gtk.RESPONSE_NO: - print "user cancelled reporting" + # user cancelled reporting return False if response == gtk.RESPONSE_YES: - print "user wants to proceed with report" + # "user wants to proceed with report" return True return True -- cgit