Re: BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-07 Thread Oleg Nesterov
On 10/08, Pedro Alves wrote: > > On Thursday 07 October 2010 23:59:22, Oleg Nesterov wrote: > > Hmm. Not sure I understand this... gdb could issue a series of Hc+c > > after s to do "step a thread and resume all others". > > > > But this doesn't matter. Obviously vCont is better and more handy. > >

Re: BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-07 Thread Pedro Alves
On Thursday 07 October 2010 23:59:22, Oleg Nesterov wrote: > Hmm. Not sure I understand this... gdb could issue a series of Hc+c > after s to do "step a thread and resume all others". > > But this doesn't matter. Obviously vCont is better and more handy. Not in all-stop mode. GDB can not send an

Re: BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-07 Thread Oleg Nesterov
On 10/06, Pedro Alves wrote: > > On Wednesday 06 October 2010 18:19:53, Oleg Nesterov wrote: > > > > Cough. Previously I was told here (on arc...@sourceware.org) that > > Hc + s/c is enough and I shouldn't worry about vCont;s/c ;) > > vCont was introduced because with only 'Hc', 's' and 'c', there'

Re: BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-06 Thread Pedro Alves
On Wednesday 06 October 2010 18:19:53, Oleg Nesterov wrote: > On 10/05, Pedro Alves wrote: > > "The stub must support @samp{vCont} if it reports support for > > multiprocess extensions (@pxref{multiprocess extensions})." > > Cough. Previously I was told here (on arc...@sourceware.org) that > Hc +

Re: BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-06 Thread Oleg Nesterov
On 10/05, Pedro Alves wrote: > (reordered) > On Tuesday 05 October 2010 18:27:29, Oleg Nesterov wrote: > > > So, I strongly believe gdb is buggy and should be fixed. > > Fix your stub to implement vCont;s/c(/S/C). First of all, I confirm that when I added the (incomplete right now) support for v

Re: BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-05 Thread Pedro Alves
On Tuesday 05 October 2010 19:30:38, Pedro Alves wrote: > Now, given this, I won't be surprised if you're seeing races > with ->s, <-OK, ->vCont sequences, as GDB may well be thinking > that the "OK" is a reply to the vCont. > I meant ->s, <-OK, ->vStopped sequences. -- Pedro Alves

Re: BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-05 Thread Pedro Alves
On Tuesday 05 October 2010 18:27:29, Oleg Nesterov wrote: > The more or less "typical" transcript is: > > [... snip ...] > => s This is already wrong. "The stub must support @samp{vCont} if it reports support for multiprocess extensions (@pxref{multiprocess extensions})." The stub

BUG: gdb && notification packets (Was: gdbstub initial code, v12)

2010-10-05 Thread Oleg Nesterov
On 10/04, Oleg Nesterov wrote: > > While trying to understand what does this mean, I hit another bug > in ugdb. No, /usr/bin/gdb is buggy. > A multithreaded tracee can "hang" if gdb simulates > watchpoints with single-steps + mem-fetch/compare. It doesn't, but gdb "forgets" about the pending "St