Skip to content

Instantly share code, notes, and snippets.

@souvik1997
Created February 15, 2016 03:25
Show Gist options
  • Save souvik1997/89d4eafe698dfad9a88b to your computer and use it in GitHub Desktop.
Save souvik1997/89d4eafe698dfad9a88b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Usage: ./ppc64-debug.sh t0
PORT=$((10000+($RANDOM % 5000)))
qemu-ppc64 -g "$PORT" $1 &
/u/gheith/public/bin/ppc64-linux-gdb -iex "target extended-remote localhost:$PORT" -s $1
kill $! 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment