Reply To: Unable to debug std::map when cmake is configured with flag -std=c++11

Sysprogs forums Forums VisualGDB Unable to debug std::map when cmake is configured with flag -std=c++11 Reply To: Unable to debug std::map when cmake is configured with flag -std=c++11

#7475
marrtin
Participant

Hi

Ok let me divide this problem on two separate. The second breakpoint problem occurs today no more in my application. It occured probably when sometimes run the debugged service twice in my enviroment (on instance with GDB and on instance without GDB – Clients had then two same services). VisualGDB was 99.9% not the cause. Sorry Sorry.

Now the first problem which I would like to fix. I hope that this helps more people because I am sure that this is very useful feature. So here is my sample code

typedef std::map< int32_t, std::string > HandleValueMap;
int main( int argc, char* argv[] )
{
    HandleValueMap h = {{1,"ss"},{2,"xx"}};
    int k = 0;
}

I hit the breakpoint in the first line. I sent you gdb.log for gdb commands and gdb1.log for gdb answer until breakpoint was hit. Then I cleared log and I stepped over to the second line and I sent you gdbr.log for gdb commands and gdbr1.log for gdb answer. The Gdb log files was sent on your support email. I am unable to find here how to attach file.

I hope that this helps.
Thanks