■
gオプションのないバイナリ相手のgdbの使い方
とりあえず
#gdb a.out
(gdb) run arg
-
- エラー発生
(gdb) bt
-
- バックトレース(呼び出しもとのアドレスのスタック)
#0 0x42079dc0 in strcpy () from /lib/i686/libc.so.6
#1 0x0804848f in strcpy ()
#2 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) disas 0x42079dc0
ディスアセンブル結果(ret)まで
この表記は?
(gdb) s ステップ実行
(gdb) disas *0x42079dc0 ブレークポイント設定
(gdb) info registers