Moved change from gdb_target_udi to gdb_start.
authorBob Manson <manson@cygnus>
Sun, 23 Mar 1997 04:41:14 +0000 (04:41 +0000)
committerBob Manson <manson@cygnus>
Sun, 23 Mar 1997 04:41:14 +0000 (04:41 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/config/udi.exp

index 1f6a7a8be45b07af7f59719be877125f5c73051a..8552d1a545c2ada7efb7eabbd7427f068e93bd6f 100644 (file)
@@ -1,6 +1,6 @@
 Sat Mar 22 19:50:25 1997  Bob Manson  <manson@charmed.cygnus.com>
 
-       * config/udi.exp(gdb_target_udi): Make sure UDICONF is set
+       * config/udi.exp(gdb_start): Make sure UDICONF is set
        properly before starting gdb.
 
 Tue Mar 11 11:42:58 1997  Bob Manson  <manson@charmed.cygnus.com>
index ac786d1cd016b391538e14e56a7e89fdac7ca7b2..3a5d778b20bf800e49d89161bb7f2b567137a862 100644 (file)
@@ -30,10 +30,8 @@ proc gdb_target_udi { } {
     global gdb_prompt
     global verbose
     global exit_status
-    global env;
 
     set targetname [target_info mondfe,name];
-    set env(UDICONF) [target_info mondfe,udi_soc];
     # set targets hostname
     send_gdb "target udi $targetname\n"
     set timeout 60
@@ -89,6 +87,9 @@ proc gdb_load { arg } {
 #              UDICONF enviroment variable is set.
 #
 proc gdb_start { } {
+    global env;
+
+    set env(UDICONF) [target_info mondfe,udi_soc];
     default_gdb_start
     verbose "Setting up target, Please wait..."
     gdb_target_udi