Skip to content

Commit

Permalink
chore: add gdb to nix config (#118)
Browse files Browse the repository at this point in the history
It's nice to have gdb for debugging the kernel. This changes the
`nix-shell` config to ensure it's present in nix-shell, if the user
hasn't installed it globally.

I also added `.gdb_history` files to the gitignore.
  • Loading branch information
hawkw authored Sep 27, 2021
1 parent 057bfa1 commit 858c15b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
**/*.rs.bk

# End of https://www.gitignore.io/api/rust

### GDB ###

.gdb_history
1 change: 0 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pkgs.buildEnv {
[
git
bash
direnv
binutils
stdenv
bashInteractive
Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let env = (import ./default.nix scope);

in pkgs.mkShell {
# also install qemu into the dev shell, for testing
packages = [ pkgs.qemu_full ];
packages = with pkgs; [ qemu_full gdb direnv ];

LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
LC_ALL = "en_US.UTF-8";
Expand Down

0 comments on commit 858c15b

Please sign in to comment.