作者EEmuse2 (忘了密碼)
看板EE_DSnP
標題[問題] ddd
時間Fri Jan 12 22:06:43 2007
不好意思
對於DDD有點小問題麻煩大家...
我將test.cpp做成執行檔test後
打入ddd test在ddd內出現
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) file /home/B92/b2901068/bdd/src/bdd/test/test
(no debugging symbols found)
(gdb) run
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
我的程式是crash在BddNodeInt::decRefCount() 的記憶體錯誤
這是我為一知道的
但我要如何跟之前的code一樣打開 test.cpp的code?
現在想追為何crash of ./test...
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.121.203.115
→ EEmuse2:ok了 要刪掉多餘的.o檔... 01/12 22:13
→ EEmuse2:阿 還是不能 trace code..? 01/12 22:27
推 ric2k1:try "ddd ./test"; your default "test" maybe sth else. 01/12 23:14
→ ric2k1:do "which test"... 01/12 23:14
推 ric2k1:Another possibility is you didn't use "-g" for g++ 01/12 23:21
→ ric2k1:Try "g++ -o test -g test.cpp" 01/12 23:22