|
From: <sv...@va...> - 2007-11-24 21:24:26
|
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);
|