From: Tom Tromey Date: Mon, 21 Jan 2019 20:45:00 +0000 (-0700) Subject: Use "struct bcache" in objfiles.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b4d77743349028e471334da3d63df09cddfd820;p=binutils-gdb.git 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 * objfiles.h (struct objfile_per_bfd_storage): Use "struct" keyword for bcache. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9c1ea0b82e0..02cca05a677 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-01-22 Tom Tromey + + * objfiles.h (struct objfile_per_bfd_storage): Use "struct" + keyword for bcache. + 2019-01-22 Tom Tromey * compile/compile-cplus-types.c: Remove a comment by #include. diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 5f106d98358..a10781f598e 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