Merge remote-tracking branch 'whot/for-keith'

This commit is contained in:
Keith Packard
2013-11-01 00:34:18 -07:00
3 changed files with 14 additions and 4 deletions

View File

@@ -114,14 +114,15 @@ xorg_backtrace(void)
void
xorg_backtrace(void)
{
void *array[64];
const int BT_SIZE = 64;
void *array[BT_SIZE];
const char *mod;
int size, i;
Dl_info info;
ErrorFSigSafe("\n");
ErrorFSigSafe("Backtrace:\n");
size = backtrace(array, 64);
size = backtrace(array, BT_SIZE);
for (i = 0; i < size; i++) {
int rc = dladdr(array[i], &info);