aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt/grt-lib.adb
diff options
context:
space:
mode:
Diffstat (limited to 'src/grt/grt-lib.adb')
-rw-r--r--src/grt/grt-lib.adb4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/grt/grt-lib.adb b/src/grt/grt-lib.adb
index 66d1ccccf..3bd3440ec 100644
--- a/src/grt/grt-lib.adb
+++ b/src/grt/grt-lib.adb
@@ -29,6 +29,7 @@ with Grt.Errors_Exec; use Grt.Errors_Exec;
with Grt.Severity;
with Grt.Options;
with Grt.Fcvt;
+with Grt.Backtraces;
package body Grt.Lib is
--procedure Memcpy (Dst : Address; Src : Address; Size : Size_T);
@@ -89,6 +90,9 @@ package body Grt.Lib is
Error_S (Msg);
Diag_C (" failed");
Error_E_Call_Stack (Bt);
+ elsif Level >= Grt.Options.Backtrace_Severity then
+ Save_Backtrace (Bt, 2);
+ Grt.Backtraces.Put_Err_Backtrace (Bt);
end if;
end Do_Report;