diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-03-17 17:57:14 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-03-19 22:20:03 +0100 |
commit | f09db380942d1393e6f60d1ecaa7d4b6edfaaecf (patch) | |
tree | 15e0087100237625a2314205923be04213c83f9f /gdb/inf-ptrace.h | |
parent | f3a08f77787cfe1b9edb7b5ab82ce7a2d527c8cf (diff) | |
download | fsf-binutils-gdb-f09db380942d1393e6f60d1ecaa7d4b6edfaaecf.zip fsf-binutils-gdb-f09db380942d1393e6f60d1ecaa7d4b6edfaaecf.tar.gz fsf-binutils-gdb-f09db380942d1393e6f60d1ecaa7d4b6edfaaecf.tar.bz2 |
Disable get_ptrace_pid for NetBSD
Unlike most other Operating Systems, NetBSD tracks both pid and lwp.
The process id on NetBSD is stored always in the pid field of ptid.
gdb/ChangeLog:
* inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
* inf-ptrace.c: Likewise.
* (gdb_ptrace): Add.
* (inf_ptrace_target::resume): Update.
* (inf_ptrace_target::xfer_partial): Likewise.
* (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
* (inf_ptrace_peek_poke): Update.
Diffstat (limited to 'gdb/inf-ptrace.h')
-rw-r--r-- | gdb/inf-ptrace.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h index dd07337..dea82d0 100644 --- a/gdb/inf-ptrace.h +++ b/gdb/inf-ptrace.h @@ -78,9 +78,14 @@ protected: void detach_success (inferior *inf); }; +#ifndef __NetBSD__ /* Return which PID to pass to ptrace in order to observe/control the - tracee identified by PTID. */ + tracee identified by PTID. + + Unlike most other Operating Systems, NetBSD tracks both pid and lwp + and avoids this function. */ extern pid_t get_ptrace_pid (ptid_t); +#endif #endif |