| Index: base/third_party/symbolize/symbolize.h
|
| diff --git a/base/third_party/symbolize/symbolize.h b/base/third_party/symbolize/symbolize.h
|
| index aeb2fe3c6658ee489c2a90d326daae039bb87415..bc871de444ae2d43f2df8a9fbd81591e034ba4e2 100644
|
| --- a/base/third_party/symbolize/symbolize.h
|
| +++ b/base/third_party/symbolize/symbolize.h
|
| @@ -138,6 +138,23 @@ typedef int (*SymbolizeOpenObjectFileCallback)(uint64_t pc,
|
| void InstallSymbolizeOpenObjectFileCallback(
|
| SymbolizeOpenObjectFileCallback callback);
|
|
|
| +// Parsed /proc/maps entry; used by FindMappedRegion() below.
|
| +struct MappedRegion {
|
| + uint64_t start_address;
|
| + uint64_t end_address;
|
| + const char* flags;
|
| + uint64_t file_offset;
|
| + const char* name;
|
| +};
|
| +
|
| +// Iteratively parses /proc/self/maps and calls |callback| for each entry
|
| +// until it returns 'true'.
|
| +// Returns 'true' itself only if iteration was stopped by the callback.
|
| +// The function is async-signal-safe.
|
| +bool FindMappedRegion(
|
| + void* callback_data,
|
| + bool (*callback)(void* data, const MappedRegion& region));
|
| +
|
| _END_GOOGLE_NAMESPACE_
|
|
|
| #endif
|
|
|