aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt/grt-errors.ads
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2015-11-22 19:02:05 +0100
committerTristan Gingold <gingold@adacore.com>2015-11-22 19:02:05 +0100
commit27a4852201a41e7d6f8098cc05b7b0949ebc6af4 (patch)
tree91e6effe2be75fedb2e39e2eb374975c5666f206 /src/grt/grt-errors.ads
parent92b0b82ea32982b94eb8bf19a0b498d92053fffe (diff)
downloadghdl-27a4852201a41e7d6f8098cc05b7b0949ebc6af4.tar.gz
ghdl-27a4852201a41e7d6f8098cc05b7b0949ebc6af4.tar.bz2
ghdl-27a4852201a41e7d6f8098cc05b7b0949ebc6af4.zip
backtrace: add support for windows and for llvm (via libbacktrace).
Diffstat (limited to 'src/grt/grt-errors.ads')
-rw-r--r--src/grt/grt-errors.ads10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/grt/grt-errors.ads b/src/grt/grt-errors.ads
index cd7c3dcf5..25900da69 100644
--- a/src/grt/grt-errors.ads
+++ b/src/grt/grt-errors.ads
@@ -22,7 +22,6 @@
-- covered by the GNU General Public License. This exception does not
-- however invalidate any other reasons why the executable file might be
-- covered by the GNU Public License.
-with System;
with Grt.Types; use Grt.Types;
with Grt.Hooks;
@@ -78,13 +77,8 @@ package Grt.Errors is
type Backtrace_Addrs_Acc is access Backtrace_Addrs;
- type Symbolizer_Acc is access procedure (Pc : System.Address;
- Filename : out System.Address;
- Lineno : out Natural;
- Subprg : out System.Address);
-
- Symbolizer : Symbolizer_Acc := null;
-
+ -- Save the current backtrace to BT, but skip SKIP frame. 0 means that
+ -- the caller of this procedure will be in the backtrace.
procedure Save_Backtrace (Bt : out Backtrace_Addrs; Skip : Natural);
pragma Import (C, Save_Backtrace, "grt_save_backtrace");