From 9afab6107f39831aba58d325d4b5d20cde2ea759 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 31 Aug 2023 18:55:58 -0400 Subject: [PATCH] gdb: Fix the way we wrap segments Without that we end up with a reference to a GBoxed instead of the actual segment making the rest of the code fail Part-of: --- subprojects/gstreamer/libs/gst/helpers/gst_gdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py b/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py index 67a4727ddc..364d4f30e8 100644 --- a/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py +++ b/subprojects/gstreamer/libs/gst/helpers/gst_gdb.py @@ -525,12 +525,13 @@ class GdbGstStructure: else: _gdb_write(indent, "%s:" % (self.name())) for (key, value) in self.values(): - _gdb_write(indent + 1, "%s: %s" % (key, str(value))) + _gdb_write(indent+1, "%s: %s" % (key, str(value))) class GdbGstSegment: def __init__(self, val): - self.val = val + t = gdb.lookup_type("GstSegment").pointer().pointer() + self.val = val.cast(t).dereference() self.fmt = str(self.val["format"]).split("_")[-1].lower() def format_value(self, n):