This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3] sim: bfin: new port
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Mike Frysinger <vapier at gentoo dot org>, Joel Brobecker <brobecker at adacore dot com>
- Date: Tue, 22 Feb 2011 10:08:24 +0000
- Subject: Re: [PATCH v3] sim: bfin: new port
- References: <201011152039.08285.vapier@gentoo.org> <20110221095436.GD2600@adacore.com> <201102211153.47019.vapier@gentoo.org>
On Monday 21 February 2011 16:53:45, Mike Frysinger wrote:
> On Monday, February 21, 2011 04:54:36 Joel Brobecker wrote:
> > Question: Why do you have .h files whose name starts with an underscore?
> > For instance: sim/bfin/_proc_list.h...
>
> it's meant to convey that the header isnt meant to be generally included by
> random files. they can only be included in specific instances since they're
> simple lists which need certain preprocessor directives in place before they
> can be included. i'm trying to avoid bit rot related to copying & pasting the
> same list of numbers over and over in multiple places.
That's a good idea. I notice a copyright header is missing though.
FYI, on the gdb/ side, we name those files "*.def".
E.g., ada-operator.def, common/ax.def, std-operator.def.
--
Pedro Alves