This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

On 27/06/12 04:42, Terry Guo wrote:
> Hi Jonathan,
> In terms of transferring the compressed xml file from stub to gdb, I
> find there are two methods:
> 1). Use the original binary format and escape special characters like "$", "#" and "}".
> 2). Convert the original binary format into ASCII format, such as the
> binary format(in hex) "01020304" will be converted into string of bytes
> "01020304"(in ASCII format). The size of binary format is 32 bits while
> the size of string format will be 64 bits (without the NULL terminator).
> The problem is that the binary format is much smaller than the original
> xml file, but after convert, we need to use bigger runtime buffer to store
> the string of bytes.

> So which method will you prefer? I think the method 1) is better.

remote_read_qxfer()/remote_write_qxfer() already do (1) so I don't see any
reason we'd want to allow (2).

eCosCentric Limited     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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]