Mac 10.6 GDB stack trace hack

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mac 10.6 GDB stack trace hack

Patrick Walton
If you're like me and going crazy at the lack of usable Rust stack
traces in Mac OS X, I prepared a binary patch to the system GDB. Steps
to use:

1. Download the patch and save to apple-gdb.bsdiff
2. $ brew install bsdiff
3. $ bspatch /usr/libexec/gdb/gdb-i386-apple-darwin my-gdb apple-gdb.bsdiff
4. Follow the instructions here to create a custom code signing cert:
http://sourceware.org/gdb/wiki/BuildingOnDarwin
5. $ codesign -f -s gdb-cert my-gdb

Then use my-gdb to debug Rust, and enjoy your stack traces!

Patrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apple-gdb.bsdiff
Type: application/octet-stream
Size: 2426 bytes
Desc: not available
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20101217/14d8adb4/attachment.obj>