Created
January 7, 2018 06:41
-
-
Save benwaffle/2c0f69361acbb7c5000338d21d57a959 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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