#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>
Go to the source code of this file.
◆ MapsKind
◆ ParseMemoryRegionInfoFromProcMapsLine()
static llvm::Expected< MemoryRegionInfo > ParseMemoryRegionInfoFromProcMapsLine |
( |
llvm::StringRef |
maps_line, |
|
|
MapsKind |
maps_kind |
|
) |
| |
|
static |
Definition at line 27 of file LinuxProcMaps.cpp.
References StringExtractor::GetBytesLeft(), StringExtractor::GetChar(), StringExtractor::GetHexMaxU64(), lldb_private::MemoryRegionInfo::GetRange(), StringExtractor::GetU64(), StringExtractor::Peek(), ProcMapError(), lldb_private::MemoryRegionInfo::SetExecutable(), lldb_private::MemoryRegionInfo::SetMapped(), lldb_private::MemoryRegionInfo::SetName(), lldb_private::Range< B, S >::SetRangeBase(), lldb_private::Range< B, S >::SetRangeEnd(), lldb_private::MemoryRegionInfo::SetReadable(), lldb_private::MemoryRegionInfo::SetShared(), lldb_private::MemoryRegionInfo::SetWritable(), and StringExtractor::SkipSpaces().
Referenced by lldb_private::ParseLinuxMapRegions(), and lldb_private::ParseLinuxSMapRegions().
◆ ProcMapError()