forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Wed Nov 18 14:39:57 1992 Stu Grossman (grossman at cygnus.com)
|
Wed Nov 18 14:39:57 1992 Stu Grossman (grossman at cygnus.com)
|
||||||
|
|
||||||
* infcmd.c (set_environment_command): Make set env FOO x=y work.
|
* infcmd.c (set_environment_command): Make set env FOO x=y work.
|
||||||
|
|||||||
@@ -1231,14 +1231,15 @@ vx_kill ()
|
|||||||
|
|
||||||
status = net_ptrace_clnt_call (PTRACE_KILL, &ptrace_in, &ptrace_out);
|
status = net_ptrace_clnt_call (PTRACE_KILL, &ptrace_in, &ptrace_out);
|
||||||
if (status == -1)
|
if (status == -1)
|
||||||
error (rpcerr);
|
warning (rpcerr);
|
||||||
if (ptrace_out.status == -1)
|
else if (ptrace_out.status == -1)
|
||||||
{
|
{
|
||||||
errno = ptrace_out.errno;
|
errno = ptrace_out.errno;
|
||||||
perror_with_name ("Killing VxWorks process");
|
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;
|
inferior_pid = 0;
|
||||||
pop_target (); /* go back to non-executing VxWorks connection */
|
pop_target (); /* go back to non-executing VxWorks connection */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user