After placing the stl-views.gdb so that gdb picks up this file, i am able to print contents of map where its type are basic:
map<int,int> m1; //Or map<string,int> or some such basic type
m1. push_back(1,2)
m1. push_back(2,4);
In GDB:
pmap m1 int int //This works fine
But consider the following example : e.g.
map<string,vector<string>> m1;
m1["Node1"].push_back("N1S1");
m1["Node1"].push_back("N1S2");
m1["Node1"].push_back("N1S3");
m1["Node2"].push_back("N2S1");
m1["Node2"].push_back("N2S2");
m1["Node2"].push_back("N2S3");
In GDB:
pmap m1 string vector<string> //It says elem[0].right: No symbol "vector<string>" in current context
How do i print value of a key "Node1" . I am expecting it to print a vector of strings as N1S1 N1S2 and N1S3