Skip to content

Instantly share code, notes, and snippets.

@zhangyoufu
Created November 6, 2015 16:41
Show Gist options
  • Save zhangyoufu/ad6f4fe50fe38c70c46a to your computer and use it in GitHub Desktop.
Save zhangyoufu/ad6f4fe50fe38c70c46a to your computer and use it in GitHub Desktop.
gdb remote debugging android, w/o tcp forwarding
#!/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