Reminder: Don't use ~ in the paths you pass here, as Bash wouldn't evaluate it!
Install it on your device:
adb push gdbserver /data/local || adb push gdbserver /data/local/tmp
On some Android models the /data/local is not writable so gdbserver needs to be pushed into /data/local/tmp/
==== Mac OS X ====
The gdbserver binary will be located at ''android-gdbserver-objdir/gdbserver''.
Install it on your device:
adb push gdbserver /data/local | adb push gdbserver /data/local/tmp
=== Create the moz-gdb directory ===