Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benwaffle/2c0f69361acbb7c5000338d21d57a959 to your computer and use it in GitHub Desktop.
Save benwaffle/2c0f69361acbb7c5000338d21d57a959 to your computer and use it in GitHub Desktop.
From 1ddb5e4010bd9e03a686eedf7abf3208faddcbaa Mon Sep 17 00:00:00 2001
From: Ben Iofel <iofelben@gmail.com>
Date: Sun, 7 Jan 2018 01:41:42 -0500
Subject: [PATCH] Make gdb plugin print type names
---
gobject/gobject_gdb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gobject/gobject_gdb.py b/gobject/gobject_gdb.py
index 8c3022031..c86dbd1b7 100644
--- a/gobject/gobject_gdb.py
+++ b/gobject/gobject_gdb.py
@@ -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
--
2.15.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment