From: Richard Henderson <rth@dot.cygnus.com>
To: dragisha@frodo.ho.com, axp-list@redhat.com
Subject: Re: stack layout in signal handling proc
Date: Thu, 4 Jun 1998 23:48:26 -0700 [thread overview]
Message-ID: <19980604234826.B2170@dot.cygnus.com> (raw)
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 <asm/sigcontext.h>.
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 <ucontext.h>.
> 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~
prev parent reply other threads:[~1998-06-05 6:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-03 20:08 stack layout in signal handling proc dragisha
1998-06-03 23:51 ` Uncle George
1998-06-05 6:48 ` Richard Henderson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox