This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] changes to gdb.gdb to use new gdb.exp
- From: Michael Chastain <mec dot gnu at mindspring dot com>
- To: manjo at austin dot ibm dot com, gdb-patches at sources dot redhat dot com
- Date: Wed, 01 Sep 2004 12:36:58 -0400
- Subject: Re: [RFC] changes to gdb.gdb to use new gdb.exp
- References: <Pine.LNX.4.58.0408311500250.19258@lazy>
Hi Manoj,
Three things:
. Use "lsearch" rather than "lindex". The spec for gdb_file_cmd says
that it can return several words after the MESSAGE. So something
like:
if { [lsearch -exact [lrange $result 1 end] "nodebug"] >= 0 }
That way, the caller will keep working after gdb_file_cmd adds more words.
. Include a ChangeLog entry with the patch.
. Say what system you tested the patch on, and how you tested it.
Michael