Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / Process / minidump / ThreadMinidump.h
blobaed7cfbc1b1615a785c50b74fd66107b0f0e0b09
1 //===-- ThreadMinidump.h ---------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_THREADMINIDUMP_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_THREADMINIDUMP_H
12 #include "MinidumpTypes.h"
14 #include "lldb/Target/Thread.h"
17 namespace lldb_private {
19 namespace minidump {
21 class ThreadMinidump : public Thread {
22 public:
23 ThreadMinidump(Process &process, const minidump::Thread &td,
24 llvm::ArrayRef<uint8_t> gpregset_data);
26 ~ThreadMinidump() override;
28 void RefreshStateAfterStop() override;
30 lldb::RegisterContextSP GetRegisterContext() override;
32 lldb::RegisterContextSP
33 CreateRegisterContextForFrame(StackFrame *frame) override;
35 protected:
36 lldb::RegisterContextSP m_thread_reg_ctx_sp;
37 llvm::ArrayRef<uint8_t> m_gpregset_data;
39 bool CalculateStopInfo() override;
42 } // namespace minidump
43 } // namespace lldb_private
45 #endif // LLDB_SOURCE_PLUGINS_PROCESS_MINIDUMP_THREADMINIDUMP_H