Skip to content

Commit

Permalink
fix: Update gdb.json
Browse files Browse the repository at this point in the history
It is not recommended to use dotfiles in $XDG_CONFIG_HOME.
  • Loading branch information
CloverGit authored Jan 4, 2025
1 parent 5fae05a commit 32ca45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/gdb.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"path": "$HOME/.gdb_history",
"movable": true,
"help": "GDB supports setting it's config file path through an environment variable. Simply move your _.gdb_history_ file to _$XDG_CONFIG_HOME/gdb_ and export the following:\n\n```bash\nexport GDBHISTFILE=\"$XDG_CONFIG_HOME\"/gdb/.gdb_history \n```\n\nNote: If you are using GEF this does not work, as GEF overwrites the filepath. In order to use the correct path again, you have to call ```set history filename ~/.config/gdb/.gdb_history``` after you source _gef.py_ in your gdb init file.\n"
"help": "GDB supports setting it's config file path through an environment variable. Simply move your _.gdb_history_ file to _$XDG_CONFIG_HOME/gdb_ and export the following:\n\n```bash\nexport GDBHISTFILE=\"$XDG_CONFIG_HOME\"/gdb/gdb_history \n```\n\nNote: If you are using GEF this does not work, as GEF overwrites the filepath. In order to use the correct path again, you have to call ```set history filename ~/.config/gdb/gdb_history``` after you source _gef.py_ in your gdb init file.\n"
}
]
}

0 comments on commit 32ca45c

Please sign in to comment.