I wrote a script that wraps GDB and is able to extract a stack trace and
all relevant data (func args, globals, locals, instance vars) to help
debugging apps that get stuck.
Take a look at http://www.piels.com/PyDumper.html
If there's something better out there, please let me know!
Thanks,
Bobby