1026e1bf5SGreg Clayton //===-- LinuxProcMaps.h -----------------------------------------*- C++ -*-===// 2026e1bf5SGreg Clayton // 32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6026e1bf5SGreg Clayton // 7026e1bf5SGreg Clayton //===----------------------------------------------------------------------===// 8026e1bf5SGreg Clayton 9cdc514e4SJonas Devlieghere #ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_LINUXPROCMAPS_H 10cdc514e4SJonas Devlieghere #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_LINUXPROCMAPS_H 11026e1bf5SGreg Clayton 12026e1bf5SGreg Clayton #include "lldb/lldb-forward.h" 13026e1bf5SGreg Clayton #include "llvm/ADT/StringRef.h" 14*32541685SDavid Spickett #include "llvm/Support/Error.h" 15026e1bf5SGreg Clayton 16026e1bf5SGreg Clayton namespace lldb_private { 17026e1bf5SGreg Clayton 18*32541685SDavid Spickett typedef std::function<bool(llvm::Expected<MemoryRegionInfo>)> LinuxMapCallback; 19026e1bf5SGreg Clayton 20026e1bf5SGreg Clayton void ParseLinuxMapRegions(llvm::StringRef linux_map, 21026e1bf5SGreg Clayton LinuxMapCallback const &callback); 22*32541685SDavid Spickett void ParseLinuxSMapRegions(llvm::StringRef linux_smap, 23*32541685SDavid Spickett LinuxMapCallback const &callback); 24026e1bf5SGreg Clayton 25026e1bf5SGreg Clayton } // namespace lldb_private 26026e1bf5SGreg Clayton 27cdc514e4SJonas Devlieghere #endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_LINUXPROCMAPS_H 28