gobject_gdb.py: 'address' is a property of gdb.Value not a function

'address' started out as a function, but it was changed to a property
before the gdb Python support was release with gdb 7.0.

https://bugzilla.gnome.org/show_bug.cgi?id=794194
This commit is contained in:
Michael Olbrich 2018-03-09 09:49:52 +01:00 committed by Philip Withnall
parent 987bf5bbeb
commit abe329343f

View File

@ -28,7 +28,7 @@ def g_type_to_name (gtype):
val = read_global_var ("static_fundamental_type_nodes")
if val == None:
return None
return val[typenode >> 2].address()
return val[typenode >> 2].address
gtype = long(gtype)
typenode = gtype - gtype % 4