home: add gdb
This commit is contained in:
parent
087794433e
commit
bc6761bdc9
|
@ -10,6 +10,7 @@
|
|||
./firefox
|
||||
./flameshot.nix
|
||||
./gammastep.nix
|
||||
./gdb
|
||||
./git
|
||||
./gpg.nix
|
||||
./gtk.nix
|
||||
|
|
17
home/gdb/default.nix
Normal file
17
home/gdb/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.home.gdb;
|
||||
in
|
||||
{
|
||||
options.my.home.gdb = with lib; {
|
||||
enable = my.mkDisableOption "gdb configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
gdb
|
||||
];
|
||||
|
||||
xdg.configFile."gdb/gdbinit".source = ./gdbinit;
|
||||
};
|
||||
}
|
22
home/gdb/gdbinit
Normal file
22
home/gdb/gdbinit
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Keep a history of all commands in each directory
|
||||
set history save on
|
||||
|
||||
# Enable those pretty-printers
|
||||
enable pretty-printer
|
||||
|
||||
# Pretty formatting of structures
|
||||
set print pretty on
|
||||
# Show derived type based on VTable
|
||||
set print object on
|
||||
# Show static members
|
||||
set print static-members on
|
||||
# Show VTable
|
||||
set print vtbl on
|
||||
# Demangle types
|
||||
set print demangle on
|
||||
|
||||
# Read python scrips in the load path
|
||||
set auto-load python-scripts
|
||||
|
||||
# Allow autoloading project-local .gdbinit files
|
||||
add-auto-load-safe-path ~/git/
|
Loading…
Reference in a new issue