mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-10 12:09:31 +00:00
33fe685fc6
Remove target_arch-specific #[cfg]s where the underlying code is architecture-agnostic. Introduce a GdbOps trait for architectures to implement. Make use of the generic gdbstub::arch::Arch trait where relevant. Import base::Tube unconditionally in arch/src/sys/unix.rs. Expand crate::gdb::* in vm_control/src/lib.rs for clarity. Keep target_arch checks in x86-specific code to exclude 32-bit builds as those don't seem to provide GDB support. BUG=b:222222882 BUG=chromium:1141812 TEST=tools/dev_container ./tools/run_tests Change-Id: I3f5ceeeb9031bee222ecd388dddb815e256748e8 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3785464 Tested-by: Pierre-Clément Tosi <ptosi@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Auto-Submit: Pierre-Clément Tosi <ptosi@google.com> Commit-Queue: Pierre-Clément Tosi <ptosi@google.com>
28 lines
741 B
TOML
28 lines
741 B
TOML
[package]
|
|
name = "vm_control"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
edition = "2021"
|
|
|
|
[features]
|
|
balloon = []
|
|
gdb = ["gdbstub", "gdbstub_arch"]
|
|
|
|
[dependencies]
|
|
anyhow = "*"
|
|
balloon_control = { path = "../common/balloon_control" }
|
|
base = { path = "../base" }
|
|
cfg-if = "*"
|
|
data_model = { path = "../common/data_model" }
|
|
gdbstub = { version = "0.6.1", optional = true }
|
|
gdbstub_arch = { version = "0.2.2", optional = true }
|
|
hypervisor = { path = "../hypervisor" }
|
|
libc = "*"
|
|
remain = "*"
|
|
resources = { path = "../resources" }
|
|
rutabaga_gfx = { path = "../rutabaga_gfx"}
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
serde_json = "*"
|
|
sync = { path = "../common/sync" }
|
|
thiserror = "*"
|
|
vm_memory = { path = "../vm_memory" }
|