Because the STL Containers are not basic data types such as int or array thus sometimes hard to directly display the value of a container such as vector in debug.
This is the source code in which you can see the function gdb_display is used to show the vector data when debug. Here is how to call it in gdb
According to the different vector passed into gdb_display, different vector shows.
No comments:
Post a Comment
Enter you comment