Break the direct connection from core_file_command to any
authorK. Richard Pixley <rich@cygnus>
Tue, 29 Sep 1992 21:51:16 +0000 (21:51 +0000)
committerK. Richard Pixley <rich@cygnus>
Tue, 29 Sep 1992 21:51:16 +0000 (21:51 +0000)
commitdf9b3bfc4c3c434df5082ef723709ab929d1200b
treeeef23c1ea733fddf04a10bbc8a1ce6d04ce9aaec
parentab96cdfc78bc8376780a3c84de767d06f5e09950
Break the direct connection from core_file_command to any
particular type of core file support.

* target.h (find_core_target): new prototype.
* target.c (find_core_target): new function.  Walks the target
  list looking for the core target.
* core.c (core_file_command): replace calls to core_detach and
  core_open with find_core_target and direct calls.
gdb/ChangeLog
gdb/core.c