Main MRPT website > C++ reference for MRPT 1.5.7
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 #pragma once
10 
11 #include <vector>
12 #include <string>
13 #include <mrpt/base/link_pragmas.h>
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 BASE_IMPEXP 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  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
Used in getCallStackBackTrace()
Definition: backtrace.h:20
void BASE_IMPEXP getCallStackBackTrace(TCallStackBackTrace &out_bt)
Returns a list of strings representing the current call stack backtrace.
Definition: backtrace.cpp:28
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:3919
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:6078



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019