@retval the pointer to the RegNumber-th pointer\r
**/\r
UINTN *\r
-FindPointerToRegister(\r
+FindPointerToRegister (\r
IN EFI_SYSTEM_CONTEXT SystemContext,\r
IN UINTN RegNumber \r
)\r
\r
RegSize = 0;\r
while (RegSize < REG_SIZE) {\r
- *OutBufPtr++ = mHexToStr[((*FindPointerToRegister(SystemContext, RegNumber) >> (RegSize+4)) & 0xf)];\r
- *OutBufPtr++ = mHexToStr[((*FindPointerToRegister(SystemContext, RegNumber) >> RegSize) & 0xf)];\r
+ *OutBufPtr++ = mHexToStr[((*FindPointerToRegister (SystemContext, RegNumber) >> (RegSize+4)) & 0xf)];\r
+ *OutBufPtr++ = mHexToStr[((*FindPointerToRegister (SystemContext, RegNumber) >> RegSize) & 0xf)];\r
RegSize = RegSize + 8;\r
}\r
return OutBufPtr;\r
}\r
\r
OutBufPtr = OutBuffer;\r
- OutBufPtr = BasicReadRegister(SystemContext, RegNumber, OutBufPtr);\r
+ OutBufPtr = BasicReadRegister (SystemContext, RegNumber, OutBufPtr);\r
\r
*OutBufPtr = '\0'; // the end of the buffer\r
SendPacket(OutBuffer);\r
CHAR8 *OutBufPtr; // pointer to the output buffer\r
\r
OutBufPtr = OutBuffer;\r
- for(i = 0 ; i < MaxRegisterCount() ; i++) { // there are only 16 registers to read \r
- OutBufPtr = BasicReadRegister(SystemContext, i, OutBufPtr);\r
+ for (i = 0 ; i < MaxRegisterCount() ; i++) { // there are only 16 registers to read \r
+ OutBufPtr = BasicReadRegister (SystemContext, i, OutBufPtr);\r
}\r
\r
*OutBufPtr = '\0'; // the end of the buffer\r
NewValue += (TempValue << RegSize); \r
RegSize = RegSize + 8;\r
}\r
- *(FindPointerToRegister(SystemContext, RegNumber)) = NewValue;\r
+ *(FindPointerToRegister (SystemContext, RegNumber)) = NewValue;\r
return InBufPtr;\r
}\r
\r
\r
// Read the new values for the registers from the input buffer to an array, NewValueArray.\r
// The values in the array are in the gdb ordering\r
- for(i=0; i < MaxRegisterCount(); i++) { // there are only 16 registers to write\r
- InBufPtr = BasicWriteRegister(SystemContext, i, InBufPtr);\r
+ for (i=0; i < MaxRegisterCount(); i++) { // there are only 16 registers to write\r
+ InBufPtr = BasicWriteRegister (SystemContext, i, InBufPtr);\r
}\r
\r
SendSuccess();\r
\r
if (Status == EFI_UNSUPPORTED) {\r
Print ((CHAR16 *)L"Not supported\n");\r
- SendNotSupported();\r
+ SendNotSupported ();\r
return;\r
}\r
\r
\r
if (Status == EFI_UNSUPPORTED) {\r
Print ((CHAR16 *)L"Not supported.\n");\r
- SendNotSupported();\r
+ SendNotSupported ();\r
return;\r
}\r
\r
}\r
\r
//Remove breakpoint\r
- Status = DisableDebugRegister(SystemContext, Register);\r
+ Status = DisableDebugRegister (SystemContext, Register);\r
if (EFI_ERROR(Status)) {\r
Print ((CHAR16 *)L"Invalid argument.\n");\r
SendError (GDB_EINVALIDARG);\r