Task Suspend Point

Is it possible to find out at which point a task has been suspended? For example if a task is suspended by another task it is unknown at which point the task is put onto the suspend list. But where can I find out with eclipse debugger (gdb) when the task was interrupted?

Task Suspend Point

The context of a task is saved to the task stack if the task is not currently in the Running state. Part of the context is the program counter value for that task. The only thing you could do is look at the task stack and find the program counter value. This would tell you which line was being executed by the task when it was suspended.