public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: Pedro Alves <palves@redhat.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH 3/3] fix skipping permanent breakpoints
Date: Wed, 12 Nov 2014 00:54:00 -0000	[thread overview]
Message-ID: <8761elb5mi.fsf@codesourcery.com> (raw)
In-Reply-To: <545D2330.4090006@redhat.com> (Pedro Alves's message of "Fri, 7	Nov 2014 19:53:20 +0000")

Pedro Alves <palves@redhat.com> writes:

> If there was already an outermost step-resume breakpoint set (we're
> already skipping a function for "next", and tripped on a permanent
> breakpoint), we shouldn't clear step, as that'll make us miss
> software watchpoints.
>
> We'd avoid this issue if we could have more than one step-resume
> breakpoint installed for the same thread, that isn't allowed for
> good reason.  Thinking again, we have a better breakpoint type
> for this -- a software single-step breakpoint.  We're implementing
> single-step ourselves, so sounds like a perfect fit.  The only
> issue is that a couple paths in infrun.c we need are guarded by 
> gdbarch_software_single_step_p.  Those are optimization guards.
> Given we need that code on hardware step targets too, we just
> remove them...  (I'll reindent in the final version.)

Yeah, it is clever to use single-step breakpoint here.  This version
looks good enough to me, although I've seen some fails on arm.  I don't
triage them at this moment, and we can revisit them later.

-- 
Yao (齐尧)

  reply	other threads:[~2014-11-12  0:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 19:03 [PATCH 0/3] fix " Pedro Alves
2014-11-04 19:03 ` [PATCH 1/3] add a default method for gdbarch_skip_permanent_breakpoint Pedro Alves
2014-11-04 19:03 ` [PATCH 2/3] make "permanent breakpoints" per location and disableable Pedro Alves
2014-11-05  6:37   ` Yao Qi
2014-11-12 10:55     ` Pedro Alves
2014-11-20 16:41       ` [RFA] Always consider infcall breakpoints as non-permanent Joel Brobecker
2014-11-21 11:38         ` Pedro Alves
2014-11-23 10:44           ` Joel Brobecker
2014-11-04 19:03 ` [PATCH 3/3] fix skipping permanent breakpoints Pedro Alves
2014-11-05 12:26   ` Yao Qi
2014-11-07 19:53     ` Pedro Alves
2014-11-12  0:54       ` Yao Qi [this message]
2014-11-12 10:53         ` Pedro Alves

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=8761elb5mi.fsf@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).