dbghelp: Use BOOL type where appropriate.
This commit is contained in:
parent
2209fdbdd2
commit
1d65efe50b
|
@ -29,8 +29,8 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
||||||
|
|
||||||
static unsigned arm_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
static BOOL arm_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||||
enum cpu_addr ca, ADDRESS64* addr)
|
enum cpu_addr ca, ADDRESS64* addr)
|
||||||
{
|
{
|
||||||
addr->Mode = AddrModeFlat;
|
addr->Mode = AddrModeFlat;
|
||||||
addr->Segment = 0; /* don't need segment */
|
addr->Segment = 0; /* don't need segment */
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
||||||
|
|
||||||
static unsigned arm64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
static BOOL arm64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||||
enum cpu_addr ca, ADDRESS64* addr)
|
enum cpu_addr ca, ADDRESS64* addr)
|
||||||
{
|
{
|
||||||
addr->Mode = AddrModeFlat;
|
addr->Mode = AddrModeFlat;
|
||||||
addr->Segment = 0; /* don't need segment */
|
addr->Segment = 0; /* don't need segment */
|
||||||
|
|
|
@ -48,8 +48,8 @@ static ADDRESS_MODE get_selector_type(HANDLE hThread, const CONTEXT* ctx, WORD s
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned i386_build_addr(HANDLE hThread, const CONTEXT* ctx, ADDRESS64* addr,
|
static BOOL i386_build_addr(HANDLE hThread, const CONTEXT* ctx, ADDRESS64* addr,
|
||||||
unsigned seg, unsigned long offset)
|
unsigned seg, unsigned long offset)
|
||||||
{
|
{
|
||||||
addr->Mode = AddrModeFlat;
|
addr->Mode = AddrModeFlat;
|
||||||
addr->Segment = seg;
|
addr->Segment = seg;
|
||||||
|
@ -73,8 +73,8 @@ static unsigned i386_build_addr(HANDLE hThread, const CONTEXT* ctx, ADDRESS64* a
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned i386_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
static BOOL i386_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||||
enum cpu_addr ca, ADDRESS64* addr)
|
enum cpu_addr ca, ADDRESS64* addr)
|
||||||
{
|
{
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
switch (ca)
|
switch (ca)
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
|
||||||
|
|
||||||
static unsigned ppc_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
static BOOL ppc_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||||
enum cpu_addr ca, ADDRESS64* addr)
|
enum cpu_addr ca, ADDRESS64* addr)
|
||||||
{
|
{
|
||||||
switch (ca)
|
switch (ca)
|
||||||
{
|
{
|
||||||
|
|
|
@ -91,8 +91,8 @@ typedef struct _UNWIND_INFO
|
||||||
#define GetExceptionDataPtr(info) \
|
#define GetExceptionDataPtr(info) \
|
||||||
((PVOID)((PULONG)GetLanguageSpecificData(info) + 1)
|
((PVOID)((PULONG)GetLanguageSpecificData(info) + 1)
|
||||||
|
|
||||||
static unsigned x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
static BOOL x86_64_get_addr(HANDLE hThread, const CONTEXT* ctx,
|
||||||
enum cpu_addr ca, ADDRESS64* addr)
|
enum cpu_addr ca, ADDRESS64* addr)
|
||||||
{
|
{
|
||||||
addr->Mode = AddrModeFlat;
|
addr->Mode = AddrModeFlat;
|
||||||
switch (ca)
|
switch (ca)
|
||||||
|
|
|
@ -520,7 +520,7 @@ struct cpu
|
||||||
DWORD frame_regno;
|
DWORD frame_regno;
|
||||||
|
|
||||||
/* address manipulation */
|
/* address manipulation */
|
||||||
unsigned (*get_addr)(HANDLE hThread, const CONTEXT* ctx,
|
BOOL (*get_addr)(HANDLE hThread, const CONTEXT* ctx,
|
||||||
enum cpu_addr, ADDRESS64* addr);
|
enum cpu_addr, ADDRESS64* addr);
|
||||||
|
|
||||||
/* stack manipulation */
|
/* stack manipulation */
|
||||||
|
|
|
@ -56,7 +56,7 @@ static int match_ext(const WCHAR* ptr, size_t len)
|
||||||
for (e = ext; *e; e++)
|
for (e = ext; *e; e++)
|
||||||
{
|
{
|
||||||
l = strlenW(*e);
|
l = strlenW(*e);
|
||||||
if (l >= len) return FALSE;
|
if (l >= len) return 0;
|
||||||
if (strncmpiW(&ptr[len - l], *e, l)) continue;
|
if (strncmpiW(&ptr[len - l], *e, l)) continue;
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|
|
@ -651,9 +651,9 @@ static struct symt* codeview_add_type_array(struct codeview_type_parse* ctp,
|
||||||
return &symt_new_array(ctp->module, 0, -arr_len, elem, index)->symt;
|
return &symt_new_array(ctp->module, 0, -arr_len, elem, index)->symt;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int codeview_add_type_enum_field_list(struct module* module,
|
static BOOL codeview_add_type_enum_field_list(struct module* module,
|
||||||
struct symt_enum* symt,
|
struct symt_enum* symt,
|
||||||
const union codeview_reftype* ref_type)
|
const union codeview_reftype* ref_type)
|
||||||
{
|
{
|
||||||
const unsigned char* ptr = ref_type->fieldlist.list;
|
const unsigned char* ptr = ref_type->fieldlist.list;
|
||||||
const unsigned char* last = (const BYTE*)ref_type + ref_type->generic.len + 2;
|
const unsigned char* last = (const BYTE*)ref_type + ref_type->generic.len + 2;
|
||||||
|
@ -1327,12 +1327,12 @@ static struct symt* codeview_parse_one_type(struct codeview_type_parse* ctp,
|
||||||
default:
|
default:
|
||||||
FIXME("Unsupported type-id leaf %x\n", type->generic.id);
|
FIXME("Unsupported type-id leaf %x\n", type->generic.id);
|
||||||
dump(type, 2 + type->generic.len);
|
dump(type, 2 + type->generic.len);
|
||||||
return FALSE;
|
return NULL;
|
||||||
}
|
}
|
||||||
return codeview_add_type(curr_type, symt) ? symt : NULL;
|
return codeview_add_type(curr_type, symt) ? symt : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int codeview_parse_type_table(struct codeview_type_parse* ctp)
|
static BOOL codeview_parse_type_table(struct codeview_type_parse* ctp)
|
||||||
{
|
{
|
||||||
unsigned int curr_type = FIRST_DEFINABLE_TYPE;
|
unsigned int curr_type = FIRST_DEFINABLE_TYPE;
|
||||||
const union codeview_type* type;
|
const union codeview_type* type;
|
||||||
|
@ -1557,8 +1557,8 @@ static inline void codeview_add_variable(const struct msc_debug_info* msc_dbg,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
static BOOL codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
||||||
int offset, int size, BOOL do_globals)
|
int offset, int size, BOOL do_globals)
|
||||||
{
|
{
|
||||||
struct symt_function* curr_func = NULL;
|
struct symt_function* curr_func = NULL;
|
||||||
int i, length;
|
int i, length;
|
||||||
|
@ -2004,8 +2004,8 @@ static int codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* root
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
static BOOL codeview_snarf_public(const struct msc_debug_info* msc_dbg, const BYTE* root,
|
||||||
int offset, int size)
|
int offset, int size)
|
||||||
|
|
||||||
{
|
{
|
||||||
int i, length;
|
int i, length;
|
||||||
|
|
Loading…
Reference in New Issue