mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Rustup
This commit is contained in:
parent
7a4fe12d31
commit
74ca55d230
@ -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());
|
||||
|
||||
|
2
test.sh
2
test.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user