From 268c77c1b0cc5d82c894af6e3e4f040c1bd4644e Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Wed, 24 Feb 2021 14:35:07 -0700 Subject: Add comment regarding include order of and gdb/ChangeLog: * nat/aarch64-linux-hw-point.c: Add comment regarding include order for and . --- gdb/ChangeLog | 5 +++++ gdb/nat/aarch64-linux-hw-point.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f705242..2305512 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2021-02-24 Kevin Buettner + * nat/aarch64-linux-hw-point.c: Add comment regarding include + order for and . + +2021-02-24 Kevin Buettner + * nat/aarch64-linux-hw-point.c: Include after . diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c index 0278ac2..af2cc42 100644 --- a/gdb/nat/aarch64-linux-hw-point.c +++ b/gdb/nat/aarch64-linux-hw-point.c @@ -23,8 +23,15 @@ #include "aarch64-linux-hw-point.h" #include + +/* The order in which and are included + can be important. often declares various PTRACE_* + enums. often defines preprocessor constants for + these very same symbols. When that's the case, build errors will + result when is included before . */ #include #include + #include /* Number of hardware breakpoints/watchpoints the target supports. -- cgit v1.1