diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 25538378f3..3416b41432 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-03-12 Tom Tromey + + * symfile-mem.c: Update CORE_ADDR size assert. + 2020-03-12 Simon Marchi * selftest.m4: Move to gdbsupport/. diff --git a/gdb/symfile-mem.c b/gdb/symfile-mem.c index a62d0d0c8f..e2d2e43d7f 100644 --- a/gdb/symfile-mem.c +++ b/gdb/symfile-mem.c @@ -57,7 +57,7 @@ /* Verify parameters of target_read_memory_bfd and target_read_memory are compatible. */ -gdb_static_assert (sizeof (CORE_ADDR) == sizeof (bfd_vma)); +gdb_static_assert (sizeof (CORE_ADDR) >= sizeof (bfd_vma)); gdb_static_assert (sizeof (gdb_byte) == sizeof (bfd_byte)); gdb_static_assert (sizeof (ssize_t) <= sizeof (bfd_size_type));