Add support for fixed-point type comparison operators
authorJoel Brobecker <brobecker@adacore.com>
Sun, 15 Nov 2020 08:18:35 +0000 (03:18 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 15 Nov 2020 08:18:35 +0000 (03:18 -0500)
commitb74dbc2093191b10f4963f43ee570b54c9593404
tree32f600bc82951ac58ec59e2142f7140174098208
parent0a12719e51c456a5220f75950ebf9c07457c753b
Add support for fixed-point type comparison operators

This patch adds support for binary comparison operators with
fixed-point type values.

gdb/ChangeLog:

        * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
        handling.
        (value_less): Add fixed-point handling.

gdb/testsuite/ChangeLog:

        * gdb.ada/fixed_cmp.exp: Add -fgnat-encodings=minimal testing.
        * gdb.dwarf2/dw2-fixed-point.c (pck__fp1_var2): New global.
        (main): Add reference to pck__fp1_var2.
        * gdb.dwarf2/dw2-fixed-point.exp: Add comparison operator testing.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/fixed_cmp.exp
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.c
gdb/testsuite/gdb.dwarf2/dw2-fixed-point.exp
gdb/valarith.c