mirror of
https://github.com/tromey/gdb-gui.git
synced 2025-08-29 05:40:52 +02:00
fix updatewindow _on_event implementation
This commit is contained in:
@@ -62,11 +62,7 @@ class UpdateWindow(Toplevel):
|
|||||||
|
|
||||||
@in_gdb_thread
|
@in_gdb_thread
|
||||||
def _on_event(self, *args):
|
def _on_event(self, *args):
|
||||||
try:
|
self.on_event()
|
||||||
text = gdb.execute(self.command, to_string = True)
|
|
||||||
except gdb.error as what:
|
|
||||||
text = str(what)
|
|
||||||
gui.startup.send_to_gtk(lambda: self._update(text))
|
|
||||||
|
|
||||||
@in_gtk_thread
|
@in_gtk_thread
|
||||||
def deleted(self):
|
def deleted(self):
|
||||||
|
Reference in New Issue
Block a user