mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 21:55:28 +00:00
winedbg, winedump: Extended some info printed from system info directory in minidump about the CPU.
This commit is contained in:
parent
0fc4013f7c
commit
06b414086a
|
@ -222,22 +222,23 @@ static enum dbg_start minidump_do_reload(struct tgt_process_minidump_data* data)
|
|||
case 3: str = "80386"; break;
|
||||
case 4: str = "80486"; break;
|
||||
case 5: str = "Pentium"; break;
|
||||
case 6: str = "Pentium Pro/II"; break;
|
||||
case 6: str = "Pentium Pro/II or AMD Athlon"; break;
|
||||
case 15: str = "Pentium 4 or AMD Athlon64"; break;
|
||||
default: str = "???"; break;
|
||||
}
|
||||
strcat(tmp, str);
|
||||
if (msi->ProcessorLevel == 3 || msi->ProcessorLevel == 4)
|
||||
{
|
||||
if (HIWORD(msi->ProcessorRevision) == 0xFF)
|
||||
sprintf(tmp + strlen(tmp), "-%c%d",
|
||||
sprintf(tmp + strlen(tmp), " (%c%d)",
|
||||
'A' + HIBYTE(LOWORD(msi->ProcessorRevision)),
|
||||
LOBYTE(LOWORD(msi->ProcessorRevision)));
|
||||
else
|
||||
sprintf(tmp + strlen(tmp), "-%c%d",
|
||||
sprintf(tmp + strlen(tmp), " (%c%d)",
|
||||
'A' + HIWORD(msi->ProcessorRevision),
|
||||
LOWORD(msi->ProcessorRevision));
|
||||
}
|
||||
else sprintf(tmp + strlen(tmp), "-%d.%d",
|
||||
else sprintf(tmp + strlen(tmp), " (%d.%d)",
|
||||
HIWORD(msi->ProcessorRevision),
|
||||
LOWORD(msi->ProcessorRevision));
|
||||
str = tmp;
|
||||
|
|
|
@ -259,18 +259,20 @@ void mdmp_dump(void)
|
|||
case 3: str = "80386"; break;
|
||||
case 4: str = "80486"; break;
|
||||
case 5: str = "Pentium"; break;
|
||||
case 6: str = "Pentium Pro/II"; break;
|
||||
case 6: str = "Pentium Pro/II or AMD Athlon"; break;
|
||||
case 15: str = "Pentium 4 or AMD Athlon64"; break;
|
||||
default: str = "???"; break;
|
||||
}
|
||||
strcat(tmp, str);
|
||||
strcat(tmp, " (");
|
||||
if (msi->ProcessorLevel == 3 || msi->ProcessorLevel == 4)
|
||||
{
|
||||
if (HIWORD(msi->ProcessorRevision) == 0xFF)
|
||||
sprintf(tmp + strlen(tmp), "-%c%d", 'A' + HIBYTE(LOWORD(msi->ProcessorRevision)), LOBYTE(LOWORD(msi->ProcessorRevision)));
|
||||
sprintf(tmp + strlen(tmp), "%c%d", 'A' + HIBYTE(LOWORD(msi->ProcessorRevision)), LOBYTE(LOWORD(msi->ProcessorRevision)));
|
||||
else
|
||||
sprintf(tmp + strlen(tmp), "-%c%d", 'A' + HIWORD(msi->ProcessorRevision), LOWORD(msi->ProcessorRevision));
|
||||
sprintf(tmp + strlen(tmp), "%c%d", 'A' + HIWORD(msi->ProcessorRevision), LOWORD(msi->ProcessorRevision));
|
||||
}
|
||||
else sprintf(tmp + strlen(tmp), "-%d.%d", HIWORD(msi->ProcessorRevision), LOWORD(msi->ProcessorRevision));
|
||||
else sprintf(tmp + strlen(tmp), "%d.%d", HIWORD(msi->ProcessorRevision), LOWORD(msi->ProcessorRevision));
|
||||
str = tmp;
|
||||
break;
|
||||
case PROCESSOR_ARCHITECTURE_MIPS:
|
||||
|
@ -286,7 +288,7 @@ void mdmp_dump(void)
|
|||
str = "???";
|
||||
break;
|
||||
}
|
||||
printf(" Processor: %s (#%d CPUs)\n", str, msi->u.s.NumberOfProcessors);
|
||||
printf(" Processor: %s, #%d CPUs)\n", str, msi->u.s.NumberOfProcessors);
|
||||
switch (msi->MajorVersion)
|
||||
{
|
||||
case 3:
|
||||
|
@ -330,7 +332,7 @@ void mdmp_dump(void)
|
|||
msi->Cpu.X86CpuInfo.VersionInformation);
|
||||
printf(" x86.FeatureInformation: %x\n",
|
||||
msi->Cpu.X86CpuInfo.FeatureInformation);
|
||||
printf(" x86.AMDExtendedCpuFeatures: %u\n",
|
||||
printf(" x86.AMDExtendedCpuFeatures: %x\n",
|
||||
msi->Cpu.X86CpuInfo.AMDExtendedCpuFeatures);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue