Re: gdb 8.3.1 truncated register in remote g packet

Reinoud Koornstra <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAAA5faHpGYZoUXd=Yh2jXbMyTZLKnUcGgLnLHVJWPMaETfqkcQ@mail.gmail.com>
>
>
> I'm not sure why an arm-targeted gdb would not complain about loading a
> x86-target vmlinux image. That sounds off.
>
> The vmlinux was compiled for arm, the thing that surprised me that the x64
gdb didn't complain about it. The arm gdb didn't complain either which was
logical.


> You could try with an older arm gdb to see if it works fine. If it does
> and the latest version doesn't, then we may need to investigate it.
>
Ok, I'll compile and older gdb for arm and let you know.

>
> I checked the code and the truncation message is a result of the
> debugging stub sending less bytes than GDB expects for the register set.
>
> The interesting thing is that the incompatible gdb for x86-64 was able to
read the message and the gdb for arm wasn't, but i'll try with an older gdb
for arm, but it's weird.


> Just to confirm, does your arm target have floating point registers?
>
Good point, I did assume it has, because in some cases armeabihf was used
to compile, but not in all cases, I'll check whether it is, otherwise I'd
have to recompile gdb without hf.
I'll get the info and let you know, thanks for helping out!

Reinoud.
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.