mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-04 04:39:20 +02:00
Merge branch 'backport-3753-gdb-plugin-glib-2-78' into 'glib-2-78'
Backport !3753 “gobject_gdb.py: Do not break bt on optimized build” to glib-2-78 See merge request GNOME/glib!3759
This commit is contained in:
@@ -148,11 +148,16 @@ def get_signal_name(id):
|
||||
id = long(id)
|
||||
if id == 0:
|
||||
return None
|
||||
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()
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user