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

Attachment: apple-gdb.bsdiff
Description: Binary data

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to