Ha. It turns out that all of the files which use pthreads.c are already
line-number-independent. So I'm finished adding gdb_get_line_number.
Here is the next phase for making gdb.mi work with gcc HEAD:
adding copyright notices to several files.
Fernando Nasser created basics.c in 1999.
It was last edited in 2000.
Elena Zannoni created var-cmd.c in 1999.
Andrew Cagney committed it to CVS in 2000.
It hasn't been edited since then.
I assume that the file wasn't edited in 2000, either.
Data sources: cvs log, testsuite/gdb.mi/ChangeLog-1999-2003,
testsuite/ChangeLog, historical gdb releases, and the
gdb-patches mailing list for 1999q4 and 2000q1.
Tested on native i686-pc-linux-gnu with gcc 2.95.3, gcc 3.3.4,
and gcc 3.4.1, with dwarf-2 and stabs+.
After this, the next phase will be the addition of several
"#include" lines to several *.c files so that they compile
with gcc HEAD with no warnings.