From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17760 invoked by alias); 7 Mar 2002 03:35:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17573 invoked from network); 7 Mar 2002 03:35:09 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 7 Mar 2002 03:35:09 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16iogN-0003Ug-00; Wed, 06 Mar 2002 22:35:07 -0500 Date: Wed, 06 Mar 2002 19:35:00 -0000 From: Daniel Jacobowitz To: "H . J . Lu" Cc: GDB Subject: Re: break doesn't work with thread on mips Message-ID: <20020306223507.A13326@nevyn.them.org> Mail-Followup-To: "H . J . Lu" , GDB References: <20020306010500.A12030@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020306010500.A12030@lucon.org> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-03/txt/msg00032.txt.bz2 On Wed, Mar 06, 2002 at 01:05:00AM -0800, H . J . Lu wrote: > When I do > > # gdb a.out > (gdb) b main > Breakpoint 1 at 0x400910: file x.c, line 25. > (gdb) r > (gdb) del 1 > (gdb) b main > reading register sp (#29): No such process. > > That is break no longer works after the program runs if thread is used. > Why does gdb want to read sp anyway? It sounds like the old bug: > > http://sources.redhat.com/ml/gdb/2001-11/msg00156.html > > Has it been fixed? Are you using current GDB? Program exited normally. (gdb) del 1 (gdb) b main Breakpoint 2 at 0x4009f4: file twothreads.c, line 16. It works for me. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer