* gdb remote serial protocol qC and vCont question @ 2006-12-08 0:27 Kishore Paul 2006-12-08 1:32 ` Daniel Jacobowitz 0 siblings, 1 reply; 5+ messages in thread From: Kishore Paul @ 2006-12-08 0:27 UTC (permalink / raw) To: gdb Hi, Is there a way to communicate thread switching using a reply packet in gdb's remote serial protocol. I notice the qC packet sent only at the begining and so later when a thread switch happens in the target a vCont packet is sent with the old active thread Id. Thanks, Kishore ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gdb remote serial protocol qC and vCont question 2006-12-08 0:27 gdb remote serial protocol qC and vCont question Kishore Paul @ 2006-12-08 1:32 ` Daniel Jacobowitz [not found] ` <4578CDF7.2000909@freescale.com> 0 siblings, 1 reply; 5+ messages in thread From: Daniel Jacobowitz @ 2006-12-08 1:32 UTC (permalink / raw) To: Kishore Paul; +Cc: gdb On Thu, Dec 07, 2006 at 06:27:25PM -0600, Kishore Paul wrote: > Hi, > > Is there a way to communicate thread switching using a reply packet in > gdb's remote serial protocol. > > I notice the qC packet sent only at the begining and so later when a > thread switch happens in the target a vCont packet is sent with the old > active thread Id. GDB is supposed to send vCont for the correct thread; if it doesn't, something's wrong on the GDB side. -- Daniel Jacobowitz CodeSourcery ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <4578CDF7.2000909@freescale.com>]
* Re: gdb remote serial protocol qC and vCont question [not found] ` <4578CDF7.2000909@freescale.com> @ 2006-12-08 3:29 ` Daniel Jacobowitz 2006-12-08 22:00 ` Kishore Paul 0 siblings, 1 reply; 5+ messages in thread From: Daniel Jacobowitz @ 2006-12-08 3:29 UTC (permalink / raw) To: Kishore Paul; +Cc: gdb On Thu, Dec 07, 2006 at 08:29:11PM -0600, Kishore Paul wrote: > Received packet: [vCont;s:1;c] -------------> (1) > .... > < thread switch happens to 2 > > .... > <receives S05> > Received packet: [vCont;s:1;c] -------------> (2)* > > > Between the first and second vCont packet the thread-id changes from 1 > to 2 but this information is somehow not getting communicated to gdb. > The intent of the second vCont is to do a step for thread 2 and c for > all other threads. How do you expect GDB to know this if you aren't telling it? It can't guess! The thing you're missing is the 'T' response and the "thread:" item in it. -- Daniel Jacobowitz CodeSourcery ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gdb remote serial protocol qC and vCont question 2006-12-08 3:29 ` Daniel Jacobowitz @ 2006-12-08 22:00 ` Kishore Paul 0 siblings, 0 replies; 5+ messages in thread From: Kishore Paul @ 2006-12-08 22:00 UTC (permalink / raw) To: Daniel Jacobowitz; +Cc: gdb Daniel, The T packet works and I am seeing the threads switching now. Thanks, Kishore Daniel Jacobowitz wrote: >On Thu, Dec 07, 2006 at 08:29:11PM -0600, Kishore Paul wrote: > > >>Received packet: [vCont;s:1;c] -------------> (1) >>.... >> < thread switch happens to 2 > >>.... >><receives S05> >>Received packet: [vCont;s:1;c] -------------> (2)* >> >> >>Between the first and second vCont packet the thread-id changes from 1 >>to 2 but this information is somehow not getting communicated to gdb. >>The intent of the second vCont is to do a step for thread 2 and c for >>all other threads. >> >> > >How do you expect GDB to know this if you aren't telling it? It can't >guess! > >The thing you're missing is the 'T' response and the "thread:" item in >it. > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gdb remote serial protocol qC and vCont question @ 2006-12-08 2:35 Kishore Paul 0 siblings, 0 replies; 5+ messages in thread From: Kishore Paul @ 2006-12-08 2:35 UTC (permalink / raw) To: gdb Daniel, I am using an RSP stub (like gdbserver) built with our ISS model so I am not sure whether I am providing the right information to gdb for the thread switching. The RSP transactions look something like: Received packet: [qC] Sending packet: [QC1] Received packet: [qfThreadInfo] Sending packet: [m1,2,3] Received packet: [qsThreadInfo] Sending packet: [l] .... Received packet: [vCont;s:1;c] -------------> (1) .... < thread switch happens to 2 > .... <receives S05> Received packet: [vCont;s:1;c] -------------> (2) Between the first and second vCont packet the thread-id changes from 1 to 2 but this information is somehow not getting communicated to gdb. The intent of the second vCont is to do a step for thread 2 and c for all other threads. Really appreciate your help. Thanks, Kishore Daniel Jacobowitz wrote: >On Thu, Dec 07, 2006 at 06:27:25PM -0600, Kishore Paul wrote: > > >>Hi, >> >>Is there a way to communicate thread switching using a reply packet in >>gdb's remote serial protocol. >> >>I notice the qC packet sent only at the begining and so later when a >>thread switch happens in the target a vCont packet is sent with the old >>active thread Id. >> >> > >GDB is supposed to send vCont for the correct thread; if it doesn't, >something's wrong on the GDB side. > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-12-08 22:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-08 0:27 gdb remote serial protocol qC and vCont question Kishore Paul
2006-12-08 1:32 ` Daniel Jacobowitz
[not found] ` <4578CDF7.2000909@freescale.com>
2006-12-08 3:29 ` Daniel Jacobowitz
2006-12-08 22:00 ` Kishore Paul
2006-12-08 2:35 Kishore Paul
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox