aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-vx.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-11-18 23:08:18 +0000
committerIan Lance Taylor <ian@airs.com>1992-11-18 23:08:18 +0000
commit195b44d9bc9d4049f18fc98c0f90d7579de1e7e8 (patch)
treec80e50f32b9f7c385945a94059cb677b30187882 /gdb/remote-vx.c
parent2104007fb06c6fdc49c6095480e135eab0fd1fde (diff)
downloadgdb-195b44d9bc9d4049f18fc98c0f90d7579de1e7e8.zip
gdb-195b44d9bc9d4049f18fc98c0f90d7579de1e7e8.tar.gz
gdb-195b44d9bc9d4049f18fc98c0f90d7579de1e7e8.tar.bz2
Wed Nov 18 15:05:45 1992 Ian Lance Taylor (ian@cygnus.com)
* remote-vx.c (vx_kill): just warn if we can't contact the board, and assume the process has been killed.
Diffstat (limited to 'gdb/remote-vx.c')
-rw-r--r--gdb/remote-vx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c
index 8ece43c..3fef208 100644
--- a/gdb/remote-vx.c
+++ b/gdb/remote-vx.c
@@ -1231,14 +1231,15 @@ vx_kill ()
status = net_ptrace_clnt_call (PTRACE_KILL, &ptrace_in, &ptrace_out);
if (status == -1)
- error (rpcerr);
- if (ptrace_out.status == -1)
+ warning (rpcerr);
+ else if (ptrace_out.status == -1)
{
errno = ptrace_out.errno;
perror_with_name ("Killing VxWorks process");
}
- /* If it gives good status, the process is *gone*, no events remain. */
+ /* If it gives good status, the process is *gone*, no events remain.
+ If the kill failed, assume the process is gone anyhow. */
inferior_pid = 0;
pop_target (); /* go back to non-executing VxWorks connection */
}