mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-23 20:46:14 +01:00
gobject_gdb.py: Do not break bt on optimized build
Symptom: 20 0x00007ffff756337b in gtk_widget_size_allocate_with_baseline (widget=0xd7a0c0 [DirectWindow], allocation=, baseline=) at gdb.error: value has been optimized out
This commit is contained in:
parent
d74a9bc73e
commit
1944fc84ee
@ -148,11 +148,16 @@ def get_signal_name(id):
|
|||||||
id = long(id)
|
id = long(id)
|
||||||
if id == 0:
|
if id == 0:
|
||||||
return None
|
return None
|
||||||
val = read_global_var("g_signal_nodes")
|
|
||||||
max_s = read_global_var("g_n_signal_nodes")
|
try:
|
||||||
max_s = long(max_s)
|
val = read_global_var("g_signal_nodes")
|
||||||
if id < max_s:
|
max_s = read_global_var("g_n_signal_nodes")
|
||||||
return val[id]["name"].string()
|
max_s = long(max_s)
|
||||||
|
if id < max_s:
|
||||||
|
return val[id]["name"].string()
|
||||||
|
except gdb.error:
|
||||||
|
return None
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user