0ad/source/lib/sysdep/os/osx/odbg.cpp
janwas aea2368300 fixes to stack trace code under x64 (from work):
- 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.
2008-09-27 10:05:11 +00:00

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
}