This commit is contained in:
bjorn3 2019-12-16 12:11:14 +01:00
parent 7a4fe12d31
commit 74ca55d230
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ impl<'a, 'tcx> FunctionDebugContext<'a, 'tcx> {
func_id: FuncId,
name: &str,
) -> Self {
let mir = debug_context.tcx.instance_mir(instance.def);
let mir = *debug_context.tcx.instance_mir(instance.def);
let (symbol, _) = debug_context.symbols.insert_full(func_id, name.to_string());

View File

@ -37,7 +37,7 @@ echo "[AOT] mini_core_hello_world"
$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 35"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd
(echo "break set -n main"; echo "run"; sleep 1; echo "si -c 10"; sleep 1; echo "frame variable") | lldb -- ./target/out/mini_core_hello_world abc bcd
fi
exit 1