諸行無常

IT色々お勉強中のブログ

mac mojaveでgdbが動かない、、

gdbのバージョンが新しいと動かないらしいんでバージョン下げた

brew unlink gdb
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9ec9fb27a33698fc7636afce5c1c16787e9ce3f3/Formula/gdb.rb

brew pin gdb

HighSierra以降は以下設定が必要

 echo "set startup-with-shell off" >> ~/.gdbinit

rcmdnk.com

このgdb32bitしか動かん奴やん、、、

(gdb) run
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.

stackoverflow.com