comparison 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
comparison
equal deleted inserted replaced
712:6e33bfd4139b 720:67a2f5ba5582
31 31
32 #include <sysdep.h> 32 #include <sysdep.h>
33 #include <libiberty.h> 33 #include <libiberty.h>
34 #include <bfd.h> 34 #include <bfd.h>
35 #include <dis-asm.h> 35 #include <dis-asm.h>
36 #include <inttypes.h>
36 37
37 #ifndef bool 38 #ifndef bool
38 #define bool int 39 #define bool int
39 #define true 1 40 #define true 1
40 #define false 0 41 #define false 0
402 } 403 }
403 return arch_info; 404 return arch_info;
404 } 405 }
405 406
406 static const char* native_arch_name() { 407 static const char* native_arch_name() {
407 const char* res = HOTSPOT_LIB_ARCH; 408 const char* res = NULL;
409 #ifdef LIBARCH_i386
410 res = "i386";
411 #endif
408 #ifdef LIBARCH_amd64 412 #ifdef LIBARCH_amd64
409 res = "i386:x86-64"; 413 res = "i386:x86-64";
410 #endif
411 #ifdef LIBARCH_sparc
412 res = "sparc:v8plusb";
413 #endif 414 #endif
414 #ifdef LIBARCH_sparc 415 #ifdef LIBARCH_sparc
415 res = "sparc:v8plusb"; 416 res = "sparc:v8plusb";
416 #endif 417 #endif
417 #ifdef LIBARCH_sparcv9 418 #ifdef LIBARCH_sparcv9
418 res = "sparc:v9b"; 419 res = "sparc:v9b";
419 #endif 420 #endif
420 if (res == NULL) 421 if (res == NULL)
421 res = "HOTSPOT_LIB_ARCH is not set in Makefile!"; 422 res = "architecture not set in Makefile!";
422 return res; 423 return res;
423 } 424 }
424 425
425 static enum bfd_endian native_endian() { 426 static enum bfd_endian native_endian() {
426 int32_t endian_test = 'x'; 427 int32_t endian_test = 'x';