mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Make gdb pretty-printers compatible with Python3
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
This commit is contained in:
parent
91d4659bbf
commit
d33f72097f
@ -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):
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user