default_link remote-host bug
"Joseph S. Myers" <[email protected]>
| Newsgroups | gmane.comp.sysutils.dejagnu.bugs |
|---|---|
| Message-ID | <[email protected]> |
In the remote-host case, default_link refers to a variable nobjects without initializing it, leading to ERROR: can't read "nobjects": no such variable when running GDB's gdb.asm/asm-source.exp in a remote-host environment. The following patch fixes this. 2007-12-07 Joseph Myers <[email protected]> * lib/target.exp (default_link): Initialize nobjects before use. Index: lib/target.exp =================================================================== RCS file: /sources/dejagnu/dejagnu/lib/target.exp,v retrieving revision 1.24 diff -u -r1.24 target.exp --- lib/target.exp 22 May 2006 06:01:35 -0000 1.24 +++ lib/target.exp 7 Dec 2007 01:39:10 -0000 @@ -758,6 +758,7 @@ } if {[is_remote host]} { + set nobjects "" foreach x $objects { set nobjects "$nobjects [remote_download host $x]" } -- Joseph S. Myers [email protected]