mirror of
https://github.com/tromey/gdb-gui.git
synced 2026-01-05 16:10:05 +01:00
make it work with both python2 and python3
I ran 2to3, fixed up the output a tiny bit, and fixed the C module as well. I smoke tested with both versions of Python but didn't use it in anger yet. Fix #29
This commit is contained in:
@@ -70,7 +70,7 @@ class _StoredParameter(gdb.Parameter):
|
||||
elif p_kind is gdb.PARAM_ZINTEGER:
|
||||
val = storage.getint(self.storage_name)
|
||||
else:
|
||||
raise "WHOOPS"
|
||||
raise Error("missing case in gdb gui code")
|
||||
# Don't record the first setting.
|
||||
self.storage = None
|
||||
if val is None:
|
||||
|
||||
Reference in New Issue
Block a user