[pushed] gdbsupport: include preprocessor.h in common-debug.h

Message ID 20210423190616.4063831-1-simon.marchi@polymtl.ca
State New
Headers show
Series
  • [pushed] gdbsupport: include preprocessor.h in common-debug.h
Related show

Commit Message

Konstantin Kharlamov via Gdb-patches April 23, 2021, 7:06 p.m.
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
---
 gdbsupport/ChangeLog      | 4 ++++
 gdbsupport/common-debug.h | 2 ++
 2 files changed, 6 insertions(+)

-- 
2.30.1

Patch

diff --git a/gdbsupport/ChangeLog b/gdbsupport/ChangeLog
index cf275a499477..dfbb06e61b61 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 05367401a7d2..7288b694d595 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.  */