#include "LinuxProcMaps.h"
#include "lldb/Target/MemoryRegionInfo.h"
#include "lldb/Utility/Status.h"
#include "lldb/Utility/StringExtractor.h"
#include "llvm/ADT/StringRef.h"
#include <optional>
usingnamespacelldb_private;
enum class MapsKind { … };
static llvm::Expected<MemoryRegionInfo> ProcMapError(const char *msg,
MapsKind kind) { … }
static llvm::Expected<MemoryRegionInfo>
ParseMemoryRegionInfoFromProcMapsLine(llvm::StringRef maps_line,
MapsKind maps_kind) { … }
void lldb_private::ParseLinuxMapRegions(llvm::StringRef linux_map,
LinuxMapCallback const &callback) { … }
void lldb_private::ParseLinuxSMapRegions(llvm::StringRef linux_smap,
LinuxMapCallback const &callback) { … }