mirror of
https://github.com/x64dbg/x64dbg.git
synced 2024-11-27 06:40:24 +00:00
GUI: show segments better in CPUInfoBox
This commit is contained in:
parent
b758ea6e9d
commit
3c9a24ec37
@ -182,14 +182,28 @@ void CPUInfoBox::disasmSelectionChanged(dsint parVA)
|
||||
sizeName = "qword ptr";
|
||||
break;
|
||||
}
|
||||
sizeName.append(' ');
|
||||
|
||||
#ifdef _WIN64
|
||||
if(arg.segment == SEG_GS)
|
||||
sizeName += "gs:";
|
||||
#else //x32
|
||||
if(arg.segment == SEG_FS)
|
||||
sizeName += "fs:";
|
||||
#endif
|
||||
sizeName += [](SEGMENTREG seg)
|
||||
{
|
||||
switch(seg)
|
||||
{
|
||||
case SEG_ES:
|
||||
return "es:";
|
||||
case SEG_DS:
|
||||
return "ds:";
|
||||
case SEG_FS:
|
||||
return "fs:";
|
||||
case SEG_GS:
|
||||
return "gs:";
|
||||
case SEG_CS:
|
||||
return "cs:";
|
||||
case SEG_SS:
|
||||
return "ss:";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}(arg.segment);
|
||||
|
||||
if(bUpper)
|
||||
sizeName = sizeName.toUpper();
|
||||
|
Loading…
Reference in New Issue
Block a user