Re: [dev-servo] PSA: Mac debugging tips for Servo and Stylo

2016-11-09 Thread Manish Goregaokar
make all-gdb and make install-gdb are faster fwiw (and need less deps installed) This is what I use on a mac: make all-gdb -j8 CXXFLAGS="-w -g" CFLAGS="-g" && make install-gdb && codesign -s gdb-cert ~/gdb/bin/gdb (need to ignore warnings because clang. Remove the -g if you're not hacking on gdb

Re: [dev-servo] PSA: Mac debugging tips for Servo and Stylo

2016-11-09 Thread Jim Blandy
If you're on Linux, GDB 7.12 has Rust support. Fedora hasn't packaged that yet, but I did this to get a fresh GDB that I can run from ~/gdb/bin: sudo dnf builddep binutils gdb mkdir ~/gdb cd ~/gdb git clone git://sourceware.org/git/binutils-gdb.git mkdir build cd build ../binutils-gdb/configure --

[dev-servo] PSA: Mac debugging tips for Servo and Stylo

2016-11-08 Thread Bobby Holley
First, make sure you're running XCode 8, since the lldb in XCode 7 is busted for Rust in various ways [1]. A while ago I set up my system with XCode 8 beta as a workaround, and then forgot about it. XCode 8 came out a while ago, but it doesn't auto-update. Second, the Rust optimization level for d