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.
私は Clang コンパイラを使用しており、それを使用して実行可能ファイルを作成しました。GDB を使用してデバッグしようとしています。ただし、gdbを初期化する際に、
gdb executable core
次のエラーが表示されます。
Dwarf Error: Cannot handle DW_FORM_flag_present in DWARF reader [in module /xxx/yyy/executable]
誰でもこのエラーについて考えていますか?
gdb が古すぎます。DW_FORM_flag_present は DWARF 4 の機能です。そのサポートは、2010 年 4 月に gdb に追加されました。少なくとも、GNU gdb には当てはまります。これがいつ Apple の gdb のフォークに追加されたのか、いつ追加されたのかはわかりません。