diff options
author | Christopher Ferris <cferris@google.com> | 2014-10-03 17:31:41 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-10-03 17:31:41 -0700 |
commit | 436b740b705c4316d3d5b73f04cdff9b8b8714e8 (patch) | |
tree | 6f1019954e1da12674a15e0ae6b46e4283207f5f /scripts/gdb | |
parent | 3c0cd8cf154320a375f971ba1ce3be4497130837 (diff) | |
download | android_development-436b740b705c4316d3d5b73f04cdff9b8b8714e8.tar.gz android_development-436b740b705c4316d3d5b73f04cdff9b8b8714e8.tar.bz2 android_development-436b740b705c4316d3d5b73f04cdff9b8b8714e8.zip |
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
Diffstat (limited to 'scripts/gdb')
-rw-r--r-- | scripts/gdb/dalvik.gdb | 7 |
1 files 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 - |