gstreamer/libs/gst/helpers/libgstreamer-gdb.py.in
Michael Olbrich bc621cc335 gst: add some gdb python macros
This adds gdb pretty printer for some GStreamer types.
For GstObject pointers the type and name is added, e.g.
"0x5555557e4110 [GstDecodeBin|decodebin0]".
For GstMiniObject pointers the object type is added, e.g.
"0x7fffe001fc50 [GstBuffer]".
For GstClockTime and GstClockTimeDiff the time is also printed in human
readable form, e.g. "150116219955 [+0:02:30.116219955]".

Fixes #320
2018-11-08 12:36:23 +00:00

11 lines
214 B
Python

import sys
import gdb
# Update module path.
dir_ = '@DATADIR@/gstreamer-@GST_API_VERSION@/gdb'
if not dir_ in sys.path:
sys.path.insert(0, dir_)
from gst_gdb import register
register (gdb.current_objfile ())