projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- pygdb saves current executed line
[pygdb.git]
/
BreakpointsFrame.py
diff --git
a/BreakpointsFrame.py
b/BreakpointsFrame.py
index 0d3bcf2cf8f5204a04d601242cf9ba5db7692610..7d53cc2cfa699ab4b5048297049d3b6d4b365f74 100644
(file)
--- a/
BreakpointsFrame.py
+++ b/
BreakpointsFrame.py
@@
-22,6
+22,8
@@
class BreakpointsFrame (StatusFrame.StatusFrame):
StatusFrame.StatusFrame.__init__(self, debugger)
self.set_label("Breakpoints")
StatusFrame.StatusFrame.__init__(self, debugger)
self.set_label("Breakpoints")
+ debugger.gotActiveCallback += [self.updateValues]
+
vbox = gtk.VBox(False, 5)
self.add(vbox)
vbox = gtk.VBox(False, 5)
self.add(vbox)
@@
-100,7
+102,6
@@
class BreakpointsFrame (StatusFrame.StatusFrame):
def addBreakpoint(self, file, lineno, cond=None):
no = self.debugger.setBreakpoint(file, lineno, cond)
def addBreakpoint(self, file, lineno, cond=None):
no = self.debugger.setBreakpoint(file, lineno, cond)
-
if no!=None:
self.addBreakpointToList(no, file, lineno, cond)
else:
if no!=None:
self.addBreakpointToList(no, file, lineno, cond)
else:
@@
-115,7
+116,7
@@
class BreakpointsFrame (StatusFrame.StatusFrame):
def applyConfiguration(self, conf):
for b in conf.breakpoints:
self.addBreakpoint(b["file"], b["lineno"], b["cond"])
def applyConfiguration(self, conf):
for b in conf.breakpoints:
self.addBreakpoint(b["file"], b["lineno"], b["cond"])
- self.updateValues(None)
+ self.updateValues(None
, None
)
def fillConfiguration(self, conf):
iter = self.model.get_iter_first()
def fillConfiguration(self, conf):
iter = self.model.get_iter_first()
@@
-204,10
+205,10
@@
class BreakpointsFrame (StatusFrame.StatusFrame):
if not self.debugger.isActive():
return
if not self.debugger.isActive():
return
- self.updateValues(None)
+ self.updateValues(None
, None
)
- def updateValues(self,
pos
):
+ def updateValues(self,
status, param
):
bpnts = self.debugger.getBreakpoints()
bpnts = self.debugger.getBreakpoints()