mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Fix up cast in gdb macros
We need to actually assign the casted value somewhere.
This commit is contained in:
parent
e657dee578
commit
70027bf092
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user