Fix up cast in gdb macros

We need to actually assign the casted value somewhere.
This commit is contained in:
Alexander Larsson 2009-09-25 09:50:49 +02:00
parent e657dee578
commit 70027bf092

View File

@ -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)