From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30593 invoked from network); 5 Jun 1998 06:48:25 -0000 Received: from dot.cygnus.com (205.180.230.224) by mail2.redhat.com with SMTP; 5 Jun 1998 06:48:25 -0000 Received: (from rth@localhost) by dot.cygnus.com (8.8.5/8.8.5) id XAA02297; Thu, 4 Jun 1998 23:48:26 -0700 Message-ID: <19980604234826.B2170@dot.cygnus.com> Date: Thu, 4 Jun 1998 23:48:26 -0700 From: Richard Henderson To: dragisha@frodo.ho.com, axp-list@redhat.com Subject: Re: stack layout in signal handling proc Reply-To: Richard Henderson References: <19980603200825.21992.qmail@frodo.ho.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19980603200825.21992.qmail@frodo.ho.com>; from dragisha@frodo.ho.com on Wed, Jun 03, 1998 at 10:08:25PM +0200 On Wed, Jun 03, 1998 at 10:08:25PM +0200, dragisha@frodo.ho.com wrote: > is there someone kind knowledgeable and kind to enlighten me on above > mentioned subject? I am searching through various .h's and few doc's without > much success (my code in question still does not work :). Without POSIX.1b signals in the 2.1 kernels, we follow Digial Unix: int handler (int sig, int code, struct sigcontext *ctx) where struct sigcontext is defined in . With POSIX.1b signals, and with SA_SIGINFO set in the sigaction struct, we follow POSIX: int handler (int sig, siginfo_t *, ucontext_t *) where ucontext_t will eventually show up in . > Does gdb know how to interpret program stack inside signal handling > procedure? I think so. > who is responsible for stack cleaning on exit? Um? The kernel, assuming you return from the handler naturally. If you leave through longjmp, it happens that way. All unicies work this way. r~