FreeRDP
debug.c File Reference
#include <stdio.h>
#include <fcntl.h>
#include <winpr/string.h>
#include <winpr/crt.h>
#include <winpr/wlog.h>
#include <winpr/debug.h>

Macros

#define TAG   "com.winpr.utils.debug"
 
#define LOGT(...)
 
#define LOGD(...)
 
#define LOGI(...)
 
#define LOGW(...)
 
#define LOGE(...)
 
#define LOGF(...)
 

Functions

void winpr_backtrace_free (void *buffer)
 
void * winpr_backtrace (DWORD size)
 
char ** winpr_backtrace_symbols (void *buffer, size_t *used)
 
void winpr_backtrace_symbols_fd (void *buffer, int fd)
 
void winpr_log_backtrace (const char *tag, DWORD level, DWORD size)
 
void winpr_log_backtrace_ex (wLog *log, DWORD level, DWORD size)
 
char * winpr_strerror (DWORD dw, char *dmsg, size_t size)
 

Variables

static const char * support_msg = "Invalid stacktrace buffer! check if platform is supported!"
 

Macro Definition Documentation

#define LOGD (   ...)
Value:
do \
{ \
WLog_Print(WLog_Get(TAG), WLOG_DEBUG, __VA_ARGS__); \
} while (0)
#define TAG
Definition: debug.c:48
#define WLog_Print(_log, _log_level,...)
Definition: include/winpr/wlog.h:118
#define WLOG_DEBUG
Definition: include/winpr/wlog.h:40
WINPR_API wLog * WLog_Get(LPCSTR name)
Definition: wlog.c:980
#define LOGE (   ...)
Value:
do \
{ \
WLog_Print(WLog_Get(TAG), WLOG_ERROR, __VA_ARGS__); \
} while (0)
#define TAG
Definition: debug.c:48
#define WLog_Print(_log, _log_level,...)
Definition: include/winpr/wlog.h:118
#define WLOG_ERROR
Definition: include/winpr/wlog.h:43
WINPR_API wLog * WLog_Get(LPCSTR name)
Definition: wlog.c:980
#define LOGF (   ...)
Value:
do \
{ \
WLog_Print(WLog_Get(TAG), WLOG_FATAL, __VA_ARGS__); \
} while (0)
#define TAG
Definition: debug.c:48
#define WLog_Print(_log, _log_level,...)
Definition: include/winpr/wlog.h:118
#define WLOG_FATAL
Definition: include/winpr/wlog.h:44
WINPR_API wLog * WLog_Get(LPCSTR name)
Definition: wlog.c:980
#define LOGI (   ...)
Value:
do \
{ \
WLog_Print(WLog_Get(TAG), WLOG_INFO, __VA_ARGS__); \
} while (0)
#define TAG
Definition: debug.c:48
#define WLog_Print(_log, _log_level,...)
Definition: include/winpr/wlog.h:118
#define WLOG_INFO
Definition: include/winpr/wlog.h:41
WINPR_API wLog * WLog_Get(LPCSTR name)
Definition: wlog.c:980
#define LOGT (   ...)
Value:
do \
{ \
WLog_Print(WLog_Get(TAG), WLOG_TRACE, __VA_ARGS__); \
} while (0)
#define WLOG_TRACE
Definition: include/winpr/wlog.h:39
#define TAG
Definition: debug.c:48
#define WLog_Print(_log, _log_level,...)
Definition: include/winpr/wlog.h:118
WINPR_API wLog * WLog_Get(LPCSTR name)
Definition: wlog.c:980
#define LOGW (   ...)
Value:
do \
{ \
WLog_Print(WLog_Get(TAG), WLOG_WARN, __VA_ARGS__); \
} while (0)
#define TAG
Definition: debug.c:48
#define WLOG_WARN
Definition: include/winpr/wlog.h:42
#define WLog_Print(_log, _log_level,...)
Definition: include/winpr/wlog.h:118
WINPR_API wLog * WLog_Get(LPCSTR name)
Definition: wlog.c:980
#define TAG   "com.winpr.utils.debug"

WinPR: Windows Portable Runtime Debugging Utils

Copyright 2014 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2014 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

void* winpr_backtrace ( DWORD  size)

Here is the caller graph for this function:

void winpr_backtrace_free ( void *  buffer)

Here is the caller graph for this function:

char** winpr_backtrace_symbols ( void *  buffer,
size_t *  used 
)

Here is the caller graph for this function:

void winpr_backtrace_symbols_fd ( void *  buffer,
int  fd 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void winpr_log_backtrace ( const char *  tag,
DWORD  level,
DWORD  size 
)

WinPR: Windows Portable Runtime WinPR Debugging helpers

Copyright 2014 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2014 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:

Here is the caller graph for this function:

void winpr_log_backtrace_ex ( wLog *  log,
DWORD  level,
DWORD  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

char* winpr_strerror ( DWORD  dw,
char *  dmsg,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* support_msg = "Invalid stacktrace buffer! check if platform is supported!"
static