Main MRPT website
>
C++ reference for MRPT 1.5.9
mrpt
system
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() */
20
struct
TCallStackEntry
21
{
22
inline
TCallStackEntry
() :
address
(NULL) {}
23
/** Address of the calling point */
24
void
*
address
;
25
/** Demangled symbol name */
26
std::string
symbolName
;
27
/** Original (before demangle) symbol name */
28
std::string
symbolNameOriginal
;
29
};
30
31
#ifdef _MSC_VER
32
template
class
BASE_IMPEXP
std::vector<TCallStackEntry>;
33
#endif
34
35
/** See: getCallStackBackTrace() */
36
struct
BASE_IMPEXP
TCallStackBackTrace
37
{
38
TCallStackBackTrace
();
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
*/
49
void
BASE_IMPEXP
getCallStackBackTrace
(
TCallStackBackTrace
&out_bt);
50
51
}
// End of namespace
52
}
// End of namespace
mrpt::system::TCallStackEntry
Used in getCallStackBackTrace()
Definition:
backtrace.h:20
mrpt::system::getCallStackBackTrace
void BASE_IMPEXP getCallStackBackTrace(TCallStackBackTrace &out_bt)
Returns a list of strings representing the current call stack backtrace.
Definition:
backtrace.cpp:28
mrpt::system::TCallStackEntry::address
void * address
Address of the calling point.
Definition:
backtrace.h:24
mrpt::system::TCallStackEntry::symbolName
std::string symbolName
Demangled symbol name.
Definition:
backtrace.h:26
BASE_IMPEXP
#define BASE_IMPEXP
Definition:
maps/CColouredPointsMap.h:42
mrpt::system::TCallStackEntry::TCallStackEntry
TCallStackEntry()
Definition:
backtrace.h:22
mrpt::system::TCallStackBackTrace::backtrace_levels
std::vector< TCallStackEntry > backtrace_levels
Definition:
backtrace.h:39
string
GLsizei const GLchar ** string
Definition:
glext.h:3919
mrpt::system::TCallStackEntry::symbolNameOriginal
std::string symbolNameOriginal
Original (before demangle) symbol name.
Definition:
backtrace.h:28
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition:
CParticleFilter.h:16
mrpt::system::TCallStackBackTrace
See: getCallStackBackTrace()
Definition:
backtrace.h:36
address
GLuint address
Definition:
glext.h:6078
link_pragmas.h
Page generated by
Doxygen 1.8.14
for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020