x64: make several structures debuggable

This commit is contained in:
Andrew Brown
2021-01-04 16:09:28 -08:00
parent bb2dd5b68b
commit 09a5b91b9d

View File

@@ -145,7 +145,7 @@ impl PrettyPrint for Amode {
/// A Memory Address. These denote a 64-bit value only.
/// Used for usual addressing modes as well as addressing modes used during compilation, when the
/// moving SP offset is not known.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum SyntheticAmode {
/// A real amode.
Real(Amode),
@@ -286,7 +286,7 @@ impl PrettyPrintSized for RegMemImm {
/// An operand which is either an integer Register or a value in Memory. This can denote an 8, 16,
/// 32, 64, or 128 bit value.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum RegMem {
Reg { reg: Reg },
Mem { addr: SyntheticAmode },