]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't let the debugger attachment fail silently in some cases.
authorJulian Seward <jseward@acm.org>
Sat, 24 Nov 2007 21:24:25 +0000 (21:24 +0000)
committerJulian Seward <jseward@acm.org>
Sat, 24 Nov 2007 21:24:25 +0000 (21:24 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7205

coregrind/m_debugger.c

index 346d9e704c57715d73b6b242de5bded93799281b..04ab3ca06767d12f381b358ffc3694fdc2513934 100644 (file)
@@ -295,11 +295,17 @@ void VG_(start_debugger) ( ThreadId tid )
          if (res == 0) {      
             VG_(message)(Vg_UserMsg, "");
             VG_(message)(Vg_UserMsg, 
-                         "Debugger has detached.  Valgrind regains control.  We continue.");
+                         "Debugger has detached.  Valgrind regains control."
+                         "  We continue.");
          } else {
-            VG_(message)(Vg_UserMsg, "Apparently failed!");
+            VG_(message)(Vg_UserMsg, 
+                         "Warning: Debugger attach failed! (sys_system)");
             VG_(message)(Vg_UserMsg, "");
          }
+      } else {
+         VG_(message)(Vg_UserMsg, 
+                      "Warning: Debugger attach failed! (ptrace problem?)");
+         VG_(message)(Vg_UserMsg, "");
       }
 
       VG_(kill)(pid, VKI_SIGKILL);