[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Line/column numbers in user supplied exception handlers
From: |
Dale P. Smith |
Subject: |
Re: Line/column numbers in user supplied exception handlers |
Date: |
Sun, 01 Jul 2001 19:14:02 -0400 |
"Dale P. Smith" wrote:
>
> I'm trying to catch exceptions with my own handler and generate error
> messages that include file/line number information. If you call the
> attached C program with an argument of 0, 1 or 2, you get these
> different outputs:
Well, digging around I found that scm_ithrow() checks for a catch
handler on the scm_dynwinds list. If it finds none, it calls
scm_handle_by_message(), which eventually prints out the good line and
column number stuff. It also calls abort() right after that, but only
if the exit() in scm_handle_by_message() doesn't do it's job. :(
If scm_ithrow() *does* find a catch handler, it does a longjmp() to the
handler. I tried calling handler_message() in my catch handler (it's
what scm_handle_by_message() calls). Well, that doesn't work either. It
seems that there is some port saving and swapping (probably to handle
nested load's ) going on that basically removes the file context so the
good error printing routines have nothing to work with. :(
So still no closer. What can I do?
Thanks
-Dale
--
Dale P. Smith
Treasurer, Cleveland Linux Users Group http://cleveland.lug.net
Senior Systems Consultant, Altus Technologies Corporation
address@hidden
440-746-9000 x309
- Line/column numbers in user supplied exception handlers, Dale P. Smith, 2001/07/01
- Re: Line/column numbers in user supplied exception handlers,
Dale P. Smith <=
- Re: Line/column numbers in user supplied exception handlers, Dale P. Smith, 2001/07/02
- Re: Line/column numbers in user supplied exception handlers, Marius Vollmer, 2001/07/05
- Re: Line/column numbers in user supplied exception handlers, Neil Jerram, 2001/07/06
- Re: Line/column numbers in user supplied exception handlers, Marius Vollmer, 2001/07/06
- Re: Line/column numbers in user supplied exception handlers, Neil Jerram, 2001/07/07
- Re: Line/column numbers in user supplied exception handlers, Marius Vollmer, 2001/07/09