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-2017, 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 
10 #pragma once
11 
12 #include <vector>
13 #include <string>
14 
15 namespace mrpt
16 {
17 namespace system
18 {
19 /** Used in getCallStackBackTrace() */
21 {
22  inline TCallStackEntry() : address(NULL) {}
23  /** Address of the calling point */
24  void* address;
25  /** Demangled symbol name */
27  /** Original (before demangle) symbol name */
29 };
30 
31 #ifdef _MSC_VER
32 template class std::vector<TCallStackEntry>;
33 #endif
34 
35 /** See: getCallStackBackTrace() */
37 {
39  std::vector<TCallStackEntry> backtrace_levels;
40 
41  /** Prints all backtrace entries, one per line in a human-readable format.
42  */
43  std::string asString() const;
44 };
45 
46 /** Returns a list of strings representing the current call stack
47  * backtrace. If possible, human-readable names are used for
48  * functions.
49  */
51 
52 } // End of namespace
53 } // End of namespace
Used in getCallStackBackTrace()
Definition: backtrace.h:20
void getCallStackBackTrace(TCallStackBackTrace &out_bt)
Returns a list of strings representing the current call stack backtrace.
Definition: backtrace.cpp:29
void * address
Address of the calling point.
Definition: backtrace.h:24
std::string symbolName
Demangled symbol name.
Definition: backtrace.h:26
TCallStackEntry()
Definition: backtrace.h:22
std::vector< TCallStackEntry > backtrace_levels
Definition: backtrace.h:39
GLsizei const GLchar ** string
Definition: glext.h:4101
std::string symbolNameOriginal
Original (before demangle) symbol name.
Definition: backtrace.h:28
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
See: getCallStackBackTrace()
Definition: backtrace.h:36
GLuint address
Definition: glext.h:6947



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019