From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Support exec tracing on GNU/Linux and HP-UX
Date: Tue, 29 Jan 2008 17:09:00 -0000 [thread overview]
Message-ID: <20080129170835.GC2815@caradoc.them.org> (raw)
In-Reply-To: <20071221153039.GO6154@adacore.com>
On Fri, Dec 21, 2007 at 07:30:39PM +0400, Joel Brobecker wrote:
> You may not remember as this was a couple of months ago (already!),
> but we had determined at the time that we could not easily disable
> exec events during inferior startup on HP/UX. So we decided to find
> a way to treat these exec events as SIGTRAPs.
>
> Here is a possible solution that does not involve the use of a global.
> It involves the addition of a new parameter to wait_for_inferior. Most
> of the time, we will set it so that events are not handled as is. But
> during the inferior startup sequence, we tell it to translate EXEC
> events into SIGTRAPs. I should probably add a comment at the beginning
> of wait_for_inferior explaining the intent of that new parameter -
> I will do that if you like the idea.
>
> 2007-12-21 Joel Brobecker <brobecker@adacore.com>
>
> * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
> and use it.
> (proceed, start_remote): Update call to wait_for_inferior.
> * inferior.h (wait_for_inferior): Update declaration.
> * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
> solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
> * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
> TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
>
> Tested on hppa-hpux, no regression.
Hi Joel,
This looks good to me - would you add that comment and check it in?
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-01-29 17:08 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-19 19:49 Daniel Jacobowitz
2007-10-22 6:01 ` Joel Brobecker
2007-10-22 12:09 ` Daniel Jacobowitz
2007-10-22 18:56 ` Joel Brobecker
2007-10-22 19:30 ` Joel Brobecker
2007-10-22 20:01 ` Daniel Jacobowitz
2007-12-21 16:04 ` Joel Brobecker
2007-12-21 16:13 ` Joel Brobecker
2008-01-29 17:09 ` Daniel Jacobowitz [this message]
2008-01-29 21:26 ` Joel Brobecker
2008-01-29 21:48 ` Daniel Jacobowitz
2008-01-29 21:48 ` Joel Brobecker
2008-01-29 22:17 ` Daniel Jacobowitz
2008-01-29 22:54 ` Daniel Jacobowitz
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=20080129170835.GC2815@caradoc.them.org \
--to=drow@false.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.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