blob: e1f0e48ac5c957bc6c9070d67381f203f569cd9e [file] [log] [blame]
Greg Clayton026e1bf2018-12-14 19:36:01 +00001//===-- LinuxProcMaps.h -----------------------------------------*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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
Greg Clayton026e1bf2018-12-14 19:36:01 +00006//
7//===----------------------------------------------------------------------===//
8
9#ifndef liblldb_LinuxProcMaps_H_
10#define liblldb_LinuxProcMaps_H_
11
12#include "lldb/lldb-forward.h"
13#include "llvm/ADT/StringRef.h"
14#include <functional>
15
16
17namespace lldb_private {
18
19typedef std::function<bool(const lldb_private::MemoryRegionInfo &,
20 const lldb_private::Status &)> LinuxMapCallback;
21
22void ParseLinuxMapRegions(llvm::StringRef linux_map,
23 LinuxMapCallback const &callback);
24
25} // namespace lldb_private
26
27#endif // liblldb_LinuxProcMaps_H_