am c4a09654: Merge "Fixed pathname for connecting to debugger."
* commit 'c4a09654cc2c91ad27f7d29d4584bec58d75e9f8':
Fixed pathname for connecting to debugger.
diff --git a/debuggerd/debuggerd.cpp b/debuggerd/debuggerd.cpp
index ac0c36b..fc13977 100644
--- a/debuggerd/debuggerd.cpp
+++ b/debuggerd/debuggerd.cpp
@@ -67,16 +67,6 @@
exe[count] = '\0';
}
- // Turn "/system/bin/app_process" into "app_process".
- // gdbserver doesn't cope with full paths (though we should fix that
- // and remove this).
- char* name = strrchr(exe, '/');
- if (name == NULL) {
- name = exe; // No '/' found.
- } else {
- ++name; // Skip the '/'.
- }
-
// Explain how to attach the debugger.
ALOGI("********************************************************\n"
"* Process %d has been suspended while crashing.\n"
@@ -88,7 +78,7 @@
"* Wait for gdb to start, then press the VOLUME DOWN key\n"
"* to let the process continue crashing.\n"
"********************************************************\n",
- pid, name, pid);
+ pid, exe, pid);
// Wait for VOLUME DOWN.
if (init_getevent() == 0) {