mirror of
https://github.com/tromey/gdb-gui.git
synced 2026-01-04 15:40:06 +01:00
allow breakpoint deletion from source window
This commit is contained in:
@@ -313,8 +313,12 @@ class SourceWindow(gui.updatewindow.UpdateWindow):
|
||||
return
|
||||
if event.button.get_button()[1] != 1:
|
||||
return
|
||||
fun = Invoker("break %s:%d" % (self.view.get_buffer().filename,
|
||||
textiter.get_line() + 1))
|
||||
filename = self.view.get_buffer().filename
|
||||
line = textiter.get_line() + 1
|
||||
if gui.bpcache.any_breakpoint_at(filename, line):
|
||||
fun = Invoker("clear %s:%d" % (filename,line))
|
||||
else:
|
||||
fun = Invoker("break %s:%d" % (filename, line))
|
||||
fun()
|
||||
|
||||
def _do_scroll(self, buff, srcline):
|
||||
|
||||
Reference in New Issue
Block a user