This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFC] changes to gdb.gdb to use new gdb.exp


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


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