Commit 7a7cd9de authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

gdb: Fix iterating GstStructure fields

This broke with 1b568fa0 where we inlined the array

Part-of: <gstreamer/gstreamer!479>
parent 70469b4a
Pipeline #145895 waiting for manual action with stages
in 15 seconds
......@@ -478,11 +478,12 @@ class GdbGstStructure:
def size(self):
return int(self.val["fields"]["len"])
return int(self.val["fields_len"])
def values(self):
for f in _g_array_iter(self.val["fields"],
item = self.val["fields"].cast(gdb.lookup_type("GstStructureField").pointer())
for i in range(self.size()):
f = item[i]
key = g_quark_to_string(f["name"])
value = GdbGValue(f["value"])
yield(key, value)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment