mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
gobject.py: Remove old hack for stripping IA__ symbols
We don't use IA__ symbols anymore; they've been replaced with -Bsymbolic
This commit is contained in:
parent
b4af2d685e
commit
4e512a1af8
@ -106,29 +106,6 @@ def get_signal_name (id):
|
||||
return val[id]["name"].string()
|
||||
return None
|
||||
|
||||
class GFrameWrapper:
|
||||
def __init__ (self, frame):
|
||||
self.frame = frame
|
||||
|
||||
def name (self):
|
||||
name = self.frame.name()
|
||||
if name and name.startswith("IA__"):
|
||||
return name[4:]
|
||||
return name
|
||||
|
||||
def __getattr__ (self, name):
|
||||
return getattr (self.frame, name)
|
||||
|
||||
# Monkey patch FrameWrapper to avoid IA__ in symbol names
|
||||
if HAVE_GDB_BACKTRACE:
|
||||
old__init__ = gdb.command.backtrace.FrameWrapper.__init__
|
||||
def monkey_patched_init(self, frame):
|
||||
name = frame.name()
|
||||
if name and name.startswith("IA__"):
|
||||
frame = GFrameWrapper(frame)
|
||||
old__init__(self,frame)
|
||||
gdb.command.backtrace.FrameWrapper.__init__ = monkey_patched_init
|
||||
|
||||
class DummyFrame:
|
||||
def __init__ (self, frame):
|
||||
self.frame = frame
|
||||
|
Loading…
Reference in New Issue
Block a user