QoreListNode *CallStack::getCallStack() const { QoreListNode *l = new QoreListNode; CallNode *c = tail; while (c) { l->push(c->getInfo()); c = c->prev; } return l; }