public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Use size_t in gdb_bfd_section_data
@ 2024-03-15 18:39 Tom Tromey
0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2024-03-15 18:39 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=033679b18f895be91b8d94ee9973ebb3d2c0b722
commit 033679b18f895be91b8d94ee9973ebb3d2c0b722
Author: Tom Tromey <tromey@adacore.com>
Date: Fri Mar 15 10:22:42 2024 -0600
Use size_t in gdb_bfd_section_data
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>
Diff:
---
gdb/gdb_bfd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c
index 4df1e66a388..3b1df4897a3 100644
--- a/gdb/gdb_bfd.c
+++ b/gdb/gdb_bfd.c
@@ -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. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-15 18:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-15 18:39 [binutils-gdb] Use size_t in gdb_bfd_section_data Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).