mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:39:26 +02:00
Merge remote-tracking branch 'upstream/master' into mixer-crash
This commit is contained in:
commit
5ce9b27789
3 changed files with 0 additions and 45 deletions
|
@ -22,7 +22,6 @@
|
||||||
#include <AgentTypes.h>
|
#include <AgentTypes.h>
|
||||||
#include <SharedUtil.h>
|
#include <SharedUtil.h>
|
||||||
#include <StdDev.h>
|
#include <StdDev.h>
|
||||||
#include <Stacktrace.h>
|
|
||||||
|
|
||||||
#include "AudioRingBuffer.h"
|
#include "AudioRingBuffer.h"
|
||||||
#include "PacketHeaders.h"
|
#include "PacketHeaders.h"
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
//
|
|
||||||
// Stacktrace.cpp
|
|
||||||
// hifi
|
|
||||||
//
|
|
||||||
// Created by Stephen Birarda on 5/6/13.
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <signal.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <execinfo.h>
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
#include "Stacktrace.h"
|
|
||||||
|
|
||||||
const int NUMBER_OF_STACK_ENTRIES = 20;
|
|
||||||
|
|
||||||
void printStacktrace(int signal) {
|
|
||||||
void* array[NUMBER_OF_STACK_ENTRIES];
|
|
||||||
|
|
||||||
// get void*'s for all entries on the stack
|
|
||||||
size_t size = backtrace(array, NUMBER_OF_STACK_ENTRIES);
|
|
||||||
|
|
||||||
// print out all the frames to stderr
|
|
||||||
fprintf(stderr, "Error: signal %d:\n", signal);
|
|
||||||
backtrace_symbols_fd(array, size, 2);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
//
|
|
||||||
// Stacktrace.h
|
|
||||||
// hifi
|
|
||||||
//
|
|
||||||
// Created by Stephen Birarda on 5/6/13.
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef __hifi__Stacktrace__
|
|
||||||
#define __hifi__Stacktrace__
|
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
void printStacktrace(int signal);
|
|
||||||
|
|
||||||
#endif /* defined(__hifi__Stacktrace__) */
|
|
Loading…
Reference in a new issue