From: Julian Seward Date: Sat, 24 Nov 2007 21:24:25 +0000 (+0000) Subject: Don't let the debugger attachment fail silently in some cases. X-Git-Tag: svn/VALGRIND_3_3_0~86 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba878b5c54e8395885f2cd109703c8eb5f7d26b3;p=thirdparty%2Fvalgrind.git Don't let the debugger attachment fail silently in some cases. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7205 --- diff --git a/coregrind/m_debugger.c b/coregrind/m_debugger.c index 346d9e704c..04ab3ca067 100644 --- a/coregrind/m_debugger.c +++ b/coregrind/m_debugger.c @@ -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);