This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: break doesn't work with thread on mips
- From: "H . J . Lu" <hjl at lucon dot org>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: GDB <gdb at sources dot redhat dot com>
- Date: Wed, 6 Mar 2002 17:32:24 -0800
- Subject: Re: break doesn't work with thread on mips
- References: <20020306010500.A12030@lucon.org> <3C86C062.3E0F29D2@redhat.com>
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.