Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
some_shared_library.soのソース コードをに追加する方法gdb。
some_shared_library.so
gdb
dirコマンドを使用しようとしましたが、役に立ちませんでした。
dir
GDB がどのソースがあなたの に一致するかを知るために、デバッグ情報 (通常はフラグ)some_shared_library.soを使用してビルドする必要があります。-g
-g
これを行うと (まだ行っていないように思えますが)、多くのプラットフォーム (Linux など) では、GDB が自動的にソースを見つけます。他のプラットフォームでdirは、GDB にソースの場所を伝える正しいコマンドです。