1
問題很簡單。我有我的Firebreath創建的插件,並且想要在Linux中使用gdb
來調試我的* API.cpp文件。在Linux中使用gdb調試Firebreath
是的,我已經閱讀this文章,我得到這個PID:
30227 0.0 0.4 115024 12300 pts/2 Sl+ 00:03 0:00 /usr/lib/chromium/chromium --type=plugin --plugin-path=/home/USER/Documents/mycode/0.1/npMyPlugin.so
當我gdb
打開我總是得到一個類似的輸出是這樣的:
Reading symbols from /usr/lib/libpcrecpp.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpcrecpp.so.0
Reading symbols from /usr/lib/libssh2.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libssh2.so.1
Reading symbols from /usr/lib/libssl.so.1.0.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libssl.so.1.0.0
Reading symbols from /usr/lib/libcrypto.so.1.0.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcrypto.so.1.0.0
可能不是正確的處理。任何想法?
謝謝先進。
更新 - 忽略消息 謝謝你們的意見。嗯,我忽略了消息,並做了以下內容:
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n)
Program not restarted.
(gdb) b 328
No line 328 in the current file.
Make breakpoint pending on future shared library load? (y or n)
所以基本上gdb
加載我MyPlugin.cpp,而不是我MyPluginAPI.cpp。任何想法?
這些只是警告。那之後gdb不工作嗎?如果是這樣,它給你什麼樣的實際錯誤? – Mat 2012-04-17 05:03:33
這隻告訴你,沒有調試符號可以找到的庫 - 沒有問題,這是沒有問題,只要你不想調試到庫代碼,你可能不希望反正。 – hochl 2012-04-17 09:50:41
我已經使用更新編輯了原稿。 – 2012-04-18 02:01:32