fixing windows types (#5308)

This commit is contained in:
Ahmed Mohamed Abd El-MAwgood 2016-07-08 12:06:36 +03:00 committed by Maijin
parent b353733041
commit 46b0e3f48e
6 changed files with 1797 additions and 901 deletions

View File

@ -7,6 +7,7 @@ F+= windows-x86-32
F+= windows-x86-64
F+= types-x86-32
F+= types-x86-64
F+= windows-types
include $(TOP)/config-user.mk
HOST_CC?=gcc

View File

@ -25,13 +25,14 @@ type.int=d
type.long=x
type.long long=q
type.void *=p
type.char=b
type.char=c
type.char *=*z
type.const char*=*z
type.uint8_t=b
type.int16_t=w
type.int32_t=d
type.int64_t=q
type.uint16_t=w
type.uint32_t=d
type.uint64_t=q
type.int8_t=b
type.int16_t=w
type.int32_t=d
type.int64_t=q

View File

@ -25,10 +25,14 @@ type.int=d
type.long=x
type.long long=q
type.void *=p
type.char=b
type.char=c
type.char *=*z
type.const char*=*z
type.uint8_t=b
type.uint16_t=w
type.uint32_t=d
type.uint64_t=q
type.int8_t=b
type.int16_t=w
type.int32_t=d
type.int64_t=q

View File

@ -25,13 +25,14 @@ type.int=d
type.long=x
type.long long=q
type.void *=p
type.char=b
type.char=c
type.char *=*z
type.const char*=*z
type.uint8_t=b
type.int16_t=w
type.int32_t=d
type.int64_t=q
type.uint16_t=w
type.uint32_t=d
type.uint64_t=q
type.int8_t=b
type.int16_t=w
type.int32_t=d
type.int64_t=q

File diff suppressed because it is too large Load Diff

View File

@ -450,8 +450,7 @@ static int bin_info(RCore *r, int mode) {
if (info->os && !strcmp (info->os, "windows")) {
char *dbpath;
Sdb *db;
#define TYPESPATH R2_LIBDIR"/radare2/"R2_VERSION"/fcnsign"
dbpath = sdb_fmt (-1, TYPESPATH"/windows-x86-%d.sdb", r->anal->bits);
dbpath = R2_LIBDIR"/radare2/"R2_VERSION"/fcnsign/windows-types.sdb";
if (r_file_exists (dbpath)) {
db = sdb_new (0, dbpath, 0);
sdb_merge (r->anal->sdb_types, db);