Go to the documentation of this file.
18 #ifndef ABSL_DEBUGGING_INTERNAL_SYMBOLIZE_H_
19 #define ABSL_DEBUGGING_INTERNAL_SYMBOLIZE_H_
26 #include "absl/base/config.h"
27 #include "absl/strings/string_view.h"
29 #ifdef ABSL_INTERNAL_HAVE_ELF_SYMBOLIZE
30 #error ABSL_INTERNAL_HAVE_ELF_SYMBOLIZE cannot be directly set
31 #elif defined(__ELF__) && defined(__GLIBC__) && !defined(__native_client__) && \
32 !defined(__asmjs__) && !defined(__wasm__)
33 #define ABSL_INTERNAL_HAVE_ELF_SYMBOLIZE 1
42 namespace debugging_internal {
56 bool GetSectionHeaderByName(
int fd,
const char *
name,
size_t name_len,
63 #endif // ABSL_INTERNAL_HAVE_ELF_SYMBOLIZE
65 #ifdef ABSL_INTERNAL_HAVE_DARWIN_SYMBOLIZE
66 #error ABSL_INTERNAL_HAVE_DARWIN_SYMBOLIZE cannot be directly set
67 #elif defined(__APPLE__)
68 #define ABSL_INTERNAL_HAVE_DARWIN_SYMBOLIZE 1
73 namespace debugging_internal {
75 struct SymbolDecoratorArgs {
88 char *
const symbol_buf;
89 size_t symbol_buf_size;
98 using SymbolDecorator = void (*)(
const SymbolDecoratorArgs *);
104 int InstallSymbolDecorator(SymbolDecorator decorator,
void*
arg);
108 bool RemoveSymbolDecorator(
int ticket);
112 bool RemoveAllSymbolDecorators(
void);
121 bool RegisterFileMappingHint(
const void*
start,
const void*
end,
135 #endif // __cplusplus
141 #endif // __cplusplus
147 #endif // ABSL_DEBUGGING_INTERNAL_SYMBOLIZE_H_
#define ABSL_NAMESPACE_END
#define ABSL_NAMESPACE_BEGIN
void ForEachSection(const PeFile &pe, Func &§ion_func)
unsigned __int64 uint64_t
static void callback(void *arg, int status, int timeouts, struct hostent *host)
bool AbslInternalGetFileMappingHint(const void **start, const void **end, uint64_t *offset, const char **filename)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:24