diff options
author | Pedro Alves <palves@redhat.com> | 2008-10-09 03:24:51 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-10-09 03:24:51 +0000 |
commit | c8d104ad6940c4f094193620122d26d8d2ff4167 (patch) | |
tree | 1d37db3f95a3eb1c689ac2d722d88b312ef0bfd0 /gdb/target.c | |
parent | efdb2a86e46122879fab082916287486d5208b41 (diff) | |
download | gdb-c8d104ad6940c4f094193620122d26d8d2ff4167.zip gdb-c8d104ad6940c4f094193620122d26d8d2ff4167.tar.gz gdb-c8d104ad6940c4f094193620122d26d8d2ff4167.tar.bz2 |
* 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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c index a509c17..7452d2a 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. */ |