am c36f41fd: Merge "Support gdb wrappers"

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

View file

@ -773,6 +773,11 @@ function stacks()
fi
}
function gdbwrapper()
{
$ANDROID_TOOLCHAIN/$GDB -x "$@"
}
function gdbclient()
{
local OUT_ROOT=$(get_abs_build_var PRODUCT_OUT)
@ -829,7 +834,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