DebugServer2
Loading...
Searching...
No Matches
MachOProcess.h
1//
2// Copyright (c) 2014-present, Facebook, Inc.
3// All rights reserved.
4//
5// This source code is licensed under the University of Illinois/NCSA Open
6// Source License found in the LICENSE file in the root directory of this
7// source tree. An additional grant of patent rights can be found in the
8// PATENTS file in the same directory.
9//
10
11#pragma once
12
13#include "DebugServer2/Host/Darwin/Mach.h"
14#include "DebugServer2/Target/POSIX/Process.h"
15
16namespace ds2 {
17namespace Target {
18namespace Darwin {
19
21protected:
22 std::string _auxiliaryVector;
23 Address _sharedLibraryInfoAddress;
25
26public:
27 ErrorCode getAuxiliaryVector(std::string &auxv) override;
28 uint64_t getAuxiliaryVectorValue(uint64_t type) override;
29
30public:
31 virtual ErrorCode getSharedLibraryInfoAddress(Address &address);
32 ErrorCode enumerateSharedLibraries(
33 std::function<void(SharedLibraryInfo const &)> const &cb) override;
34
35public:
36 Host::Darwin::Mach &mach();
37
38protected:
39 ErrorCode updateInfo() override;
40 virtual ErrorCode updateAuxiliaryVector();
41};
42} // namespace Darwin
43} // namespace Target
44} // namespace ds2
Definition Types.h:95
Definition Mach.h:24
Definition MachOProcess.h:20
Definition Process.h:23
Definition Types.h:397