From 890d3b586d95761f041eb7afe0032c7e18737890 Mon Sep 17 00:00:00 2001 From: Andy Schwerin Date: Thu, 5 Apr 2012 15:44:23 -0400 Subject: Move printStackTrace into new stacktrace.h/cpp; improve detection of execinfo.h. --- src/mongo/util/stacktrace.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/mongo/util/stacktrace.h (limited to 'src/mongo/util/stacktrace.h') diff --git a/src/mongo/util/stacktrace.h b/src/mongo/util/stacktrace.h new file mode 100644 index 00000000000..d4c9f014959 --- /dev/null +++ b/src/mongo/util/stacktrace.h @@ -0,0 +1,16 @@ +// Copyright 2009. 10gen, Inc. + +/** + * Tools for working with in-process stack traces. + */ + +#pragma once + +#include + +namespace mongo { + + // Print stack trace information to "os", default to std::cout. + void printStackTrace(std::ostream &os=std::cout); + +} // namespace mongo -- cgit v1.2.1