public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdbsupport: include preprocessor.h in common-debug.h
@ 2021-04-23 19:06 Simon Marchi
0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2021-04-23 19:06 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4d6840c33529db663d7ccc231ba43c0a16320f51
commit 4d6840c33529db663d7ccc231ba43c0a16320f51
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date: Fri Apr 23 14:03:30 2021 -0400
gdbsupport: include preprocessor.h in common-debug.h
While doing some changes, some code failed to compile because it used
the scoped_debug_start_end macro, but couldn't find the CONCAT macro.
Fix that by making common-debug.h include preprocessor.h, the header
file that provides CONCAT.
gdbsupport/ChangeLog:
* common-debug.h: Include preprocessor.h.
Change-Id: Ibf863a932a18cba9a57b4bd72df538ef52d39127
Diff:
---
gdbsupport/ChangeLog | 4 ++++
gdbsupport/common-debug.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog
index cf275a49947..dfbb06e61b6 100644
--- a/gdbsupport/ChangeLog
+++ b/gdbsupport/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * common-debug.h: Include preprocessor.h.
+
2021-03-24 Luis Machado <luis.machado@linaro.org>
* rsp-low.cc (fromhex, hex2bin): Move to ...
diff --git a/gdbsupport/common-debug.h b/gdbsupport/common-debug.h
index 05367401a7d..7288b694d59 100644
--- a/gdbsupport/common-debug.h
+++ b/gdbsupport/common-debug.h
@@ -20,6 +20,8 @@
#ifndef COMMON_COMMON_DEBUG_H
#define COMMON_COMMON_DEBUG_H
+#include "gdbsupport/preprocessor.h"
+
/* Set to true to enable debugging of hardware breakpoint/
watchpoint support code. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-23 19:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 19:06 [binutils-gdb] gdbsupport: include preprocessor.h in common-debug.h Simon Marchi
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).