Specifying target endianness via Remote Serial Protocol

Omer via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CALN5k-NPKjJLs8ijrLFw8Gh+d0TA0_=XY0PLWz6sN5op1hp+fw@mail.gmail.com>
Hi,

While writing my own gdb stub, I noticed that there is no way to specify
what endianness the target is using (I guess the logical place for that
would be in the target.xml file).
One can use "set endian" manually to fix that, but when debugging an ARM
BE8 target, there is no way to specify that the code is little endian
(currently byte_order_for_code is initialized to little only when loading a
BE8 elf).
Shouldn't there be an additional field for target XML tag to specify that?

Omer.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.