]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/gdbserver/ChangeLog
x86 LynxOS-178: Adjust floating-point context structure
authorJoel Brobecker <brobecker@adacore.com>
Thu, 10 May 2018 17:01:39 +0000 (12:01 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Thu, 10 May 2018 17:01:39 +0000 (13:01 -0400)
commit55271bf969c2c09b98aecd97b36170fbf76c3fc4
tree3e47af8afd8c7b550f58bc8a98165bf9114e8ecf
parent1a34f210bb9389e58d93caf4384800934fc7113a
x86 LynxOS-178: Adjust floating-point context structure

The floating point context structure on x86 LynxOS-178 is not
the same as on LynxOS 5.x. As a consequence, trying to print
the return value of a function returning a float, for instance,
yields incorrect results.

This patch fixes the issue by providing an updated definition
for LynxOS-178 (the reason why we cannot access the actual definition
provided by the system still remains true).

gdb/gdbserver/ChangeLog:

        * lynx-i386-low.c (LYNXOS_178): New macro.
        [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
        the layout on LynxOS-178.
        (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
        handle floating point registers that are not supported by
        LynxOS-178.
gdb/gdbserver/ChangeLog
gdb/gdbserver/lynx-i386-low.c