From 42e0d2a1d57bce6f353207a6017156581ab26651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 29 Oct 2009 15:37:06 +0000 Subject: [PATCH] more output --- library/DFProcess.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/DFProcess.cpp b/library/DFProcess.cpp index 6def32be5..ccbe55ef4 100644 --- a/library/DFProcess.cpp +++ b/library/DFProcess.cpp @@ -86,14 +86,16 @@ bool Process::attach() { return false; } + cout << "Attach_start" << endl; // can we attach? if (ptrace(PTRACE_ATTACH , my_handle, NULL, NULL) == -1) - { + { // no, we got an error perror("ptrace attach error"); cerr << "attach failed on pid" << my_handle << endl; return false; } + cout << "Attach_after_ptrace" << endl; int status; while(true) { @@ -113,12 +115,13 @@ bool Process::attach() break; } } - //cout << "Managed to attach to pid " << my_handle << endl; + cout << "Managed to attach to pid " << my_handle << endl; attached = true; g_pProcess = this; g_ProcessHandle = my_handle; g_ProcessMemFile = open(memFile.c_str(),O_RDONLY); + cout << "Attach_after_opening /proc/PID/mem" << endl; return true; // we are attached }