This is the mail archive of the 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 Mon, 22 Apr 2013, Sandra Loosemore wrote:

> >     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?

No, modifications to the package as a whole (presuming it had public 
version control, or a public release, for each year in question), not to 
the individual file.

> > > +#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.

That sounds like the kernel headers need to be fixed before the kernel 
port goes upstream, at which point GDB can depend on the first kernel 
version to go upstream rather than allowing for old kernel header versions 
(which will be ABI-incompatible with the upstream version anyway because 
of not using the generic syscall ABI).

Joseph S. Myers

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