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: Michael Snyder <msnyder at redhat dot com>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: GDB <gdb at sources dot redhat dot com>
- Date: Wed, 06 Mar 2002 17:20:34 -0800
- Subject: Re: break doesn't work with thread on mips
- Organization: Red Hat, Inc.
- References: <20020306010500.A12030@lucon.org>
"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.