Add include guard to filename-seen-cache.h
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Mar 2018 19:31:10 +0000 (15:31 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 26 Mar 2018 19:31:11 +0000 (15:31 -0400)
While moving things around, I stumbled on filename_seen_cache being
re-defined, because filename-seen-cache.h doesn't have an include guard.

gdb/ChangeLog:

* filename-seen-cache.h: Add include guard.

gdb/ChangeLog
gdb/filename-seen-cache.h

index 6de315081feb50dabb061ebfee4269e785f73dc8..7952dee95c257e64e7e48c8f443ccd4a8583f41e 100644 (file)
@@ -1,3 +1,7 @@
+2018-03-26  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * filename-seen-cache.h: Add include guard.
+
 2018-03-26  Keith Seitz  <keiths@redhat.com>
 
        * symfile.c (place_section): Remove "struct" from section_addr_info
index a644b1a80871200358f04fc81b1d76fb61c549d3..6c8970090f56123e5d5b08834b86e750cbfc15b8 100644 (file)
@@ -17,6 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef FILENAME_SEEN_CACHE_H
+#define FILENAME_SEEN_CACHE_H
+
 #include "defs.h"
 #include "common/function-view.h"
 
@@ -59,3 +62,5 @@ private:
   /* Table of files seen so far.  */
   htab_t m_tab;
 };
+
+#endif /* FILENAME_SEEN_CACHE_H */