Changeset View
Changeset View
Standalone View
Standalone View
source/lib/sysdep/os/osx/odbg.cpp
/* Copyright (C) 2010 Wildfire Games. | /* Copyright (C) 2021 Wildfire Games. | ||||
wraitii: Need to un-rename this, had at first use a CoreFoundation API | |||||
* | * | ||||
* Permission is hereby granted, free of charge, to any person obtaining | * Permission is hereby granted, free of charge, to any person obtaining | ||||
* a copy of this software and associated documentation files (the | * a copy of this software and associated documentation files (the | ||||
* "Software"), to deal in the Software without restriction, including | * "Software"), to deal in the Software without restriction, including | ||||
* without limitation the rights to use, copy, modify, merge, publish, | * without limitation the rights to use, copy, modify, merge, publish, | ||||
* distribute, sublicense, and/or sell copies of the Software, and to | * distribute, sublicense, and/or sell copies of the Software, and to | ||||
* permit persons to whom the Software is furnished to do so, subject to | * permit persons to whom the Software is furnished to do so, subject to | ||||
* the following conditions: | * the following conditions: | ||||
Show All 13 Lines | |||||
// note: the BFD stuff *could* be used on other platforms, if we saw the | // note: the BFD stuff *could* be used on other platforms, if we saw the | ||||
// need for it. | // need for it. | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "lib/sysdep/sysdep.h" | #include "lib/sysdep/sysdep.h" | ||||
#include "lib/debug.h" | #include "lib/debug.h" | ||||
#include <pthread.h> | |||||
void* debug_GetCaller(void* UNUSED(context), const wchar_t* UNUSED(lastFuncToSkip)) | void* debug_GetCaller(void* UNUSED(context), const wchar_t* UNUSED(lastFuncToSkip)) | ||||
{ | { | ||||
return NULL; | return NULL; | ||||
} | } | ||||
Status debug_DumpStack(wchar_t* UNUSED(buf), size_t UNUSED(max_chars), void* UNUSED(context), const wchar_t* UNUSED(lastFuncToSkip)) | Status debug_DumpStack(wchar_t* UNUSED(buf), size_t UNUSED(max_chars), void* UNUSED(context), const wchar_t* UNUSED(lastFuncToSkip)) | ||||
{ | { | ||||
return ERR::NOT_SUPPORTED; | return ERR::NOT_SUPPORTED; | ||||
} | } | ||||
Status debug_ResolveSymbol(void* UNUSED(ptr_of_interest), wchar_t* UNUSED(sym_name), wchar_t* UNUSED(file), int* UNUSED(line)) | Status debug_ResolveSymbol(void* UNUSED(ptr_of_interest), wchar_t* UNUSED(sym_name), wchar_t* UNUSED(file), int* UNUSED(line)) | ||||
{ | { | ||||
return ERR::NOT_SUPPORTED; | return ERR::NOT_SUPPORTED; | ||||
} | } | ||||
void debug_SetThreadName(char const* UNUSED(name)) | void debug_SetThreadName(char const* name) | ||||
{ | { | ||||
// Currently unimplemented | pthread_setname_np(name); | ||||
Not Done Inline ActionsI thought the goal was to nuke pthread? Stan: I thought the goal was to nuke pthread? | |||||
Done Inline ActionsFor this kind of OS-specific usage I think it's fine, and easier than using Objective-C++ wraitii: For this kind of OS-specific usage I think it's fine, and easier than using Objective-C++ | |||||
Not Done Inline ActionsThe change can be in a different patch. vladislavbelov: The change can be in a different patch. | |||||
Not Done Inline ActionsMake another patch? Stan: Make another patch? | |||||
} | } |
Wildfire Games · Phabricator
Need to un-rename this, had at first use a CoreFoundation API