This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: break doesn't work with thread on mips


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]