@@ -15,6 +15,8 @@ void ThreadView::contextMenuSlot(const QPoint & pos)
15
15
wMenu->addSeparator ();
16
16
wMenu->addMenu (mSetPriority );
17
17
wMenu->addSeparator ();
18
+ wMenu->addAction (mGoToThreadEntry );
19
+ wMenu->addSeparator ();
18
20
QMenu wCopyMenu (" &Copy" , this );
19
21
setupCopyMenu (&wCopyMenu);
20
22
if (wCopyMenu.actions ().length ())
@@ -49,6 +51,13 @@ void ThreadView::contextMenuSlot(const QPoint & pos)
49
51
wMenu->exec (mapToGlobal (pos)); // execute context menu
50
52
}
51
53
54
+ void ThreadView::GoToThreadEntry ()
55
+ {
56
+ QString addr_text = getCellContent (getInitialSelection (), 2 );
57
+ DbgCmdExecDirect (QString (" disasm " + addr_text).toUtf8 ().constData ());
58
+ emit showCpu ();
59
+ }
60
+
52
61
void ThreadView::SwitchThread ()
53
62
{
54
63
QString threadId = getCellContent (getInitialSelection (), 1 );
@@ -133,6 +142,7 @@ void ThreadView::setupContextMenu()
133
142
mKillThread = new QAction (" Kill Thread" , this );
134
143
connect (mKillThread , SIGNAL (triggered ()), this , SLOT (KillThread ()));
135
144
145
+ // Set priority
136
146
mSetPriority = new QMenu (" Set Priority" , this );
137
147
138
148
mSetPriorityIdle = new QAction (" Idle" , this );
@@ -162,6 +172,11 @@ void ThreadView::setupContextMenu()
162
172
mSetPriorityTimeCritical = new QAction (" Time Critical" , this );
163
173
connect (mSetPriorityTimeCritical , SIGNAL (triggered ()), this , SLOT (SetPriorityTimeCriticalSlot ()));
164
174
mSetPriority ->addAction (mSetPriorityTimeCritical );
175
+
176
+ // GoToThreadEntry
177
+ mGoToThreadEntry = new QAction (" Go to Thread Entry" , this );
178
+ connect (mGoToThreadEntry , SIGNAL (triggered ()), this , SLOT (GoToThreadEntry ()));
179
+
165
180
}
166
181
167
182
ThreadView::ThreadView (StdTable* parent) : StdTable(parent)
0 commit comments