summaryrefslogtreecommitdiff
path: root/gcc/ada/s-tasdeb.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-14 08:42:09 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-14 08:42:09 +0000
commit1605e5e5944a4e44f03a1927e2e49e8087e3600d (patch)
tree480e56c181a323ef84183f901c56c0bb92ecf9df /gcc/ada/s-tasdeb.ads
parenta2feb922139bfb09ae39d03bbb086cc50c11bc9a (diff)
downloadgcc-1605e5e5944a4e44f03a1927e2e49e8087e3600d.tar.gz
2007-08-14 Jerome Guitton <guitton@adacore.com>
* s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks): New functions; dummy implementations. * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New functions, used to implement the multi-tasks mode routines on VxWorks. * s-osinte-vxworks.adb (Task_Cont, Task_Stop): New functions, thin binding to the VxWorks routines which have changed between VxWorks 5 and 6. (Int_Lock, Int_Unlock): New function, thin binding to kernel routines which are not callable from a RTP. * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions, implemented for the multi-tasks mode on VxWorks 5 and 6. * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions. * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127431 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/s-tasdeb.ads')
-rw-r--r--gcc/ada/s-tasdeb.ads35
1 files changed, 22 insertions, 13 deletions
diff --git a/gcc/ada/s-tasdeb.ads b/gcc/ada/s-tasdeb.ads
index d0c230d1f28..6f167386935 100644
--- a/gcc/ada/s-tasdeb.ads
+++ b/gcc/ada/s-tasdeb.ads
@@ -6,7 +6,7 @@
-- --
-- S p e c --
-- --
--- Copyright (C) 1997-2005, Free Software Foundation, Inc. --
+-- Copyright (C) 1997-2007, Free Software Foundation, Inc. --
-- --
-- GNARL 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- --
@@ -53,12 +53,12 @@ package System.Tasking.Debug is
-- the standard error file.
procedure Print_Task_Info (T : Task_Id);
- -- Similar to Print_Current_Task, for a given task.
+ -- Similar to Print_Current_Task, for a given task
procedure Set_User_State (Value : Long_Integer);
- -- Set user state value in the current task.
- -- This state will be displayed when calling List_Tasks or
- -- Print_Current_Task. It is useful for setting task specific state.
+ -- Set user state value in the current task. This state will be displayed
+ -- when calling List_Tasks or Print_Current_Task. It is useful for setting
+ -- task specific state.
function Get_User_State return Long_Integer;
-- Return the user state for the current task.
@@ -68,8 +68,8 @@ package System.Tasking.Debug is
-------------------------
Known_Tasks : array (0 .. 999) of Task_Id := (others => null);
- -- Global array of tasks read by gdb, and updated by
- -- Create_Task and Finalize_TCB
+ -- Global array of tasks read by gdb, and updated by Create_Task and
+ -- Finalize_TCB
----------------------------------
-- VxWorks specific GDB support --
@@ -79,11 +79,11 @@ package System.Tasking.Debug is
-- manner, only VxWorks currently uses them.
procedure Task_Creation_Hook (Thread : OS_Interface.Thread_Id);
- -- This procedure is used to notify GDB of task's creation.
- -- It must be called by the task's creator.
+ -- This procedure is used to notify GDB of task's creation. It must be
+ -- called by the task's creator.
procedure Task_Termination_Hook;
- -- This procedure is used to notify GDB of task's termination.
+ -- This procedure is used to notify GDB of task's termination
procedure Suspend_All_Tasks (Thread_Self : OS_Interface.Thread_Id);
-- Suspend all the tasks except the one whose associated thread is
@@ -95,6 +95,16 @@ package System.Tasking.Debug is
-- Thread_Self by traversing All_Tasks_Lists and calling
-- System.Task_Primitives.Operations.Continue_Task.
+ procedure Stop_All_Tasks;
+ -- Stop all the tasks by traversing All_Tasks_Lists and calling
+ -- System.Task_Primitives.Operations.Stop_Task. This function
+ -- can be used in a interrupt handler.
+
+ procedure Continue_All_Tasks;
+ -- Continue all the tasks by traversing All_Tasks_Lists and calling
+ -- System.Task_Primitives.Operations.Continue_Task. This function
+ -- can be used in a interrupt handler.
+
-------------------------------
-- Run-time tracing routines --
-------------------------------
@@ -111,8 +121,7 @@ package System.Tasking.Debug is
procedure Set_Trace
(Flag : Character;
Value : Boolean := True);
- -- Enable or disable tracing for Flag.
- -- By default, flags in the range 'A' .. 'Z' are disabled, others are
- -- enabled.
+ -- Enable or disable tracing for Flag. By default, flags in the range
+ -- 'A' .. 'Z' are disabled, others are enabled.
end System.Tasking.Debug;