From: SUZUKI Emi <emi-suzuki@tjsys.co.jp>
To: drow@false.org
Cc: pedro@codesourcery.com, gdb-patches@sourceware.org
Subject: Re: [RFA] thread specific breakpoints and single stepping
Date: Tue, 19 Aug 2008 06:10:00 -0000 [thread overview]
Message-ID: <20080819.150914.01383883.emi-suzuki@tjsys.co.jp> (raw)
In-Reply-To: <20080801.205849.190217198.emi-suzuki@tjsys.co.jp>
Ping?
Or, should I offer reviews separately, with deleting
the call of breakpoint_thread_match and calling
single_step_breakpoint_inserted_here_p?
From: Emi SUZUKI <emi-suzuki at tjsys.co.jp>
Subject: Re: [RFA] thread specific breakpoints and single stepping
Date: Fri, 01 Aug 2008 20:58:49 +0900 (JST)
> Hi Daniel,
>
> thank you for your comment.
>
> From: Daniel Jacobowitz <drow at false.org>
> Subject: Re: [RFA] thread specific breakpoints and single stepping
> Date: Fri, 25 Jul 2008 23:01:33 -0400
>
> > On Wed, Jul 09, 2008 at 09:10:38PM +0900, Emi SUZUKI wrote:
> > > It works better than mine. But while I am concerning about
> > > single-stepping for software watchpoints, I noticed that we should
> > > also check whether a hardware watchpoint is triggered.
> >
> > As this condition gets more complicated, I'm getting worried about
> > keeping it in sync with everything else. Could it be that the logic
> > is wrong - we should determine whether a thread hop is necessary later
> > in the process? It should be just like a breakpoint with a false
> > condition.
>
> Ah, yes. I also feel like that I would eventually implement the same
> procedures to two different places...
>
> I investigated the condition again, and found that all the need for
> thread hopping over a regular breakpoint can determine by calling
> bpstat_stop_status as you suggested: even breakpoint_thread_match is
> not necessary here.
> So I revised the patch to delete it. handle_inferior_event was the
> last caller of breakpoint_thread_match, but I just left it defined.
>
> And I found another problem: when a hardware watchpoint trigger
> occured while doing software single-stepping, the trigger can be
> ignored by a thread hop.
>
> I think it would be fixed by calling
> single_step_breakpoint_inserted_here_p instead of checking
> singlestep_breakpoints_inserted_p, to make sure a thread is really
> trapped by a software single step breakpoint. But I don't have a
> environment where I can reproduce the situation.
> It may occur on a PPC box...?
>
> And I doubt if the testcases are reasonable now, but at least the
> tests fails without a patch, and succeeds with it, on x86-linux-gnu.
>
> Is that OK?
prev parent reply other threads:[~2008-08-19 6:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 2:49 Ems SUZUKI
2008-07-08 20:05 ` Pedro Alves
2008-07-09 12:15 ` Emi SUZUKI
2008-07-26 3:02 ` Daniel Jacobowitz
2008-08-01 12:00 ` Emi SUZUKI
2008-08-19 6:10 ` SUZUKI Emi [this message]
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=20080819.150914.01383883.emi-suzuki@tjsys.co.jp \
--to=emi-suzuki@tjsys.co.jp \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/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