aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2020-11-15 03:18:35 -0500
committerJoel Brobecker <brobecker@adacore.com>2020-11-15 03:18:35 -0500
commitb74dbc2093191b10f4963f43ee570b54c9593404 (patch)
tree32f600bc82951ac58ec59e2142f7140174098208 /gdb/testsuite/gdb.ada
parent0a12719e51c456a5220f75950ebf9c07457c753b (diff)
downloadgdb-b74dbc2093191b10f4963f43ee570b54c9593404.zip
gdb-b74dbc2093191b10f4963f43ee570b54c9593404.tar.gz
gdb-b74dbc2093191b10f4963f43ee570b54c9593404.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.ada')
-rw-r--r--gdb/testsuite/gdb.ada/fixed_cmp.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.ada/fixed_cmp.exp b/gdb/testsuite/gdb.ada/fixed_cmp.exp
index cfdbb1c..e2c88b8 100644
--- a/gdb/testsuite/gdb.ada/fixed_cmp.exp
+++ b/gdb/testsuite/gdb.ada/fixed_cmp.exp
@@ -19,7 +19,7 @@ if { [skip_ada_tests] } { return -1 }
standard_ada_testfile fixed
-foreach_with_prefix gnat_encodings {all} {
+foreach_with_prefix gnat_encodings {all minimal} {
set flags [list debug additional_flags=-fgnat-encodings=$gnat_encodings]
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != "" } {