]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add comment regarding include order of <sys/ptrace.h> and <asm/ptrace.h>
authorKevin Buettner <kevinb@redhat.com>
Thu, 25 Feb 2021 22:25:49 +0000 (15:25 -0700)
committerKevin Buettner <kevinb@redhat.com>
Thu, 25 Feb 2021 22:30:32 +0000 (15:30 -0700)
commit0f977b7715ee9aa8959e08c00b6d2c47a40e6504
tree5953ad38020c8ea15dab897b52f2b7f9e310dc07
parentdffdd8b51f3fb086faf750592709baa8faa66fd1
Add comment regarding include order of <sys/ptrace.h> and <asm/ptrace.h>

I added the same comment for nat/aarch64-linux-hw-point.c yesterday.
Christian suggested adding the comment for the other file that I had
identified as including both <sys/ptrace.h> and <asm/ptrace.h>.

I searched the sources in gdb/, but found no other files which include
both of these headers.

If possible, I would prefer to see us use <sys/ptrace.h> when possible,
however, from past experience, I've found that this file does not always
contain all of the constants, etc. required by the particular source
file.

gdb/ChangeLog:

* nat/aarch64-sve-linux-ptrace.h: Add comment regarding include
order for <sys/ptrace.h> and <asm/ptrace.h>.
gdb/ChangeLog
gdb/nat/aarch64-sve-linux-ptrace.h