Created
November 6, 2015 16:41
-
-
Save zhangyoufu/ad6f4fe50fe38c70c46a to your computer and use it in GitHub Desktop.
gdb remote debugging android, w/o tcp forwarding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: | |
# (gdb) target extended-remote | ./gdbserver.sh | |
(echo 'stty raw -echo; exec gdbserver --multi - 2>/dev/nul'; cat) | adb shell | stdbuf -o0 dos2unix | (read -r; read -r; cat) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment