DebugServer2
Loading...
Searching...
No Matches
Thread.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/Target/ThreadBase.h"
14
15namespace ds2 {
16namespace Target {
17namespace POSIX {
18
20protected:
21 Thread(ds2::Target::Process *process, ThreadId tid);
22
23public:
24 ErrorCode readCPUState(Architecture::CPUState &state) override;
25 ErrorCode writeCPUState(Architecture::CPUState const &state) override;
26
27public:
28 ErrorCode terminate() override;
29 ErrorCode suspend() override;
30
31public:
32 ErrorCode step(int signal = 0, Address const &address = Address()) override;
33 ErrorCode resume(int signal = 0, Address const &address = Address()) override;
34
35protected:
36 virtual ErrorCode updateStopInfo(int waitStatus);
37};
38} // namespace POSIX
39} // namespace Target
40} // namespace ds2
Definition Types.h:95
Definition Thread.h:19
Definition ThreadBase.h:22