home/gdb: init

This commit is contained in:
Oystein Kristoffer Tveit 2023-10-06 17:18:49 +02:00
parent ad262195f6
commit 550b9f1b1b
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 26 additions and 0 deletions

View File

@ -14,6 +14,7 @@ in {
./programs/atuin.nix ./programs/atuin.nix
./programs/comma.nix ./programs/comma.nix
./programs/firefox.nix ./programs/firefox.nix
./programs/gdb.nix
./programs/gh.nix ./programs/gh.nix
./programs/git.nix ./programs/git.nix
./programs/gpg.nix ./programs/gpg.nix

25
home/programs/gdb.nix Normal file
View File

@ -0,0 +1,25 @@
{ pkgs, ... }:
{
xdg.configFile."gdb/gdbinit".text = ''
# C++ related beautifiers
set print pretty on
set print object on
set print static-members on
set print vtbl on
set print demangle on
set print sevenbit-strings off
set print asm-demangle on
set print elements 0
# Assembly
set disassembly-flavor intel
# Save command history between sessions:
set history save
# Print a beautifully colored prompt:
set prompt \001\033[1;36m\002(gdb) \001\033[0m\002
'';
local.shell.aliases."System Tool Replacements".gdb = "${pkgs.pwndbg}/bin/pwndbg";
}