1
0
Fork 0

GUI: Changed Thread Number to Thread ID in callstack view

This commit is contained in:
morsisko 2020-12-02 21:06:09 +01:00
parent a5f7196c27
commit 9f0a1c4800
1 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,7 @@ CallStackView::CallStackView(StdTable* parent) : StdTable(parent)
{
int charwidth = getCharWidth();
addColumnAt(8 * charwidth, tr("Thread Number"), true);
addColumnAt(8 * charwidth, tr("Thread ID"), true);
addColumnAt(8 + charwidth * sizeof(dsint) * 2, tr("Address"), true); //address in the stack
addColumnAt(8 + charwidth * sizeof(dsint) * 2, tr("To"), false); //return to
addColumnAt(8 + charwidth * sizeof(dsint) * 2, tr("From"), false); //return from
@ -97,10 +97,7 @@ void CallStackView::updateCallStack()
memset(&callstack, 0, sizeof(DBGCALLSTACK));
DbgFunctions()->GetCallStackByThread(threadList.list[j].BasicInfo.Handle, &callstack);
setRowCount(currentRow + callstack.total + 1);
if(!threadList.list[j].BasicInfo.ThreadNumber)
setCellContent(currentRow, ColThread, tr("Main"));
else
setCellContent(currentRow, ColThread, ToDecString(threadList.list[j].BasicInfo.ThreadNumber));
setCellContent(currentRow, ColThread, ToDecString(threadList.list[j].BasicInfo.ThreadId));
currentRow++;