projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdbserver: Ensure all debug output uses debug functions
[deliverable/binutils-gdb.git]
/
gdb
/
gdbserver
/
spu-low.c
diff --git
a/gdb/gdbserver/spu-low.c
b/gdb/gdbserver/spu-low.c
index c2a8734f680d849b6f3de1b67dec796988082159..97f985ae8f832c975fd31cdd22b7996f5aa575b3 100644
(file)
--- a/
gdb/gdbserver/spu-low.c
+++ b/
gdb/gdbserver/spu-low.c
@@
-1,5
+1,5
@@
/* Low level interface to SPUs, for the remote server for GDB.
/* Low level interface to SPUs, for the remote server for GDB.
- Copyright (C) 2006-201
8
Free Software Foundation, Inc.
+ Copyright (C) 2006-201
9
Free Software Foundation, Inc.
Contributed by Ulrich Weigand <uweigand@de.ibm.com>.
Contributed by Ulrich Weigand <uweigand@de.ibm.com>.
@@
-20,12
+20,12
@@
#include "server.h"
#include "server.h"
-#include "gdb_wait.h"
+#include "
common/
gdb_wait.h"
#include <sys/ptrace.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/ptrace.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/syscall.h>
-#include "filestuff.h"
+#include "
common/
filestuff.h"
#include "hostio.h"
#include "nat/fork-inferior.h"
#include "hostio.h"
#include "nat/fork-inferior.h"
@@
-326,12
+326,10
@@
spu_attach (unsigned long pid)
/* Kill the inferior process. */
static int
/* Kill the inferior process. */
static int
-spu_kill (
int pid
)
+spu_kill (
process_info *process
)
{
int status, ret;
{
int status, ret;
- struct process_info *process = find_process_pid (pid);
- if (process == NULL)
- return -1;
+ int pid = process->pid;
ptrace (PTRACE_KILL, pid, 0, 0);
ptrace (PTRACE_KILL, pid, 0, 0);
@@
-364,12
+362,12
@@
spu_mourn (struct process_info *process)
}
static void
}
static void
-spu_join (
process_info *proc
)
+spu_join (
int pid
)
{
int status, ret;
do {
{
int status, ret;
do {
- ret = waitpid (p
roc->p
id, &status, 0);
+ ret = waitpid (pid, &status, 0);
if (WIFEXITED (status) || WIFSIGNALED (status))
break;
} while (ret != -1 || errno != ECHILD);
if (WIFEXITED (status) || WIFSIGNALED (status))
break;
} while (ret != -1 || errno != ECHILD);
This page took
0.024361 seconds
and
4
git commands to generate.