aboutsummaryrefslogtreecommitdiff
path: root/gdb/ocd.c
diff options
context:
space:
mode:
authorKeith Seitz <keiths@cygnus>1998-03-05 22:41:56 +0000
committerKeith Seitz <keiths@cygnus>1998-03-05 22:41:56 +0000
commit17772016ca28b47595e841715bafb3c219be378a (patch)
treecbde8af061297296c9d6f10247709c894877838b /gdb/ocd.c
parent6ba4c1539f3482d092504b19ff79394db49617b8 (diff)
downloadgdb-17772016ca28b47595e841715bafb3c219be378a.zip
gdb-17772016ca28b47595e841715bafb3c219be378a.tar.gz
gdb-17772016ca28b47595e841715bafb3c219be378a.tar.bz2
* ocd.c (ocd_open): If we fail ocd_start_remote, make sure we
error () so that we abort out of bdm_ppc_open.
Diffstat (limited to 'gdb/ocd.c')
-rw-r--r--gdb/ocd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ocd.c b/gdb/ocd.c
index 268d7bb..a6b385a 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -332,7 +332,10 @@ device the OCD device is attached to (e.g. /dev/ttya).");
if (!catch_errors (ocd_start_remote, (char *)target_type,
"Couldn't establish connection to remote target\n",
RETURN_MASK_ALL))
- pop_target();
+ {
+ pop_target();
+ error ("Failed to connect to OCD.");
+ }
}
/* This takes a program previously attached to and detaches it. After