From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2173 invoked by alias); 7 Mar 2002 01:29:54 -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 2082 invoked from network); 7 Mar 2002 01:29:53 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 7 Mar 2002 01:29:53 -0000 Received: from redhat.com (notinuse.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id RAA01455; Wed, 6 Mar 2002 17:29:51 -0800 (PST) Message-ID: <3C86C062.3E0F29D2@redhat.com> Date: Wed, 06 Mar 2002 17:29:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2smp i686) X-Accept-Language: en MIME-Version: 1.0 To: "H . J . Lu" CC: GDB Subject: Re: break doesn't work with thread on mips References: <20020306010500.A12030@lucon.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00024.txt.bz2 "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.