mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-31 01:45:52 +08:00
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
This commit is contained in:
@ -40,7 +40,7 @@ struct macro_table
|
||||
|
||||
/* The bcache we should use to hold macro names, argument names, and
|
||||
definitions, or zero if we should use xmalloc. */
|
||||
struct bcache *bcache;
|
||||
gdb::bcache *bcache;
|
||||
|
||||
/* The main source file for this compilation unit --- the one whose
|
||||
name was given to the compiler. This is the root of the
|
||||
@ -1025,7 +1025,7 @@ macro_for_each_in_scope (struct macro_source_file *file, int line,
|
||||
|
||||
|
||||
struct macro_table *
|
||||
new_macro_table (struct obstack *obstack, struct bcache *b,
|
||||
new_macro_table (struct obstack *obstack, gdb::bcache *b,
|
||||
struct compunit_symtab *cust)
|
||||
{
|
||||
struct macro_table *t;
|
||||
|
Reference in New Issue
Block a user