DBG: slight change to DbgFunctions()->GetAddrFromLine
This commit is contained in:
parent
7f7e4ff4b9
commit
150830a9c9
|
|
@ -184,14 +184,16 @@ static void _memupdatemap()
|
|||
GuiUpdateMemoryView();
|
||||
}
|
||||
|
||||
static duint _getaddrfromline(const char* szSourceFile, int line)
|
||||
static duint _getaddrfromline(const char* szSourceFile, int line, duint* disp)
|
||||
{
|
||||
LONG displacement = 0;
|
||||
IMAGEHLP_LINE64 lineData;
|
||||
memset(&lineData, 0, sizeof(lineData));
|
||||
lineData.SizeOfStruct = sizeof(lineData);
|
||||
if(!SymGetLineFromName64(fdProcessInfo->hProcess, NULL, szSourceFile, line, &displacement, &lineData) || displacement)
|
||||
if(!SymGetLineFromName64(fdProcessInfo->hProcess, NULL, szSourceFile, line, &displacement, &lineData))
|
||||
return 0;
|
||||
if(disp)
|
||||
*disp = displacement;
|
||||
return (duint)lineData.Address;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ typedef bool (*GETCMDLINE)(char* cmdline, size_t* cbsize);
|
|||
typedef bool (*SETCMDLINE)(const char* cmdline);
|
||||
typedef duint(*FILEOFFSETTOVA)(const char* modname, duint offset);
|
||||
typedef duint(*VATOFILEOFFSET)(duint va);
|
||||
typedef duint(*GETADDRFROMLINE)(const char* szSourceFile, int line);
|
||||
typedef duint(*GETADDRFROMLINE)(const char* szSourceFile, int line, duint* displacement);
|
||||
typedef bool (*GETSOURCEFROMADDR)(duint addr, char* szSourceFile, int* line);
|
||||
typedef bool (*VALFROMSTRING)(const char* string, duint* value);
|
||||
typedef bool (*PATCHGETEX)(duint addr, DBGPATCHINFO* info);
|
||||
|
|
|
|||
Loading…
Reference in New Issue