1 ------------------------------------------------------------------------------
3 -- GNAT COMPILER COMPONENTS --
5 -- G N A T . E X C E P T I O N _ A C T I O N S . C O R E _ D U M P --
9 -- Copyright (C) 2003-2006, Free Software Foundation, Inc. --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 2, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING. If not, write --
19 -- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
20 -- Boston, MA 02110-1301, USA. --
22 -- As a special exception, if other files instantiate generics from this --
23 -- unit, or you link this unit with other files to produce an executable, --
24 -- this unit does not by itself cause the resulting executable to be --
25 -- covered by the GNU General Public License. This exception does not --
26 -- however invalidate any other reasons why the executable file might be --
27 -- covered by the GNU Public License. --
29 -- GNAT was originally developed by the GNAT team at New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc. --
32 ------------------------------------------------------------------------------
34 -- This is the VMS version
38 separate (GNAT
.Exception_Actions
)
39 procedure Core_Dump
(Occurrence
: Exception_Occurrence
) is
44 pragma Unreferenced
(Occurrence
);
46 SS_IMGDMP
: constant := 1276;
48 subtype Cond_Value_Type
is Unsigned_Longword
;
49 subtype Access_Mode_Type
is
50 Unsigned_Word
range 0 .. 3;
51 Access_Mode_Zero
: constant Access_Mode_Type
:= 0;
53 Status
: Cond_Value_Type
;
56 Status
: out Cond_Value_Type
;
57 Vector
: Unsigned_Longword
:= 0;
58 Addres
: Address
:= Address_Zero
;
59 Acmode
: Access_Mode_Type
:= Access_Mode_Zero
;
60 Prvhnd
: Unsigned_Longword
:= 0);
61 pragma Interface
(External
, Setexv
);
62 pragma Import_Valued_Procedure
(Setexv
, "SYS$SETEXV",
63 (Cond_Value_Type
, Unsigned_Longword
, Address
, Access_Mode_Type
,
65 (Value
, Value
, Value
, Value
, Value
));
67 procedure Lib_Signal
(I
: Integer);
68 pragma Interface
(C
, Lib_Signal
);
69 pragma Import_Procedure
(Lib_Signal
, "LIB$SIGNAL", Mechanism
=> (Value
));
71 Setexv
(Status
, 1, Address_Zero
, 3);
72 Lib_Signal
(SS_IMGDMP
);