Mercurial > hg > Members > anatofuz > nqp-cbc-tools
diff debug-moar.sh @ 0:b8fca1c0f503
intial commit
author | anatofuz |
---|---|
date | Sat, 03 Nov 2018 22:49:27 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debug-moar.sh Sat Nov 03 22:49:27 2018 +0900 @@ -0,0 +1,13 @@ +#!/bin/sh + +TARGET_MOAR="../MoarVM/moar" +LIBPATH="/mnt/dalmore-home/one/src/MoarVM_Original/nqp/gen/moar/stage2" + +if [ $# -ne 1 ]; then + echo "cbc-tools/this.sh vmtest/src/001-.t.moar" + exit 1 +fi + +TARGET=$1 + +gdb --args ${TARGET_MOAR} --libpath=${LIBPATH} ${TARGET}