From 4148b192e6c32414089133d037420e3fdb59ab4a Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Fri, 17 Feb 2023 22:02:00 +0200 Subject: [PATCH] make use of the symlink, to ease things --- src/closure.md | 2 +- src/compiler-debugging.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/closure.md b/src/closure.md index 5746fd4de..e356f415d 100644 --- a/src/closure.md +++ b/src/closure.md @@ -155,7 +155,7 @@ This uses the stage1 compiler and enables `debug!` logging for the The other option is to step through the code using lldb or gdb. -1. `rust-lldb build/x86_64-apple-darwin/stage1/bin/rustc test.rs` +1. `rust-lldb build/host/stage1/bin/rustc test.rs` 2. In lldb: 1. `b upvar.rs:134` // Setting the breakpoint on a certain line in the upvar.rs file` 2. `r` // Run the program until it hits the breakpoint diff --git a/src/compiler-debugging.md b/src/compiler-debugging.md index c49e21df2..6052ea58a 100644 --- a/src/compiler-debugging.md +++ b/src/compiler-debugging.md @@ -361,9 +361,9 @@ from the directory where it is built (does not have to be "installed"): "request": "launch", "name": "Launch", "args": [], // array of string command-line arguments to pass to compiler - "program": "${workspaceFolder}/build/TARGET/stage1/bin/rustc", + "program": "${workspaceFolder}/build/host/stage1/bin/rustc", "windows": { // applicable if using windows - "program": "${workspaceFolder}/build/x86_64-pc-windows-msvc/stage1/bin/rustc.exe" + "program": "${workspaceFolder}/build/host/stage1/bin/rustc.exe" }, "cwd": "${workspaceFolder}", // current working directory at program start "stopOnEntry": false,