/* Returns breakpoint data address from DR0-DR3 based on the input breakpoint number */
UINTN GetBreakpointDataAddress(IN EFI_SYSTEM_CONTEXT SystemContext, IN UINTN BreakpointNumber)
/* Returns breakpoint data address from DR0-DR3 based on the input breakpoint number */
UINTN GetBreakpointDataAddress(IN EFI_SYSTEM_CONTEXT SystemContext, IN UINTN BreakpointNumber)
{
  UINTN  Address;
  if (BreakpointNumber == 1) {
    Address = SystemContext.SystemContextIa32->Dr0;
  } else if (BreakpointNumber == 2) {
    Address = SystemContext.SystemContextIa32->Dr1;
  } else if (BreakpointNumber == 3) {
    Address = SystemContext.SystemContextIa32->Dr2;
  } else if (BreakpointNumber == 4) {
    Address = SystemContext.SystemContextIa32->Dr3;
  } else {
    Address = 0;
  }
  return Address;
}