From: Simon Marchi <simon.marchi@ericsson.com>
To: <gdb-patches@sourceware.org>
Cc: Simon Marchi <simon.marchi@ericsson.com>
Subject: [pushed] Add include guard to filename-seen-cache.h
Date: Mon, 26 Mar 2018 19:32:00 -0000 [thread overview]
Message-ID: <1522092721-31629-1-git-send-email-simon.marchi@ericsson.com> (raw)
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 | 4 ++++
gdb/filename-seen-cache.h | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6de3150..7952dee 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/filename-seen-cache.h b/gdb/filename-seen-cache.h
index a644b1a..6c89700 100644
--- a/gdb/filename-seen-cache.h
+++ b/gdb/filename-seen-cache.h
@@ -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 */
--
2.7.4
reply other threads:[~2018-03-26 19:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1522092721-31629-1-git-send-email-simon.marchi@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).