behind loading symbol table.
+2004-06-29  Corinna Vinschen  <vinschen@redhat.com>
+
+       * infcmd.c (attach_command): Move call to target_terminal_inferior
+       behind loading symbol table.
+
 2004-06-28  Andrew Cagney  <cagney@gnu.org>
 
        * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
 
      based on what modes we are starting it with.  */
   target_terminal_init ();
 
-  /* Install inferior's terminal modes.  */
-  target_terminal_inferior ();
-
   /* Set up execution context to know that we should return from
      wait_for_inferior as soon as the target reports a stop.  */
   init_wait_for_inferior ();
    */
   target_post_attach (PIDGET (inferior_ptid));
 
+  /* Install inferior's terminal modes.  */
+  target_terminal_inferior ();
+
   normal_stop ();
 
   if (deprecated_attach_hook)