mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
bc621cc335
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
10 lines
214 B
Python
10 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 ())
|