debugging stl with gdb

I was trying to write a simple program for this problem: Hashit at spoj.pl on code::blocks on a windows system using mingw compiler. Building a hash map was easy enough, though I hadn’t written one before, but when I had an vector > object, that became almost impossible to debug.

I remember using gdb to debug applications on linux at work, and that is useful enough, I don’t know why I’m not able to see why I can’t read the data in my vectors. Oh well, cout to the rescue.

Anyone know a good way to debug stl with gdb, and since I’m on windows the commandline version is just painful.

4 Responses to “debugging stl with gdb”


Leave a Reply