Changeset View
Changeset View
Standalone View
Standalone View
debuggers/gdb/registers/registersmanager.h
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #ifndef REGISTERSMANAGER_H | 21 | #ifndef REGISTERSMANAGER_H | ||
22 | #define REGISTERSMANAGER_H | 22 | #define REGISTERSMANAGER_H | ||
23 | 23 | | |||
24 | #include <QObject> | 24 | #include <QObject> | ||
25 | #include <QStringList> | 25 | #include <QStringList> | ||
26 | #include <QScopedPointer> | 26 | #include <QScopedPointer> | ||
27 | 27 | | |||
28 | namespace GDBMI | 28 | namespace KDevMI { | ||
29 | namespace MI | ||||
29 | { | 30 | { | ||
30 | struct ResultRecord; | 31 | struct ResultRecord; | ||
31 | } | 32 | } | ||
32 | 33 | | |||
33 | namespace GDBDebugger | 34 | namespace GDB | ||
34 | { | 35 | { | ||
35 | 36 | | |||
36 | class RegistersView; | 37 | class RegistersView; | ||
37 | class IRegisterController; | 38 | class IRegisterController; | ||
38 | class DebugSession; | 39 | class DebugSession; | ||
39 | class ModelsManager; | 40 | class ModelsManager; | ||
40 | 41 | | |||
41 | enum Architecture {x86, x86_64, arm, other = 100, undefined}; | 42 | enum Architecture {x86, x86_64, arm, other = 100, undefined}; | ||
Show All 11 Lines | 49 | public: | |||
53 | void determineArchitecture(DebugSession* debugSession); | 54 | void determineArchitecture(DebugSession* debugSession); | ||
54 | 55 | | |||
55 | Q_SIGNALS: | 56 | Q_SIGNALS: | ||
56 | ///Emits current CPU architecture. @sa determineArchitecture | 57 | ///Emits current CPU architecture. @sa determineArchitecture | ||
57 | void architectureParsed(const Architecture); | 58 | void architectureParsed(const Architecture); | ||
58 | 59 | | |||
59 | private: | 60 | private: | ||
60 | 61 | | |||
61 | void registerNamesHandler(const GDBMI::ResultRecord& r); | 62 | void registerNamesHandler(const MI::ResultRecord& r); | ||
62 | void parseArchitecture(); | 63 | void parseArchitecture(); | ||
63 | 64 | | |||
64 | QStringList m_registerNames; | 65 | QStringList m_registerNames; | ||
65 | }; | 66 | }; | ||
66 | 67 | | |||
67 | class RegistersManager : public QObject | 68 | class RegistersManager : public QObject | ||
68 | { | 69 | { | ||
69 | Q_OBJECT | 70 | Q_OBJECT | ||
Show All 22 Lines | 82 | private: | |||
92 | ModelsManager* m_modelsManager; | 93 | ModelsManager* m_modelsManager; | ||
93 | 94 | | |||
94 | Architecture m_currentArchitecture; | 95 | Architecture m_currentArchitecture; | ||
95 | 96 | | |||
96 | ///True if architecture could has changed(e.g. from x86 to arm) | 97 | ///True if architecture could has changed(e.g. from x86 to arm) | ||
97 | bool m_needToCheckArch; | 98 | bool m_needToCheckArch; | ||
98 | }; | 99 | }; | ||
99 | 100 | | |||
100 | } | 101 | } // end of namespace GDB | ||
102 | } // end of namespace KDevMI | ||||
101 | #endif // REGISTERSMANAGER_H | 103 | #endif // REGISTERSMANAGER_H |