- (WSL)Ubuntu 18.04
- Windows 10 home
でgdbを使用しています。
.gdbinitをホームディレクトリ以下に配置すると、gdb上で定型文を自動実行できるそうなのですが、
/mnt/c/Users/****/Lik/asm/以下で
gdb test(オブジェクトファイル)
を実行すると
gdb
1warning: /home/****/.gdbinit: Permission denied 2warning: File "/mnt/c/Users/****/Lik/asm/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". 3To enable execution of this file add 4 add-auto-load-safe-path /mnt/c/Users/****/Lik/asm/.gdbinit 5line to your configuration file "/home/****/.gdbinit". 6To completely disable this security protection add 7 set auto-load safe-path / 8line to your configuration file "/home/****/.gdbinit". 9For more information about this security protection see the 10"Auto-loading safe path" section in the GDB manual. E.g., run from the shell: 11 info "(gdb)Auto-loading safe path"
と出て.gdbinitが有効になりません。
/home/****/.gdbinitは
gdbinit
1add-auto-load-safe-path /mnt/c/Users/****/Lik/asm/.gdbinit 2set auto-load safe-path / 3disp/i $pc
となっています。
追加するべきものは追加していると思うのですが、どうすれば.gdbinitを自動で読み込めるでしょうか?
あなたの回答
tips
プレビュー