Main MRPT website > C++ reference for MRPT 1.5.6
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
GLuint address
Definition: glew.h:8818
std::string symbolNameOriginal
Original (before demangle) symbol name.
Definition: backtrace.h:28
GLsizei const GLcharARB ** string
Definition: glew.h:3293
See: getCallStackBackTrace()
Definition: backtrace.h:36



Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018