From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4174 invoked by alias); 6 Aug 2008 17:38:16 -0000 Received: (qmail 4164 invoked by uid 22791); 6 Aug 2008 17:38:15 -0000 X-Spam-Check-By: sourceware.org Received: from king.tilera.com (HELO king.tilera.com) (72.1.168.226) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Aug 2008 17:37:37 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: "thread", "thread apply" and "step" ? Date: Wed, 06 Aug 2008 17:38:00 -0000 Message-ID: In-Reply-To: <20080805202358.GB14077@caradoc.them.org> References: <20080805202358.GB14077@caradoc.them.org> From: "Rich Wagner" To: "Daniel Jacobowitz" Cc: Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00108.txt.bz2 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]=20 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": >=20 > 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=20 > provide our own RSP interpreter, because the customized version is=20 > used for remote debugging. Would the introduction of RSP change=20 > 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=20 > 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