mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Fix the problem that OSDK picks the test kernel by default
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
29791ba77e
commit
17c8da7459
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user