From f0a708e6fd60496bc62c58db999cf6391ac24a5e Mon Sep 17 00:00:00 2001 From: Eloi Sanfelix Date: Thu, 7 Apr 2011 23:21:30 +0200 Subject: [PATCH] rdebug->arch as a ut64 bitmap --- libr/include/r_asm.h | 24 +++++++++++++----------- libr/include/r_debug.h | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/libr/include/r_asm.h b/libr/include/r_asm.h index 58195061df..7892304f4b 100644 --- a/libr/include/r_asm.h +++ b/libr/include/r_asm.h @@ -9,19 +9,21 @@ #define R_ASM_BUFSIZE 1024 + enum { R_ASM_ARCH_NONE = 0, - R_ASM_ARCH_X86, - R_ASM_ARCH_ARM, - R_ASM_ARCH_PPC, - R_ASM_ARCH_M68K, - R_ASM_ARCH_JAVA, - R_ASM_ARCH_MIPS, - R_ASM_ARCH_SPARC, - R_ASM_ARCH_CSR, - R_ASM_ARCH_MSIL, - R_ASM_ARCH_OBJD, - R_ASM_ARCH_BF + R_ASM_ARCH_X86 = 0x1, + R_ASM_ARCH_ARM = 0x2, + R_ASM_ARCH_PPC = 0x4, + R_ASM_ARCH_M68K = 0x8, + R_ASM_ARCH_JAVA = 0x10, + R_ASM_ARCH_MIPS = 0x20, + R_ASM_ARCH_SPARC = 0x40, + R_ASM_ARCH_CSR = 0x80, + R_ASM_ARCH_MSIL = 0x100, + R_ASM_ARCH_OBJD = 0x200, + R_ASM_ARCH_BF = 0x400, + R_ASM_ARCH_SH = 0x800 }; enum { diff --git a/libr/include/r_debug.h b/libr/include/r_debug.h index 52b60bb2e9..3431584c63 100644 --- a/libr/include/r_debug.h +++ b/libr/include/r_debug.h @@ -142,7 +142,7 @@ typedef struct r_debug_plugin_t { const char *name; const char **archs; // MUST BE DEPREACTED!!!! ut32 bits; - ut32 arch; + ut64 arch; /* life */ int (*startv)(int argc, char **argv); int (*attach)(int pid);