Put bcache inside "namespace gdb"
authorChristian Biesinger <cbiesinger@google.com>
Mon, 2 Dec 2019 21:05:54 +0000 (15:05 -0600)
committerChristian Biesinger <cbiesinger@google.com>
Fri, 6 Dec 2019 19:19:02 +0000 (13:19 -0600)
commitdfb65191d80afcc7d8ce79d3d9f92ea2e1ab3fc9
tree37f6f79d20d0a75a26e371b25a3b0e78e2737dc2
parent93e55f0a031b0e677d22aaba00857de902ebe685
Put bcache inside "namespace gdb"

This avoids a conflict with a system "struct bcache" on
Solaris (see e.g.
https://www.isi.edu/nsnam/archive/ns-users/webarch/2001/msg05393.html)

Note that the Solaris conflict for now only surfaces with
--enable-targets=all (which the build bot doesn't use).

gdb/ChangeLog:

2019-12-06  Christian Biesinger  <cbiesinger@google.com>

* bcache.c: Put in namespace gdb.
* bcache.h: Likewise.
* gdbtypes.c (check_types_worklist): Update.
(types_deeply_equal): Update.
* macrotab.c (struct macro_table) <bcache>: Update.
(new_macro_table): Update.
* macrotab.h (struct bcache): Put this forward declaration
inside namespace gdb.
(new_macro_table): Update.
* objfiles.h (struct objfile_per_bfd_storage) <filename_cache>:
Update.
<macro_cache>: Update.
* psymtab.h: (psymtab_storage) <psymbol_cache>: Update.

Change-Id: I843d5e91f7ccb3db6d1099a8214c15a74510256f
gdb/ChangeLog
gdb/bcache.c
gdb/bcache.h
gdb/gdbtypes.c
gdb/macrotab.c
gdb/macrotab.h
gdb/objfiles.h
gdb/psymtab.h