summaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-10-09 03:24:50 +0000
committerPedro Alves <pedro@codesourcery.com>2008-10-09 03:24:50 +0000
commit2e9f3c2978476058a7ab5254496d53493901b025 (patch)
tree1e3c17f487aa9a0a7fc5406285313e289b24399f /gdb/target.c
parent839823f1f20e629df83edc548e05cb1d50f67ab5 (diff)
downloadgdb-2e9f3c2978476058a7ab5254496d53493901b025.tar.gz
* remote.c (remote_open_1): Move acknowledging any pending ack,
querying supported features, activating noack mode, finding the target description, enabling extended remote, and checking remote symbols from here ... (remote_start_remote): ... to here. (remote_open_1): Don't pop the target if it is already gone. * target.c (unpush_target): Check for the dummy target.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c
index a509c173db7..7452d2ab61e 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -746,6 +746,10 @@ unpush_target (struct target_ops *t)
struct target_ops **cur;
struct target_ops *tmp;
+ if (t->to_stratum == dummy_stratum)
+ internal_error (__FILE__, __LINE__,
+ "Attempt to unpush the dummy target");
+
/* Look for the specified target. Note that we assume that a target
can only occur once in the target stack. */