mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-01 19:50:05 +00:00
7003789: PTRACE_GETREGS problems with SA on Linux
Ifdef definitions for PTRACE_GETREGS_REQ clarified Reviewed-by: dholmes
This commit is contained in:
parent
1765b0fbf0
commit
03a1ccfef2
@ -121,15 +121,13 @@ static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct use
|
||||
#define ptrace_getregs(request, pid, addr, data) ptrace(request, pid, data, addr)
|
||||
#endif
|
||||
|
||||
#ifdef _LP64
|
||||
#ifdef PTRACE_GETREGS64
|
||||
#if defined(_LP64) && defined(PTRACE_GETREGS64)
|
||||
#define PTRACE_GETREGS_REQ PTRACE_GETREGS64
|
||||
#endif
|
||||
#else
|
||||
#if defined(PTRACE_GETREGS) || defined(PT_GETREGS)
|
||||
#elif defined(PTRACE_GETREGS)
|
||||
#define PTRACE_GETREGS_REQ PTRACE_GETREGS
|
||||
#elif defined(PT_GETREGS)
|
||||
#define PTRACE_GETREGS_REQ PT_GETREGS
|
||||
#endif
|
||||
#endif /* _LP64 */
|
||||
|
||||
#ifdef PTRACE_GETREGS_REQ
|
||||
if (ptrace_getregs(PTRACE_GETREGS_REQ, pid, user, NULL) < 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user