From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5364 invoked by alias); 7 Mar 2002 01:32:29 -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 5261 invoked from network); 7 Mar 2002 01:32:25 -0000 Received: from unknown (HELO rwcrmhc52.attbi.com) (216.148.227.88) by sources.redhat.com with SMTP; 7 Mar 2002 01:32:25 -0000 Received: from ocean.lucon.org ([12.234.143.38]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020307013224.FFF1147.rwcrmhc52.attbi.com@ocean.lucon.org>; Thu, 7 Mar 2002 01:32:24 +0000 Received: by ocean.lucon.org (Postfix, from userid 1000) id 47430125C3; Wed, 6 Mar 2002 17:32:24 -0800 (PST) Date: Wed, 06 Mar 2002 17:32:00 -0000 From: "H . J . Lu" To: Michael Snyder Cc: GDB Subject: Re: break doesn't work with thread on mips Message-ID: <20020306173224.C26643@lucon.org> References: <20020306010500.A12030@lucon.org> <3C86C062.3E0F29D2@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C86C062.3E0F29D2@redhat.com>; from msnyder@redhat.com on Wed, Mar 06, 2002 at 05:20:34PM -0800 X-SW-Source: 2002-03/txt/msg00025.txt.bz2 On Wed, Mar 06, 2002 at 05:20:34PM -0800, Michael Snyder wrote: > "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? > > Probably because it has to analyze the prologue of main, > to place the breakpoint after the prologue. Many prologue > analyzers will poke around at the stack. Why does gdb do that? The program has stopped. H.J.