Fix the problem that OSDK picks the test kernel by default

This commit is contained in:
Zhang Junyang
2025-02-19 21:21:33 +08:00
committed by Tate, Hongliang Tian
parent 29791ba77e
commit 17c8da7459
10 changed files with 49 additions and 44 deletions

View File

@ -3,7 +3,7 @@
use crate::{
cli::DebugArgs,
commands::util::bin_file_name,
util::{get_current_crates, get_target_directory},
util::{get_kernel_crate, get_target_directory},
};
use std::process::Command;
@ -12,7 +12,7 @@ pub fn execute_debug_command(_profile: &str, args: &DebugArgs) {
let file_path = get_target_directory()
.join("osdk")
.join(get_current_crates().remove(0).name)
.join(get_kernel_crate().name)
.join(bin_file_name());
println!("Debugging {}", file_path.display());