Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: Is stub support for the 's' packet optional or required?
Date: Tue, 18 Feb 2003 20:23:00 -0000	[thread overview]
Message-ID: <20030218202328.GA32467@nevyn.them.org> (raw)
In-Reply-To: <1030218200628.ZM4508@localhost.localdomain>

On Tue, Feb 18, 2003 at 01:06:28PM -0700, Kevin Buettner wrote:
> On Feb 18, 11:51am, Daniel Jacobowitz wrote:
> 
> > > [For remote MIPS/Linux targets, I've found some cases where GDB's
> > > implementation of software singlestep causes some undesirable behavior
> > > when doing the 'stepi' operation through some code that's hit by a number
> > > of threads.  Yet, when software single step is implemented in the debug
> > > agent (and disabled in GDB), the debugging behavior is much more useful
> > > (and sensible).]
> > 
> > Is it just slow, or do different things actually happen?
> 
> Different things happen.  Specifically, GDB was getting a SIGTRAP due to
> one of the other threads hitting the software single step breakpoint. 
> This meant that I was unable to step through the function that I was
> attempting to debug when GDB was setting the software single step
> breakpoints.  When I moved that functionality (software single step)
> to the debug agent, I was able to step through the code of interest
> without any problem.

That's a bug in software single step handling; I bet it shows up now
too, just less often (because of latency changes).  I think it's as
simple as marking the single-step breakpoint thread-specific in the
normal way, but it might be a little more complicated...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-02-18 20:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-17 23:50 Kevin Buettner
2003-02-18  2:39 ` Andrew Cagney
2003-02-18 16:30   ` Kevin Buettner
2003-02-18 16:51     ` Daniel Jacobowitz
2003-02-18 20:06       ` Kevin Buettner
2003-02-18 20:23         ` Daniel Jacobowitz [this message]
2003-02-18 20:42           ` Kevin Buettner
2003-02-18 21:03       ` Andrew Cagney
2003-02-18 21:43         ` Kevin Buettner
2003-02-18 23:43           ` Andrew Cagney

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=20030218202328.GA32467@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=kevinb@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