This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: "thread", "thread apply" and "step" ?


Thanks Daniel:  I tried my experiments using GDB 6.8 and it does handle
the thread/step combinations sensibly.  To be specific, both:

    thread X
    step

and:

    thread apply X step

stepped thread X, even though the previous breakpoint-hit was in a
different thread than X.

-- Rich



-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org] 
Sent: Tuesday, August 05, 2008 4:24 PM
To: Rich Wagner
Cc: gdb@sourceware.org
Subject: Re: "thread", "thread apply" and "step" ?

On Tue, Aug 05, 2008 at 04:11:14PM -0400, Rich Wagner wrote:
> I'm using "gdb --version":
> 
>             GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)

Could you try 6.8, or even better a CVS snapshot, and see if it still
does this?  That release is several years old.

I think GDB does step the correct thread nowadays.

> P.S.  Where I work, we also use a customized version of gdb where we 
> provide our own RSP interpreter, because the customized version is 
> used for remote debugging.  Would the introduction of RSP change 
> things as they relate to threads and stepping?  I'm assuming the
"official"
> GDB-spec-based answers would necessarily apply to an RSP-based debug 
> session, but I mention RSP in case it affects things.

If you implement vCont, the serial protocol should work just as well.

--
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]