From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.237.46.228 with SMTP id k91mr6965625qtd.116.1502084936402; Sun, 06 Aug 2017 22:48:56 -0700 (PDT) X-Received: by 10.36.53.79 with SMTP id k76mr98977ita.1.1502084936347; Sun, 06 Aug 2017 22:48:56 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!s6no888307qtc.1!news-out.google.com!1ni665itx.0!nntp.google.com!u14no890281ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 6 Aug 2017 22:48:55 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=136.163.203.6; posting-account=g0yTkgoAAADdZGEYyZahxGlO3EkjH0Wv NNTP-Posting-Host: 136.163.203.6 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Unhandled Exception in Tartan generated code for M68040 From: Petter Fryklund Injection-Date: Mon, 07 Aug 2017 05:48:56 +0000 Content-Type: text/plain; charset="UTF-8" Xref: news.eternal-september.org comp.lang.ada:47629 Date: 2017-08-06T22:48:55-07:00 List-Id: Den onsdag 12 juli 2017 kl. 21:30:28 UTC+2 skrev Niklas Holsti: > On 17-07-07 12:58 , Petter Fryklund wrote: > > Hi, I'm trying to locate an Unhandled Exception. The printout > > received is > > > > Unhandled Exception vector 37 at 45E6C > > > > or > > > > Unhandled Exception vector 18 at 10A40E > > > > I assume there is a way to use the .map file to find out where these > > exceptions occur, but endless googling has come up with nil. > > And in another message, Petter continued: > > > the Unexpected Exception is erronous, the code has exception > > handler everywhere. > > Are you sure, Petter, that "exception" in "Unhandled Exception" means an > Ada exception? I seem to remember that some processors use the term > "exception" for what is more commonly called a "trap". Perhaps these are > HW traps that are _not_ mapped to Ada exceptions? > > The Wikipedia page on M68000 > (https://en.wikipedia.org/wiki/Motorola_68000_series) uses the term > "exception" for HW events,and so does the M68040 User Manual > (http://cache.freescale.com/files/32bit/doc/ref_manual/MC68040UM.pdf). > > Table 8-1 in the User Manual lists these HW exceptions, by number. It > seems that numbers 32..47 are of SW origin, triggered by the TRAP > instruction, while number 18 is described as "Unassigned, Reserved". > Numbers 25..31 are "Interrupt Autovectors". This suggests that these HW > exceptions should be treated as interrupts in the Ada program, that is, > processed by interrupt handlers, not by exception handlers. On the other > hand, the Tartan run-time system may map some of these HW exceptions to > Ada exceptions, for example number 5, which is "Integer Divide by Zero". > > (Disclaimer: I know nothing about the Tartan compiler.) > > -- > Niklas Holsti > Tidorum Ltd > niklas holsti tidorum fi > . @ . Thanks for responding, Niklas. Your suggestion makes sense since one would expect the program to stop on an Unhandled Exception, but it continues. But I cannot figure out what the 6 digit hex number is in that case. Regards, Petter