new for ptx
[deliverable/binutils-gdb.git] / gdb / remote-udi.c
index 0a7e1a9c7607823ce8a4434240f44013d6a2470b..4cbcbabfc0908d008e7996406bd1725da0282725 100644 (file)
@@ -143,6 +143,8 @@ udi_create_inferior (execfile, args, env)
       /* If the TIP is not open, open it.  */
       if (UDIConnect (udi_config_id, &udi_session_id))
        error("UDIConnect() failed: %s\n", dfe_errmsg);
+      /* We will need to download the program.  */
+      entry.Offset = 0;
     }
 
   inferior_pid = 40000;
@@ -221,10 +223,6 @@ udi_open (name, from_tty)
   UDIUInt32 TIPId, TargetId, DFEId, DFE, TIP, DFEIPCId, TIPIPCId;
 
   target_preopen(from_tty);
-  /* target_preopen calls target_kill to clean up the previous target.  But
-     udi_kill leaves it on the stack.  So we pop it here (the call to udi_close
-     is harmless now that udi_session_id is -1).  */
-  unpush_target (&udi_ops);
 
   entry.Offset = 0;
 
This page took 0.025525 seconds and 4 git commands to generate.