X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fpsymtab.h;fp=gdb%2Fpsymtab.h;h=a21e88fd0a083c3e3b6478d0b86b9c52a5e11bad;hb=b596a3c77da2387d7e5a3855717d65ce33bdfb58;hp=57570e3d2f41f4827692d0e37adacb70d0af31eb;hpb=a9342b62885d5119593fa4330924e031e14c6406;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/psymtab.h b/gdb/psymtab.h index 57570e3d2f..a21e88fd0a 100644 --- a/gdb/psymtab.h +++ b/gdb/psymtab.h @@ -71,6 +71,12 @@ public: return OBSTACK_CALLOC (obstack (), number, struct partial_symtab *); } + /* Allocate a new psymtab on the psymtab obstack. The new psymtab + will be linked in to the "psymtabs" list, but otherwise all other + fields will be zero. */ + + struct partial_symtab *allocate_psymtab (); + /* Each objfile points to a linked list of partial symtabs derived from this file, one partial symtab structure for each compilation unit @@ -85,10 +91,6 @@ public: struct addrmap *psymtabs_addrmap = nullptr; - /* List of freed partial symtabs, available for re-use. */ - - struct partial_symtab *free_psymtabs = nullptr; - /* A byte cache where we can stash arbitrary "chunks" of bytes that will not change. */ @@ -102,6 +104,10 @@ public: private: + /* List of freed partial symtabs, available for re-use. */ + + struct partial_symtab *free_psymtabs = nullptr; + /* The obstack where allocations are made. */ struct obstack *m_obstack;