Enlarge default frame size in our version of backtrace_symbols

This commit is contained in:
Juan Jose Garcia Ripoll 2010-11-07 22:07:49 +01:00
parent c4ef79e5bf
commit 5f5ab3a52c

View file

@ -32,7 +32,7 @@
static int
backtrace(void **buffer, int n)
{
int nframes = (n > 10)? 10 : n;
int nframes = (n > 32)? 32 : n;
int i;
switch (nframes) {
case 32: buffer[31] = __builtin_return_address(31);