STL Support Tools

When you try to use GDB's "print" command to display the contents of a vector, a stack, or any other GDB abstract data structure, you will get useless results. Instead, download and install one of following tools to properly view the contents of STL containers from within GDB.

Automatic STL support

GDB does not yet have automatic support for STL types, but we're working on it:

The Python branch has pretty-printers for many libstdc++ types:

See PythonGdb for information on checking out the branch.

None: STLSupport (last edited 2008-12-02 18:52:58 by TomTromey)

All content (C) 2008 Free Software Foundation. For terms of use, redistribution, and modification, please see the WikiLicense page.