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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020