This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb routines for some stl containers


Hi,

I am fairly new to this discussion list.  I have attached some gdb
routines for the following stl containers:

* hash_map - dumphmap

* hash_set - dumphset

* map - dumpmap

* set - dumpset

* vector - dumpvec

* string - dumpstr

I have attached three versions of these rouitnes for each compiler
version respectively - g++2x, g++3x, and g++4x.

I found them useful in debugging various problems where stl was used
heavily - the bugs were largely in user code due to some mistaken
assumptions.

The map/set routines above only works for a particular version of g++
3.4.x - I had raised this question earlier:

http://gcc.gnu.org/ml/libstdc++/2006-06/msg00001.html

If time permits, I will add more to this list.

Regards,
Ravi

Attachment: gdbinit2x.txt
Description: Text document

Attachment: gdbinit3x.txt
Description: Text document

Attachment: gdbinit4x.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]