File tree Expand file tree Collapse file tree 12 files changed +19
-21
lines changed Expand file tree Collapse file tree 12 files changed +19
-21
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_DYNAMICREGISTERINFO_H
10
- #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_DYNAMICREGISTERINFO_H
9
+ #ifndef LLDB_TARGET_DYNAMICREGISTERINFO_H
10
+ #define LLDB_TARGET_DYNAMICREGISTERINFO_H
11
11
12
12
#include < map>
13
13
#include < vector>
16
16
#include " lldb/Utility/StructuredData.h"
17
17
#include " lldb/lldb-private.h"
18
18
19
+ namespace lldb_private {
20
+
19
21
class DynamicRegisterInfo {
20
22
protected:
21
23
DynamicRegisterInfo (DynamicRegisterInfo &) = default ;
@@ -113,4 +115,6 @@ class DynamicRegisterInfo {
113
115
bool m_is_reconfigurable = false ;
114
116
};
115
117
116
- #endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_DYNAMICREGISTERINFO_H
118
+ } // namespace lldb_private
119
+
120
+ #endif // LLDB_TARGET_DYNAMICREGISTERINFO_H
Original file line number Diff line number Diff line change 12
12
13
13
#include " OperatingSystemPython.h"
14
14
15
- #include " Plugins/Process/Utility/DynamicRegisterInfo.h"
16
15
#include " Plugins/Process/Utility/RegisterContextDummy.h"
17
16
#include " Plugins/Process/Utility/RegisterContextMemory.h"
18
17
#include " Plugins/Process/Utility/ThreadMemory.h"
Original file line number Diff line number Diff line change 13
13
14
14
#if LLDB_ENABLE_PYTHON
15
15
16
+ #include " lldb/Target/DynamicRegisterInfo.h"
16
17
#include " lldb/Target/OperatingSystem.h"
17
18
#include " lldb/Utility/StructuredData.h"
18
19
19
- class DynamicRegisterInfo ;
20
-
21
20
namespace lldb_private {
22
21
class ScriptInterpreter ;
23
22
}
@@ -72,14 +71,14 @@ class OperatingSystemPython : public lldb_private::OperatingSystem {
72
71
lldb_private::ThreadList &old_thread_list,
73
72
std::vector<bool > &core_used_map, bool *did_create_ptr);
74
73
75
- DynamicRegisterInfo *GetDynamicRegisterInfo ();
74
+ lldb_private:: DynamicRegisterInfo *GetDynamicRegisterInfo ();
76
75
77
76
lldb::ValueObjectSP m_thread_list_valobj_sp;
78
- std::unique_ptr<DynamicRegisterInfo> m_register_info_up;
77
+ std::unique_ptr<lldb_private:: DynamicRegisterInfo> m_register_info_up;
79
78
lldb_private::ScriptInterpreter *m_interpreter;
80
79
lldb_private::StructuredData::ObjectSP m_python_object_sp;
81
80
};
82
81
83
- #endif
82
+ #endif // LLDB_ENABLE_PYTHON
84
83
85
84
#endif // liblldb_OperatingSystemPython_h_
Original file line number Diff line number Diff line change 1
1
add_lldb_library (lldbPluginProcessUtility
2
2
AuxVector.cpp
3
- DynamicRegisterInfo.cpp
4
3
FreeBSDSignals.cpp
5
4
GDBRemoteSignals.cpp
6
5
HistoryThread.cpp
Original file line number Diff line number Diff line change 8
8
9
9
#include " RegisterContextMemory.h"
10
10
11
- #include " DynamicRegisterInfo.h"
12
11
#include " lldb/Target/Process.h"
13
12
#include " lldb/Target/Thread.h"
14
13
#include " lldb/Utility/DataBufferHeap.h"
Original file line number Diff line number Diff line change 11
11
12
12
#include < vector>
13
13
14
+ #include " lldb/Target/DynamicRegisterInfo.h"
14
15
#include " lldb/Target/RegisterContext.h"
15
16
#include " lldb/Utility/DataExtractor.h"
16
17
#include " lldb/lldb-private.h"
17
18
18
- class DynamicRegisterInfo ;
19
-
20
19
class RegisterContextMemory : public lldb_private ::RegisterContext {
21
20
public:
22
21
RegisterContextMemory (lldb_private::Thread &thread,
23
22
uint32_t concrete_frame_idx,
24
- DynamicRegisterInfo ®_info,
23
+ lldb_private:: DynamicRegisterInfo ®_info,
25
24
lldb::addr_t reg_data_addr);
26
25
27
26
~RegisterContextMemory () override ;
@@ -60,7 +59,7 @@ class RegisterContextMemory : public lldb_private::RegisterContext {
60
59
protected:
61
60
void SetAllRegisterValid (bool b);
62
61
63
- DynamicRegisterInfo &m_reg_infos;
62
+ lldb_private:: DynamicRegisterInfo &m_reg_infos;
64
63
std::vector<bool > m_reg_valid;
65
64
lldb_private::DataExtractor m_reg_data;
66
65
lldb::addr_t m_reg_data_addr; // If this is valid, then we have a register
Original file line number Diff line number Diff line change 11
11
12
12
#include < vector>
13
13
14
- #include " Plugins/Process/Utility /DynamicRegisterInfo.h"
14
+ #include " lldb/Target /DynamicRegisterInfo.h"
15
15
#include " lldb/Target/RegisterContext.h"
16
16
#include " lldb/Utility/ConstString.h"
17
17
#include " lldb/Utility/DataExtractor.h"
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ lldb_tablegen(TargetPropertiesEnum.inc -gen-lldb-property-enum-defs
9
9
add_lldb_library (lldbTarget
10
10
ABI.cpp
11
11
AssertFrameRecognizer.cpp
12
+ DynamicRegisterInfo.cpp
12
13
ExecutionContext.cpp
13
14
InstrumentationRuntime.cpp
14
15
InstrumentationRuntimeStopInfo.cpp
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #include " DynamicRegisterInfo.h"
10
-
9
+ #include " lldb/Target/DynamicRegisterInfo.h"
11
10
#include " lldb/Core/StreamFile.h"
12
11
#include " lldb/DataFormatters/FormatManager.h"
13
12
#include " lldb/Interpreter/OptionArgParser.h"
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ set(LLVM_OPTIONAL_SOURCES
15
15
${NETBSD_SOURCES} )
16
16
17
17
add_lldb_unittest (ProcessUtilityTests
18
- DynamicRegisterInfoTest.cpp
19
18
LinuxProcMapsTest.cpp
20
19
MemoryTagManagerAArch64MTETest.cpp
21
20
RegisterContextTest.cpp
Original file line number Diff line number Diff line change 1
1
add_lldb_unittest (TargetTests
2
2
ABITest.cpp
3
+ DynamicRegisterInfoTest.cpp
3
4
ExecutionContextTest.cpp
4
5
MemoryRegionInfoTest.cpp
5
6
ModuleCacheTest.cpp
Original file line number Diff line number Diff line change 9
9
#include " gmock/gmock.h"
10
10
#include " gtest/gtest.h"
11
11
12
- #include " Plugins/Process/Utility/DynamicRegisterInfo.h"
13
-
12
+ #include " lldb/Target/DynamicRegisterInfo.h"
14
13
#include " lldb/Utility/ArchSpec.h"
15
14
16
15
using namespace lldb_private ;
You can’t perform that action at this time.
0 commit comments