Re: [RFC] Enable GDB handle compressed target.xml returned by GDB stub

Yao Qi
2012-06-12T12:44:19Z

On 06/11/2012 10:42 PM, Jonathan Larmour wrote:
> It may want some variation on the qSupported "qXfer:features:read"
> response instead. I'll defer to GDB maintainers in the choice, but perhaps
> qXfer:features:zread ?

I'd like GDB keeps using qXfer:features:read:target.xml to fetch the xml
file, even it is compressed. We need some changes on qSupported in both
sides,

1. GDB sends qSupported with new feature like
"$qSupported:multiprocess+;qRelocInsn;compressedXML+", means GDB
understands compressed xml,
2. Stub replies with ";compressedXML+" to GDB,
3. GDB sends "$qXfer:features:read:target.xml" as usual,
4. Stub replies with compressed xml.

If "compressedXML" doesn't appear in either #1 or #2, send target xml in
plain text as usual.

--
Yao (é½å°§)