return len(self.history)
def waitForRx(self, rx, start):
-
curr = start
-
while True:
- for no in range(max(curr-1,start), self.getHistoryLen()):
+ assert( curr>=start )
+ for no in range(curr, self.getHistoryLen()):
line = self.history[no]
if rx.search(line):
return no, line
- curr = max(start,self.getHistoryLen())
+ #Do not forget the last line
+ curr = max(start,self.getHistoryLen()-1)
gtk.main_iteration()
#Install handlers
self.runBtnHandler = self.runBtn.connect('clicked', self.runBtnClicked)
- self.continueBtnHandler = self.continueBtn.connect('clicked', self.continueBtnClicked)
- self.stepoverBtnHandler = self.stepoverBtn.connect('clicked', self.stepoverBtnClicked)
+ self.continueBtnHandler = self.continueBtn.connect('clicked', \
+ self.continueBtnClicked)
+ self.stepoverBtnHandler = self.stepoverBtn.connect('clicked', \
+ self.stepoverBtnClicked)
self.stepinBtnHandler = self.stepinBtn.connect('clicked', self.stepinBtnClicked)
self.quitBtnHandler = self.quitBtn.connect('clicked', self.quitBtnClicked)