diff options
author | Tom Tromey <tromey@adacore.com> | 2020-12-14 07:35:45 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-12-14 07:35:45 -0700 |
commit | a3bdae4ef826f2b59cc475e530b2a4130185cfac (patch) | |
tree | 18d4c1cd273e34ce9e7766d9a824d58ab14daec3 /gdb/ChangeLog | |
parent | bf6d80378274fa33001f2ca1cef084eabc904178 (diff) | |
download | fsf-binutils-gdb-a3bdae4ef826f2b59cc475e530b2a4130185cfac.zip fsf-binutils-gdb-a3bdae4ef826f2b59cc475e530b2a4130185cfac.tar.gz fsf-binutils-gdb-a3bdae4ef826f2b59cc475e530b2a4130185cfac.tar.bz2 |
Handle fixed-point division by zero
fixed_point_binop did not account for division by zero. This would
lead to gdb getting SIGFPE and subsequently cause some test cases to
hang.
gdb/ChangeLog
2020-12-14 Tom Tromey <tromey@adacore.com>
* valarith.c (fixed_point_binop): Call error on division by zero.
gdb/testsuite/ChangeLog
2020-12-14 Tom Tromey <tromey@adacore.com>
* gdb.dwarf2/dw2-fixed-point.exp: Add test for division by zero.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e6c572d..4ac0acc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-12-14 Tom Tromey <tromey@adacore.com> + + * valarith.c (fixed_point_binop): Call error on division by zero. + 2020-12-13 Tom Tromey <tom@tromey.com> * gdbtypes.c (safe_parse_type): Make argument const. |