From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 20887 invoked from network); 3 Jun 1998 23:45:55 -0000 Received: from mail12.voicenet.com (HELO voicenet.com) (207.103.0.6) by mail2.redhat.com with SMTP; 3 Jun 1998 23:45:55 -0000 Received: (qmail 19065 invoked from network); 3 Jun 1998 23:45:54 -0000 Received: from rotary933-pri.voicenet.com (HELO voicenet.com) (209.71.52.33) by mail12.voicenet.com with SMTP; 3 Jun 1998 23:45:54 -0000 Message-ID: <3575E194.FE8ADC9@voicenet.com> Date: Wed, 03 Jun 1998 19:51:50 -0400 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: stack layout in signal handling proc References: <19980603200825.21992.qmail@frodo.ho.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit stack setup and unwinding is done inside the kernel. on a sig, the current environment is placed on the user stack, and the parameters to the sig handler is placed in registers( the first 6 parms to a routine are place in registers ) although u should only get a signum as a parameter to the sig handler, i beleive that there are 2 more. I think the third parameter is a pointer to the saved area ( as saved by the kern). unwinding is done when ur sig handler does a jsr 0(26) which then executes a small pgm left on the stack by the kernel, which then traps to the kern, wher the kern will fix up the stack and continue from the saved pc address ( while in the sig routine, u can change the return address to be something else ) dragisha@frodo.ho.com wrote: > hi, > > 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 :). > > standard (?) behaviour is to put one integer (signum) some > not-well-defined structure (sigcontext?) whose size is something like 19x8 > bytes. and one integer (code) and then jump to signal handler. Does gdb know > how to interpret program stack inside signal handling procedure? who is > responsible for stack cleaning on exit? > > Thanks in advance, > dragisha > > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com