Wednesday, May 21, 2014

FreeBSD ports compile with DEBUG symbols (so you can gdb the core files later ;)

make WITH_DEBUG=yes STRIP= install

After this, if your port's executable generates a core file you can do
gdb /usr/local/bin/(port executable name) ~/(port executable name).core

No comments: