This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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] |
On Thu, Jun 2, 2011 at 19:21, Tom Tromey <tromey@redhat.com> wrote: >>>>>> "Niko" == Niko Sams <niko.sams@gmail.com> writes: > > Niko> please take a look at the code and gdb output below. How can I get > Niko> the values from the map? ?it doesn't seem to give me "has_more". > > Please provide a complete session. ?Thanks. > see attached files Niko
Attachment:
debugsession
Description: Binary data
#include <map> #include <list> #include <string> int main() { std::map<std::string, std::list<std::string> > m; m["one"].push_back("a"); m["one"].push_back("b"); m["one"].push_back("c"); m["two"].push_back("1"); m["two"].push_back("2"); m["two"].push_back("3"); return 0; }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |