aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2018-09-23 10:12:29 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2018-09-23 10:12:30 -0400
commit0c0a40e0abb9f1a584330a1911ad06b3686e5361 (patch)
tree8681327822223f0c97f9328c0376b84a438d11db /gdb/i386-linux-tdep.c
parent948f29603949cca8ccf581e0a09c08576d52c7b2 (diff)
downloadfsf-binutils-gdb-0c0a40e0abb9f1a584330a1911ad06b3686e5361.zip
fsf-binutils-gdb-0c0a40e0abb9f1a584330a1911ad06b3686e5361.tar.gz
fsf-binutils-gdb-0c0a40e0abb9f1a584330a1911ad06b3686e5361.tar.bz2
Fix build error in aarch64-linux-tdep.c on macOS
When building with --enable-targets=all on macOS, I get this error: CXX aarch64-linux-tdep.o /Users/simark/src/binutils-gdb/gdb/aarch64-linux-tdep.c:328:7: error: no matching function for call to 'store_integer' store_integer ((gdb_byte *)&vg_target, sizeof (uint64_t), byte_order, ^~~~~~~~~~~~~ /Users/simark/src/binutils-gdb/gdb/defs.h:556:13: note: candidate template ignored: requirement 'Or<is_same<unsigned long long, long>, is_same<unsigned long long, unsigned long> >::value' was not satisfied [with T = unsigned long long] extern void store_integer (gdb_byte *addr, int len, enum bfd_endian byte_order, ^ I believe it's because uint64_t is defined as "unsigned long long" on macOS, even though "unsigned long" is also 64 bits. Other 64-bits platforms define uint64_t as "unsigned long". This makes the type of the argument to store_integer (unsigned long long) not match the requirement that it must be the same as ULONGEST, which is unsigned long. Fix it by changing the type of the vl variable to be ULONGEST, which is what extract_unsigned_integer returns anyway. gdb/ChangeLog: * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type of vl to ULONGEST.
Diffstat (limited to 'gdb/i386-linux-tdep.c')
0 files changed, 0 insertions, 0 deletions