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.
たとえば、GDBを開くたびに設定するオプションがいくつかあります。
set print thread-events off
これらのオプションをデフォルトで設定する方法はありますか? おそらく .gdb_rc ファイルのようなものですか?
の初期化ファイルgdbは.gdbinit. 必要なオプションをこのファイルに入れることができます。これらは gdb の起動時に自動的に実行されます。
gdb
.gdbinit
コンテンツの例:
# set command line argument to "2" set args 2
.gdbinitファイルを $HOME または現在のディレクトリに置くことができます。後者は、グローバル$HOME/.gdbinitファイルの設定を上書きします。
$HOME/.gdbinit