diff options
author | Brigid Smith <brigidsmith@google.com> | 2014-06-24 10:04:41 -0700 |
---|---|---|
committer | Brigid Smith <brigidsmith@google.com> | 2014-06-24 10:04:41 -0700 |
commit | 20c214f857ea97cfbfdd16c006601ff1369db0ca (patch) | |
tree | a12dddc1bfda9cc54894a7676af3f02be79c9e86 | |
parent | f473200d355a10dca1260948acc85bf059034768 (diff) | |
download | system_core-20c214f857ea97cfbfdd16c006601ff1369db0ca.zip system_core-20c214f857ea97cfbfdd16c006601ff1369db0ca.tar.gz system_core-20c214f857ea97cfbfdd16c006601ff1369db0ca.tar.bz2 |
Fixed pathname for connecting to debugger.
The debug output was still showing the pathname that worked with
gdbclient before my changes, and therefore did not work after the fact.
Change-Id: Ie12d79f5346088914ce0a70bda69780707b31d31
-rw-r--r-- | debuggerd/debuggerd.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
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 @@ static void wait_for_user_action(pid_t pid) { 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 @@ static void wait_for_user_action(pid_t pid) { "* 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) { |