summaryrefslogtreecommitdiff
path: root/src/grt/grt-disp_signals.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/grt/grt-disp_signals.adb')
-rw-r--r--src/grt/grt-disp_signals.adb7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/grt/grt-disp_signals.adb b/src/grt/grt-disp_signals.adb
index 265ca7b..a9b613c 100644
--- a/src/grt/grt-disp_signals.adb
+++ b/src/grt/grt-disp_signals.adb
@@ -527,8 +527,13 @@ package body Grt.Disp_Signals is
Res_Status : Traverse_Result;
pragma Unreferenced (Res_Status);
+
+ Top : constant Rti_Context := Get_Top_Context;
begin
- Res_Status := Foreach_Block (Get_Top_Context);
+ if Top /= Null_Context then
+ Res_Status := Foreach_Block (Top);
+ end if;
+
if not Found then
Put (Stream, "(unknown signal)");
end if;