diff options
author | Joel Brobecker <brobecker@adacore.com> | 2020-12-05 03:03:48 -0500 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2020-12-05 03:03:48 -0500 |
commit | 3c7ba803ac3fbf2b3d7960c14867844238029d55 (patch) | |
tree | f8385120746722df4ada0e3a27ba362ce13e8873 /cpu/mep.opc | |
parent | 7e45e7a9ab38ee904ca62ed9934e933fdb1d6e9c (diff) | |
download | gdb-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 'cpu/mep.opc')
0 files changed, 0 insertions, 0 deletions