Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kishore Paul <kishorep@freescale.com>
To: gdb@sourceware.org
Subject: Re: gdb remote serial protocol qC and vCont question
Date: Fri, 08 Dec 2006 02:35:00 -0000	[thread overview]
Message-ID: <4578CF86.1080003@freescale.com> (raw)

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.
 >
 > 
 >


             reply	other threads:[~2006-12-08  2:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-08  2:35 Kishore Paul [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-12-08  0:27 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4578CF86.1080003@freescale.com \
    --to=kishorep@freescale.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox