zachriggle/pwntools — pull request #1 by thebarbershopper (2014-10-29 23:25:24+00:00)
Title: Fix gdb to work with local binary

Just a quick fix for gdb.debug working with local binaries.

I realized that gdb.attach returned None, so I returned the binary process instead. Also, misc.which(args[0]) will return gdbserver, when the spawned gdb needs to be looking at the binary instead.

Thank you again for this fork.