mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 04:43:06 +02: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)
|
return (var, val, command)
|
||||||
|
|
||||||
def do_iter(self, arg, item, 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)
|
item = long(item)
|
||||||
to_eval = "set $%s = (void *)0x%x\n"%(arg, item)
|
to_eval = "set $%s = (void *)0x%x\n"%(arg, item)
|
||||||
gdb.execute(to_eval)
|
gdb.execute(to_eval)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user