libTriton  version 0.7 build 1409
utils.hpp
Go to the documentation of this file.
1 /*
3 ** Copyright (C) - Triton
4 **
5 ** This program is under the terms of the BSD License.
6 */
7 
8 #ifndef TRITON_UTILS_H
9 #define TRITON_UTILS_H
10 
11 #include <string>
12 #include <pin.H>
13 #include <triton/tritonTypes.hpp>
14 
15 
16 
18 namespace tracer {
24  namespace pintool {
34 
37 
39  std::string getImageName(triton::__uint address);
40 
42  std::string getRoutineName(triton::__uint address);
43 
45  };
47 };
48 
49 #endif /* TRITON_UTILS_H */
triton::__uint getInsOffset(triton::__uint address)
Returns the instruction offset from a given address.
Definition: utils.cpp:59
triton::__uint getBaseAddress(triton::__uint address)
Returns the base address from a given address.
Definition: utils.cpp:19
std::string getImageName(triton::__uint address)
Returns the image name from a given address.
Definition: utils.cpp:39
std::string getRoutineName(triton::__uint address)
Returns the routine name from a given address.
Definition: utils.cpp:67
unsigned long long __uint
unsigned long long if the arch is 64-bits.
Definition: tritonTypes.hpp:71
The Tracer namespace.
Definition: api.cpp:12