am 4f499fba: am c36f41fd: Merge "Support gdb wrappers"

* commit '4f499fba73dd7bc04248f310df9b8b90f93d5de8':
  Support gdb wrappers
This commit is contained in:
Ying Wang 2013-03-11 09:26:06 -07:00 committed by Android Git Automerger
commit bacedf66d2

View file

@ -825,6 +825,11 @@ function stacks()
fi
}
function gdbwrapper()
{
$ANDROID_TOOLCHAIN/$GDB -x "$@"
}
function gdbclient()
{
local OUT_ROOT=$(get_abs_build_var PRODUCT_OUT)
@ -892,7 +897,7 @@ function gdbclient()
echo >>"$OUT_ROOT/gdbclient.cmds" "target remote $PORT"
echo >>"$OUT_ROOT/gdbclient.cmds" ""
$ANDROID_TOOLCHAIN/$GDB -x "$OUT_ROOT/gdbclient.cmds" "$OUT_EXE_SYMBOLS/$EXE"
gdbwrapper "$OUT_ROOT/gdbclient.cmds" "$OUT_EXE_SYMBOLS/$EXE"
else
echo "Unable to determine build system output dir."
fi