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: "Terry Guo" <terry dot guo at arm dot com>
- To: "'Jonathan Larmour'" <jifl at ecoscentric dot com>, "Ulrich Weigand" <uweigand at de dot ibm dot com>
- Cc: "'Pedro Alves'" <palves at redhat dot com>, "Yao Qi" <yao at codesourcery dot com>, <gdb-patches at sourceware dot org>, <tromey at redhat dot com>, "Richard Earnshaw" <Richard dot Earnshaw at arm dot com>, "Joey Ye" <Joey dot Ye at arm dot com>
- Date: Thu, 14 Jun 2012 09:11:50 +0800
- Subject: RE: [RFC] Enable GDB handle compressed target.xml returned by GDB stub
- References: <201206131312.q5DDCUfK028160@d06av02.portsmouth.uk.ibm.com> <4FD899D8.7080903@eCosCentric.com>
> -----Original Message-----
> From: Jonathan Larmour [mailto:jifl@ecoscentric.com]
> Sent: Wednesday, June 13, 2012 9:47 PM
> To: Ulrich Weigand
> Cc: Terry Guo; 'Pedro Alves'; Yao Qi; gdb-patches@sourceware.org;
> tromey@redhat.com; Richard Earnshaw; Joey Ye
> Subject: Re: [RFC] Enable GDB handle compressed target.xml returned by
> GDB stub
>
> On 13/06/12 14:12, Ulrich Weigand wrote:
> > Terry Guo wrote:
> >
> >> Yes, we need to consider xi:includes which means we have to involve
> a
> >> global state.
> >
> > Not necessarily; the way I had intended my suggestion to work was
> that
> > GDB always adds ".gz" (or some other suffix if we actually are not
> > compatible with the .gz file format) to *every* file it fetches, not
> > just to the initial target.xml, but also to other files fetched via
> > xi:include statements ...
> >
> > If the compressed version of the file is not available, GDB would
> > then fall back to the original file name (on a file-by-file basis).
>
> I agree.
>
> This also means that the target can choose whether to return any file
> as
> compressed or not, rather than having to have everything compressed
> from
> then on, even if some XML files might take up more space compressed
> than
> uncompressed, or might need to be generated - but not all files. It's
> getting a bit hypothetical at this point, it's true, but not
> unreasonably so.
>
Thanks Ulrich and Jonathan, I think I get your points. Now the only
remaining question is about the suffix. How about just the .z, like
"qXfer:features:read:target.xml.z" which means the host gdb is trying to
request something compressed by zlib?
BR,
Terry