mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 10:57:53 +02:00
Initial support for gdb python macros
This includes support for gobject pointer pretty printing and signal frame compression in backtraces. https://bugzilla.gnome.org/show_bug.cgi?id=595619
This commit is contained in:
10
gobject/libgobject-gdb.py.in
Normal file
10
gobject/libgobject-gdb.py.in
Normal file
@@ -0,0 +1,10 @@
|
||||
import sys
|
||||
import gdb
|
||||
|
||||
# Update module path.
|
||||
dir = '@datadir@/glib-2.0/gdb'
|
||||
if not dir in sys.path:
|
||||
sys.path.insert(0, dir)
|
||||
|
||||
from gobject import register
|
||||
register (gdb.current_objfile ())
|
Reference in New Issue
Block a user