forked from Imagelibrary/binutils-gdb
* infcmd.c (attach_command): Move call to target_terminal_inferior
behind loading symbol table.
This commit is contained in:
@@ -1788,9 +1788,6 @@ attach_command (char *args, int from_tty)
|
||||
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 ();
|
||||
@@ -1849,6 +1846,9 @@ attach_command (char *args, int from_tty)
|
||||
*/
|
||||
target_post_attach (PIDGET (inferior_ptid));
|
||||
|
||||
/* Install inferior's terminal modes. */
|
||||
target_terminal_inferior ();
|
||||
|
||||
normal_stop ();
|
||||
|
||||
if (deprecated_attach_hook)
|
||||
|
||||
Reference in New Issue
Block a user