Mercurial > hg > truffle
diff src/share/tools/hsdis/hsdis.c @ 720:67a2f5ba5582
6684007: PrintAssembly plugin not available for linux or windows
Reviewed-by: rasbold, jrose, twisti
author | never |
---|---|
date | Wed, 15 Apr 2009 09:53:54 -0700 |
parents | c7c777385a15 |
children | bd02caa94611 |
line wrap: on
line diff
--- a/src/share/tools/hsdis/hsdis.c Tue Apr 14 12:25:54 2009 -0700 +++ b/src/share/tools/hsdis/hsdis.c Wed Apr 15 09:53:54 2009 -0700 @@ -33,6 +33,7 @@ #include <libiberty.h> #include <bfd.h> #include <dis-asm.h> +#include <inttypes.h> #ifndef bool #define bool int @@ -404,21 +405,21 @@ } static const char* native_arch_name() { - const char* res = HOTSPOT_LIB_ARCH; + const char* res = NULL; +#ifdef LIBARCH_i386 + res = "i386"; +#endif #ifdef LIBARCH_amd64 res = "i386:x86-64"; #endif #ifdef LIBARCH_sparc res = "sparc:v8plusb"; #endif -#ifdef LIBARCH_sparc - res = "sparc:v8plusb"; -#endif #ifdef LIBARCH_sparcv9 res = "sparc:v9b"; #endif if (res == NULL) - res = "HOTSPOT_LIB_ARCH is not set in Makefile!"; + res = "architecture not set in Makefile!"; return res; }