help / color / mirror / Atom feed
* Unpropagated exception handling on zfp
@ 2023-11-03 18:56 Kevin Chadwick
  2023-11-04 10:05 ` Kevin Chadwick
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Chadwick @ 2023-11-03 18:56 UTC (permalink / raw)

On zfp with no exception propagation. You can use a local exception handler
 to return thereby avoiding the last chance handler for this one procedure
 or even exception type.

Obviously it would be better to take the time and prove an absence of
 runtime errors.

However, when you do not have that time. I believe it is not risky if you
 are sure the stack will be cleaned up upon return. Indeed the handler can
 return or set known safe values. I assume that out of bounds writes are
 caught by constraint checks before they occur? Sometimes you do not want to
 reset the micro but just drop some functionality by return but would still
 like to get the exception message to log.

The only issue is that I cannot see how to get to the exception messages
 System.Address except via the last chance handler. zfp does not permit
 exception propagation and so the Exception_Occurence cannot be used.

Is it possible with gnat 13, even if I need to enable the secondary stack,
 just for this capability?

Regards, Kc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-04 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-03 18:56 Unpropagated exception handling on zfp Kevin Chadwick
2023-11-04 10:05 ` Kevin Chadwick

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