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: Ignore two more files for copyright.sh


Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Tue, 9 Jan 2007 16:38:11 -0500
>> From: Daniel Jacobowitz <drow@false.org>
>> 
>> Pie on my face.  I knew this would happen... I suppose I'm impressed
>> there was only one test depending on exact line numbering.
>
> Btw, it's possible to have the copyright notice at the end of the
> file, if we say at the beginning something like "Copyright notice at
> the end of the file".  That way, the "operational" parts of the file
> will never change their line numbers, while your script will find the
> copyright if it's within the first 2KB of the file (and if that's not
> enough, we can enlarge this value by a one-line change to the
> gdb-copyright-update function in your script).

There are other facilities in lib/gdb.exp for writing tests so that
they don't depend on exact line numbers (see gdb_get_line_number).
This is a practice to avoid whenever possible, anyway.


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