先记录几篇不错的文章,后面再来补充下
https://github.com/selfboot/CS_Offer/blob/master/C%2B%2B/GDB_Debug.md
https://deepzz.com/post/gdb-debug.html gdb调试
http://www.vimer.cn/2009/11/07/shi-yong-gdbdiao-shi-cheng-xu-xiang-jie/
小技巧:
[gdb查看shared_ptr](https://blog.youkuaiyun.com/cao19881125/article/details/433411650
p ((TestClassA*)test_ptr)->name # 即需要将shared_ptr指针强转成原生类型指针
查看数组变量:
Try print by inner member of the vector.
print *(x._M_impl._M_start+0) // 其中x为vector变量名