Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
while trying to print map iterator value in gdb, I got following error:
(gdb) p map_it->first
operator-> konnte nicht gefunden werden. (English: operator-> could not be found.)
(gdb) p map_it->second.startVal
operator-> konnte nicht gefunden werden.
But the same expression can be used without any problem:
while (map_it != lineData.end()) {
colStart[map_it->first] = map_it->second.startVal;
++map_it;
I use gdb on Ubuntu: GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
How can this problem be avoided? Many thanks for any suggestion!
Weichao
–
–
–
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.