Skip to content

Commit b67b5eb

Browse files
committed
GUI: improve TraceFileSearch (now also searches r8-r15 on x64)
1 parent 3b8469b commit b67b5eb

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/gui/Src/Tracer/TraceFileSearch.cpp

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,33 @@ int TraceFileSearchConstantRange(TraceFileReader* file, duint start, duint end)
4141
GuiReferenceAddColumn(100, QCoreApplication::translate("TraceFileSearch", "Disassembly").toUtf8().constData());
4242
GuiReferenceSetRowCount(0);
4343

44+
REGISTERCONTEXT regcontext;
4445
for(unsigned long long index = 0; index < file->Length(); index++)
4546
{
47+
regcontext = file->Registers(index).regcontext;
4648
bool found = false;
4749
//Registers
48-
#define FINDREG(fieldName) found |= inRange(file->Registers(index).regcontext.##fieldName, start, end)
50+
#define FINDREG(fieldName) found |= inRange(regcontext.##fieldName, start, end)
4951
FINDREG(cax);
50-
FINDREG(cbx);
5152
FINDREG(ccx);
5253
FINDREG(cdx);
54+
FINDREG(cbx);
5355
FINDREG(csp);
5456
FINDREG(cbp);
5557
FINDREG(csi);
5658
FINDREG(cdi);
5759
FINDREG(cip);
60+
#ifdef _WIN64
61+
FINDREG(r8);
62+
FINDREG(r9);
63+
FINDREG(r10);
64+
FINDREG(r11);
65+
FINDREG(r12);
66+
FINDREG(r13);
67+
FINDREG(r14);
68+
FINDREG(r15);
69+
#endif //_WIN64
70+
#undef FINDREG
5871
//Memory
5972
duint memAddr[MAX_MEMORY_OPERANDS];
6073
duint memOldContent[MAX_MEMORY_OPERANDS];

0 commit comments

Comments
 (0)