From 4826320680e2b5545f1920f2a6209fbffc9b0547 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Mon, 16 Dec 2019 12:06:52 +0100 Subject: [PATCH] Add debuginfo test --- test.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 05ba16ea31c..cae3955e5d1 100755 --- a/test.sh +++ b/test.sh @@ -31,11 +31,16 @@ $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib echo "[BUILD] example" $RUSTC example/example.rs --crate-type lib -JIT_ARGS="abc bcd" jit mini_core_hello_world example/mini_core_hello_world.rs +#JIT_ARGS="abc bcd" jit mini_core_hello_world example/mini_core_hello_world.rs echo "[AOT] mini_core_hello_world" -$RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin +$RUSTC example/mini_core_hello_world.rs --crate-name mini_core_hello_world --crate-type bin -g ./target/out/mini_core_hello_world abc bcd +if lldb -v; then +(echo "break set -n main"; echo "run"; sleep 1; echo "si -c 21"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd +fi + +exit 1 echo "[AOT] arbitrary_self_types_pointers_and_wrappers" $RUSTC example/arbitrary_self_types_pointers_and_wrappers.rs --crate-name arbitrary_self_types_pointers_and_wrappers --crate-type bin