From: Keith Seitz Date: Thu, 5 Mar 1998 22:41:56 +0000 (+0000) Subject: * ocd.c (ocd_open): If we fail ocd_start_remote, make sure we X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17772016ca28b47595e841715bafb3c219be378a;p=binutils-gdb.git * ocd.c (ocd_open): If we fail ocd_start_remote, make sure we error () so that we abort out of bdm_ppc_open. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6bb149d8165..45017fcf3b2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Mar 5 14:42:41 1998 Keith Seitz + + * ocd.c (ocd_open): If we fail ocd_start_remote, make sure we + error () so that we abort out of bdm_ppc_open. + Wed Mar 4 16:53:52 1998 Martin M. Hunt * serial.c (_initialize_serial): Add a description of diff --git a/gdb/ocd.c b/gdb/ocd.c index 268d7bbf9b4..a6b385a5e21 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