aboutsummaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-01-21 13:45:00 -0700
committerTom Tromey <tom@tromey.com>2019-01-22 20:35:20 -0700
commit6b4d77743349028e471334da3d63df09cddfd820 (patch)
treeef42d0d1dcc225e340104b337c9e5514badc23c6 /gdb/objfiles.h
parent7af7e9b5d8f9dd8f994d59923158d24d77a54bbe (diff)
downloadgdb-6b4d77743349028e471334da3d63df09cddfd820.zip
gdb-6b4d77743349028e471334da3d63df09cddfd820.tar.gz
gdb-6b4d77743349028e471334da3d63df09cddfd820.tar.bz2
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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h4
1 files changed, 2 insertions, 2 deletions
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