]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use size_t in gdb_bfd_section_data
authorTom Tromey <tromey@adacore.com>
Fri, 15 Mar 2024 16:22:42 +0000 (10:22 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 15 Mar 2024 18:38:39 +0000 (12:38 -0600)
BFD recently changed bfd_mmap to use size_t, not bfd_size_type.  This
patch updates gdb_bfd_section_data to follow.  Without this patch, if
the two types ever differ, gdb would fail to build.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/gdb_bfd.c

index 4df1e66a388b2d8814a5296a9bd9827b804b5c66..3b1df4897a32ed1450a0d0f89eddb2b3f34b4f68 100644 (file)
@@ -71,9 +71,9 @@ gdb_bfd_unlock (void *ignore)
 struct gdb_bfd_section_data
 {
   /* Size of the data.  */
-  bfd_size_type size;
+  size_t size;
   /* If the data was mmapped, this is the length of the map.  */
-  bfd_size_type map_len;
+  size_t map_len;
   /* The data.  If NULL, the section data has not been read.  */
   void *data;
   /* If the data was mmapped, this is the map address.  */