From 5661570266848dc7da7131e26f02bdfec392a9a5 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 3 Oct 2014 17:31:41 -0700 Subject: [PATCH] Do not call art-on macro by default. If you are debugging a native process, SIGSEGV gets ignored by default. The gdbclient bash function has been modified to only call the art-on macro when running gdbclient app_processXX. Also, print a warning in case someone is trying to debug a native process using app_process. Bug: 17815162 Change-Id: I0666e6713b0a03ee713be7827c5b671938f2c263 (cherry picked from commit 436b740b705c4316d3d5b73f04cdff9b8b8714e8) --- scripts/gdb/dalvik.gdb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/gdb/dalvik.gdb b/scripts/gdb/dalvik.gdb index 6ee8d1d71..6281661ef 100644 --- a/scripts/gdb/dalvik.gdb +++ b/scripts/gdb/dalvik.gdb @@ -71,6 +71,9 @@ define art-on set breakpoint pending auto printf "ART debugging mode is enabled.\n" + printf "If you are debugging a native only process, you need to\n" + printf "re-enable normal SIGSEGV handling using this command:\n" + printf " handle SIGSEGV print stop\n" set $art_debug_enabled = 1 else printf "ART debugging mode is already enabled.\n" @@ -104,7 +107,3 @@ document art-off Use the command "art-on" to enable ART debugging mode. end - -# switch on ART debugging -art-on -