comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Threading questions (for FAQ).
Date: 1996/09/18
Date: 1996-09-18T00:00:00+00:00	[thread overview]
Message-ID: <1996Sep18.075157.1@eisner> (raw)
In-Reply-To: 323FA609.1654@netvision.net.il


In article <323FA609.1654@netvision.net.il>, Calius <tow@netvision.net.il> writes:
> Sean Walton wrote:
>> 
>> I am putting together a FAQ for Linux Threads, and I understand that this
>> language supports threading in some degree.  Could anyone please help me
>> answer the following questions:

>>         4. How do you debug threads within this language?
> 
> Depends on your debbuger and environment.  I know my debbuger (Verdix
> SELF for
> IBM RS6000, AIX) has to ability to set breakpoints at specific tasks,
> and I think
> that should be the case for any decent ADA debugger.

As another example of the debug situation for a specific environment,
the VMS Debugger offers the following elements specific to Ada, most
of which have to do with tasking (threads):

DBG> show event_facility
event facility is ADA

  The general forms of commands to set a breakpoint or tracepoint
  on an Ada event are:
    SET BREAK/EVENT=event [task[, ... ]] [WHEN(expr)] [DO(comnd[; ... ])]
    SET TRACE/EVENT=event [task[, ... ]] [WHEN(expr)] [DO(comnd[; ... ])]

  If tasks are specified, the breakpoint will trigger only if the
  event occurs for those specific tasks.

  Ada event names and their definitions

  ABORT_TERMINATED      a task is terminating because of abort
  ACTIVATING            a task is about to begin its activation
  DEPENDENTS_EXCEPTION  an exception is about to cause a task to await
                        dependent tasks
  EXCEPTION_TERMINATED  a task is terminating because of an exception
  HANDLED               an exception is about to be handled
  HANDLED_OTHERS        an exception is about to be handled in an OTHERS handler
  PREEMPTED             a task is about to be preempted
  RENDEZVOUS_EXCEPTION  an exception is propagating out of a rendezvous
  RUN                   a task is about to run
  SUSPENDED             a task is about to be suspended
  TERMINATED            a task is terminating (including by abort or exception)
DBG>

I think readers of comp.lang.ada would appreciate a one-time posting
of your completed FAQ when completed, so we can get a picture of how
the other half lives.

Larry Kilgallen




  reply	other threads:[~1996-09-18  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-17  0:00 Threading questions (for FAQ) Sean Walton
1996-09-17  0:00 ` Alan Lovejoy
1996-09-18  0:00 ` Calius
1996-09-18  0:00   ` Larry Kilgallen [this message]
1996-09-19  0:00   ` Tom I Helbekkmo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox