LLDB mainline
Enumerations | Functions
LinuxProcMaps.cpp File Reference
#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>
Include dependency graph for LinuxProcMaps.cpp:

Go to the source code of this file.

Enumerations

enum class  MapsKind { Maps , SMaps }
 

Functions

static llvm::Expected< MemoryRegionInfoProcMapError (const char *msg, MapsKind kind)
 
static llvm::Expected< MemoryRegionInfoParseMemoryRegionInfoFromProcMapsLine (llvm::StringRef maps_line, MapsKind maps_kind)
 

Enumeration Type Documentation

◆ MapsKind

enum class MapsKind
strong
Enumerator
Maps 
SMaps 

Definition at line 18 of file LinuxProcMaps.cpp.

Function Documentation

◆ ParseMemoryRegionInfoFromProcMapsLine()

static llvm::Expected< MemoryRegionInfo > ParseMemoryRegionInfoFromProcMapsLine ( llvm::StringRef  maps_line,
MapsKind  maps_kind 
)
static

◆ ProcMapError()

static llvm::Expected< MemoryRegionInfo > ProcMapError ( const char *  msg,
MapsKind  kind 
)
static

Definition at line 20 of file LinuxProcMaps.cpp.

References Maps.

Referenced by lldb_private::ParseLinuxSMapRegions(), and ParseMemoryRegionInfoFromProcMapsLine().