Tuesday, October 25, 2011

gdb-7.3.1 on Snow Leopard

I was updating the default gdb debugger on Snow Leopard (version 6.3.50) to a more current one (7.3.1), because I need better support for the STL.

The source compilation was OK. But, the executable should be signed in order to work (A security measure). This is well explained on http://sourceware.org/gdb/wiki/BuildingOnDarwin . After that, I can call ddd as:

ddd --debugger "/usr/local/bin/gdb-7.3.1" ./test.x

Of course, this implies I have configured/compiled gdb as:
./configure --prefix=/usr/local --with-python


The last flag is to active python pretty printers for stl containers inside gdb.

No comments:

Post a Comment