aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-10-22 21:39:09 +0000
committerAndrew Cagney <cagney@redhat.com>2003-10-22 21:39:09 +0000
commitf1c07ab0ca71fdadc64f2838f87f39784aee5b63 (patch)
tree669beaa649a52386e7e6431a687d5a74e7d3fbbe /gdb/top.c
parentc9ac89782df8198d0c48219364b15d3af5efa0dd (diff)
downloadgdb-f1c07ab0ca71fdadc64f2838f87f39784aee5b63.zip
gdb-f1c07ab0ca71fdadc64f2838f87f39784aee5b63.tar.gz
gdb-f1c07ab0ca71fdadc64f2838f87f39784aee5b63.tar.bz2
2003-10-22 Andrew Cagney <cagney@redhat.com>
* target.c (target_close): New function. (debug_to_close): Use "target_close". (push_target): Use "target_close". (unpush_target): Use "target_close". (pop_target): Use "target_close". * target.h (struct target_ops): Add "to_xclose". (target_open): Delete macro. Move comment to "to_open". (target_close): Replace macro with function that takes a target. * top.c (quit_target): Pass "current_target" to "target_close".
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 1e3399d..46e323b0 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1461,7 +1461,7 @@ quit_target (void *arg)
}
/* UDI wants this, to kill the TIP. */
- target_close (1);
+ target_close (&current_target, 1);
/* Save the history information if it is appropriate to do so. */
if (write_history_p && history_filename)