DBG: added DbgFunctions->GetCallStackEx
This commit is contained in:
parent
6cc5f4d849
commit
cbe5130061
|
|
@ -312,6 +312,14 @@ static bool _enumheaps(ListOf(HEAPINFO) heaps)
|
|||
return BridgeList<HEAPINFO>::CopyData(heaps, heapInfoV);
|
||||
}
|
||||
|
||||
static void _getcallstackex(DBGCALLSTACK* callstack, bool cache)
|
||||
{
|
||||
auto csp = GetContextDataEx(hActiveThread, UE_CSP);
|
||||
if(!cache)
|
||||
stackupdatecallstack(csp);
|
||||
stackgetcallstack(csp, (CALLSTACK*)callstack);
|
||||
}
|
||||
|
||||
void dbgfunctionsinit()
|
||||
{
|
||||
_dbgfunctions.AssembleAtEx = _assembleatex;
|
||||
|
|
@ -373,4 +381,5 @@ void dbgfunctionsinit()
|
|||
_dbgfunctions.EnumHeaps = _enumheaps;
|
||||
_dbgfunctions.ThreadGetName = ThreadGetName;
|
||||
_dbgfunctions.IsDepEnabled = dbgisdepenabled;
|
||||
_dbgfunctions.GetCallStackEx = _getcallstackex;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ typedef bool(*HANDLESENUMWINDOWS)(ListOf(WINDOW_INFO) windows);
|
|||
typedef bool(*HANDLESENUMHEAPS)(ListOf(HEAPINFO) heaps);
|
||||
typedef bool(*THREADGETNAME)(DWORD tid, char* name);
|
||||
typedef bool(*ISDEPENABLED)();
|
||||
typedef void(*GETCALLSTACKEX)(DBGCALLSTACK* callstack, bool cache);
|
||||
|
||||
//The list of all the DbgFunctions() return value.
|
||||
//WARNING: This list is append only. Do not insert things in the middle or plugins would break.
|
||||
|
|
@ -238,6 +239,7 @@ typedef struct DBGFUNCTIONS_
|
|||
HANDLESENUMHEAPS EnumHeaps;
|
||||
THREADGETNAME ThreadGetName;
|
||||
ISDEPENABLED IsDepEnabled;
|
||||
GETCALLSTACKEX GetCallStackEx;
|
||||
} DBGFUNCTIONS;
|
||||
|
||||
#ifdef BUILD_DBG
|
||||
|
|
|
|||
Loading…
Reference in New Issue