* infcmd.c (attach_command): Reread symbols if we already have

an exec file.
This commit is contained in:
Daniel Jacobowitz
2004-03-23 16:45:01 +00:00
parent f3b364276e
commit 63ed89b41d
2 changed files with 10 additions and 0 deletions

View File

@ -1843,6 +1843,11 @@ attach_command (char *args, int from_tty)
symbol_file_add_main (full_exec_path, from_tty);
}
}
else
{
reopen_exec_file ();
reread_symbols ();
}
#ifdef SOLIB_ADD
/* Add shared library symbols from the newly attached process, if any. */