Re: Exception Handling

"Marco van de Voort" <marcov@toad.stack.nl>
10 Aug 2002 02:17:55 -0400

          From comp.compilers

Related articles
Exception Handling david.jobet@ng-market.com (David Jobet) (2002-07-21)
Re: Exception Handling vbdis@aol.com (VBDis) (2002-07-24)
Re: Exception Handling casse@netcourrier.com (Casse Hugues) (2002-07-24)
Re: Exception Handling jacob@jacob.remcomp.fr (jacob navia) (2002-07-24)
Re: Exception Handling david.jobet@ng-market.com (David Jobet) (2002-07-25)
Re: Exception Handling journeyman@compilerguru.com (journeyman) (2002-08-04)
Re: Exception Handling nmm1@cus.cam.ac.uk (Nick Maclaren) (2002-08-10)
Re: Exception Handling marcov@toad.stack.nl (Marco van de Voort) (2002-08-10)
Re: Exception Handling max1@mbank.com.ua (Maxim Reznik) (2002-08-10)
Re: Exception Handling fjh@cs.mu.OZ.AU (Fergus Henderson) (2002-08-14)
Exception Handling tschirre@cs.curtin.edu.au (Bernhard Tschirren) (1998-09-13)
Re: Exception Handling mrs@kithrup.com (1998-09-18)
Re: Exception Handling enikitin@apk.net (1998-09-18)
Re: Exception Handling landauer@apple.com (1998-09-18)
[1 later articles]
| List of all articles for this month |
From: "Marco van de Voort" <marcov@toad.stack.nl>
Newsgroups: comp.compilers
Date: 10 Aug 2002 02:17:55 -0400
Organization: Eindhoven University of Technology, The Netherlands
References: 02-07-075 02-07-111 02-07-113
Keywords: errors
Posted-Date: 10 Aug 2002 02:17:55 EDT

David Jobet wrote:
> f can throw an exception, I can in f (before longjumping to
> someFunction's handler) get the return address (that will correspond
> to f_addr in someFunction). The problem is in someFunction, I'd like
> to have the PC address of f_addr.
>
> In Visual C, it appears you can use the &f_addr notation to handle
> this. However this is not true with ANSI C.


For Linux, check the code of the *nix units of FreePascal (www.freepascal.org,
which tries to emulate delphi exceptions)


For *BSD, it is somewhat harder. Exceptions are working, but I haven't found
a decent way to recover from processor generated exceptions (like
div-by-zero)


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.