From 1fcdf85a6115e0f7870f0873d871116a05806e65 Mon Sep 17 00:00:00 2001 From: jamcleod Date: Thu, 31 Oct 2024 19:06:15 -0400 Subject: [PATCH] Fix mips64 and mips64le builds of gdb plugin --- panda/plugins/gdb/src/panda_target.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/panda/plugins/gdb/src/panda_target.rs b/panda/plugins/gdb/src/panda_target.rs index 388af78258c..4a2d75c983b 100644 --- a/panda/plugins/gdb/src/panda_target.rs +++ b/panda/plugins/gdb/src/panda_target.rs @@ -33,9 +33,12 @@ use gdbstub_arch::arm::{reg::ArmCoreRegs, Armv4t}; //#[cfg(feature = "ppc")] //use gdbstub_arch::ppc::{PowerPcAltivec32 as PowerPc, reg::{PowerPcCommonRegs as PowerPcCoreRegs}}; -#[cfg(any(feature = "mips", feature = "mipsel", feature = "mips64"))] +#[cfg(any(feature = "mips", feature = "mipsel"))] use gdbstub_arch::mips::{reg::MipsCoreRegs, Mips}; +#[cfg(any(feature = "mips64", feature = "mips64el"))] +use gdbstub_arch::mips::{reg::MipsCoreRegs, Mips64}; + #[cfg(not(any(feature = "aarch64", feature = "ppc")))] impl Target for PandaTarget { #[cfg(feature = "x86_64")] @@ -50,9 +53,12 @@ impl Target for PandaTarget { #[cfg(feature = "ppc")] type Arch = PowerPc; - #[cfg(any(feature = "mips", feature = "mipsel", feature = "mips64"))] + #[cfg(any(feature = "mips", feature = "mipsel",))] type Arch = Mips; + #[cfg(any(feature = "mips64", feature = "mips64el"))] + type Arch = Mips64; + type Error = (); fn base_ops(&mut self) -> ext::base::BaseOps {