// Compression/decompression support was added since revision 0.4.\r
// Revision 0.3 shouldn't compress the packet.\r
//\r
- if (DEBUG_AGENT_REVISION >= DEBUG_AGENT_REVISION_04) {\r
+ if (PcdGet32(PcdTransferProtocolRevision) >= DEBUG_AGENT_REVISION_04) {\r
//\r
// Get the compressed data size without modifying the packet.\r
//\r
}\r
if (IncompatibilityFlag) {\r
//\r
- // If the incompatible Debug Packet received, the HOST should be running transfer protocol before DEBUG_AGENT_REVISION.\r
+ // If the incompatible Debug Packet received, the HOST should be running transfer protocol before PcdTransferProtocolRevision.\r
// It could be UDK Debugger for Windows v1.1/v1.2 or for Linux v0.8/v1.2.\r
//\r
DebugPortWriteBuffer (Handle, (UINT8 *) mErrorMsgVersionAlert, AsciiStrLen (mErrorMsgVersionAlert));\r
break;\r
\r
case DEBUG_COMMAND_GET_REVISION:\r
- DebugAgentRevision.Revision = DEBUG_AGENT_REVISION;\r
+ DebugAgentRevision.Revision = PcdGet32(PcdTransferProtocolRevision);\r
DebugAgentRevision.Capabilities = DEBUG_AGENT_CAPABILITIES;\r
Status = SendDataResponsePacket ((UINT8 *) &DebugAgentRevision, (UINT16) sizeof (DEBUG_DATA_RESPONSE_GET_REVISION), DebugHeader);\r
break;\r