問題は単純です。gdb
プラグインをFirebreathで作成しましたが、Linuxで*API.cppファイルをデバッグしたいと思います。
はい、私はすでにこの記事を読みました、そして私はこの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
は、MyPluginAPI.cppではなくMyPlugin.cppをロードします。何か案が?