General Query Packets: custom vendor packets

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

General Query Packets: custom vendor packets

Anmol P. Paralkar
Hello,

 Per, E.4 General Query Packets in the GDB User Manual:

 "The names of custom vendor packets should use a company prefix, in lower case,
  followed by a period. For example, packets designed at the Acme Corporation
  might begin with `qacme.foo' (for querying foos) or `Qacme.bar' (for setting bars)."

 How does one get GDB to send a Qacme.bar-packet on the RSP? We need to be able to send
 such a set packet - after doing a 'target remote' and before GDB sends a 'g'-packet.

Thanks,
Anmol P. Paralkar

Reply | Threaded
Open this post in threaded view
|

Re: General Query Packets: custom vendor packets

Daniel Jacobowitz-2
On Mon, Sep 24, 2012 at 3:51 PM, Paralkar Anmol-B07584
<[hidden email]> wrote:

> Hello,
>
>  Per, E.4 General Query Packets in the GDB User Manual:
>
>  "The names of custom vendor packets should use a company prefix, in lower case,
>   followed by a period. For example, packets designed at the Acme Corporation
>   might begin with `qacme.foo' (for querying foos) or `Qacme.bar' (for setting bars)."
>
>  How does one get GDB to send a Qacme.bar-packet on the RSP? We need to be able to send
>  such a set packet - after doing a 'target remote' and before GDB sends a 'g'-packet.

Usually, you do it by patching GDB.  You could also try the "maint
packet" command from your GDB scripts:
http://sourceware.org/gdb/onlinedocs/gdb/Maintenance-Commands.html

--
Thanks,
Daniel
Reply | Threaded
Open this post in threaded view
|

Re: General Query Packets: custom vendor packets

Pedro Alves-7
In reply to this post by Anmol P. Paralkar
On 09/24/2012 08:51 PM, Paralkar Anmol-B07584 wrote:
> Hello,
>
>  Per, E.4 General Query Packets in the GDB User Manual:
>
>  "The names of custom vendor packets should use a company prefix, in lower case,
>   followed by a period. For example, packets designed at the Acme Corporation
>   might begin with `qacme.foo' (for querying foos) or `Qacme.bar' (for setting bars)."

This is just a naming convention to avoid conflicts with future official packets.

>  How does one get GDB to send a Qacme.bar-packet on the RSP? We need to be able to send
>  such a set packet - after doing a 'target remote' and before GDB sends a 'g'-packet.

You'll have to patch GDB.

--
Pedro Alves