aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2020-12-05 03:03:48 -0500
committerJoel Brobecker <brobecker@adacore.com>2020-12-05 03:03:48 -0500
commit3c7ba803ac3fbf2b3d7960c14867844238029d55 (patch)
treef8385120746722df4ada0e3a27ba362ce13e8873 /bfd
parent7e45e7a9ab38ee904ca62ed9934e933fdb1d6e9c (diff)
downloadgdb-3c7ba803ac3fbf2b3d7960c14867844238029d55.zip
gdb-3c7ba803ac3fbf2b3d7960c14867844238029d55.tar.gz
gdb-3c7ba803ac3fbf2b3d7960c14867844238029d55.tar.bz2
Fix TARGET_CHAR_BIT/HOST_CHAR_BIT confusion in gmp-utils.c
In a couple of gdb_mpz methods, we are computing the number of bits in a gdb::array_view of gdb_byte. Since gdb_byte is defined using a host-side type (see common-types.h), the number of bits in a gdb_byte should be HOST_CHAR_BIT, not TARGET_CHAR_BIT. gdb/ChangeLog: * gmp-utils.c (gdb_mpz::read): Use HOST_CHAR_BIT instead of TARGET_CHAR_BIT. (gdb_mpz::write): Likewise.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions