aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/python-prettyprint.py
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-05-02 11:03:07 -0600
committerTom Tromey <tromey@adacore.com>2025-05-05 07:37:18 -0600
commitf3d834df28734ebc82931808960fe63401127c06 (patch)
tree02931e05b508c6e4d57264c74fc3bfb63512142c /gdb/testsuite/gdb.python/python-prettyprint.py
parent4011eaac9a1fce5c44fcabb12368159b3e899d84 (diff)
downloadbinutils-f3d834df28734ebc82931808960fe63401127c06.zip
binutils-f3d834df28734ebc82931808960fe63401127c06.tar.gz
binutils-f3d834df28734ebc82931808960fe63401127c06.tar.bz2
Fix sign of Ada rational constants
My earlier patch commit 0c03db90 ("Use correct sign in get_mpz") was (very) incorrect. It changed get_mpz to check for a strict sign when examining part of an Ada rational constant. However, in Ada the "delta" for a fixed-point type must be positive, and so the components of the rational representation will be positive. This patch corrects the error. It also renames the get_mpz function, in case anyone is tempted to reuse this code for another purpose. Finally, this pulls over the test from the internal AdaCore test suite that found this issue.
Diffstat (limited to 'gdb/testsuite/gdb.python/python-prettyprint.py')
0 files changed, 0 insertions, 0 deletions