Main MRPT website > C++ reference for MRPT 1.9.9
backtrace.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <vector>
12 #include <string>
13 
14 namespace mrpt
15 {
16 namespace system
17 {
18 /** Used in getCallStackBackTrace() */
20 {
21  inline TCallStackEntry() : address(NULL) {}
22  /** Address of the calling point */
23  void* address;
24  /** Demangled symbol name */
26  /** Original (before demangle) symbol name */
28 };
29 
30 #ifdef _MSC_VER
31 template class std::vector<TCallStackEntry>;
32 #endif
33 
34 /** See: getCallStackBackTrace() */
36 {
38  std::vector<TCallStackEntry> backtrace_levels;
39 
40  /** Prints all backtrace entries, one per line in a human-readable format.
41  */
42  std::string asString() const;
43 };
44 
45 /** Returns a list of strings representing the current call stack
46  * backtrace. If possible, human-readable names are used for
47  * functions.
48  */
50 
51 } // End of namespace
52 } // End of namespace
mrpt::system::TCallStackEntry::symbolName
std::string symbolName
Demangled symbol name.
Definition: backtrace.h:25
address
GLuint address
Definition: glext.h:6947
mrpt::system::TCallStackEntry::symbolNameOriginal
std::string symbolNameOriginal
Original (before demangle) symbol name.
Definition: backtrace.h:27
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::system::TCallStackEntry::address
void * address
Address of the calling point.
Definition: backtrace.h:23
mrpt::system::TCallStackBackTrace::backtrace_levels
std::vector< TCallStackEntry > backtrace_levels
Definition: backtrace.h:38
mrpt::system::getCallStackBackTrace
void getCallStackBackTrace(TCallStackBackTrace &out_bt)
Returns a list of strings representing the current call stack backtrace.
Definition: backtrace.cpp:31
mrpt::system::TCallStackBackTrace
See: getCallStackBackTrace()
Definition: backtrace.h:35
mrpt::system::TCallStackEntry
Used in getCallStackBackTrace()
Definition: backtrace.h:19
mrpt::system::TCallStackEntry::TCallStackEntry
TCallStackEntry()
Definition: backtrace.h:21
string
GLsizei const GLchar ** string
Definition: glext.h:4101



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST