Skip to content

Commit

Permalink
Fix mips64 and mips64le builds of gdb plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jamcleod authored and lacraig2 committed Nov 1, 2024
1 parent a4b4c52 commit 1fcdf85
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions panda/plugins/gdb/src/panda_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand All @@ -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<Self::Arch, Self::Error> {
Expand Down

0 comments on commit 1fcdf85

Please sign in to comment.