摘要: (先只记下我最常用的,以后随时补充)1.栈跟踪:backtrace用于查看程序经过哪些函数到达该断点:(gdb) backtrace#0 IntSetArray::IntSetArray (this=0xbfffefac, n=5, v=100) at set.cpp:53#1 0x08048ad6 in generate (numbers=5, maxValue=100) at set.cpp:339#2 0x08048d7d in main (argc=3, argv=0xbffff0b4) at set.cpp:3702查看变量: print i //后面,i可以是任意语法的变... 阅读全文
posted @ 2012-09-05 23:06 dandingyy 阅读(203) 评论(0) 推荐(0) 编辑