1
0
mirror of https://github.com/Zygo/bees.git synced 2025-06-16 17:46:16 +02:00

bees: remove local cruft, throw at github

This commit is contained in:
Zygo Blaxell
2016-11-15 23:32:44 -05:00
commit cca0ee26a8
66 changed files with 12785 additions and 0 deletions

View File

@ -0,0 +1,29 @@
#ifndef CRUCIBLE_BACKTRACE_H
#define CRUCIBLE_BACKTRACE_H
#include <string>
#include <vector>
#include <execinfo.h>
namespace crucible {
using namespace std;
class Backtrace {
vector<void *> m_buffer;
mutable vector<string> m_result_stringvec;
mutable char **m_result_cpp;
int m_result_size;
int m_desired_size;
public:
Backtrace(int size = 99);
~Backtrace();
const vector<string> &strings() const;
const vector<void *> &voids() const;
void symbols_fd(int fd) const;
bool overflowed() const;
};
}
#endif // CRUCIBLE_BACKTRACE_H