"(gdb) bt (bt = backtrace .. prints stack strace) with this backtrace you’ll now know *exactly* where the program segfaulted. The code file, line number and the call which was the culprit. You can even analyze variable values on any frame. Just change to that frame: (gdb) frame {num} eg. (gdb) fra

rawwellrawwell のブックマーク 2009/05/25 17:11

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Debugging a segmentation fault using gdb

    I am not a big proponent of gdb. If you *really* know what you are doing, gdb shouldn’t be required. But, every now and then, you come across code that has used function pointers exclusively and th...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう