Skip to content

Commit

Permalink
Improve debugging script
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Oct 1, 2016
1 parent e671dda commit c971d01
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion debug.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash
set -e

dir=${1:?"Usage: $0 <mountpoint>"}

if [ ! -d "$dir" ]; then
mkdir -p "$dir"
fi

make
gdb --args ./memfs -d -s -o default_permissions -o auto_unmount testmount
gdb --args ./memfs -d -s -o default_permissions -o auto_unmount "$dir"

0 comments on commit c971d01

Please sign in to comment.