From 855d27f6297966ac0576a57cd9b0c931d4a30fb6 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Fri, 3 Oct 2014 17:29:27 -0700 Subject: [PATCH] Call art-on only when debugging ART processes. If you are debugging a native process, SIGSEGV gets ignored by default. Make it so that the special ART gdb macro is only called when debugging app_processXX. Bug: 17815162 Change-Id: Idba86860dfd94e7483f2668beeb76b3e6032fb34 --- envsetup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index 2dc29ce63..a9bd707c0 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1046,6 +1046,10 @@ function gdbclient() echo >>"$OUT_ROOT/gdbclient.cmds" "set solib-search-path $OUT_SO_SYMBOLS:$OUT_SO_SYMBOLS/hw:$OUT_SO_SYMBOLS/ssl/engines:$OUT_SO_SYMBOLS/drm:$OUT_SO_SYMBOLS/egl:$OUT_SO_SYMBOLS/soundfx:$OUT_VENDOR_SO_SYMBOLS:$OUT_VENDOR_SO_SYMBOLS/hw:$OUT_VENDOR_SO_SYMBOLS/egl" echo >>"$OUT_ROOT/gdbclient.cmds" "source $ANDROID_BUILD_TOP/development/scripts/gdb/dalvik.gdb" echo >>"$OUT_ROOT/gdbclient.cmds" "target remote $PORT" + # Enable special debugging for ART processes. + if [[ $EXE =~ (^|/)(app_process|dalvikvm)(|32|64)$ ]]; then + echo >> "$OUT_ROOT/gdbclient.cmds" "art-on" + fi echo >>"$OUT_ROOT/gdbclient.cmds" "" local WHICH_GDB=