1 //===-- LinuxProcMaps.h -----------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef liblldb_LinuxProcMaps_H_ 11 #define liblldb_LinuxProcMaps_H_ 12 13 #include "lldb/lldb-forward.h" 14 #include "llvm/ADT/StringRef.h" 15 #include <functional> 16 17 18 namespace lldb_private { 19 20 typedef std::function<bool(const lldb_private::MemoryRegionInfo &, 21 const lldb_private::Status &)> LinuxMapCallback; 22 23 void ParseLinuxMapRegions(llvm::StringRef linux_map, 24 LinuxMapCallback const &callback); 25 26 } // namespace lldb_private 27 28 #endif // liblldb_LinuxProcMaps_H_ 29