13#include "DebugServer2/Base.h"
14#include "DebugServer2/Types.h"
19namespace Architecture {
42 kGDBEncodingSizedInteger,
44 kGDBEncodingDataPointer,
45 kGDBEncodingCodePointer,
46 kGDBEncodingX87Extension,
47 kGDBEncodingIEEESingle,
48 kGDBEncodingIEEEDouble,
53enum GDBFeatureEntryType {
55 kGDBFeatureTypeRegister,
56 kGDBFeatureTypeVector,
61enum LLDBVectorFormat {
62 kLLDBVectorFormatNone,
63 kLLDBVectorFormatUInt8,
64 kLLDBVectorFormatSInt8,
65 kLLDBVectorFormatUInt16,
66 kLLDBVectorFormatSInt16,
67 kLLDBVectorFormatUInt32,
68 kLLDBVectorFormatSInt32,
69 kLLDBVectorFormatUInt64,
70 kLLDBVectorFormatSInt64,
71 kLLDBVectorFormatUInt128,
72 kLLDBVectorFormatFloat32
75enum { kRegisterDefNoGDBRegisterNumber = (1 << 0) };
80 char const *AlternateName;
81 char const *GenericName;
82 char const *GDBGroupName;
84 int32_t DWARFRegisterNumber;
85 int32_t GDBRegisterNumber;
86 int32_t EHFrameRegisterNumber;
87 int32_t LLDBRegisterNumber;
89 Architecture::LLDBVectorFormat LLDBVectorFormat;
90 Architecture::Encoding Encoding;
91 Architecture::Format Format;
93 Architecture::GDBEncoding Encoding;
117 ssize_t ElementBitSize;
118 GDBEncoding Encoding;
123 GDBEncoding Encoding;
134 GDBFeatureEntryType Type;
139 char const *Identifier;
140 char const *FileName;
152 char const *Architecture;
172typedef std::map<size_t, GPRegisterValue> GPRegisterStopMap;
173typedef std::vector<GPRegisterValue> GPRegisterValueVector;
179std::string GenerateXMLHeader();
183std::string GDBGenerateXMLFeatureByIndex(
GDBDescriptor const &desc,
186std::string GDBGenerateXMLFeatureByFileName(
GDBDescriptor const &desc,
187 std::string
const &filename);
189std::string GDBGenerateXMLFeatureByIdentifier(
GDBDescriptor const &desc,
190 std::string
const &ident);
206bool LLDBGetRegisterInfo(
LLDBDescriptor const &desc, std::string
const &name,
Definition RegisterLayout.h:101
Definition RegisterLayout.h:107
Definition RegisterLayout.h:151
Definition RegisterLayout.h:133
Definition RegisterLayout.h:138
Definition RegisterLayout.h:114
Definition RegisterLayout.h:121
Definition RegisterLayout.h:127
Definition RegisterLayout.h:167
Definition RegisterLayout.h:158
Definition RegisterLayout.h:198
Definition RegisterLayout.h:145
Definition RegisterLayout.h:77