diff options
author | 2012-04-07 14:11:12 +0000 | |
---|---|---|
committer | 2012-04-07 14:11:12 +0000 | |
commit | c19978931c9456632f28f50fd8cb14544c0f3fe1 (patch) | |
tree | 36bf78e57104c19dc1c0250a63003872b70d1c21 | |
parent | grammar fix; (diff) | |
download | wireguard-openbsd-c19978931c9456632f28f50fd8cb14544c0f3fe1.tar.xz wireguard-openbsd-c19978931c9456632f28f50fd8cb14544c0f3fe1.zip |
Fix previous commit; the function signatures are different for our in-tree
version of GDB compared to what's currently upstream.
-rw-r--r-- | gnu/usr.bin/binutils/gdb/obsd-nat.c | 8 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/obsd-nat.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gnu/usr.bin/binutils/gdb/obsd-nat.c b/gnu/usr.bin/binutils/gdb/obsd-nat.c index d3bd866d817..56474369968 100644 --- a/gnu/usr.bin/binutils/gdb/obsd-nat.c +++ b/gnu/usr.bin/binutils/gdb/obsd-nat.c @@ -30,7 +30,7 @@ #include "obsd-nat.h" char * -obsd_pid_to_str (struct target_ops *ops, ptid_t ptid) +obsd_pid_to_str (ptid_t ptid) { if (ptid_get_lwp (ptid) != 0) { @@ -44,12 +44,12 @@ obsd_pid_to_str (struct target_ops *ops, ptid_t ptid) } void -obsd_find_new_threads (struct target_ops *ops) +obsd_find_new_threads (void) { pid_t pid = ptid_get_pid (inferior_ptid); struct ptrace_thread_state pts; - if (ptrace(PT_GET_THREAD_FIRST, pid, (char *)&pts, sizeof pts) == -1) + if (ptrace(PT_GET_THREAD_FIRST, pid, (caddr_t)&pts, sizeof pts) == -1) perror_with_name (("ptrace")); while (pts.pts_tid != -1) @@ -65,7 +65,7 @@ obsd_find_new_threads (struct target_ops *ops) add_thread (ptid); } - if (ptrace(PT_GET_THREAD_NEXT, pid, (char *)&pts, sizeof pts) == -1) + if (ptrace(PT_GET_THREAD_NEXT, pid, (caddr_t)&pts, sizeof pts) == -1) perror_with_name (("ptrace")); } } diff --git a/gnu/usr.bin/binutils/gdb/obsd-nat.h b/gnu/usr.bin/binutils/gdb/obsd-nat.h index 53978f603c4..a2bae58e1e8 100644 --- a/gnu/usr.bin/binutils/gdb/obsd-nat.h +++ b/gnu/usr.bin/binutils/gdb/obsd-nat.h @@ -22,7 +22,7 @@ #ifndef OBSD_NAT_H #define OBSD_NAT_H -extern char *obsd_pid_to_str (struct target_ops *ops, ptid_t ptid); -extern void obsd_find_new_threads (struct target_ops *ops); +extern char *obsd_pid_to_str (ptid_t ptid); +extern void obsd_find_new_threads (void); #endif /* obsd-nat.h */ |