Commit a64d1579 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

dbghelp: Enable compilation with long types.

parent 3b2681b6
...@@ -2,7 +2,7 @@ MODULE = dbghelp.dll ...@@ -2,7 +2,7 @@ MODULE = dbghelp.dll
IMPORTLIB = dbghelp IMPORTLIB = dbghelp
IMPORTS = $(ZLIB_PE_LIBS) IMPORTS = $(ZLIB_PE_LIBS)
EXTRAINCL = $(ZLIB_PE_CFLAGS) EXTRAINCL = $(ZLIB_PE_CFLAGS)
EXTRADEFS = -DWINE_NO_LONG_TYPES -D_IMAGEHLP_SOURCE_ EXTRADEFS = -D_IMAGEHLP_SOURCE_
DELAYIMPORTS = version DELAYIMPORTS = version
C_SRCS = \ C_SRCS = \
......
...@@ -223,12 +223,12 @@ DECLSPEC_HIDDEN BOOL coff_process_info(const struct msc_debug_info* msc_dbg) ...@@ -223,12 +223,12 @@ DECLSPEC_HIDDEN BOOL coff_process_info(const struct msc_debug_info* msc_dbg)
fn = source_get(msc_dbg->module, fn = source_get(msc_dbg->module,
coff_files.files[curr_file_idx].compiland->source); coff_files.files[curr_file_idx].compiland->source);
TRACE("Duplicating sect from %s: %x %x %x %d %d\n", TRACE("Duplicating sect from %s: %lx %x %x %d %d\n",
fn, aux->Section.Length, fn, aux->Section.Length,
aux->Section.NumberOfRelocations, aux->Section.NumberOfRelocations,
aux->Section.NumberOfLinenumbers, aux->Section.NumberOfLinenumbers,
aux->Section.Number, aux->Section.Selection); aux->Section.Number, aux->Section.Selection);
TRACE("More sect %d %s %08x %d %d %d\n", TRACE("More sect %d %s %08lx %d %d %d\n",
coff_sym->SectionNumber, coff_sym->SectionNumber,
coff_get_name(coff_sym, coff_strtab), coff_get_name(coff_sym, coff_strtab),
coff_sym->Value, coff_sym->Type, coff_sym->Value, coff_sym->Type,
...@@ -242,7 +242,7 @@ DECLSPEC_HIDDEN BOOL coff_process_info(const struct msc_debug_info* msc_dbg) ...@@ -242,7 +242,7 @@ DECLSPEC_HIDDEN BOOL coff_process_info(const struct msc_debug_info* msc_dbg)
} }
else else
{ {
TRACE("New text sect from %s: %x %x %x %d %d\n", TRACE("New text sect from %s: %lx %x %x %d %d\n",
source_get(msc_dbg->module, coff_files.files[curr_file_idx].compiland->source), source_get(msc_dbg->module, coff_files.files[curr_file_idx].compiland->source),
aux->Section.Length, aux->Section.Length,
aux->Section.NumberOfRelocations, aux->Section.NumberOfRelocations,
......
...@@ -252,7 +252,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame, ...@@ -252,7 +252,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame,
p = sw_xlat_addr(csw, &tmp); p = sw_xlat_addr(csw, &tmp);
if (!sw_read_mem(csw, p, &frame16, sizeof(frame16))) if (!sw_read_mem(csw, p, &frame16, sizeof(frame16)))
{ {
WARN("Bad stack frame 0x%08x\n", p); WARN("Bad stack frame 0x%08lx\n", p);
goto done_err; goto done_err;
} }
curr_switch = (DWORD_PTR)frame16.frame32; curr_switch = (DWORD_PTR)frame16.frame32;
...@@ -316,7 +316,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame, ...@@ -316,7 +316,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame,
if (!sw_read_mem(csw, p, &frame16, sizeof(frame16))) if (!sw_read_mem(csw, p, &frame16, sizeof(frame16)))
{ {
WARN("Bad stack frame 0x%08x\n", p); WARN("Bad stack frame 0x%08lx\n", p);
goto done_err; goto done_err;
} }
curr_switch = (DWORD_PTR)frame16.frame32; curr_switch = (DWORD_PTR)frame16.frame32;
...@@ -333,16 +333,16 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame, ...@@ -333,16 +333,16 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame,
if (!sw_read_mem(csw, p, &frame16, sizeof(frame16))) if (!sw_read_mem(csw, p, &frame16, sizeof(frame16)))
{ {
WARN("Bad stack frame 0x%08x\n", p); WARN("Bad stack frame 0x%08lx\n", p);
goto done_err; goto done_err;
} }
TRACE("Got a 16 bit stack switch:" TRACE("Got a 16 bit stack switch:"
"\n\tframe32: %p" "\n\tframe32: %p"
"\n\tedx:%08x ecx:%08x ebp:%08x" "\n\tedx:%08lx ecx:%08lx ebp:%08lx"
"\n\tds:%04x es:%04x fs:%04x gs:%04x" "\n\tds:%04x es:%04x fs:%04x gs:%04x"
"\n\tcall_from_ip:%08x module_cs:%04x relay=%08x" "\n\tcall_from_ip:%08lx module_cs:%04lx relay=%08lx"
"\n\tentry_ip:%04x entry_point:%08x" "\n\tentry_ip:%04x entry_point:%08lx"
"\n\tbp:%04x ip:%04x cs:%04x\n", "\n\tbp:%04x ip:%04x cs:%04x\n",
frame16.frame32, frame16.frame32,
frame16.edx, frame16.ecx, frame16.ebp, frame16.edx, frame16.ecx, frame16.ebp,
...@@ -403,7 +403,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame, ...@@ -403,7 +403,7 @@ static BOOL i386_stack_walk(struct cpu_stack_walk *csw, STACKFRAME64 *frame,
frame->AddrStack.Offset = context->x86.Esp; frame->AddrStack.Offset = context->x86.Esp;
frame->AddrFrame.Offset = context->x86.Ebp; frame->AddrFrame.Offset = context->x86.Ebp;
if (frame->AddrReturn.Offset != context->x86.Eip) if (frame->AddrReturn.Offset != context->x86.Eip)
FIXME("new PC=%s different from Eip=%x\n", FIXME("new PC=%s different from Eip=%lx\n",
wine_dbgstr_longlong(frame->AddrReturn.Offset), context->x86.Eip); wine_dbgstr_longlong(frame->AddrReturn.Offset), context->x86.Eip);
frame->AddrPC.Offset = context->x86.Eip; frame->AddrPC.Offset = context->x86.Eip;
} }
......
...@@ -125,14 +125,14 @@ static void dump_unwind_info(struct cpu_stack_walk* csw, ULONG64 base, RUNTIME_F ...@@ -125,14 +125,14 @@ static void dump_unwind_info(struct cpu_stack_walk* csw, ULONG64 base, RUNTIME_F
RUNTIME_FUNCTION snext; RUNTIME_FUNCTION snext;
ULONG64 addr; ULONG64 addr;
TRACE("**** func %x-%x\n", function->BeginAddress, function->EndAddress); TRACE("**** func %lx-%lx\n", function->BeginAddress, function->EndAddress);
for (;;) for (;;)
{ {
if (function->UnwindData & 1) if (function->UnwindData & 1)
{ {
if (!sw_read_mem(csw, base + function->UnwindData, &snext, sizeof(snext))) if (!sw_read_mem(csw, base + function->UnwindData, &snext, sizeof(snext)))
{ {
TRACE("Couldn't unwind RUNTIME_INFO at %lx\n", base + function->UnwindData); TRACE("Couldn't unwind RUNTIME_INFO at %Ix\n", base + function->UnwindData);
return; return;
} }
TRACE("unwind info for function %p-%p chained to function %p-%p\n", TRACE("unwind info for function %p-%p chained to function %p-%p\n",
...@@ -146,7 +146,7 @@ static void dump_unwind_info(struct cpu_stack_walk* csw, ULONG64 base, RUNTIME_F ...@@ -146,7 +146,7 @@ static void dump_unwind_info(struct cpu_stack_walk* csw, ULONG64 base, RUNTIME_F
!sw_read_mem(csw, addr + FIELD_OFFSET(UNWIND_INFO, UnwindCode), !sw_read_mem(csw, addr + FIELD_OFFSET(UNWIND_INFO, UnwindCode),
info->UnwindCode, info->CountOfCodes * sizeof(UNWIND_CODE))) info->UnwindCode, info->CountOfCodes * sizeof(UNWIND_CODE)))
{ {
FIXME("couldn't read memory for UNWIND_INFO at %lx\n", addr); FIXME("couldn't read memory for UNWIND_INFO at %Ix\n", addr);
return; return;
} }
TRACE("unwind info at %p flags %x prolog 0x%x bytes function %p-%p\n", TRACE("unwind info at %p flags %x prolog 0x%x bytes function %p-%p\n",
...@@ -499,13 +499,13 @@ static BOOL interpret_function_table_entry(struct cpu_stack_walk* csw, ...@@ -499,13 +499,13 @@ static BOOL interpret_function_table_entry(struct cpu_stack_walk* csw,
!sw_read_mem(csw, base + function->UnwindData + FIELD_OFFSET(UNWIND_INFO, UnwindCode), !sw_read_mem(csw, base + function->UnwindData + FIELD_OFFSET(UNWIND_INFO, UnwindCode),
info->UnwindCode, info->CountOfCodes * sizeof(UNWIND_CODE))) info->UnwindCode, info->CountOfCodes * sizeof(UNWIND_CODE)))
{ {
WARN("Couldn't read unwind_code at %lx\n", base + function->UnwindData); WARN("Couldn't read unwind_code at %Ix\n", base + function->UnwindData);
return FALSE; return FALSE;
} }
if (info->Version != 1 && info->Version != 2) if (info->Version != 1 && info->Version != 2)
{ {
WARN("unknown unwind info version %u at %lx\n", info->Version, base + function->UnwindData); WARN("unknown unwind info version %u at %Ix\n", info->Version, base + function->UnwindData);
return FALSE; return FALSE;
} }
...@@ -625,14 +625,14 @@ static BOOL fetch_next_frame(struct cpu_stack_walk *csw, union ctx *pcontext, ...@@ -625,14 +625,14 @@ static BOOL fetch_next_frame(struct cpu_stack_walk *csw, union ctx *pcontext,
else if (dwarf2_virtual_unwind(csw, curr_pc, pcontext, &cfa)) else if (dwarf2_virtual_unwind(csw, curr_pc, pcontext, &cfa))
{ {
context->Rsp = cfa; context->Rsp = cfa;
TRACE("next function rip=%016lx\n", context->Rip); TRACE("next function rip=%016Ix\n", context->Rip);
TRACE(" rax=%016lx rbx=%016lx rcx=%016lx rdx=%016lx\n", TRACE(" rax=%016Ix rbx=%016Ix rcx=%016Ix rdx=%016Ix\n",
context->Rax, context->Rbx, context->Rcx, context->Rdx); context->Rax, context->Rbx, context->Rcx, context->Rdx);
TRACE(" rsi=%016lx rdi=%016lx rbp=%016lx rsp=%016lx\n", TRACE(" rsi=%016Ix rdi=%016Ix rbp=%016Ix rsp=%016Ix\n",
context->Rsi, context->Rdi, context->Rbp, context->Rsp); context->Rsi, context->Rdi, context->Rbp, context->Rsp);
TRACE(" r8=%016lx r9=%016lx r10=%016lx r11=%016lx\n", TRACE(" r8=%016Ix r9=%016Ix r10=%016Ix r11=%016Ix\n",
context->R8, context->R9, context->R10, context->R11); context->R8, context->R9, context->R10, context->R11);
TRACE(" r12=%016lx r13=%016lx r14=%016lx r15=%016lx\n", TRACE(" r12=%016Ix r13=%016Ix r14=%016Ix r15=%016Ix\n",
context->R12, context->R13, context->R14, context->R15); context->R12, context->R13, context->R14, context->R15);
return TRUE; return TRUE;
} }
......
...@@ -137,11 +137,11 @@ const char* wine_dbgstr_addr(const ADDRESS64* addr) ...@@ -137,11 +137,11 @@ const char* wine_dbgstr_addr(const ADDRESS64* addr)
case AddrModeFlat: case AddrModeFlat:
return wine_dbg_sprintf("flat<%s>", wine_dbgstr_longlong(addr->Offset)); return wine_dbg_sprintf("flat<%s>", wine_dbgstr_longlong(addr->Offset));
case AddrMode1616: case AddrMode1616:
return wine_dbg_sprintf("1616<%04x:%04x>", addr->Segment, (DWORD)addr->Offset); return wine_dbg_sprintf("1616<%04x:%04lx>", addr->Segment, (DWORD)addr->Offset);
case AddrMode1632: case AddrMode1632:
return wine_dbg_sprintf("1632<%04x:%08x>", addr->Segment, (DWORD)addr->Offset); return wine_dbg_sprintf("1632<%04x:%08lx>", addr->Segment, (DWORD)addr->Offset);
case AddrModeReal: case AddrModeReal:
return wine_dbg_sprintf("real<%04x:%04x>", addr->Segment, (DWORD)addr->Offset); return wine_dbg_sprintf("real<%04x:%04lx>", addr->Segment, (DWORD)addr->Offset);
default: default:
return "unknown"; return "unknown";
} }
...@@ -409,9 +409,9 @@ static BOOL check_live_target(struct process* pcs, BOOL wow64, BOOL child_wow64) ...@@ -409,9 +409,9 @@ static BOOL check_live_target(struct process* pcs, BOOL wow64, BOOL child_wow64)
if (!base) return FALSE; if (!base) return FALSE;
TRACE("got debug info address %#lx from PEB %p\n", base, pbi.PebBaseAddress); TRACE("got debug info address %#Ix from PEB %p\n", base, pbi.PebBaseAddress);
if (!elf_read_wine_loader_dbg_info(pcs, base) && !macho_read_wine_loader_dbg_info(pcs, base)) if (!elf_read_wine_loader_dbg_info(pcs, base) && !macho_read_wine_loader_dbg_info(pcs, base))
WARN("couldn't load process debug info at %#lx\n", base); WARN("couldn't load process debug info at %#Ix\n", base);
return TRUE; return TRUE;
} }
...@@ -688,7 +688,7 @@ BOOL WINAPI SymSetScopeFromIndex(HANDLE hProcess, ULONG64 addr, DWORD index) ...@@ -688,7 +688,7 @@ BOOL WINAPI SymSetScopeFromIndex(HANDLE hProcess, ULONG64 addr, DWORD index)
struct module_pair pair; struct module_pair pair;
struct symt* sym; struct symt* sym;
TRACE("(%p %#I64x %u)\n", hProcess, addr, index); TRACE("(%p %#I64x %lu)\n", hProcess, addr, index);
if (!module_init_pair(&pair, hProcess, addr)) return FALSE; if (!module_init_pair(&pair, hProcess, addr)) return FALSE;
sym = symt_index2ptr(pair.effective, index); sym = symt_index2ptr(pair.effective, index);
...@@ -708,7 +708,7 @@ BOOL WINAPI SymSetScopeFromInlineContext(HANDLE hProcess, ULONG64 addr, DWORD in ...@@ -708,7 +708,7 @@ BOOL WINAPI SymSetScopeFromInlineContext(HANDLE hProcess, ULONG64 addr, DWORD in
struct module_pair pair; struct module_pair pair;
struct symt_inlinesite* inlined; struct symt_inlinesite* inlined;
TRACE("(%p %I64x %x)\n", hProcess, addr, inlinectx); TRACE("(%p %I64x %lx)\n", hProcess, addr, inlinectx);
switch (IFC_MODE(inlinectx)) switch (IFC_MODE(inlinectx))
{ {
...@@ -770,7 +770,7 @@ static BOOL CALLBACK reg_cb64to32(HANDLE hProcess, ULONG action, ULONG64 data, U ...@@ -770,7 +770,7 @@ static BOOL CALLBACK reg_cb64to32(HANDLE hProcess, ULONG action, ULONG64 data, U
case CBA_EVENT: case CBA_EVENT:
case CBA_READ_MEMORY: case CBA_READ_MEMORY:
default: default:
FIXME("No mapping for action %u\n", action); FIXME("No mapping for action %lu\n", action);
return FALSE; return FALSE;
} }
return pcs->reg_cb32(hProcess, action, data32, (PVOID)(DWORD_PTR)user); return pcs->reg_cb32(hProcess, action, data32, (PVOID)(DWORD_PTR)user);
...@@ -783,7 +783,7 @@ BOOL pcs_callback(const struct process* pcs, ULONG action, void* data) ...@@ -783,7 +783,7 @@ BOOL pcs_callback(const struct process* pcs, ULONG action, void* data)
{ {
IMAGEHLP_DEFERRED_SYMBOL_LOAD64 idsl; IMAGEHLP_DEFERRED_SYMBOL_LOAD64 idsl;
TRACE("%p %u %p\n", pcs, action, data); TRACE("%p %lu %p\n", pcs, action, data);
if (!pcs->reg_cb) return FALSE; if (!pcs->reg_cb) return FALSE;
if (!pcs->reg_is_unicode) if (!pcs->reg_is_unicode)
...@@ -815,7 +815,7 @@ BOOL pcs_callback(const struct process* pcs, ULONG action, void* data) ...@@ -815,7 +815,7 @@ BOOL pcs_callback(const struct process* pcs, ULONG action, void* data)
case CBA_EVENT: case CBA_EVENT:
case CBA_READ_MEMORY: case CBA_READ_MEMORY:
default: default:
FIXME("No mapping for action %u\n", action); FIXME("No mapping for action %lu\n", action);
return FALSE; return FALSE;
} }
} }
......
...@@ -162,14 +162,14 @@ static const char* elf_map_section(struct image_section_map* ism) ...@@ -162,14 +162,14 @@ static const char* elf_map_section(struct image_section_map* ism)
size = fmap->sect[ism->sidx].shdr.sh_offset + fmap->sect[ism->sidx].shdr.sh_size - ofst; size = fmap->sect[ism->sidx].shdr.sh_offset + fmap->sect[ism->sidx].shdr.sh_size - ofst;
if (!(mapping = CreateFileMappingW(fmap->handle, NULL, PAGE_READONLY, 0, ofst + size, NULL))) if (!(mapping = CreateFileMappingW(fmap->handle, NULL, PAGE_READONLY, 0, ofst + size, NULL)))
{ {
ERR("map creation %p failed %u offset %lu %lu size %lu\n", fmap->handle, GetLastError(), ofst, ofst % 4096, size); ERR("map creation %p failed %lu offset %Iu %Iu size %Iu\n", fmap->handle, GetLastError(), ofst, ofst % 4096, size);
return IMAGE_NO_MAP; return IMAGE_NO_MAP;
} }
fmap->sect[ism->sidx].mapped = MapViewOfFile(mapping, FILE_MAP_READ, 0, ofst, size); fmap->sect[ism->sidx].mapped = MapViewOfFile(mapping, FILE_MAP_READ, 0, ofst, size);
CloseHandle(mapping); CloseHandle(mapping);
if (!fmap->sect[ism->sidx].mapped) if (!fmap->sect[ism->sidx].mapped)
{ {
ERR("map %p failed %u offset %lu %lu size %lu\n", fmap->handle, GetLastError(), ofst, ofst % 4096, size); ERR("map %p failed %lu offset %Iu %Iu size %Iu\n", fmap->handle, GetLastError(), ofst, ofst % 4096, size);
return IMAGE_NO_MAP; return IMAGE_NO_MAP;
} }
return fmap->sect[ism->sidx].mapped + (fmap->sect[ism->sidx].shdr.sh_offset & (sysinfo.dwAllocationGranularity - 1)); return fmap->sect[ism->sidx].mapped + (fmap->sect[ism->sidx].shdr.sh_offset & (sysinfo.dwAllocationGranularity - 1));
...@@ -861,12 +861,12 @@ static void elf_finish_stabs_info(struct module* module, const struct hash_table ...@@ -861,12 +861,12 @@ static void elf_finish_stabs_info(struct module* module, const struct hash_table
{ {
if (((struct symt_function*)sym)->address != elf_info->elf_addr && if (((struct symt_function*)sym)->address != elf_info->elf_addr &&
((struct symt_function*)sym)->address != elf_info->elf_addr + symp->st_value) ((struct symt_function*)sym)->address != elf_info->elf_addr + symp->st_value)
FIXME("Changing address for %p/%s!%s from %08lx to %s\n", FIXME("Changing address for %p/%s!%s from %08Ix to %s\n",
sym, debugstr_w(module->modulename), sym->hash_elt.name, sym, debugstr_w(module->modulename), sym->hash_elt.name,
((struct symt_function*)sym)->address, ((struct symt_function*)sym)->address,
wine_dbgstr_longlong(elf_info->elf_addr + symp->st_value)); wine_dbgstr_longlong(elf_info->elf_addr + symp->st_value));
if (((struct symt_function*)sym)->size && ((struct symt_function*)sym)->size != symp->st_size) if (((struct symt_function*)sym)->size && ((struct symt_function*)sym)->size != symp->st_size)
FIXME("Changing size for %p/%s!%s from %08lx to %08x\n", FIXME("Changing size for %p/%s!%s from %08Ix to %08x\n",
sym, debugstr_w(module->modulename), sym->hash_elt.name, sym, debugstr_w(module->modulename), sym->hash_elt.name,
((struct symt_function*)sym)->size, (unsigned int)symp->st_size); ((struct symt_function*)sym)->size, (unsigned int)symp->st_size);
...@@ -890,7 +890,7 @@ static void elf_finish_stabs_info(struct module* module, const struct hash_table ...@@ -890,7 +890,7 @@ static void elf_finish_stabs_info(struct module* module, const struct hash_table
{ {
if (((struct symt_data*)sym)->u.var.offset != elf_info->elf_addr && if (((struct symt_data*)sym)->u.var.offset != elf_info->elf_addr &&
((struct symt_data*)sym)->u.var.offset != elf_info->elf_addr + symp->st_value) ((struct symt_data*)sym)->u.var.offset != elf_info->elf_addr + symp->st_value)
FIXME("Changing address for %p/%s!%s from %08lx to %s\n", FIXME("Changing address for %p/%s!%s from %08Ix to %s\n",
sym, debugstr_w(module->modulename), sym->hash_elt.name, sym, debugstr_w(module->modulename), sym->hash_elt.name,
((struct symt_function*)sym)->address, ((struct symt_function*)sym)->address,
wine_dbgstr_longlong(elf_info->elf_addr + symp->st_value)); wine_dbgstr_longlong(elf_info->elf_addr + symp->st_value));
...@@ -1227,12 +1227,12 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename, ...@@ -1227,12 +1227,12 @@ static BOOL elf_load_file_from_fmap(struct process* pcs, const WCHAR* filename,
{ {
ULONG_PTR rva_dyn = elf_get_map_rva(&ism); ULONG_PTR rva_dyn = elf_get_map_rva(&ism);
TRACE("For module %s, got ELF (start=%lx dyn=%lx), link_map (start=%lx dyn=%lx)\n", TRACE("For module %s, got ELF (start=%Ix dyn=%Ix), link_map (start=%Ix dyn=%Ix)\n",
debugstr_w(filename), (ULONG_PTR)fmap->u.elf.elf_start, rva_dyn, debugstr_w(filename), (ULONG_PTR)fmap->u.elf.elf_start, rva_dyn,
load_offset, dyn_addr); load_offset, dyn_addr);
if (dyn_addr && load_offset + rva_dyn != dyn_addr) if (dyn_addr && load_offset + rva_dyn != dyn_addr)
{ {
WARN("\thave to relocate: %lx\n", dyn_addr - rva_dyn); WARN("\thave to relocate: %Ix\n", dyn_addr - rva_dyn);
modbase = dyn_addr - rva_dyn; modbase = dyn_addr - rva_dyn;
} }
} else WARN("For module %s, no .dynamic section\n", debugstr_w(filename)); } else WARN("For module %s, no .dynamic section\n", debugstr_w(filename));
...@@ -1301,7 +1301,7 @@ static BOOL elf_load_file(struct process* pcs, const WCHAR* filename, ...@@ -1301,7 +1301,7 @@ static BOOL elf_load_file(struct process* pcs, const WCHAR* filename,
struct image_file_map fmap; struct image_file_map fmap;
struct elf_map_file_data emfd; struct elf_map_file_data emfd;
TRACE("Processing elf file '%s' at %08lx\n", debugstr_w(filename), load_offset); TRACE("Processing elf file '%s' at %08Ix\n", debugstr_w(filename), load_offset);
emfd.kind = from_file; emfd.kind = from_file;
emfd.u.file.filename = filename; emfd.u.file.filename = filename;
...@@ -1667,7 +1667,7 @@ static struct module* elf_load_module(struct process* pcs, const WCHAR* name, UL ...@@ -1667,7 +1667,7 @@ static struct module* elf_load_module(struct process* pcs, const WCHAR* name, UL
{ {
struct elf_load el; struct elf_load el;
TRACE("(%p %s %08lx)\n", pcs, debugstr_w(name), addr); TRACE("(%p %s %08Ix)\n", pcs, debugstr_w(name), addr);
el.elf_info.flags = ELF_INFO_MODULE; el.elf_info.flags = ELF_INFO_MODULE;
el.ret = FALSE; el.ret = FALSE;
...@@ -1770,7 +1770,7 @@ BOOL elf_read_wine_loader_dbg_info(struct process* pcs, ULONG_PTR addr) ...@@ -1770,7 +1770,7 @@ BOOL elf_read_wine_loader_dbg_info(struct process* pcs, ULONG_PTR addr)
} }
if (!ret || !elf_info.dbg_hdr_addr) return FALSE; if (!ret || !elf_info.dbg_hdr_addr) return FALSE;
TRACE("Found ELF debug header %#lx\n", elf_info.dbg_hdr_addr); TRACE("Found ELF debug header %#Ix\n", elf_info.dbg_hdr_addr);
elf_info.module->format_info[DFI_ELF]->u.elf_info->elf_loader = 1; elf_info.module->format_info[DFI_ELF]->u.elf_info->elf_loader = 1;
module_set_module(elf_info.module, S_WineLoaderW); module_set_module(elf_info.module, S_WineLoaderW);
pcs->dbg_hdr_addr = elf_info.dbg_hdr_addr; pcs->dbg_hdr_addr = elf_info.dbg_hdr_addr;
......
...@@ -44,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp); ...@@ -44,7 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
PIMAGE_DEBUG_INFORMATION WINAPI MapDebugInformation(HANDLE FileHandle, PCSTR FileName, PIMAGE_DEBUG_INFORMATION WINAPI MapDebugInformation(HANDLE FileHandle, PCSTR FileName,
PCSTR SymbolPath, ULONG ImageBase) PCSTR SymbolPath, ULONG ImageBase)
{ {
FIXME("(%p, %s, %s, 0x%08x): stub\n", FileHandle, FileName, SymbolPath, ImageBase); FIXME("(%p, %s, %s, 0x%08lx): stub\n", FileHandle, FileName, SymbolPath, ImageBase);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED); SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return NULL; return NULL;
} }
......
...@@ -242,24 +242,24 @@ static const char* macho_map_range(const struct macho_file_map* fmap, ULONG_PTR ...@@ -242,24 +242,24 @@ static const char* macho_map_range(const struct macho_file_map* fmap, ULONG_PTR
const void* aligned_ptr; const void* aligned_ptr;
HANDLE mapping; HANDLE mapping;
TRACE("(%p/%p, 0x%08lx, 0x%08lx)\n", fmap, fmap->handle, offset, len); TRACE("(%p/%p, 0x%08Ix, 0x%08Ix)\n", fmap, fmap->handle, offset, len);
macho_calc_range(fmap, offset, len, &aligned_offset, &aligned_map_end, &misalign); macho_calc_range(fmap, offset, len, &aligned_offset, &aligned_map_end, &misalign);
if (!(mapping = CreateFileMappingW(fmap->handle, NULL, PAGE_READONLY, 0, 0, NULL))) if (!(mapping = CreateFileMappingW(fmap->handle, NULL, PAGE_READONLY, 0, 0, NULL)))
{ {
ERR("map creation %p failed %u size %lu\n", fmap->handle, GetLastError(), aligned_map_end); ERR("map creation %p failed %lu size %Iu\n", fmap->handle, GetLastError(), aligned_map_end);
return IMAGE_NO_MAP; return IMAGE_NO_MAP;
} }
aligned_ptr = MapViewOfFile(mapping, FILE_MAP_READ, 0, aligned_offset, aligned_map_end - aligned_offset); aligned_ptr = MapViewOfFile(mapping, FILE_MAP_READ, 0, aligned_offset, aligned_map_end - aligned_offset);
CloseHandle(mapping); CloseHandle(mapping);
if (!aligned_ptr) if (!aligned_ptr)
{ {
ERR("map failed %u\n", GetLastError()); ERR("map failed %lu\n", GetLastError());
return IMAGE_NO_MAP; return IMAGE_NO_MAP;
} }
TRACE("Mapped (0x%08lx - 0x%08lx) to %p\n", aligned_offset, aligned_map_end, aligned_ptr); TRACE("Mapped (0x%08Ix - 0x%08Ix) to %p\n", aligned_offset, aligned_map_end, aligned_ptr);
if (base) if (base)
*base = aligned_ptr; *base = aligned_ptr;
...@@ -274,7 +274,7 @@ static const char* macho_map_range(const struct macho_file_map* fmap, ULONG_PTR ...@@ -274,7 +274,7 @@ static const char* macho_map_range(const struct macho_file_map* fmap, ULONG_PTR
static void macho_unmap_range(const char** base, const void** mapped, const struct macho_file_map* fmap, static void macho_unmap_range(const char** base, const void** mapped, const struct macho_file_map* fmap,
ULONG_PTR offset, ULONG_PTR len) ULONG_PTR offset, ULONG_PTR len)
{ {
TRACE("(%p, %p, %p/%p, 0x%08lx, 0x%08lx)\n", base, mapped, fmap, fmap->handle, offset, len); TRACE("(%p, %p, %p/%p, 0x%08Ix, 0x%08Ix)\n", base, mapped, fmap, fmap->handle, offset, len);
if ((mapped && *mapped != IMAGE_NO_MAP) || (base && *base != IMAGE_NO_MAP)) if ((mapped && *mapped != IMAGE_NO_MAP) || (base && *base != IMAGE_NO_MAP))
{ {
...@@ -311,7 +311,7 @@ static BOOL macho_map_ranges(const struct macho_file_map* fmap, ...@@ -311,7 +311,7 @@ static BOOL macho_map_ranges(const struct macho_file_map* fmap,
ULONG_PTR aligned_offset1, aligned_map_end1; ULONG_PTR aligned_offset1, aligned_map_end1;
ULONG_PTR aligned_offset2, aligned_map_end2; ULONG_PTR aligned_offset2, aligned_map_end2;
TRACE("(%p/%p, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, %p, %p)\n", fmap, fmap->handle, TRACE("(%p/%p, 0x%08Ix, 0x%08Ix, 0x%08Ix, 0x%08Ix, %p, %p)\n", fmap, fmap->handle,
offset1, len1, offset2, len2, mapped1, mapped2); offset1, len1, offset2, len2, mapped1, mapped2);
macho_calc_range(fmap, offset1, len1, &aligned_offset1, &aligned_map_end1, NULL); macho_calc_range(fmap, offset1, len1, &aligned_offset1, &aligned_map_end1, NULL);
...@@ -363,7 +363,7 @@ static void macho_unmap_ranges(const struct macho_file_map* fmap, ...@@ -363,7 +363,7 @@ static void macho_unmap_ranges(const struct macho_file_map* fmap,
ULONG_PTR aligned_offset1, aligned_map_end1; ULONG_PTR aligned_offset1, aligned_map_end1;
ULONG_PTR aligned_offset2, aligned_map_end2; ULONG_PTR aligned_offset2, aligned_map_end2;
TRACE("(%p/%p, 0x%08lx, 0x%08lx, 0x%08lx, 0x%08lx, %p/%p, %p/%p)\n", fmap, fmap->handle, TRACE("(%p/%p, 0x%08Ix, 0x%08Ix, 0x%08Ix, 0x%08Ix, %p/%p, %p/%p)\n", fmap, fmap->handle,
offset1, len1, offset2, len2, mapped1, *mapped1, mapped2, *mapped2); offset1, len1, offset2, len2, mapped1, *mapped1, mapped2, *mapped2);
macho_calc_range(fmap, offset1, len1, &aligned_offset1, &aligned_map_end1, NULL); macho_calc_range(fmap, offset1, len1, &aligned_offset1, &aligned_map_end1, NULL);
...@@ -648,9 +648,9 @@ static int macho_load_section_info(struct image_file_map* ifm, const struct mach ...@@ -648,9 +648,9 @@ static int macho_load_section_info(struct image_file_map* ifm, const struct mach
sections = (const void *)(sc + 1); sections = (const void *)(sc + 1);
} }
TRACE("(%p/%p, %p, %p) before: 0x%08lx - 0x%08lx\n", fmap, fmap->handle, lc, user, TRACE("(%p/%p, %p, %p) before: 0x%08Ix - 0x%08Ix\n", fmap, fmap->handle, lc, user,
(ULONG_PTR)fmap->segs_start, (ULONG_PTR)fmap->segs_size); (ULONG_PTR)fmap->segs_start, (ULONG_PTR)fmap->segs_size);
TRACE("Segment command vm: 0x%08lx - 0x%08lx\n", (ULONG_PTR)vmaddr, TRACE("Segment command vm: 0x%08Ix - 0x%08Ix\n", (ULONG_PTR)vmaddr,
(ULONG_PTR)(vmaddr + vmsize)); (ULONG_PTR)(vmaddr + vmsize));
/* Images in the dyld shared cache have their segments mapped non-contiguously. /* Images in the dyld shared cache have their segments mapped non-contiguously.
...@@ -674,7 +674,7 @@ static int macho_load_section_info(struct image_file_map* ifm, const struct mach ...@@ -674,7 +674,7 @@ static int macho_load_section_info(struct image_file_map* ifm, const struct mach
tmp = (vmaddr + vmsize + page_mask) & ~page_mask; tmp = (vmaddr + vmsize + page_mask) & ~page_mask;
if (fmap->segs_size < tmp) fmap->segs_size = tmp; if (fmap->segs_size < tmp) fmap->segs_size = tmp;
TRACE("after: 0x%08lx - 0x%08lx\n", (ULONG_PTR)fmap->segs_start, (ULONG_PTR)fmap->segs_size); TRACE("after: 0x%08Ix - 0x%08Ix\n", (ULONG_PTR)fmap->segs_start, (ULONG_PTR)fmap->segs_size);
} }
for (i = 0; i < nsects; i++) for (i = 0; i < nsects; i++)
...@@ -777,7 +777,7 @@ static BOOL macho_map_file(struct process *pcs, const WCHAR *filenameW, ...@@ -777,7 +777,7 @@ static BOOL macho_map_file(struct process *pcs, const WCHAR *filenameW,
if (!ReadFile(fmap->handle, &fat_header, sizeof(fat_header), &bytes_read, NULL) || bytes_read != sizeof(fat_header)) if (!ReadFile(fmap->handle, &fat_header, sizeof(fat_header), &bytes_read, NULL) || bytes_read != sizeof(fat_header))
{ {
TRACE("failed to read fat header: %u\n", GetLastError()); TRACE("failed to read fat header: %lu\n", GetLastError());
goto done; goto done;
} }
TRACE("... got possible fat header\n"); TRACE("... got possible fat header\n");
...@@ -859,7 +859,7 @@ static BOOL macho_map_file(struct process *pcs, const WCHAR *filenameW, ...@@ -859,7 +859,7 @@ static BOOL macho_map_file(struct process *pcs, const WCHAR *filenameW,
} }
fmap->segs_size -= fmap->segs_start; fmap->segs_size -= fmap->segs_start;
TRACE("segs_start: 0x%08lx, segs_size: 0x%08lx\n", (ULONG_PTR)fmap->segs_start, TRACE("segs_start: 0x%08Ix, segs_size: 0x%08Ix\n", (ULONG_PTR)fmap->segs_start,
(ULONG_PTR)fmap->segs_size); (ULONG_PTR)fmap->segs_size);
if (macho_enum_load_commands(ifm, MACHO_LC_UUID, find_uuid, NULL) < 0) if (macho_enum_load_commands(ifm, MACHO_LC_UUID, find_uuid, NULL) < 0)
...@@ -973,7 +973,7 @@ static void macho_stabs_def_cb(struct module* module, ULONG_PTR load_offset, ...@@ -973,7 +973,7 @@ static void macho_stabs_def_cb(struct module* module, ULONG_PTR load_offset,
struct macho_debug_info* mdi = user; struct macho_debug_info* mdi = user;
struct symtab_elt* ste; struct symtab_elt* ste;
TRACE("(%p, 0x%08lx, %s, 0x%08lx, %d, %d, %u, %p, %p/%p/%p)\n", module, load_offset, TRACE("(%p, 0x%08Ix, %s, 0x%08Ix, %d, %d, %u, %p, %p/%p/%p)\n", module, load_offset,
debugstr_a(name), offset, is_public, is_global, sectidx, debugstr_a(name), offset, is_public, is_global, sectidx,
compiland, mdi, mdi->fmap, mdi->fmap->handle); compiland, mdi, mdi->fmap, mdi->fmap->handle);
...@@ -1065,7 +1065,7 @@ static void macho_finish_stabs(struct module* module, struct hash_table* ht_symt ...@@ -1065,7 +1065,7 @@ static void macho_finish_stabs(struct module* module, struct hash_table* ht_symt
func = (struct symt_function*)sym; func = (struct symt_function*)sym;
if (func->address == module->format_info[DFI_MACHO]->u.macho_info->load_addr) if (func->address == module->format_info[DFI_MACHO]->u.macho_info->load_addr)
{ {
TRACE("Adjusting function %p/%s!%s from 0x%08lx to 0x%08lx\n", func, TRACE("Adjusting function %p/%s!%s from 0x%08Ix to 0x%08Ix\n", func,
debugstr_w(module->modulename), sym->hash_elt.name, debugstr_w(module->modulename), sym->hash_elt.name,
func->address, ste->addr); func->address, ste->addr);
func->address = ste->addr; func->address = ste->addr;
...@@ -1082,7 +1082,7 @@ static void macho_finish_stabs(struct module* module, struct hash_table* ht_symt ...@@ -1082,7 +1082,7 @@ static void macho_finish_stabs(struct module* module, struct hash_table* ht_symt
case DataIsFileStatic: case DataIsFileStatic:
if (data->u.var.offset == module->format_info[DFI_MACHO]->u.macho_info->load_addr) if (data->u.var.offset == module->format_info[DFI_MACHO]->u.macho_info->load_addr)
{ {
TRACE("Adjusting data symbol %p/%s!%s from 0x%08lx to 0x%08lx\n", TRACE("Adjusting data symbol %p/%s!%s from 0x%08Ix to 0x%08Ix\n",
data, debugstr_w(module->modulename), sym->hash_elt.name, data, debugstr_w(module->modulename), sym->hash_elt.name,
data->u.var.offset, ste->addr); data->u.var.offset, ste->addr);
data->u.var.offset = ste->addr; data->u.var.offset = ste->addr;
...@@ -1154,7 +1154,7 @@ static void macho_finish_stabs(struct module* module, struct hash_table* ht_symt ...@@ -1154,7 +1154,7 @@ static void macho_finish_stabs(struct module* module, struct hash_table* ht_symt
symt_get_info(module, &sym->symt, TI_GET_LENGTH, &size); symt_get_info(module, &sym->symt, TI_GET_LENGTH, &size);
symt_get_info(module, &sym->symt, TI_GET_DATAKIND, &kind); symt_get_info(module, &sym->symt, TI_GET_DATAKIND, &kind);
if (size && kind == (ste->is_global ? DataIsGlobal : DataIsFileStatic)) if (size && kind == (ste->is_global ? DataIsGlobal : DataIsFileStatic))
FIXME("Duplicate in %s: %s<%08lx> %s<%s-%s>\n", FIXME("Duplicate in %s: %s<%08Ix> %s<%s-%s>\n",
debugstr_w(module->modulename), debugstr_w(module->modulename),
ste->ht_elt.name, ste->addr, ste->ht_elt.name, ste->addr,
sym->hash_elt.name, sym->hash_elt.name,
...@@ -1462,7 +1462,7 @@ static BOOL macho_load_file(struct process* pcs, const WCHAR* filename, ...@@ -1462,7 +1462,7 @@ static BOOL macho_load_file(struct process* pcs, const WCHAR* filename,
BOOL split_segs; BOOL split_segs;
struct image_file_map fmap; struct image_file_map fmap;
TRACE("(%p/%p, %s, 0x%08lx, %p/0x%08x)\n", pcs, pcs->handle, debugstr_w(filename), TRACE("(%p/%p, %s, 0x%08Ix, %p/0x%08x)\n", pcs, pcs->handle, debugstr_w(filename),
load_addr, macho_info, macho_info->flags); load_addr, macho_info, macho_info->flags);
split_segs = image_uses_split_segs(pcs, load_addr); split_segs = image_uses_split_segs(pcs, load_addr);
...@@ -1549,7 +1549,7 @@ static BOOL macho_search_and_load_file(struct process* pcs, const WCHAR* filenam ...@@ -1549,7 +1549,7 @@ static BOOL macho_search_and_load_file(struct process* pcs, const WCHAR* filenam
const WCHAR* p; const WCHAR* p;
struct macho_load_params load_params; struct macho_load_params load_params;
TRACE("(%p/%p, %s, 0x%08lx, %p)\n", pcs, pcs->handle, debugstr_w(filename), load_addr, TRACE("(%p/%p, %s, 0x%08Ix, %p)\n", pcs, pcs->handle, debugstr_w(filename), load_addr,
macho_info); macho_info);
if (filename == NULL || *filename == '\0') return FALSE; if (filename == NULL || *filename == '\0') return FALSE;
...@@ -1673,7 +1673,7 @@ static BOOL macho_enum_sync_cb(const WCHAR* name, ULONG_PTR addr, void* user) ...@@ -1673,7 +1673,7 @@ static BOOL macho_enum_sync_cb(const WCHAR* name, ULONG_PTR addr, void* user)
{ {
struct macho_sync* ms = user; struct macho_sync* ms = user;
TRACE("(%s, 0x%08lx, %p)\n", debugstr_w(name), addr, user); TRACE("(%s, 0x%08Ix, %p)\n", debugstr_w(name), addr, user);
macho_search_and_load_file(ms->pcs, name, addr, &ms->macho_info); macho_search_and_load_file(ms->pcs, name, addr, &ms->macho_info);
return TRUE; return TRUE;
} }
...@@ -1759,7 +1759,7 @@ static BOOL macho_load_cb(const WCHAR* name, ULONG_PTR addr, void* user) ...@@ -1759,7 +1759,7 @@ static BOOL macho_load_cb(const WCHAR* name, ULONG_PTR addr, void* user)
struct macho_load* ml = user; struct macho_load* ml = user;
const WCHAR* p; const WCHAR* p;
TRACE("(%s, 0x%08lx, %p)\n", debugstr_w(name), addr, user); TRACE("(%s, 0x%08Ix, %p)\n", debugstr_w(name), addr, user);
/* memcmp is needed for matches when bufstr contains also version information /* memcmp is needed for matches when bufstr contains also version information
* ml->name: libc.so, name: libc.so.6.0 * ml->name: libc.so, name: libc.so.6.0
...@@ -1784,7 +1784,7 @@ static struct module* macho_load_module(struct process* pcs, const WCHAR* name, ...@@ -1784,7 +1784,7 @@ static struct module* macho_load_module(struct process* pcs, const WCHAR* name,
{ {
struct macho_load ml; struct macho_load ml;
TRACE("(%p/%p, %s, 0x%08lx)\n", pcs, pcs->handle, debugstr_w(name), addr); TRACE("(%p/%p, %s, 0x%08Ix)\n", pcs, pcs->handle, debugstr_w(name), addr);
ml.macho_info.flags = MACHO_INFO_MODULE; ml.macho_info.flags = MACHO_INFO_MODULE;
ml.ret = FALSE; ml.ret = FALSE;
...@@ -1916,6 +1916,6 @@ BOOL macho_read_wine_loader_dbg_info(struct process* pcs, ULONG_PTR addr) ...@@ -1916,6 +1916,6 @@ BOOL macho_read_wine_loader_dbg_info(struct process* pcs, ULONG_PTR addr)
macho_info.module->format_info[DFI_MACHO]->u.macho_info->is_loader = 1; macho_info.module->format_info[DFI_MACHO]->u.macho_info->is_loader = 1;
module_set_module(macho_info.module, S_WineLoaderW); module_set_module(macho_info.module, S_WineLoaderW);
pcs->loader = &macho_loader_ops; pcs->loader = &macho_loader_ops;
TRACE("Found macho debug header %#lx\n", pcs->dbg_hdr_addr); TRACE("Found macho debug header %#Ix\n", pcs->dbg_hdr_addr);
return TRUE; return TRUE;
} }
...@@ -141,7 +141,7 @@ static BOOL fetch_thread_info(struct dump_context* dc, int thd_idx, ...@@ -141,7 +141,7 @@ static BOOL fetch_thread_info(struct dump_context* dc, int thd_idx,
if ((hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, tid)) == NULL) if ((hThread = OpenThread(THREAD_ALL_ACCESS, FALSE, tid)) == NULL)
{ {
FIXME("Couldn't open thread %u (%u)\n", tid, GetLastError()); FIXME("Couldn't open thread %lu (%lu)\n", tid, GetLastError());
return FALSE; return FALSE;
} }
......
...@@ -489,7 +489,7 @@ static BOOL image_check_debug_link_crc(const WCHAR* file, struct image_file_map* ...@@ -489,7 +489,7 @@ static BOOL image_check_debug_link_crc(const WCHAR* file, struct image_file_map*
crc = calc_crc32(handle); crc = calc_crc32(handle);
if (crc != link_crc) if (crc != link_crc)
{ {
WARN("Bad CRC for file %s (got %08x while expecting %08x)\n", debugstr_w(file), crc, link_crc); WARN("Bad CRC for file %s (got %08lx while expecting %08lx)\n", debugstr_w(file), crc, link_crc);
CloseHandle(handle); CloseHandle(handle);
return FALSE; return FALSE;
} }
...@@ -858,7 +858,7 @@ DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName, ...@@ -858,7 +858,7 @@ DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName,
unsigned len; unsigned len;
DWORD64 ret; DWORD64 ret;
TRACE("(%p %p %s %s %s %08x %p %08x)\n", TRACE("(%p %p %s %s %s %08lx %p %08lx)\n",
hProcess, hFile, debugstr_a(ImageName), debugstr_a(ModuleName), hProcess, hFile, debugstr_a(ImageName), debugstr_a(ModuleName),
wine_dbgstr_longlong(BaseOfDll), DllSize, Data, Flags); wine_dbgstr_longlong(BaseOfDll), DllSize, Data, Flags);
...@@ -895,7 +895,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam ...@@ -895,7 +895,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
struct module* module = NULL; struct module* module = NULL;
struct module* altmodule; struct module* altmodule;
TRACE("(%p %p %s %s %s %08x %p %08x)\n", TRACE("(%p %p %s %s %s %08lx %p %08lx)\n",
hProcess, hFile, debugstr_w(wImageName), debugstr_w(wModuleName), hProcess, hFile, debugstr_w(wImageName), debugstr_w(wModuleName),
wine_dbgstr_longlong(BaseOfDll), SizeOfDll, Data, Flags); wine_dbgstr_longlong(BaseOfDll), SizeOfDll, Data, Flags);
...@@ -906,7 +906,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam ...@@ -906,7 +906,7 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if (!(pcs = process_find_by_handle(hProcess))) return 0; if (!(pcs = process_find_by_handle(hProcess))) return 0;
if (Flags & ~(SLMFLAG_VIRTUAL)) if (Flags & ~(SLMFLAG_VIRTUAL))
FIXME("Unsupported Flags %08x for %s\n", Flags, debugstr_w(wImageName)); FIXME("Unsupported Flags %08lx for %s\n", Flags, debugstr_w(wImageName));
pcs->loader->synchronize_module_list(pcs); pcs->loader->synchronize_module_list(pcs);
...@@ -1342,7 +1342,7 @@ BOOL WINAPI SymGetModuleInfo64(HANDLE hProcess, DWORD64 dwAddr, ...@@ -1342,7 +1342,7 @@ BOOL WINAPI SymGetModuleInfo64(HANDLE hProcess, DWORD64 dwAddr,
if (sizeof(mi64) < ModuleInfo->SizeOfStruct) if (sizeof(mi64) < ModuleInfo->SizeOfStruct)
{ {
SetLastError(ERROR_MOD_NOT_FOUND); /* NOTE: native returns this error */ SetLastError(ERROR_MOD_NOT_FOUND); /* NOTE: native returns this error */
WARN("Wrong size %u\n", ModuleInfo->SizeOfStruct); WARN("Wrong size %lu\n", ModuleInfo->SizeOfStruct);
return FALSE; return FALSE;
} }
......
...@@ -693,7 +693,7 @@ static struct symt* codeview_add_type_array(struct codeview_type_parse* ctp, ...@@ -693,7 +693,7 @@ static struct symt* codeview_add_type_array(struct codeview_type_parse* ctp,
if (symt_get_info(ctp->module, elem, TI_GET_LENGTH, &elem_size) && elem_size) if (symt_get_info(ctp->module, elem, TI_GET_LENGTH, &elem_size) && elem_size)
{ {
if (arr_len % (DWORD)elem_size) if (arr_len % (DWORD)elem_size)
FIXME("array size should be a multiple of element size %u %u\n", arr_len, (DWORD)elem_size); FIXME("array size should be a multiple of element size %u %lu\n", arr_len, (DWORD)elem_size);
count = arr_len / (unsigned)elem_size; count = arr_len / (unsigned)elem_size;
} }
return &symt_new_array(ctp->module, 0, count, elem, index)->symt; return &symt_new_array(ctp->module, 0, count, elem, index)->symt;
...@@ -1465,7 +1465,7 @@ static void codeview_snarf_linetab(const struct msc_debug_info* msc_dbg, const B ...@@ -1465,7 +1465,7 @@ static void codeview_snarf_linetab(const struct msc_debug_info* msc_dbg, const B
/* FIXME: at least labels support line numbers */ /* FIXME: at least labels support line numbers */
if (!symt_check_tag(&func->symt, SymTagFunction) && !symt_check_tag(&func->symt, SymTagInlineSite)) if (!symt_check_tag(&func->symt, SymTagFunction) && !symt_check_tag(&func->symt, SymTagInlineSite))
{ {
WARN("--not a func at %04x:%08x %lx tag=%d\n", WARN("--not a func at %04x:%08x %Ix tag=%d\n",
ltb->seg, ltb->offsets[k], addr, func ? func->symt.tag : -1); ltb->seg, ltb->offsets[k], addr, func ? func->symt.tag : -1);
func = NULL; func = NULL;
break; break;
...@@ -1871,7 +1871,7 @@ static BOOL cv_dbgsubsect_find_inlinee(const struct msc_debug_info* msc_dbg, ...@@ -1871,7 +1871,7 @@ static BOOL cv_dbgsubsect_find_inlinee(const struct msc_debug_info* msc_dbg,
} }
break; break;
default: default:
FIXME("Unknown signature %x in INLINEELINES subsection\n", *(DWORD*)CV_RECORD_AFTER(hdr)); FIXME("Unknown signature %lx in INLINEELINES subsection\n", *(DWORD*)CV_RECORD_AFTER(hdr));
break; break;
} }
} }
...@@ -3069,7 +3069,7 @@ static BOOL pdb_init_type_parse(const struct msc_debug_info* msc_dbg, ...@@ -3069,7 +3069,7 @@ static BOOL pdb_init_type_parse(const struct msc_debug_info* msc_dbg,
case 20040203: /* VC 8.0 */ case 20040203: /* VC 8.0 */
break; break;
default: default:
ERR("-Unknown type info version %d\n", types.version); ERR("-Unknown type info version %ld\n", types.version);
return FALSE; return FALSE;
} }
...@@ -3150,7 +3150,7 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info* ...@@ -3150,7 +3150,7 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info*
case 19970604: /* VC 6.0 */ case 19970604: /* VC 6.0 */
break; break;
default: default:
ERR("-Unknown root block version %d\n", root->Version); ERR("-Unknown root block version %ld\n", root->Version);
} }
if (pdb_lookup->kind != PDB_JG) if (pdb_lookup->kind != PDB_JG)
{ {
...@@ -3162,12 +3162,12 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info* ...@@ -3162,12 +3162,12 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info*
pdb_file->u.jg.timestamp = root->TimeDateStamp; pdb_file->u.jg.timestamp = root->TimeDateStamp;
pdb_file->age = root->Age; pdb_file->age = root->Age;
if (root->TimeDateStamp == pdb_lookup->timestamp) (*matched)++; if (root->TimeDateStamp == pdb_lookup->timestamp) (*matched)++;
else WARN("Found %s, but wrong signature: %08x %08x\n", else WARN("Found %s, but wrong signature: %08lx %08lx\n",
pdb_lookup->filename, root->TimeDateStamp, pdb_lookup->timestamp); pdb_lookup->filename, root->TimeDateStamp, pdb_lookup->timestamp);
if (root->Age == pdb_lookup->age) (*matched)++; if (root->Age == pdb_lookup->age) (*matched)++;
else WARN("Found %s, but wrong age: %08x %08x\n", else WARN("Found %s, but wrong age: %08lx %08lx\n",
pdb_lookup->filename, root->Age, pdb_lookup->age); pdb_lookup->filename, root->Age, pdb_lookup->age);
TRACE("found JG for %s: age=%x timestamp=%x\n", TRACE("found JG for %s: age=%lx timestamp=%lx\n",
pdb_lookup->filename, root->Age, root->TimeDateStamp); pdb_lookup->filename, root->Age, root->TimeDateStamp);
pdb_load_stream_name_table(pdb_file, &root->names[0], root->cbNames); pdb_load_stream_name_table(pdb_file, &root->names[0], root->cbNames);
...@@ -3193,7 +3193,7 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info* ...@@ -3193,7 +3193,7 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info*
case 20000404: case 20000404:
break; break;
default: default:
ERR("-Unknown root block version %d\n", root->Version); ERR("-Unknown root block version %ld\n", root->Version);
} }
pdb_file->kind = PDB_DS; pdb_file->kind = PDB_DS;
pdb_file->u.ds.guid = root->guid; pdb_file->u.ds.guid = root->guid;
...@@ -3203,9 +3203,9 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info* ...@@ -3203,9 +3203,9 @@ static BOOL pdb_init(const struct pdb_lookup* pdb_lookup, struct pdb_file_info*
pdb_lookup->filename, debugstr_guid(&root->guid), pdb_lookup->filename, debugstr_guid(&root->guid),
debugstr_guid(&pdb_lookup->guid)); debugstr_guid(&pdb_lookup->guid));
if (root->Age == pdb_lookup->age) (*matched)++; if (root->Age == pdb_lookup->age) (*matched)++;
else WARN("Found %s, but wrong age: %08x %08x\n", else WARN("Found %s, but wrong age: %08lx %08lx\n",
pdb_lookup->filename, root->Age, pdb_lookup->age); pdb_lookup->filename, root->Age, pdb_lookup->age);
TRACE("found DS for %s: age=%x guid=%s\n", TRACE("found DS for %s: age=%lx guid=%s\n",
pdb_lookup->filename, root->Age, debugstr_guid(&root->guid)); pdb_lookup->filename, root->Age, debugstr_guid(&root->guid));
pdb_load_stream_name_table(pdb_file, &root->names[0], root->cbNames); pdb_load_stream_name_table(pdb_file, &root->names[0], root->cbNames);
...@@ -3284,7 +3284,7 @@ static void pdb_process_symbol_imports(const struct process* pcs, ...@@ -3284,7 +3284,7 @@ static void pdb_process_symbol_imports(const struct process* pcs,
imp_pdb_lookup.kind = PDB_JG; imp_pdb_lookup.kind = PDB_JG;
imp_pdb_lookup.timestamp = imp->TimeDateStamp; imp_pdb_lookup.timestamp = imp->TimeDateStamp;
imp_pdb_lookup.age = imp->Age; imp_pdb_lookup.age = imp->Age;
TRACE("got for %s: age=%u ts=%x\n", TRACE("got for %s: age=%lu ts=%lx\n",
imp->filename, imp->Age, imp->TimeDateStamp); imp->filename, imp->Age, imp->TimeDateStamp);
pdb_process_internal(pcs, msc_dbg, &imp_pdb_lookup, pdb_module_info, i); pdb_process_internal(pcs, msc_dbg, &imp_pdb_lookup, pdb_module_info, i);
} }
...@@ -3359,7 +3359,7 @@ static BOOL pdb_process_internal(const struct process* pcs, ...@@ -3359,7 +3359,7 @@ static BOOL pdb_process_internal(const struct process* pcs,
case 19990903: case 19990903:
break; break;
default: default:
ERR("-Unknown symbol info version %d %08x\n", ERR("-Unknown symbol info version %ld %08lx\n",
symbols.version, symbols.version); symbols.version, symbols.version);
} }
...@@ -3377,7 +3377,7 @@ static BOOL pdb_process_internal(const struct process* pcs, ...@@ -3377,7 +3377,7 @@ static BOOL pdb_process_internal(const struct process* pcs,
pdb_file->fpoext_stream = psi->FPO_EXT; pdb_file->fpoext_stream = psi->FPO_EXT;
break; break;
default: default:
FIXME("Unknown PDB_STREAM_INDEXES size (%d)\n", symbols.stream_index_size); FIXME("Unknown PDB_STREAM_INDEXES size (%ld)\n", symbols.stream_index_size);
break; break;
} }
files_image = pdb_read_strings(pdb_file); files_image = pdb_read_strings(pdb_file);
...@@ -3673,7 +3673,7 @@ static BOOL pev_binop(struct pevaluator* pev, char op) ...@@ -3673,7 +3673,7 @@ static BOOL pev_binop(struct pevaluator* pev, char op)
case '%': c = v1 % v2; break; case '%': c = v1 % v2; break;
default: return PEV_ERROR1(pev, "binop: unknown op (%c)", op); default: return PEV_ERROR1(pev, "binop: unknown op (%c)", op);
} }
snprintf(res, sizeof(res), "%ld", c); snprintf(res, sizeof(res), "%Id", c);
pev_push(pev, res); pev_push(pev, res);
return TRUE; return TRUE;
} }
...@@ -3686,8 +3686,8 @@ static BOOL pev_deref(struct pevaluator* pev) ...@@ -3686,8 +3686,8 @@ static BOOL pev_deref(struct pevaluator* pev)
if (!pev_pop_val(pev, &v1)) return FALSE; if (!pev_pop_val(pev, &v1)) return FALSE;
if (!sw_read_mem(pev->csw, v1, &v2, pev->csw->cpu->word_size)) if (!sw_read_mem(pev->csw, v1, &v2, pev->csw->cpu->word_size))
return PEV_ERROR1(pev, "deref: cannot read mem at %lx\n", v1); return PEV_ERROR1(pev, "deref: cannot read mem at %Ix\n", v1);
snprintf(res, sizeof(res), "%ld", v2); snprintf(res, sizeof(res), "%Id", v2);
pev_push(pev, res); pev_push(pev, res);
return TRUE; return TRUE;
} }
...@@ -3802,7 +3802,7 @@ BOOL pdb_virtual_unwind(struct cpu_stack_walk *csw, DWORD_PTR ip, ...@@ -3802,7 +3802,7 @@ BOOL pdb_virtual_unwind(struct cpu_stack_walk *csw, DWORD_PTR ip,
if (!module_init_pair(&pair, csw->hProcess, ip)) return FALSE; if (!module_init_pair(&pair, csw->hProcess, ip)) return FALSE;
if (!pair.effective->format_info[DFI_PDB]) return FALSE; if (!pair.effective->format_info[DFI_PDB]) return FALSE;
pdb_info = pair.effective->format_info[DFI_PDB]->u.pdb_info; pdb_info = pair.effective->format_info[DFI_PDB]->u.pdb_info;
TRACE("searching %lx => %lx\n", ip, ip - (DWORD_PTR)pair.effective->module.BaseOfImage); TRACE("searching %Ix => %Ix\n", ip, ip - (DWORD_PTR)pair.effective->module.BaseOfImage);
ip -= (DWORD_PTR)pair.effective->module.BaseOfImage; ip -= (DWORD_PTR)pair.effective->module.BaseOfImage;
strbase = pdb_read_strings(&pdb_info->pdb_files[0]); strbase = pdb_read_strings(&pdb_info->pdb_files[0]);
...@@ -3817,7 +3817,7 @@ BOOL pdb_virtual_unwind(struct cpu_stack_walk *csw, DWORD_PTR ip, ...@@ -3817,7 +3817,7 @@ BOOL pdb_virtual_unwind(struct cpu_stack_walk *csw, DWORD_PTR ip,
{ {
if (fpoext[i].start <= ip && ip < fpoext[i].start + fpoext[i].func_size) if (fpoext[i].start <= ip && ip < fpoext[i].start + fpoext[i].func_size)
{ {
TRACE("\t%08x %08x %8x %8x %4x %4x %4x %08x %s\n", TRACE("\t%08lx %08lx %8lx %8lx %4lx %4x %4x %08lx %s\n",
fpoext[i].start, fpoext[i].func_size, fpoext[i].locals_size, fpoext[i].start, fpoext[i].func_size, fpoext[i].locals_size,
fpoext[i].params_size, fpoext[i].maxstack_size, fpoext[i].prolog_size, fpoext[i].params_size, fpoext[i].maxstack_size, fpoext[i].prolog_size,
fpoext[i].savedregs_size, fpoext[i].flags, fpoext[i].savedregs_size, fpoext[i].flags,
...@@ -3951,7 +3951,7 @@ static BOOL codeview_process_info(const struct process* pcs, ...@@ -3951,7 +3951,7 @@ static BOOL codeview_process_info(const struct process* pcs,
{ {
const OMFSignatureRSDS* rsds = (const OMFSignatureRSDS*)msc_dbg->root; const OMFSignatureRSDS* rsds = (const OMFSignatureRSDS*)msc_dbg->root;
TRACE("Got RSDS type of PDB file: guid=%s age=%08x name=%s\n", TRACE("Got RSDS type of PDB file: guid=%s age=%08lx name=%s\n",
wine_dbgstr_guid(&rsds->guid), rsds->age, rsds->name); wine_dbgstr_guid(&rsds->guid), rsds->age, rsds->name);
pdb_lookup.filename = rsds->name; pdb_lookup.filename = rsds->name;
pdb_lookup.kind = PDB_DS; pdb_lookup.kind = PDB_DS;
...@@ -3961,7 +3961,7 @@ static BOOL codeview_process_info(const struct process* pcs, ...@@ -3961,7 +3961,7 @@ static BOOL codeview_process_info(const struct process* pcs,
break; break;
} }
default: default:
ERR("Unknown CODEVIEW signature %08x in module %s\n", ERR("Unknown CODEVIEW signature %08lx in module %s\n",
*signature, debugstr_w(msc_dbg->module->modulename)); *signature, debugstr_w(msc_dbg->module->modulename));
break; break;
} }
......
...@@ -389,7 +389,7 @@ BOOL WINAPI SymFindFileInPathW(HANDLE hProcess, PCWSTR searchPath, PCWSTR full_p ...@@ -389,7 +389,7 @@ BOOL WINAPI SymFindFileInPathW(HANDLE hProcess, PCWSTR searchPath, PCWSTR full_p
WCHAR* ptr; WCHAR* ptr;
const WCHAR* filename; const WCHAR* filename;
TRACE("(hProcess = %p, searchPath = %s, full_path = %s, id = %p, two = 0x%08x, three = 0x%08x, flags = 0x%08x, buffer = %p, cb = %p, user = %p)\n", TRACE("(hProcess = %p, searchPath = %s, full_path = %s, id = %p, two = 0x%08lx, three = 0x%08lx, flags = 0x%08lx, buffer = %p, cb = %p, user = %p)\n",
hProcess, debugstr_w(searchPath), debugstr_w(full_path), hProcess, debugstr_w(searchPath), debugstr_w(full_path),
id, two, three, flags, buffer, cb, user); id, two, three, flags, buffer, cb, user);
...@@ -617,7 +617,7 @@ BOOL path_find_symbol_file(const struct process* pcs, const struct module* modul ...@@ -617,7 +617,7 @@ BOOL path_find_symbol_file(const struct process* pcs, const struct module* modul
const WCHAR* filename; const WCHAR* filename;
WCHAR* searchPath = pcs->search_path; WCHAR* searchPath = pcs->search_path;
TRACE("(pcs = %p, full_path = %s, guid = %s, dw1 = 0x%08x, dw2 = 0x%08x, buffer = %p)\n", TRACE("(pcs = %p, full_path = %s, guid = %s, dw1 = 0x%08lx, dw2 = 0x%08lx, buffer = %p)\n",
pcs, debugstr_a(full_path), debugstr_guid(guid), dw1, dw2, buffer); pcs, debugstr_a(full_path), debugstr_guid(guid), dw1, dw2, buffer);
mf.guid = guid; mf.guid = guid;
......
...@@ -87,7 +87,7 @@ static const char* pe_map_section(struct image_section_map* ism) ...@@ -87,7 +87,7 @@ static const char* pe_map_section(struct image_section_map* ism)
if (fmap->sect[ism->sidx].shdr.Misc.VirtualSize > fmap->sect[ism->sidx].shdr.SizeOfRawData) if (fmap->sect[ism->sidx].shdr.Misc.VirtualSize > fmap->sect[ism->sidx].shdr.SizeOfRawData)
{ {
FIXME("Section %ld: virtual (0x%x) > raw (0x%x) size - not supported\n", FIXME("Section %Id: virtual (0x%lx) > raw (0x%lx) size - not supported\n",
ism->sidx, fmap->sect[ism->sidx].shdr.Misc.VirtualSize, ism->sidx, fmap->sect[ism->sidx].shdr.Misc.VirtualSize,
fmap->sect[ism->sidx].shdr.SizeOfRawData); fmap->sect[ism->sidx].shdr.SizeOfRawData);
return IMAGE_NO_MAP; return IMAGE_NO_MAP;
...@@ -407,7 +407,7 @@ static BOOL pe_locate_with_coff_symbol_table(struct module* module) ...@@ -407,7 +407,7 @@ static BOOL pe_locate_with_coff_symbol_table(struct module* module)
sym->u.var.kind == loc_absolute && sym->u.var.kind == loc_absolute &&
!strcmp(sym->hash_elt.name, name)) !strcmp(sym->hash_elt.name, name))
{ {
TRACE("Changing absolute address for %d.%s: %lx -> %s\n", TRACE("Changing absolute address for %d.%s: %Ix -> %s\n",
isym->SectionNumber, name, sym->u.var.offset, isym->SectionNumber, name, sym->u.var.offset,
wine_dbgstr_longlong(module->module.BaseOfImage + wine_dbgstr_longlong(module->module.BaseOfImage +
fmap->u.pe.sect[isym->SectionNumber - 1].shdr.VirtualAddress + fmap->u.pe.sect[isym->SectionNumber - 1].shdr.VirtualAddress +
...@@ -715,7 +715,7 @@ static BOOL pe_load_export_debug_info(const struct process* pcs, struct module* ...@@ -715,7 +715,7 @@ static BOOL pe_load_export_debug_info(const struct process* pcs, struct module*
for (j = 0; j < exports->NumberOfNames; j++) for (j = 0; j < exports->NumberOfNames; j++)
if ((ordinals[j] == i) && names[j]) break; if ((ordinals[j] == i) && names[j]) break;
if (j < exports->NumberOfNames) continue; if (j < exports->NumberOfNames) continue;
snprintf(buffer, sizeof(buffer), "%d", i + exports->Base); snprintf(buffer, sizeof(buffer), "%ld", i + exports->Base);
symt_new_public(module, NULL, buffer, FALSE, base + functions[i], 1); symt_new_public(module, NULL, buffer, FALSE, base + functions[i], 1);
} }
} }
......
...@@ -293,7 +293,7 @@ BOOL WINAPI SymEnumSourceLines(HANDLE hProcess, ULONG64 base, PCSTR obj, ...@@ -293,7 +293,7 @@ BOOL WINAPI SymEnumSourceLines(HANDLE hProcess, ULONG64 base, PCSTR obj,
PSYM_ENUMLINES_CALLBACK EnumLinesCallback, PSYM_ENUMLINES_CALLBACK EnumLinesCallback,
PVOID UserContext) PVOID UserContext)
{ {
FIXME("%p %s %s %s %u %u %p %p: stub!\n", FIXME("%p %s %s %s %lu %lu %p %p: stub!\n",
hProcess, wine_dbgstr_longlong(base), debugstr_a(obj), debugstr_a(file), hProcess, wine_dbgstr_longlong(base), debugstr_a(obj), debugstr_a(file),
line, flags, EnumLinesCallback, UserContext); line, flags, EnumLinesCallback, UserContext);
SetLastError(ERROR_NOT_SUPPORTED); SetLastError(ERROR_NOT_SUPPORTED);
...@@ -309,7 +309,7 @@ BOOL WINAPI SymEnumSourceLinesW(HANDLE hProcess, ULONG64 base, PCWSTR obj, ...@@ -309,7 +309,7 @@ BOOL WINAPI SymEnumSourceLinesW(HANDLE hProcess, ULONG64 base, PCWSTR obj,
PSYM_ENUMLINES_CALLBACKW EnumLinesCallback, PSYM_ENUMLINES_CALLBACKW EnumLinesCallback,
PVOID UserContext) PVOID UserContext)
{ {
FIXME("%p %s %s %s %u %u %p %p: stub!\n", FIXME("%p %s %s %s %lu %lu %p %p: stub!\n",
hProcess, wine_dbgstr_longlong(base), debugstr_w(obj), debugstr_w(file), hProcess, wine_dbgstr_longlong(base), debugstr_w(obj), debugstr_w(file),
line, flags, EnumLinesCallback, UserContext); line, flags, EnumLinesCallback, UserContext);
SetLastError(ERROR_NOT_SUPPORTED); SetLastError(ERROR_NOT_SUPPORTED);
......
...@@ -255,7 +255,7 @@ static struct symt** stabs_find_ref(LONG_PTR filenr, LONG_PTR subnr) ...@@ -255,7 +255,7 @@ static struct symt** stabs_find_ref(LONG_PTR filenr, LONG_PTR subnr)
} }
ret = &idef->vector[subnr]; ret = &idef->vector[subnr];
} }
TRACE("(%ld,%ld) => %p (%p)\n", filenr, subnr, ret, *ret); TRACE("(%Id,%Id) => %p (%p)\n", filenr, subnr, ret, *ret);
return ret; return ret;
} }
...@@ -974,7 +974,7 @@ static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typ ...@@ -974,7 +974,7 @@ static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typ
*stabs_find_ref(filenr1, subnr1) = *ret_dt = new_dt; *stabs_find_ref(filenr1, subnr1) = *ret_dt = new_dt;
TRACE("Adding (%ld,%ld) %s\n", filenr1, subnr1, debugstr_a(typename)); TRACE("Adding (%Id,%Id) %s\n", filenr1, subnr1, debugstr_a(typename));
return 0; return 0;
} }
...@@ -1449,7 +1449,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset, ...@@ -1449,7 +1449,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
case 35: case 35:
case 36: loc.reg = CV_REG_MM0 + n_value - 29; break; case 36: loc.reg = CV_REG_MM0 + n_value - 29; break;
default: default:
FIXME("Unknown register value (%lu)\n", (ULONG_PTR)n_value); FIXME("Unknown register value (%Iu)\n", (ULONG_PTR)n_value);
loc.reg = CV_REG_NONE; loc.reg = CV_REG_NONE;
break; break;
} }
...@@ -1609,7 +1609,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset, ...@@ -1609,7 +1609,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
case N_EXCL: case N_EXCL:
if (stabs_add_include(stabs_find_include(ptr, n_value)) < 0) if (stabs_add_include(stabs_find_include(ptr, n_value)) < 0)
{ {
ERR("Excluded header not found (%s,%ld)\n", ptr, (ULONG_PTR)n_value); ERR("Excluded header not found (%s,%Id)\n", ptr, (ULONG_PTR)n_value);
module_reset_debug_info(module); module_reset_debug_info(module);
ret = FALSE; ret = FALSE;
goto done; goto done;
...@@ -1657,7 +1657,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset, ...@@ -1657,7 +1657,7 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset,
break; break;
} }
stabbuff[0] = '\0'; stabbuff[0] = '\0';
TRACE("0x%02x %lx %s\n", TRACE("0x%02x %Ix %s\n",
stab_ptr->n_type, (ULONG_PTR)n_value, debugstr_a(strs + stab_ptr->n_strx)); stab_ptr->n_type, (ULONG_PTR)n_value, debugstr_a(strs + stab_ptr->n_strx));
} }
module->module.SymType = SymDia; module->module.SymType = SymDia;
......
...@@ -147,7 +147,7 @@ BOOL WINAPI StackWalk(DWORD MachineType, HANDLE hProcess, HANDLE hThread, ...@@ -147,7 +147,7 @@ BOOL WINAPI StackWalk(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
BOOL ret; BOOL ret;
struct cpu* cpu; struct cpu* cpu;
TRACE("(%d, %p, %p, %p, %p, %p, %p, %p, %p)\n", TRACE("(%ld, %p, %p, %p, %p, %p, %p, %p, %p)\n",
MachineType, hProcess, hThread, frame32, ctx, MachineType, hProcess, hThread, frame32, ctx,
f_read_mem, FunctionTableAccessRoutine, f_read_mem, FunctionTableAccessRoutine,
GetModuleBaseRoutine, f_xlat_adr); GetModuleBaseRoutine, f_xlat_adr);
...@@ -217,7 +217,7 @@ BOOL WINAPI StackWalk64(DWORD MachineType, HANDLE hProcess, HANDLE hThread, ...@@ -217,7 +217,7 @@ BOOL WINAPI StackWalk64(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
struct cpu_stack_walk csw; struct cpu_stack_walk csw;
struct cpu* cpu; struct cpu* cpu;
TRACE("(%d, %p, %p, %p, %p, %p, %p, %p, %p)\n", TRACE("(%ld, %p, %p, %p, %p, %p, %p, %p, %p)\n",
MachineType, hProcess, hThread, frame, ctx, MachineType, hProcess, hThread, frame, ctx,
f_read_mem, FunctionTableAccessRoutine, f_read_mem, FunctionTableAccessRoutine,
GetModuleBaseRoutine, f_xlat_adr); GetModuleBaseRoutine, f_xlat_adr);
...@@ -276,7 +276,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread, ...@@ -276,7 +276,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
struct cpu* cpu; struct cpu* cpu;
DWORD64 addr; DWORD64 addr;
TRACE("(%d, %p, %p, %p, %p, %p, %p, %p, %p, 0x%x)\n", TRACE("(%ld, %p, %p, %p, %p, %p, %p, %p, %p, 0x%lx)\n",
MachineType, hProcess, hThread, frame, ctx, MachineType, hProcess, hThread, frame, ctx,
f_read_mem, FunctionTableAccessRoutine, f_read_mem, FunctionTableAccessRoutine,
GetModuleBaseRoutine, f_xlat_adr, flags); GetModuleBaseRoutine, f_xlat_adr, flags);
...@@ -293,7 +293,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread, ...@@ -293,7 +293,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
} }
if (flags != 0) if (flags != 0)
{ {
FIXME("Unsupported yet flags 0x%x\n", flags); FIXME("Unsupported yet flags 0x%lx\n", flags);
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
return FALSE; return FALSE;
} }
...@@ -315,7 +315,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread, ...@@ -315,7 +315,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
DWORD depth = symt_get_inlinesite_depth(hProcess, addr); DWORD depth = symt_get_inlinesite_depth(hProcess, addr);
if (IFC_DEPTH(frame->InlineFrameContext) + 1 < depth) /* move to next inlined function? */ if (IFC_DEPTH(frame->InlineFrameContext) + 1 < depth) /* move to next inlined function? */
{ {
TRACE("found inline ctx: depth=%u current=%u++\n", TRACE("found inline ctx: depth=%lu current=%lu++\n",
depth, frame->InlineFrameContext); depth, frame->InlineFrameContext);
frame->InlineFrameContext++; /* just increase index, FIXME detect overflow */ frame->InlineFrameContext++; /* just increase index, FIXME detect overflow */
} }
...@@ -331,7 +331,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread, ...@@ -331,7 +331,7 @@ BOOL WINAPI StackWalkEx(DWORD MachineType, HANDLE hProcess, HANDLE hThread,
{ {
addr = sw_xlat_addr(&csw, &frame->AddrPC); addr = sw_xlat_addr(&csw, &frame->AddrPC);
frame->InlineFrameContext = symt_get_inlinesite_depth(hProcess, addr) == 0 ? IFC_MODE_REGULAR : IFC_MODE_INLINE; frame->InlineFrameContext = symt_get_inlinesite_depth(hProcess, addr) == 0 ? IFC_MODE_REGULAR : IFC_MODE_INLINE;
TRACE("setting IFC mode to %x\n", frame->InlineFrameContext); TRACE("setting IFC mode to %lx\n", frame->InlineFrameContext);
} }
} }
......
...@@ -258,7 +258,7 @@ struct symt_public* symt_new_public(struct module* module, ...@@ -258,7 +258,7 @@ struct symt_public* symt_new_public(struct module* module,
struct symt_public* sym; struct symt_public* sym;
struct symt** p; struct symt** p;
TRACE_(dbghelp_symt)("Adding public symbol %s:%s @%lx\n", TRACE_(dbghelp_symt)("Adding public symbol %s:%s @%Ix\n",
debugstr_w(module->modulename), name, address); debugstr_w(module->modulename), name, address);
if ((dbghelp_options & SYMOPT_AUTO_PUBLICS) && if ((dbghelp_options & SYMOPT_AUTO_PUBLICS) &&
symt_find_nearest(module, address) != NULL) symt_find_nearest(module, address) != NULL)
...@@ -291,7 +291,7 @@ struct symt_data* symt_new_global_variable(struct module* module, ...@@ -291,7 +291,7 @@ struct symt_data* symt_new_global_variable(struct module* module,
struct symt** p; struct symt** p;
DWORD64 tsz; DWORD64 tsz;
TRACE_(dbghelp_symt)("Adding global symbol %s:%s %d@%lx %p\n", TRACE_(dbghelp_symt)("Adding global symbol %s:%s %d@%Ix %p\n",
debugstr_w(module->modulename), name, loc.kind, loc.offset, type); debugstr_w(module->modulename), name, loc.kind, loc.offset, type);
if ((sym = pool_alloc(&module->pool, sizeof(*sym)))) if ((sym = pool_alloc(&module->pool, sizeof(*sym))))
{ {
...@@ -304,7 +304,7 @@ struct symt_data* symt_new_global_variable(struct module* module, ...@@ -304,7 +304,7 @@ struct symt_data* symt_new_global_variable(struct module* module,
if (type && size && symt_get_info(module, type, TI_GET_LENGTH, &tsz)) if (type && size && symt_get_info(module, type, TI_GET_LENGTH, &tsz))
{ {
if (tsz != size) if (tsz != size)
FIXME("Size mismatch for %s.%s between type (%s) and src (%lu)\n", FIXME("Size mismatch for %s.%s between type (%s) and src (%Iu)\n",
debugstr_w(module->modulename), name, debugstr_w(module->modulename), name,
wine_dbgstr_longlong(tsz), size); wine_dbgstr_longlong(tsz), size);
} }
...@@ -345,7 +345,7 @@ struct symt_function* symt_new_function(struct module* module, ...@@ -345,7 +345,7 @@ struct symt_function* symt_new_function(struct module* module,
{ {
struct symt_function* sym; struct symt_function* sym;
TRACE_(dbghelp_symt)("Adding global function %s:%s @%lx-%lx\n", TRACE_(dbghelp_symt)("Adding global function %s:%s @%Ix-%Ix\n",
debugstr_w(module->modulename), name, addr, addr + size - 1); debugstr_w(module->modulename), name, addr, addr + size - 1);
if ((sym = pool_alloc(&module->pool, sizeof(*sym)))) if ((sym = pool_alloc(&module->pool, sizeof(*sym))))
{ {
...@@ -371,7 +371,7 @@ struct symt_inlinesite* symt_new_inlinesite(struct module* module, ...@@ -371,7 +371,7 @@ struct symt_inlinesite* symt_new_inlinesite(struct module* module,
{ {
struct symt_inlinesite* sym; struct symt_inlinesite* sym;
TRACE_(dbghelp_symt)("Adding inline site %s @%lx\n", name, addr); TRACE_(dbghelp_symt)("Adding inline site %s @%Ix\n", name, addr);
if ((sym = pool_alloc(&module->pool, sizeof(*sym)))) if ((sym = pool_alloc(&module->pool, sizeof(*sym))))
{ {
struct symt** p; struct symt** p;
...@@ -627,7 +627,7 @@ struct symt_thunk* symt_new_thunk(struct module* module, ...@@ -627,7 +627,7 @@ struct symt_thunk* symt_new_thunk(struct module* module,
{ {
struct symt_thunk* sym; struct symt_thunk* sym;
TRACE_(dbghelp_symt)("Adding global thunk %s:%s @%lx-%lx\n", TRACE_(dbghelp_symt)("Adding global thunk %s:%s @%Ix-%Ix\n",
debugstr_w(module->modulename), name, addr, addr + size - 1); debugstr_w(module->modulename), name, addr, addr + size - 1);
if ((sym = pool_alloc(&module->pool, sizeof(*sym)))) if ((sym = pool_alloc(&module->pool, sizeof(*sym))))
...@@ -889,7 +889,7 @@ static void symt_fill_sym_info(struct module_pair* pair, ...@@ -889,7 +889,7 @@ static void symt_fill_sym_info(struct module_pair* pair,
else else
symbol_setname(sym_info, name); symbol_setname(sym_info, name);
TRACE_(dbghelp_symt)("%p => %s %u %s\n", TRACE_(dbghelp_symt)("%p => %s %lu %s\n",
sym, sym_info->Name, sym_info->Size, sym, sym_info->Name, sym_info->Size,
wine_dbgstr_longlong(sym_info->Address)); wine_dbgstr_longlong(sym_info->Address));
} }
...@@ -2186,7 +2186,7 @@ BOOL WINAPI SymUnDName64(PIMAGEHLP_SYMBOL64 sym, PSTR UnDecName, DWORD UnDecName ...@@ -2186,7 +2186,7 @@ BOOL WINAPI SymUnDName64(PIMAGEHLP_SYMBOL64 sym, PSTR UnDecName, DWORD UnDecName
DWORD WINAPI UnDecorateSymbolName(const char *decorated_name, char *undecorated_name, DWORD WINAPI UnDecorateSymbolName(const char *decorated_name, char *undecorated_name,
DWORD undecorated_length, DWORD flags) DWORD undecorated_length, DWORD flags)
{ {
TRACE("(%s, %p, %d, 0x%08x)\n", TRACE("(%s, %p, %ld, 0x%08lx)\n",
debugstr_a(decorated_name), undecorated_name, undecorated_length, flags); debugstr_a(decorated_name), undecorated_name, undecorated_length, flags);
if (!undecorated_name || !undecorated_length) if (!undecorated_name || !undecorated_length)
...@@ -2205,7 +2205,7 @@ DWORD WINAPI UnDecorateSymbolNameW(const WCHAR *decorated_name, WCHAR *undecorat ...@@ -2205,7 +2205,7 @@ DWORD WINAPI UnDecorateSymbolNameW(const WCHAR *decorated_name, WCHAR *undecorat
char *buf, *ptr; char *buf, *ptr;
int len, ret = 0; int len, ret = 0;
TRACE("(%s, %p, %d, 0x%08x)\n", TRACE("(%s, %p, %ld, 0x%08lx)\n",
debugstr_w(decorated_name), undecorated_name, undecorated_length, flags); debugstr_w(decorated_name), undecorated_name, undecorated_length, flags);
if (!undecorated_name || !undecorated_length) if (!undecorated_name || !undecorated_length)
...@@ -2410,7 +2410,7 @@ static inline BOOL doSymSearch(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, ...@@ -2410,7 +2410,7 @@ static inline BOOL doSymSearch(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index,
if (Options != SYMSEARCH_GLOBALSONLY) if (Options != SYMSEARCH_GLOBALSONLY)
{ {
FIXME("Unsupported searching with options (%x)\n", Options); FIXME("Unsupported searching with options (%lx)\n", Options);
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
return FALSE; return FALSE;
} }
...@@ -2436,7 +2436,7 @@ BOOL WINAPI SymSearch(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, ...@@ -2436,7 +2436,7 @@ BOOL WINAPI SymSearch(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index,
LPWSTR maskW = NULL; LPWSTR maskW = NULL;
BOOLEAN ret; BOOLEAN ret;
TRACE("(%p %s %u %u %s %s %p %p %x)\n", TRACE("(%p %s %lu %lu %s %s %p %p %lx)\n",
hProcess, wine_dbgstr_longlong(BaseOfDll), Index, SymTag, Mask, hProcess, wine_dbgstr_longlong(BaseOfDll), Index, SymTag, Mask,
wine_dbgstr_longlong(Address), EnumSymbolsCallback, wine_dbgstr_longlong(Address), EnumSymbolsCallback,
UserContext, Options); UserContext, Options);
...@@ -2465,7 +2465,7 @@ BOOL WINAPI SymSearchW(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index, ...@@ -2465,7 +2465,7 @@ BOOL WINAPI SymSearchW(HANDLE hProcess, ULONG64 BaseOfDll, DWORD Index,
{ {
struct sym_enumW sew; struct sym_enumW sew;
TRACE("(%p %s %u %u %s %s %p %p %x)\n", TRACE("(%p %s %lu %lu %s %s %p %p %lx)\n",
hProcess, wine_dbgstr_longlong(BaseOfDll), Index, SymTag, debugstr_w(Mask), hProcess, wine_dbgstr_longlong(BaseOfDll), Index, SymTag, debugstr_w(Mask),
wine_dbgstr_longlong(Address), EnumSymbolsCallback, wine_dbgstr_longlong(Address), EnumSymbolsCallback,
UserContext, Options); UserContext, Options);
...@@ -2487,7 +2487,7 @@ BOOL WINAPI SymAddSymbol(HANDLE hProcess, ULONG64 BaseOfDll, PCSTR name, ...@@ -2487,7 +2487,7 @@ BOOL WINAPI SymAddSymbol(HANDLE hProcess, ULONG64 BaseOfDll, PCSTR name,
{ {
struct module_pair pair; struct module_pair pair;
TRACE("(%p %s %s %u)\n", hProcess, wine_dbgstr_a(name), wine_dbgstr_longlong(addr), size); TRACE("(%p %s %s %lu)\n", hProcess, wine_dbgstr_a(name), wine_dbgstr_longlong(addr), size);
if (!module_init_pair(&pair, hProcess, BaseOfDll)) return FALSE; if (!module_init_pair(&pair, hProcess, BaseOfDll)) return FALSE;
...@@ -2503,7 +2503,7 @@ BOOL WINAPI SymAddSymbolW(HANDLE hProcess, ULONG64 BaseOfDll, PCWSTR nameW, ...@@ -2503,7 +2503,7 @@ BOOL WINAPI SymAddSymbolW(HANDLE hProcess, ULONG64 BaseOfDll, PCWSTR nameW,
{ {
char name[MAX_SYM_NAME]; char name[MAX_SYM_NAME];
TRACE("(%p %s %s %u)\n", hProcess, wine_dbgstr_w(nameW), wine_dbgstr_longlong(addr), size); TRACE("(%p %s %s %lu)\n", hProcess, wine_dbgstr_w(nameW), wine_dbgstr_longlong(addr), size);
WideCharToMultiByte(CP_ACP, 0, nameW, -1, name, ARRAY_SIZE(name), NULL, NULL); WideCharToMultiByte(CP_ACP, 0, nameW, -1, name, ARRAY_SIZE(name), NULL, NULL);
...@@ -2583,7 +2583,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess, ULONG64 base, PCSTR compiland, ...@@ -2583,7 +2583,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess, ULONG64 base, PCSTR compiland,
BOOL WINAPI SymGetLineFromName(HANDLE hProcess, PCSTR ModuleName, PCSTR FileName, BOOL WINAPI SymGetLineFromName(HANDLE hProcess, PCSTR ModuleName, PCSTR FileName,
DWORD dwLineNumber, PLONG plDisplacement, PIMAGEHLP_LINE Line) DWORD dwLineNumber, PLONG plDisplacement, PIMAGEHLP_LINE Line)
{ {
FIXME("(%p) (%s, %s, %d %p %p): stub\n", hProcess, ModuleName, FileName, FIXME("(%p) (%s, %s, %ld %p %p): stub\n", hProcess, ModuleName, FileName,
dwLineNumber, plDisplacement, Line); dwLineNumber, plDisplacement, Line);
return FALSE; return FALSE;
} }
...@@ -2591,7 +2591,7 @@ BOOL WINAPI SymGetLineFromName(HANDLE hProcess, PCSTR ModuleName, PCSTR FileName ...@@ -2591,7 +2591,7 @@ BOOL WINAPI SymGetLineFromName(HANDLE hProcess, PCSTR ModuleName, PCSTR FileName
BOOL WINAPI SymGetLineFromName64(HANDLE hProcess, PCSTR ModuleName, PCSTR FileName, BOOL WINAPI SymGetLineFromName64(HANDLE hProcess, PCSTR ModuleName, PCSTR FileName,
DWORD dwLineNumber, PLONG lpDisplacement, PIMAGEHLP_LINE64 Line) DWORD dwLineNumber, PLONG lpDisplacement, PIMAGEHLP_LINE64 Line)
{ {
FIXME("(%p) (%s, %s, %d %p %p): stub\n", hProcess, ModuleName, FileName, FIXME("(%p) (%s, %s, %ld %p %p): stub\n", hProcess, ModuleName, FileName,
dwLineNumber, lpDisplacement, Line); dwLineNumber, lpDisplacement, Line);
return FALSE; return FALSE;
} }
...@@ -2599,7 +2599,7 @@ BOOL WINAPI SymGetLineFromName64(HANDLE hProcess, PCSTR ModuleName, PCSTR FileNa ...@@ -2599,7 +2599,7 @@ BOOL WINAPI SymGetLineFromName64(HANDLE hProcess, PCSTR ModuleName, PCSTR FileNa
BOOL WINAPI SymGetLineFromNameW64(HANDLE hProcess, PCWSTR ModuleName, PCWSTR FileName, BOOL WINAPI SymGetLineFromNameW64(HANDLE hProcess, PCWSTR ModuleName, PCWSTR FileName,
DWORD dwLineNumber, PLONG plDisplacement, PIMAGEHLP_LINEW64 Line) DWORD dwLineNumber, PLONG plDisplacement, PIMAGEHLP_LINEW64 Line)
{ {
FIXME("(%p) (%s, %s, %d %p %p): stub\n", hProcess, debugstr_w(ModuleName), debugstr_w(FileName), FIXME("(%p) (%s, %s, %ld %p %p): stub\n", hProcess, debugstr_w(ModuleName), debugstr_w(FileName),
dwLineNumber, plDisplacement, Line); dwLineNumber, plDisplacement, Line);
return FALSE; return FALSE;
} }
...@@ -2610,7 +2610,7 @@ BOOL WINAPI SymGetLineFromNameW64(HANDLE hProcess, PCWSTR ModuleName, PCWSTR Fil ...@@ -2610,7 +2610,7 @@ BOOL WINAPI SymGetLineFromNameW64(HANDLE hProcess, PCWSTR ModuleName, PCWSTR Fil
*/ */
BOOL WINAPI SymFromIndex(HANDLE hProcess, ULONG64 BaseOfDll, DWORD index, PSYMBOL_INFO symbol) BOOL WINAPI SymFromIndex(HANDLE hProcess, ULONG64 BaseOfDll, DWORD index, PSYMBOL_INFO symbol)
{ {
FIXME("hProcess = %p, BaseOfDll = %s, index = %d, symbol = %p\n", FIXME("hProcess = %p, BaseOfDll = %s, index = %ld, symbol = %p\n",
hProcess, wine_dbgstr_longlong(BaseOfDll), index, symbol); hProcess, wine_dbgstr_longlong(BaseOfDll), index, symbol);
return FALSE; return FALSE;
...@@ -2622,7 +2622,7 @@ BOOL WINAPI SymFromIndex(HANDLE hProcess, ULONG64 BaseOfDll, DWORD index, PSYMBO ...@@ -2622,7 +2622,7 @@ BOOL WINAPI SymFromIndex(HANDLE hProcess, ULONG64 BaseOfDll, DWORD index, PSYMBO
*/ */
BOOL WINAPI SymFromIndexW(HANDLE hProcess, ULONG64 BaseOfDll, DWORD index, PSYMBOL_INFOW symbol) BOOL WINAPI SymFromIndexW(HANDLE hProcess, ULONG64 BaseOfDll, DWORD index, PSYMBOL_INFOW symbol)
{ {
FIXME("hProcess = %p, BaseOfDll = %s, index = %d, symbol = %p\n", FIXME("hProcess = %p, BaseOfDll = %s, index = %ld, symbol = %p\n",
hProcess, wine_dbgstr_longlong(BaseOfDll), index, symbol); hProcess, wine_dbgstr_longlong(BaseOfDll), index, symbol);
return FALSE; return FALSE;
...@@ -2659,7 +2659,7 @@ BOOL WINAPI SymFromInlineContext(HANDLE hProcess, DWORD64 addr, ULONG inline_ctx ...@@ -2659,7 +2659,7 @@ BOOL WINAPI SymFromInlineContext(HANDLE hProcess, DWORD64 addr, ULONG inline_ctx
struct module_pair pair; struct module_pair pair;
struct symt_inlinesite* inlined; struct symt_inlinesite* inlined;
TRACE("(%p, %#I64x, 0x%x, %p, %p)\n", hProcess, addr, inline_ctx, disp, si); TRACE("(%p, %#I64x, 0x%lx, %p, %p)\n", hProcess, addr, inline_ctx, disp, si);
switch (IFC_MODE(inline_ctx)) switch (IFC_MODE(inline_ctx))
{ {
...@@ -2692,7 +2692,7 @@ BOOL WINAPI SymFromInlineContextW(HANDLE hProcess, DWORD64 addr, ULONG inline_ct ...@@ -2692,7 +2692,7 @@ BOOL WINAPI SymFromInlineContextW(HANDLE hProcess, DWORD64 addr, ULONG inline_ct
unsigned len; unsigned len;
BOOL ret; BOOL ret;
TRACE("(%p, %#I64x, 0x%x, %p, %p)\n", hProcess, addr, inline_ctx, disp, siW); TRACE("(%p, %#I64x, 0x%lx, %p, %p)\n", hProcess, addr, inline_ctx, disp, siW);
len = sizeof(*si) + siW->MaxNameLen * sizeof(WCHAR); len = sizeof(*si) + siW->MaxNameLen * sizeof(WCHAR);
si = HeapAlloc(GetProcessHeap(), 0, len); si = HeapAlloc(GetProcessHeap(), 0, len);
...@@ -2739,7 +2739,7 @@ BOOL WINAPI SymGetLineFromInlineContext(HANDLE hProcess, DWORD64 addr, ULONG inl ...@@ -2739,7 +2739,7 @@ BOOL WINAPI SymGetLineFromInlineContext(HANDLE hProcess, DWORD64 addr, ULONG inl
{ {
struct internal_line_t intl; struct internal_line_t intl;
TRACE("(%p, %#I64x, 0x%x, %#I64x, %p, %p)\n", TRACE("(%p, %#I64x, 0x%lx, %#I64x, %p, %p)\n",
hProcess, addr, inline_ctx, mod_addr, disp, line); hProcess, addr, inline_ctx, mod_addr, disp, line);
if (line->SizeOfStruct < sizeof(*line)) return FALSE; if (line->SizeOfStruct < sizeof(*line)) return FALSE;
...@@ -2757,7 +2757,7 @@ BOOL WINAPI SymGetLineFromInlineContextW(HANDLE hProcess, DWORD64 addr, ULONG in ...@@ -2757,7 +2757,7 @@ BOOL WINAPI SymGetLineFromInlineContextW(HANDLE hProcess, DWORD64 addr, ULONG in
{ {
struct internal_line_t intl; struct internal_line_t intl;
TRACE("(%p, %#I64x, 0x%x, %#I64x, %p, %p)\n", TRACE("(%p, %#I64x, 0x%lx, %#I64x, %p, %p)\n",
hProcess, addr, inline_ctx, mod_addr, disp, line); hProcess, addr, inline_ctx, mod_addr, disp, line);
if (line->SizeOfStruct < sizeof(*line)) return FALSE; if (line->SizeOfStruct < sizeof(*line)) return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment