dbghelp: Fix symt_find_nearest so that it searches for 64bit addresses on 64bit platforms.
This commit is contained in:
parent
4195c2f3bb
commit
776e75e43c
|
@ -538,7 +538,7 @@ extern struct module* symt_cmp_addr_module;
|
|||
extern int symt_cmp_addr(const void* p1, const void* p2);
|
||||
extern void copy_symbolW(SYMBOL_INFOW* siw, const SYMBOL_INFO* si);
|
||||
extern struct symt_ht*
|
||||
symt_find_nearest(struct module* module, DWORD addr);
|
||||
symt_find_nearest(struct module* module, DWORD_PTR addr);
|
||||
extern struct symt_compiland*
|
||||
symt_new_compiland(struct module* module, unsigned long address,
|
||||
unsigned src_idx);
|
||||
|
|
|
@ -900,7 +900,7 @@ static void symt_get_length(struct module* module, const struct symt* symt, ULON
|
|||
}
|
||||
|
||||
/* assume addr is in module */
|
||||
struct symt_ht* symt_find_nearest(struct module* module, DWORD addr)
|
||||
struct symt_ht* symt_find_nearest(struct module* module, DWORD_PTR addr)
|
||||
{
|
||||
int mid, high, low;
|
||||
ULONG64 ref_addr, ref_size;
|
||||
|
|
Loading…
Reference in New Issue