GDB STL Utilities

There's a wonderful tool by Gilad Mishne for debugging STL code with GDB. Unfortunately, it had some bugs (or perhaps incompatibilities with my versions of GCC/GDB). So I've fixed these bugs and repackaged it in a slightly more user-friendly format.

Download gdb_stl_utils.tar.gz, extract it, and run make. This will compile and install the necessary files in ~/.gdb (edit the Makefile if you want to use a different directory). To use the p_stl_* functions, add:

source ~/.gdb/gdb_stl_utils

to your ~/.gdbinit.

I've tested this with GCC 3.3.3 and 3.4.0, and GDB 6.0. Let me know if you have any problems with it!