This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 3/4] Nios II gdbserver support


On 04/22/2013 03:05 PM, Joseph S. Myers wrote:
On Sun, 21 Apr 2013, Sandra Loosemore wrote:

+   Copyright (C) 2008, 2012, 2013
+   Free Software Foundation, Inc.

GDB now uses copyright year ranges, so

    Copyright (C) 2008-2013 Free Software Foundation, Inc.

(all on one line) and likewise for any other new files in this patch
series.

Hmmm, I thought the year range was only acceptable when there were actually modifications to the file in all of those years?

+#ifndef PTRACE_GET_THREAD_AREA
+#define PTRACE_GET_THREAD_AREA 25
+#endif

The same comment I made on the AArch64 port applies here: for native code
in new ports, as opposed to use of new definitions in existing ports, you
should just be able to assume recent-enough headers (at least until the
Linux kernel port goes upstream, at which point the first upstream release
with the code can be the minimum version of kernel headers supported)
rather than having such #if conditionals.

I'm not sure what change you want here. If I remove that block of code, the file fails to compile with the kernel headers currently being provided by Altera, which do not define PTRACE_GET_THREAD_AREA.

-Sandra


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]