aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-disasm.c
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2024-06-11 20:32:59 +0200
committerHannes Domani <ssbssa@yahoo.de>2024-06-11 20:36:34 +0200
commit50f4e9c3c3e5115b346f361de1374837c990f14b (patch)
tree002a6fabba8f02b8ea3c5ae11914e06d301d77cb /gdb/python/py-disasm.c
parentd17731525424349d7e63b517acf9f45114979fbb (diff)
downloadbinutils-50f4e9c3c3e5115b346f361de1374837c990f14b.zip
binutils-50f4e9c3c3e5115b346f361de1374837c990f14b.tar.gz
binutils-50f4e9c3c3e5115b346f361de1374837c990f14b.tar.bz2
Fix too-large or negative right shift of negative numbers
As seen in these test failures: print -1 >> -1 warning: right shift count is negative $N = 0 (gdb) FAIL: gdb.base/bitshift.exp: lang=c: neg lhs/rhs: print -1 >> -1 print -4 >> -2 warning: right shift count is negative $N = 0 (gdb) FAIL: gdb.base/bitshift.exp: lang=c: neg lhs/rhs: print -4 >> -2 Fixed by restoring the logic from before the switch to gmp. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-disasm.c')
0 files changed, 0 insertions, 0 deletions