Backtrace.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_Utils_Backtrace_
18 #define HH_SENF_Utils_Backtrace_ 1
19 
20 // Custom includes
21 #include <ostream>
22 
23 //#include "Backtrace.mpp"
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 
26 namespace senf {
40  void formatBacktrace(std::ostream & os, void ** backtrace, int numEntries);
41 
48  void backtrace(std::ostream & os, int numEntries);
49 
50 }
51 
52 //-/////////////////////////////////////////////////////////////////////////////////////////////////
53 //#include "Backtrace.cci"
54 //#include "Backtrace.ct"
55 //#include "Backtrace.cti"
56 #endif
57 
58 
59 // Local Variables:
60 // mode: c++
61 // fill-column: 100
62 // comment-column: 40
63 // c-file-style: "senf"
64 // indent-tabs-mode: nil
65 // ispell-local-dictionary: "american"
66 // compile-command: "scons -u test"
67 // End:
void backtrace(std::ostream &os, int numEntries)
Write a backtrace to os.
Definition: Backtrace.cc:80
void formatBacktrace(std::ostream &os, void **backtrace, int numEntries)
Format a given backtrace.
Definition: Backtrace.cc:34