Skip to content

Commit

Permalink
Clear debug controls when continuing from a breakpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 1, 2007
1 parent 6daf843 commit 26766c4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/toby_wxwidgets.cpp
Expand Up @@ -152,6 +152,7 @@ class TobyFrame : public wxFrame
virtual void closeImpl() {}
virtual void openFileImpl(char *buf) = 0;
virtual char *getProgramImpl() = 0;
virtual void onContinueImpl() {}

// wxWidgets event handlers...
void onIdle(wxIdleEvent &evt);
Expand Down Expand Up @@ -247,6 +248,7 @@ class TobyIDEFrame : public TobyFrame
virtual void toggleWidgetsRunnableImpl(bool readyToRun);
virtual void pauseReached(int line, int stopped, int bp, int ticks);
virtual void closeImpl();
virtual void onContinueImpl();

// wxWidgets event handlers...
void onMenuOpen(wxCommandEvent &evt);
Expand Down Expand Up @@ -1096,6 +1098,7 @@ void TobyFrame::onMenuRun(wxCommandEvent &evt)
else if (TOBY_isPaused())
{
this->menuBar->FindItem(MENUCMD_Run)->Enable(false);
this->onContinueImpl();
TOBY_continueProgram();
} // else if
} // TobyFrame::onMenuRun
Expand Down Expand Up @@ -1415,6 +1418,13 @@ bool TobyIDEFrame::shouldVetoClose()
} // TobyIDEFrame::shouldVetoClose


void TobyIDEFrame::onContinueImpl()
{
this->callstackCtrl->Clear();
this->variablesCtrl->Clear();
} // TobyIDEFrame::onContinueImpl


void TobyIDEFrame::pauseReached(int line, int fullstop,
int breakpoint, int pauseTicks)
{
Expand Down

0 comments on commit 26766c4

Please sign in to comment.