/* Check whether PDB file and MAP file have same name. */
BOOLEAN MatchPdbAndMap(IN CHAR8 *PdbFileName, IN CHAR16 *MapFileName)
/* Check whether PDB file and MAP file have same name. */
BOOLEAN MatchPdbAndMap(IN CHAR8 *PdbFileName, IN CHAR16 *MapFileName)
{
  UINTN  PdbNameSize;
  UINTN  MapNameSize;
  CHAR8  *PurePdbFileName;
  UINTN  Index;
  PurePdbFileName = PdbFileName;
  for (Index = 0; PdbFileName[Index] != 0; Index++) {
    if (PdbFileName[Index] == '\\') {
      PurePdbFileName = &PdbFileName[Index + 1];
    }
  }
  PdbFileName = PurePdbFileName;
  PdbNameSize = AsciiStrLen (PdbFileName);
  MapNameSize = StrLen (MapFileName);
  if (PdbNameSize != MapNameSize) {
    return FALSE;
  }
  for (Index = 0; Index < MapNameSize - 4; Index++) {
    if ((PdbFileName[Index] | 0x20) != (MapFileName[Index] | 0x20)) {
      return FALSE;
    }
  }
  return TRUE;
}