aboutsummaryrefslogtreecommitdiff
path: root/gdb/core.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:36:57 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-19 01:36:57 +0000
commitf2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b (patch)
treef773467c87389748760e3ec0127f0ee9300ff236 /gdb/core.c
parent70dcc196e1548122d4959b1e9e4b22c41c27a179 (diff)
downloadgdb-f2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b.zip
gdb-f2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b.tar.gz
gdb-f2fc6e7a5c33740b298b2a6d24d89d4bd3a8607b.tar.bz2
* target.h: Add to_doc and target_preopen.
target.c: Add target_preopen and target_command. Remove target_info. (add_target): Call add_cmd and mess with targetlist->doc. core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c, remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct. Call target_preopen from open routine.
Diffstat (limited to 'gdb/core.c')
-rw-r--r--gdb/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/core.c b/gdb/core.c
index 119f716..4f3c617 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -81,6 +81,7 @@ core_open (filename, from_tty)
bfd *temp_bfd;
int ontop;
+ target_preopen (from_tty);
if (!filename)
{
error (core_bfd?
@@ -421,6 +422,7 @@ get_core_registers (regno)
struct target_ops core_ops = {
"core", "Local core dump file",
+ "Use a core file as a target. Specify the filename of the core file.",
core_open, core_close,
child_attach, core_detach, 0, 0, /* resume, wait */
get_core_registers,