projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91d4659
)
Make gdb pretty-printers compatible with Python3
author
Tim Lunn
<tim@feathertop.org>
Tue, 17 Dec 2013 20:14:38 +0000
(07:14 +1100)
committer
Tim Lunn
<tim@feathertop.org>
Tue, 17 Dec 2013 20:22:16 +0000
(07:22 +1100)
On some systems gdb is linked against python3 where "long" no longer
exists. In this case should be using int.
https://bugzilla.gnome.org/show_bug.cgi?id=720635
glib/glib.py
patch
|
blob
|
history
gobject/gobject.py
patch
|
blob
|
history
diff --git
a/glib/glib.py
b/glib/glib.py
index
64459b3
..
f7fe22b
100644
(file)
--- a/
glib/glib.py
+++ b/
glib/glib.py
@@
-1,4
+1,8
@@
import gdb
+import sys
+
+if sys.version_info[0] >= 3:
+ long = int
# This is not quite right, as local vars may override symname
def read_global_var (symname):
diff --git
a/gobject/gobject.py
b/gobject/gobject.py
index
ce2a7f7
..
7bb3cbe
100644
(file)
--- a/
gobject/gobject.py
+++ b/
gobject/gobject.py
@@
-1,6
+1,11
@@
import os.path
import gdb
import glib
+import sys
+
+if sys.version_info[0] >= 3:
+ long = int
+
try:
import gdb.backtrace
import gdb.command.backtrace