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

Jonathan Larmour jifl@eCosCentric.com
Tue Jun 12 16:24:00 GMT 2012


On 12/06/12 13:56, Ulrich Weigand wrote:
> Yao Qi wrote:
>> 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.

For what it's worth, that sounds appealing to me. Strictly Terry's
proposal wasn't a .true gz file but a gzipped stream. But that's easy to
avoid if we just choose to use the name convention target.xmlz or suchlike.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine



More information about the Gdb-patches mailing list