This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use "struct bcache" in objfiles.h
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 23 Jan 2019 03:51:03 -0000
- Subject: [binutils-gdb] Use "struct bcache" in objfiles.h
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6b4d77743349028e471334da3d63df09cddfd820
commit 6b4d77743349028e471334da3d63df09cddfd820
Author: Tom Tromey <tom@tromey.com>
Date: Mon Jan 21 13:45:00 2019 -0700
Use "struct bcache" in objfiles.h
If objfiles.h is included after bcache.h, then the "bcache" function
will cause a compiler error because "bcache" will be seen as a
function, not a type. Fix this error by using the "struct" keyword.
gdb/ChangeLog
2019-01-22 Tom Tromey <tom@tromey.com>
* objfiles.h (struct objfile_per_bfd_storage): Use "struct"
keyword for bcache.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/objfiles.h | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9c1ea0b..02cca05 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2019-01-22 Tom Tromey <tom@tromey.com>
+ * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
+ keyword for bcache.
+
+2019-01-22 Tom Tromey <tom@tromey.com>
+
* compile/compile-cplus-types.c: Remove a comment by #include.
2019-01-22 Tom Tromey <tom@tromey.com>
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 5f106d9..a10781f 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -240,11 +240,11 @@ struct objfile_per_bfd_storage
/* Byte cache for file names. */
- bcache *filename_cache = NULL;
+ struct bcache *filename_cache = NULL;
/* Byte cache for macros. */
- bcache *macro_cache = NULL;
+ struct bcache *macro_cache = NULL;
/* The gdbarch associated with the BFD. Note that this gdbarch is
determined solely from BFD information, without looking at target