-- --
-- B o d y --
-- --
--- Copyright (C) 1999-2003 Ada Core Technologies, Inc. --
+-- Copyright (C) 1999-2005, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING. If not, write --
--- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
--- MA 02111-1307, USA. --
+-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
+-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- --
------------------------------------------------------------------------------
--- This version assumes that System.Machine_State_Operations.Pop_Frame can
--- work with the Info parameter being null.
+-- This version uses System.Machine_State_Operations routines
with System.Machine_State_Operations;
Code := Get_Code_Loc (M);
exit when Code = Null_Address or else N_Skips = Skip_Frames;
- Pop_Frame (M, System.Null_Address);
+ Pop_Frame (M);
N_Skips := N_Skips + 1;
end loop;
Trace (Len) := Code;
end if;
- Pop_Frame (M, System.Null_Address);
+ Pop_Frame (M);
end loop;
Free_Machine_State (M);
------------------
function C_Call_Chain
- (Traceback : System.Address;
- Max_Len : Natural) return Natural
+ (Traceback : System.Address;
+ Max_Len : Natural) return Natural
is
Val : Natural;
begin