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: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: yao at codesourcery dot com (Yao Qi)
- Cc: jifl at eCosCentric dot com (Jonathan Larmour), terry dot guo at arm dot com (Terry Guo), gdb-patches at sourceware dot org, tromey at redhat dot com, Richard dot Earnshaw at arm dot com (Richard Earnshaw), palves at redhat dot com ('Pedro Alves'), Joey dot Ye at arm dot com (Joey Ye)
- Date: Tue, 12 Jun 2012 14:56:36 +0200 (CEST)
- Subject: Re: [RFC] Enable GDB handle compressed target.xml returned by GDB stub
Yao Qi wrote:
> 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,
That still makes the result of qXfer:features:read:target.xml dependent
on global state ... Why not simply support compressed files by having
the stub respond to
qXfer:features:read:target.xml.gz
(etc) if it has a compressed file image?
Optionally we might still add a qSupported feature as you describe;
otherwise GDB might just probe whether the stub knows .gz files.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com