From: Paul Mackerras <paulus@samba.org>
To: Corey Minyard <minyard@acm.org>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: Change to allow signal handlers to set SE and BE bits.
Date: Sat, 30 Aug 2003 10:29:10 +1000 (EST) [thread overview]
Message-ID: <16207.61398.896235.148724@nanango.paulus.ozlabs.org> (raw)
In-Reply-To: <3F4FB0F3.9090906@acm.org>
Corey Minyard writes:
> I have a debugger that runs in an application that requires access to
> the SE and BE bits. The following patch adds that capability to
> 2.4.21-ben1. I have tested this, and gdb still seems to correctly step
> out of signal handlers, and it seems to work for 4xx. Does this look ok?
Can you explain a bit more about why the process needs to be able to
single-step itself rather than having another process single-step it
using ptrace?
It looks like you're using the old trick of sending yourself a signal
and then modifying the register values stored on the stack. That
seems like a bit of a kludge to me. If there is some reason why you
would always naturally be in a signal handler anyway at the point
where you want to single-step, then maybe it is less of a kludge.
Does your in-process debugger run entirely inside signal handlers?
(And if it does, how do you cope with the fact that there are lots of
C library functions you can't use inside signal handlers, including
printf?)
Also... would this have any impact on how you expect setcontext() to
behave? Passing the 3rd argument of a "real-time" signal handler to
setcontext is supposed to have the same effect as returning from the
handler.
Paul.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-08-30 0:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-29 20:00 Change to allow signal handlers to set SE and BE bits Corey Minyard
2003-08-29 20:18 ` Matt Porter
2003-09-04 14:16 ` Corey Minyard
2003-09-05 15:23 ` Corey Minyard
2003-09-09 19:19 ` Corey Minyard
2003-09-09 19:39 ` Benjamin Herrenschmidt
2003-09-09 21:34 ` Corey Minyard
2003-09-10 1:37 ` Paul Mackerras
2003-09-10 2:47 ` Corey Minyard
2003-08-30 0:29 ` Paul Mackerras [this message]
2003-09-01 20:46 ` Corey Minyard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16207.61398.896235.148724@nanango.paulus.ozlabs.org \
--to=paulus@samba.org \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=minyard@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).