comp.lang.ada
 help / color / mirror / Atom feed
From: Corey Minyard <minyard@acm.org>
Subject: Re: GNAT exception traceback
Date: 1997/06/19
Date: 1997-06-19T00:00:00+00:00	[thread overview]
Message-ID: <m2wwnrwduu.fsf@acm.org> (raw)
In-Reply-To: 33A85168.4E1A@no.such.com



I'd take this to email, but there is no mail address anywhere in your
post!

Spam Hater <no.such.user@no.such.com> writes:
> 
> > > Someone gave me SPARC assembler that allegedly works reliably
> > > when linked into a Verdix Ada program.  I am not at liberty to
> > > release it, though, unless the originator reads this and says it's OK.
> > 
> > I assume you mean a SPARC traceback facility :-).  Yes, there is a
> > system call you can make under Solaris and SunOS to get this
> > information; that is what I would expect it would use.  If on a
> > real-time platform, you can lock out interrupts and do the trace
> > yourself.  I have code for both of these, but they are both extremely
> > slow.
> 
> No system call or any other call.  40 lines of assembler, 
> consisting of a little setup and a loopof nine instructions.  
> The originator also claims it's fast.  I didn't think to ask 
> whether it is Verdix specific.

I would really like to see it, if you could get permission to release
it.  It would make some people at work pretty happy.  If it was not
Verdix specific it would prove the Sparc manuals wrong, but that
wouldn't bother me.

> 
> > > With HPUX on PA RISC boxes, some C code I received from yet another
> > > kind soul has worked reliably for me when linked into Alsys programs.
> > 
> > It may be that the Alsys compiler only uses one type of return
> > mechanism and it can be traced by reliably.  I worked and worked and
> > finally asked HP; they told me (and pointed me to the place in the
> > manual with the information) about the difficulty when using their C
> > compiler.  GCC seems to do the same thing.
> 
> I should have said that I had also tested it in a _few_ C programs.
> Perhaps I should try more.

I'd like to see that code, too, if possible.

>  
> > > Pentium with SCO Unix is one I haven't done, but would like to.
> > > Note that I am not claiming any expertise, just stating what has
> > > worked for me and others and making some wild guesses from that
> > > (in hopes that folks like Corey will keep on pointing out the bugs
> > > in the idea).
> > 
> > SCO on Pentium should be easy, just the same as Linux on Pentium, the
> > original code you posted will work.
> 
> Except that we may not always use gcc.  (Plus they've decided to drop
> SCO and go to Windoze NT. Ugh!)

The mechanism is generally same for x86 Unix no matter what the
compiler.  I can't speek for windoze, though.

-- 
Corey Minyard               Internet:  minyard@acm.org
  Work: minyard@nortel.ca       UUCP:  minyard@wf-rch.cirr.com




  parent reply	other threads:[~1997-06-19  0:00 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-13  0:00 GNAT exception traceback Huy Vo
1997-06-13  0:00 ` Robert Dewar
1997-06-16  0:00   ` wiljan
1997-06-17  0:00     ` Robert Dewar
1997-06-17  0:00       ` Spam Hater
1997-06-17  0:00         ` Corey Minyard
1997-06-17  0:00           ` Spam Hater
1997-06-18  0:00             ` Corey Minyard
1997-06-18  0:00               ` Spam Hater
1997-06-18  0:00                 ` Tom Moran
1997-06-20  0:00                   ` Robert Dewar
1997-06-19  0:00                 ` Corey Minyard [this message]
1997-06-20  0:00                 ` Robert Dewar
1997-06-20  0:00                 ` Richard Kenner
1997-06-18  0:00         ` Richard Kenner
1997-06-17  0:00       ` Robert A Duff
1997-06-19  0:00         ` Michael F Brenner
1997-06-23  0:00   ` Geert Bosch
1997-06-27  0:00     ` Michael F Brenner
1997-07-02  0:00     ` Robert Dewar
  -- strict thread matches above, loose matches on Subject: below --
1997-06-19  0:00 Chris Sparks (Mr. Ada)
1997-06-16  0:00 Chris Sparks (Mr. Ada)
1997-06-16  0:00 ` Robert Dewar
1997-06-11  0:00 Steve Gibson
1997-06-12  0:00 ` Robert Dewar
1997-06-13  0:00   ` Mats.Weber
1997-06-14  0:00     ` Robert Dewar
1997-06-16  0:00       ` Mats.Weber
1997-06-16  0:00         ` Robert Dewar
1997-06-16  0:00         ` Fergus Henderson
1997-06-16  0:00     ` Gautier
1997-06-17  0:00       ` Robert Dewar
1997-06-14  0:00   ` Aaron Metzger
1997-06-14  0:00     ` Robert Dewar
1997-06-14  0:00       ` Robert A Duff
1997-06-16  0:00       ` Corey Minyard
1997-06-16  0:00       ` Spam Hater
1997-06-17  0:00         ` Robert Dewar
1997-06-17  0:00         ` Robert Dewar
1997-06-16  0:00     ` Spam Hater
1997-06-17  0:00       ` Robert Dewar
1997-06-19  0:00         ` Geert Bosch
1997-06-18  0:00       ` Samuel Tardieu
1997-06-18  0:00       ` Richard Kenner
1997-06-14  0:00 ` Martin Kristensson
1997-06-14  0:00   ` Robert Dewar
     [not found] <82@pluto.win-uk.net>
1996-02-17  0:00 ` GNAT : Exception traceback Robert Dewar
replies disabled

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