1 Jul 2008 03:42
remote protocol target byte ordering question
Ananth Sowda <asowda <at> gmail.com>
2008-07-01 01:42:09 GMT
2008-07-01 01:42:09 GMT
I know that GDB remote protocol uses target byte ordering for multi-bytes values as in register set content, memory address or values to be written to the target memory. I don't see where in the GDB code this swapping from host to target byte order is done. Can someone point to the right segment of the code? Thanks for any pointers.
>
> >
> > As I said previously, I was debugging this program (ARM code) for some time
> > previously.
>
> But you've certainly upgraded your GDB recently (I can tell by your log
> output on your original post). As I said, this is a recently introduced
> regression.
>
> I've was able to reproduce the problem, by connecting to a local
> gdbserver with a GDB with all thread support hacked out in the
> remote target.
>
> > BTW, I've just realized that command-line interface does not use mi_*
> > interface (neither mi_on_resume nor mi_execute_command were hit) and this
> > is most likely the reason why I cannot reproduce this test case with CLI.
> >
>
> Yes, that's exactly the reason.
>
> Anyway, I've posted a patch that fixes the issue in your case
RSS Feed