Merge branch 'wip/phako/fix-frame-filter' into 'main'

gobject_gdb.py: Do not break bt on optimized build

See merge request GNOME/glib!3753
This commit is contained in:
Philip Withnall 2023-12-12 17:59:59 +00:00
commit 9eee19b7ed

View File

@ -148,11 +148,16 @@ def get_signal_name(id):
id = long(id)
if id == 0:
return None
try:
val = read_global_var("g_signal_nodes")
max_s = read_global_var("g_n_signal_nodes")
max_s = long(max_s)
if id < max_s:
return val[id]["name"].string()
except gdb.error:
return None
return None