diff --git a/.gitignore b/.gitignore index 9af4330..8b815eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .vscode build/ -.cache/ \ No newline at end of file +.cache/ +.direnv/ diff --git a/README.md b/README.md index ce14c18..eb75b03 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,15 @@ 2. `cmakeConfigurePhase` 3. `buildPhase` 4. `./src/tutorial_kirigami2` + +For use gammaray, you need to disable yama security. + +``` +echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope +``` + +Then run with, + +``` +gammaray ./src/tutorial_kirigami2 +``` diff --git a/flake.nix b/flake.nix index 1487543..15fcb2c 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,11 @@ pkgs.ninja pkgs.cmake pkgs.gcc + + # Not required at compile time + pkgs.gammaray + pkgs.gdb # Required for gammaray + pkgs.lldb # Required for gammaray ]; dontFixCmake = true;