how to print std::map value in gdb
- by Davit Siradeghyan
Hi all
I have a std::map< std::string, std::string cont;
I want to see cont[ "some_key" ] in gdb. When I'm trying 
p cont[ "some_ket" ] 
I'm getting this message: One of the arguments you tried to pass to operator[] could not be converted to what the function wants. 
I'm using GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh). Thanks