* top.c (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Update comments.
authorNicholas Duffek <nsd@redhat.com>
Thu, 24 Feb 2000 00:04:03 +0000 (00:04 +0000)
committerNicholas Duffek <nsd@redhat.com>
Thu, 24 Feb 2000 00:04:03 +0000 (00:04 +0000)
commit99eeeb0ff7898f8987188e510b2612de1fcfa454
treec6dfb641a5501748c99f36b6448c00a5e372398a
parenteaba1dd3fb01d2964da9695f159e82a3c4596e63
* top.c (SIGJMP_BUF, SIGSETJMP, SIGLONGJMP): Update comments.
(error_return, quit_return): Merge into catch_return pointer.
(return_to_top_level): Update comment.  Longjmp to *catch_errors,
and communicate reason to catch_errors via setjmp return value.
(catch_errors): Always catch both quit and error, and if a catch
wasn't requested by caller, throw it to the next catch_error.
Replace dual longjmp buffer memcpy with single pointer change.
Add FIXME for possibly adding new interface to tell caller what
event was caught.  Add extensive comments.
* defs.h (enum return_reason): Reserve 0 for use as initial
setjmp() return value.
(RETURN_MASK): New public macro to generate RETURN_MASK_* from
enum return_reason.
(RETURN_MASK_QUIT, RETURN_MASK_ERROR): Define using RETURN_MASK.
gdb/ChangeLog
gdb/defs.h
gdb/top.c