Using STL containers with GDB
Nick Roberts
nickrob@snap.net.nz
Tue Apr 22 22:13:00 GMT 2008
> So, yesterday, I decided myself to look at the code of GDB. After a
> quick look, I wrote this patch. I know that it's not very clean, and
> that it makes many assumptions about STL containers, and that it cannot
> be considered as a long term feature for GDB, but, believe me, it's very
> very usefull !
>
> Now, I can look at the content of list, vector, set, map, multiset,
> multimap and string simply with the classic "print" command of GDB.
The Python branch appears to work for executables compiled with Gcc only. I'm
curious to know if this approach will work for executables built using other
compilers?
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb-patches
mailing list