mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
99332dd27c
This is the same change that was already applied to the other gdb script we ship. I had forgotten there was a second one.
11 lines
192 B
Python
11 lines
192 B
Python
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 glib import register
|
|
register (gdb.current_objfile ())
|