From: Alexander Larsson Date: Fri, 25 Sep 2009 07:50:49 +0000 (+0200) Subject: Fix up cast in gdb macros X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=70027bf0928e7960c3ff78ce4a92aaad20ee899e;p=dana%2Fcg-glib.git Fix up cast in gdb macros We need to actually assign the casted value somewhere. --- diff --git a/glib/glib.py b/glib/glib.py index 494eb698..0953aee7 100644 --- a/glib/glib.py +++ b/glib/glib.py @@ -214,7 +214,7 @@ class ForeachCommand (gdb.Command): return (var, val, command) def do_iter(self, arg, item, command): - item.cast (gdb.lookup_type("void").pointer()) + item = item.cast (gdb.lookup_type("void").pointer()) item = long(item) to_eval = "set $%s = (void *)0x%x\n"%(arg, item) gdb.execute(to_eval)