#undef _FILE_OFFSET_BITS
#endif
+#include "pal/dbgmsg.h"
+SET_DEFAULT_DEBUG_CHANNEL(DEBUG); // some headers have code with asserts, so do this first
+
#include "pal/thread.hpp"
#include "pal/procobj.hpp"
#include "pal/file.hpp"
#include "pal/palinternal.h"
-#include "pal/dbgmsg.h"
#include "pal/process.h"
#include "pal/context.h"
#include "pal/debug.h"
using namespace CorUnix;
-SET_DEFAULT_DEBUG_CHANNEL(DEBUG);
-
extern "C" void DBG_DebugBreak_End();
#if HAVE_PROCFS_CTL
{
ASSERT("failed to convert wide chars to multibytes\n");
SetLastError(ERROR_INTERNAL_ERROR);
- InternalFree(lpOutputStringA);
+ free(lpOutputStringA);
goto EXIT;
}
OutputDebugStringA(lpOutputStringA);
- InternalFree(lpOutputStringA);
+ free(lpOutputStringA);
EXIT:
LOGEXIT("OutputDebugStringW returns\n");
goto FAILED;
}
- InternalFree(command_string);
+ free(command_string);
return 1;
}
FAILED:
if (command_string)
{
- InternalFree(command_string);
+ free(command_string);
}
fprintf (stderr, "Failed to execute command: '%s'\n", command_string);
CLEANUP2:
if (lpTmpBuffer)
{
- InternalFree(lpTmpBuffer);
+ free(lpTmpBuffer);
}
#endif // !HAVE_TTRACE
CLEANUP2:
if (lpTmpBuffer)
{
- InternalFree(lpTmpBuffer);
+ free(lpTmpBuffer);
}
#endif // !HAVE_TTRACE
--*/
+#include "pal/dbgmsg.h"
+SET_DEFAULT_DEBUG_CHANNEL(EXCEPT); // some headers have code with asserts, so do this first
+
#include "pal/thread.hpp"
#include "pal/seh.hpp"
#include "pal/palinternal.h"
#if HAVE_MACH_EXCEPTIONS
#include "machexception.h"
-#include "pal/dbgmsg.h"
#include "pal/critsect.h"
#include "pal/debug.h"
#include "pal/init.h"
using namespace CorUnix;
-SET_DEFAULT_DEBUG_CHANNEL(EXCEPT);
-
// The port we use to handle exceptions and to set the thread context
mach_port_t s_ExceptionPort;
if (exceptionSettings)
{
exMode = (MachExceptionMode)atoi(exceptionSettings);
- InternalFree(exceptionSettings);
+ free(exceptionSettings);
}
else
{
--*/
+#include "pal/dbgmsg.h"
+SET_DEFAULT_DEBUG_CHANNEL(THREAD); // some headers have code with asserts, so do this first
+
#include "pal/corunix.hpp"
#include "pal/context.h"
#include "pal/thread.hpp"
#include "procprivate.hpp"
#include "pal/process.h"
#include "pal/module.h"
-#include "pal/dbgmsg.h"
#include "pal/environ.h"
#include "pal/init.h"
/* ------------------- Definitions ------------------------------*/
-SET_DEFAULT_DEBUG_CHANNEL(THREAD);
// The default stack size of a newly created thread (currently 256KB)
// when the dwStackSize parameter of PAL_CreateThread()
CPalThread::s_dwDefaultThreadStackSize = dw;
}
- InternalFree(pszStackSize);
+ free(pszStackSize);
}
return palError;