OSDN Git Service

* 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)
commita71bd9be9bd2ba45bab2b2a567d09d2151ffd8d8
tree3c75e5a2923e6b04a36f41b25c23b890c8561f01
parentadc276eec56531d55f4eb8271fff000b3bfac454
* 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