From dbd119fcf248c0892a02b3816bead9fadbaba477 Mon Sep 17 00:00:00 2001 From: Raz-B Date: Wed, 1 Sep 2021 22:16:23 +0300 Subject: [PATCH 1/3] fix cargo.toml profiles for debugging --- Cargo.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8e8dad6..a0dd256 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,17 +10,17 @@ repository = "https://github.com/Wazzaps/bold" panic = "abort" lto = true debug = true -opt-level = 'z' +opt-level = '1' [profile.test] lto = true -debug = true +debug = false opt-level = 'z' [profile.release] panic = "abort" lto = true -debug = true +debug = false opt-level = 'z' [dependencies] @@ -31,5 +31,5 @@ async-trait = "0.1.50" futures = { version = "0.3", default-features = false, features = ["alloc"] } arrayvec = { version = "0.7.1", default-features = false } dtb = "0.2.0" -tar-parser = { path = "externals/tar-parser.rs", default-features = false} +tar-parser = { path = "externals/tar-parser.rs", default-features = false } lazy_static = { version = "1.4.0", features = ["spin_no_std"] } From 46bf92e56120fed3b3d17996ab9d648b1c6265d6 Mon Sep 17 00:00:00 2001 From: Raz-B Date: Wed, 1 Sep 2021 22:17:13 +0300 Subject: [PATCH 2/3] add debug script for vscode using code-lldb ext --- .vscode/launch.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..638782c --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,23 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "lldb", + "request": "custom", + "name": "Remote attach to qemu", + "targetCreateCommands": [ + "target create target/aarch64-none-elf/release/boldos" + ], + "processCreateCommands": [ + "gdb-remote 1234" + ], + "sourceLanguages": [ + "rust" + ], + "cwd": "${workspaceFolder}" + }, + ] +} \ No newline at end of file From 151b49ca6d9579ecbc1ccd0616eb711093dd214d Mon Sep 17 00:00:00 2001 From: Raz-B Date: Wed, 1 Sep 2021 22:20:49 +0300 Subject: [PATCH 3/3] fix '1' opt-level to 1 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a0dd256..b618a6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ repository = "https://github.com/Wazzaps/bold" panic = "abort" lto = true debug = true -opt-level = '1' +opt-level = 1 [profile.test] lto = true