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

Ulrich Weigand
2012-06-12T12:57:00Z

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