Author: sewardj
Date: 2007-11-24 21:24:25 +0000 (Sat, 24 Nov 2007)
New Revision: 7205

Log:
Don't let the debugger attachment fail silently in some cases.

Modified:
   trunk/coregrind/m_debugger.c


Modified: trunk/coregrind/m_debugger.c
===================================================================
--- trunk/coregrind/m_debugger.c        2007-11-23 22:37:35 UTC (rev 7204)
+++ trunk/coregrind/m_debugger.c        2007-11-24 21:24:25 UTC (rev 7205)
@@ -295,11 +295,17 @@
          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);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to