1 //===-- LinuxProcMaps.h -----------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef liblldb_LinuxProcMaps_H_
10 #define liblldb_LinuxProcMaps_H_
12 #include "lldb/lldb-forward.h"
13 #include "llvm/ADT/StringRef.h"
17 namespace lldb_private {
19 typedef std::function<bool(const lldb_private::MemoryRegionInfo &,
20 const lldb_private::Status &)> LinuxMapCallback;
22 void ParseLinuxMapRegions(llvm::StringRef linux_map,
23 LinuxMapCallback const &callback);
25 } // namespace lldb_private
27 #endif // liblldb_LinuxProcMaps_H_