ada: Fix use-after-free in Compute_All_Tasks

This patch fixes a bug in System.Stack_Usage.Tasking.Compute_All_Tasks
where it would attempt to read the stack of threads that had already
completed.

gcc/ada/ChangeLog:

	* libgnarl/s-stusta.adb (Compute_All_Tasks): Skip terminated tasks.
1 file changed