This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb.mi/*.exp and absolute line numbers
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: Michael Chastain <mec dot gnu at mindspring dot com>
- Cc: jimb at redhat dot com, cagney at redhat dot com, ezannoni at redhat dot com, gdb at sources dot redhat dot com
- Date: Fri, 06 Aug 2004 11:21:51 +0300
- Subject: Re: gdb.mi/*.exp and absolute line numbers
- References: <4111FC04.nailD7G1U3QKS@mindspring.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 05 Aug 2004 05:21:08 -0400
> From: Michael Chastain <mec.gnu@mindspring.com>
>
> So my proposal is:
>
> rewrite gdb_get_line_number in tcl
> (either clone the function or rewrite existing implementation)
> add gdb_get_line_number to gdb.mi/*.exp
> add copyright notices to gdb.mi/{basics.c,gdb701.c,var-cmd.c}
> add #include lines to gdb.mi/{basics.c,gdb701.c,var-cmd.c}
> ... so the the gdb test suite will work with gcc HEAD
>
> Another way out. Less work, but cheesier: put the copyright notices for
> basics.c, gdb701.c, and var-cmd.c in a separate COPYRIGHT file, with a
> note that these files have absolute line numbers and cannot easily be
> edited.
>
> Ideas?
Do we have to put the copyright text at the beginning of a file? If
not, you could add it to the end, which will keep the line info
intact.
But I see you already decided on the first approach.