mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
Re-implement OSDK debugging fixes and other facilities upon the refactor
This commit bring back the features introduced fromd28292c
toa52e432
: - Disable KVM when using GDB; - Update docs about the GDB server address; - Add `config` option for `CargoArgs` in OSDK; - Ensure debug info added when debugging in the release profile.
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
f9ac2ee498
commit
56175f63df
@ -1,16 +1,18 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use crate::commands::util::bin_file_name;
|
||||
|
||||
use crate::{cli::DebugArgs, util::get_target_directory};
|
||||
use crate::{
|
||||
cli::DebugArgs,
|
||||
commands::util::{bin_file_name, profile_name_adapter},
|
||||
util::get_target_directory,
|
||||
};
|
||||
use std::process::Command;
|
||||
|
||||
pub fn execute_debug_command(profile: &String, args: &DebugArgs) {
|
||||
pub fn execute_debug_command(profile: &str, args: &DebugArgs) {
|
||||
let remote = &args.remote;
|
||||
|
||||
let file_path = get_target_directory()
|
||||
.join("x86_64-unknown-none")
|
||||
.join(profile)
|
||||
.join(profile_name_adapter(profile))
|
||||
.join(bin_file_name());
|
||||
println!("Debugging {}", file_path.display());
|
||||
|
||||
|
Reference in New Issue
Block a user