#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "base/debug/proc_maps_linux.h"
#include <fcntl.h>
#include <stddef.h>
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/logging.h"
#include "base/strings/string_split.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
#include <inttypes.h>
#endif
namespace base {
namespace debug {
static bool ContainsGateVMA(std::string* proc_maps, size_t pos) { … }
bool ReadProcMaps(std::string* proc_maps) { … }
bool ParseProcMaps(const std::string& input,
std::vector<MappedMemoryRegion>* regions_out) { … }
}
}