Skip to content

Instantly share code, notes, and snippets.

@Azhng
Created February 1, 2019 00:01
Show Gist options
  • Save Azhng/487d4e1ffb9434fd2e3a46c3d4a84172 to your computer and use it in GitHub Desktop.
Save Azhng/487d4e1ffb9434fd2e3a46c3d4a84172 to your computer and use it in GitHub Desktop.
# shit <assignment nubmer> == build
# fuck == run
# fuckw == run with debugging enabled
# ahh <assignment number> == run gdb and directly attach to the os161 instance
shit()
{
cd /home/az/cs350-os161/os161-1.99/kern/conf
./config "ASST$1"
cd "/home/az/cs350-os161/os161-1.99/kern/compile/ASST$1"
bmake depend
bmake
bmake install
cd /home/az/cs350-os161/root
}
fuckw()
{
cd /home/az/cs350-os161/root
sys161 -w kernel $@
}
ahh()
{
cd /home/az/cs350-os161/root
# TODO: auto back trace
cs350-gdb -ex "dir /home/az/cs350-os161/os161-1.99/kern/compile/ASST$1" -ex "target remote unix:.sockets/gdb" -ex "b panic" kernel
}
fuck()
{
cd /home/az/cs350-os161/root
sys161 kernel $@
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment