1
0
Fork 0

Fix some context menus in the ThreadView when tid is decimal

Thanks @JustMagic for the find
This commit is contained in:
Duncan Ogilvie 2020-10-11 20:57:35 +02:00
parent 306449fa6b
commit 5d0f5da46c
2 changed files with 3 additions and 2 deletions

View File

@ -353,7 +353,7 @@ void MemoryMapView::ExecCommand()
for(int i : getSelection())
{
QString specializedCommand = command;
specializedCommand.replace(QChar('$'), getCellContent(i, 0)); // $ -> Base address
specializedCommand.replace(QChar('$'), ToHexString(getCellUserdata(i, 0))); // $ -> Base address
DbgCmdExec(specializedCommand);
}
}

View File

@ -143,7 +143,7 @@ void ThreadView::ExecCommand()
for(int i : getSelection())
{
QString specializedCommand = command;
specializedCommand.replace(QChar('$'), getCellContent(i, 1)); // $ -> Thread Id
specializedCommand.replace(QChar('$'), ToHexString(getCellUserdata(i, 1))); // $ -> Thread Id
DbgCmdExec(specializedCommand);
}
}
@ -195,6 +195,7 @@ void ThreadView::updateThreadList()
else
setCellContent(i, 0, ToDecString(threadList.list[i].BasicInfo.ThreadNumber));
setCellContent(i, 1, QString().sprintf(tidFormat, threadList.list[i].BasicInfo.ThreadId));
setCellUserdata(i, 1, threadList.list[i].BasicInfo.ThreadId);
setCellContent(i, 2, ToPtrString(threadList.list[i].BasicInfo.ThreadStartAddress));
setCellContent(i, 3, ToPtrString(threadList.list[i].BasicInfo.ThreadLocalBase));
setCellContent(i, 4, ToPtrString(threadList.list[i].ThreadCip));