From c0a5dde4bf305a8ed392f5a241a7bcd2d2822ffa Mon Sep 17 00:00:00 2001 From: freenity Date: Sat, 18 Oct 2008 18:42:23 +0000 Subject: [PATCH] jan's modifications This was SVN commit r6431. --- source/lib/sysdep/os/linux/ldbg.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/source/lib/sysdep/os/linux/ldbg.cpp b/source/lib/sysdep/os/linux/ldbg.cpp index 447ca699a4..db18c5dad7 100644 --- a/source/lib/sysdep/os/linux/ldbg.cpp +++ b/source/lib/sysdep/os/linux/ldbg.cpp @@ -73,19 +73,13 @@ void* debug_GetCaller(void* UNUSED(context), const char* UNUSED(lastFuncToSkip)) LibError debug_DumpStack(wchar_t* buf, size_t max_chars, void* UNUSED(context), const char* UNUSED(lastFuncToSkip)) { - ++skip; // Skip ourselves too - - // bt[0..skip] == skipped - // bt[skip..N_FRAMES+skip] == print static const size_t N_FRAMES = 16; - void *bt[skip+N_FRAMES]; + void *bt[N_FRAMES]; int bt_size=0; wchar_t *bufpos = buf; wchar_t *bufend = buf + max_chars; bt_size=backtrace(bt, ARRAY_SIZE(bt)); - // did we get enough backtraced frames? - //assert((bt_size >= (int)skip) && "Need at least frames in the backtrace"); // Assumed max length of a single print-out static const size_t MAX_OUT_CHARS=1024;