common: re-enable backtrace support

A recent porting effort disabled support for backtrace creation.  It
also didn't initialize all variables, which would lead to a crash when
deleting a backtrace instance.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2015-12-02 00:43:48 -05:00
parent ca777e8974
commit 9c266e5995

View File

@ -1,6 +1,7 @@
#ifndef CEPH_BACKTRACE_H
#define CEPH_BACKTRACE_H
#include "acconfig.h"
#include <iosfwd>
#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
@ -24,6 +25,7 @@ struct BackTrace {
#else
skip = 0;
size = 0;
strings = nullptr;
#endif
}
~BackTrace() {