This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Enable GDB handle compressed target.xml returned by GDB stub
- From: Yao Qi <yao at codesourcery dot com>
- To: Jonathan Larmour <jifl at eCosCentric dot com>
- Cc: Terry Guo <terry dot guo at arm dot com>, <gdb-patches at sourceware dot org>, <tromey at redhat dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, 'Pedro Alves' <palves at redhat dot com>, Joey Ye <Joey dot Ye at arm dot com>, <uweigand at de dot ibm dot com>
- Date: Tue, 12 Jun 2012 20:43:35 +0800
- Subject: Re: [RFC] Enable GDB handle compressed target.xml returned by GDB stub
- References: <000601cd47a4$33bf34f0$9b3d9ed0$@guo@arm.com> <4FD603E8.1050000@eCosCentric.com>
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 (éå)