mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-18 06:13:55 -07:00
- displaying symbol values requires stack pointer, not frame pointer - update debug_IsPointerBogus - skip-n-frames code changed to skip-all-frames-up-to-func (more reliable in the face of inlining) debug.cpp: cleanup This was SVN commit r6410.
27 lines
667 B
C++
27 lines
667 B
C++
// note: the BFD stuff *could* be used on other platforms, if we saw the
|
|
// need for it.
|
|
|
|
#include "precompiled.h"
|
|
|
|
#include "lib/sysdep/sysdep.h"
|
|
#include "lib/debug.h"
|
|
|
|
void* debug_GetCaller(void* UNUSED(context), const char* UNUSED(lastFuncToSkip))
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
LibError debug_DumpStack(wchar_t* UNUSED(buf), size_t UNUSED(max_chars), size_t UNUSED(skip), void* UNUSED(context))
|
|
{
|
|
return ERR::NOT_IMPLEMENTED;
|
|
}
|
|
|
|
LibError debug_ResolveSymbol(void* UNUSED(ptr_of_interest), char* UNUSED(sym_name), char* UNUSED(file), int* UNUSED(line))
|
|
{
|
|
return ERR::NOT_IMPLEMENTED;
|
|
}
|
|
|
|
void debug_SetThreadName(char const* UNUSED(name))
|
|
{
|
|
// Currently unimplemented
|
|
}
|