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
On Wed, Mar 06, 2002 at 10:35:07PM -0500, Daniel Jacobowitz wrote:
> 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 seems fixed in 5.2.
H.J.