* linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
to PTRACE_TYPE_ARG3. * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to PTRACE_TYPE_ARG4. * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3. (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
This commit is contained in:
parent
1960b13439
commit
b8e1b30ec5
4 changed files with 68 additions and 58 deletions
|
@ -720,13 +720,13 @@ arm_prepare_to_resume (struct lwp_info *lwp)
|
|||
|
||||
if (arm_hwbp_control_is_enabled (proc_info->bpts[i].control))
|
||||
if (ptrace (PTRACE_SETHBPREGS, pid,
|
||||
(PTRACE_ARG3_TYPE) ((i << 1) + 1),
|
||||
(PTRACE_TYPE_ARG3) ((i << 1) + 1),
|
||||
&proc_info->bpts[i].address) < 0)
|
||||
perror_with_name ("Unexpected error setting breakpoint address");
|
||||
|
||||
if (arm_hwbp_control_is_initialized (proc_info->bpts[i].control))
|
||||
if (ptrace (PTRACE_SETHBPREGS, pid,
|
||||
(PTRACE_ARG3_TYPE) ((i << 1) + 2),
|
||||
(PTRACE_TYPE_ARG3) ((i << 1) + 2),
|
||||
&proc_info->bpts[i].control) < 0)
|
||||
perror_with_name ("Unexpected error setting breakpoint");
|
||||
|
||||
|
@ -740,13 +740,13 @@ arm_prepare_to_resume (struct lwp_info *lwp)
|
|||
|
||||
if (arm_hwbp_control_is_enabled (proc_info->wpts[i].control))
|
||||
if (ptrace (PTRACE_SETHBPREGS, pid,
|
||||
(PTRACE_ARG3_TYPE) -((i << 1) + 1),
|
||||
(PTRACE_TYPE_ARG3) -((i << 1) + 1),
|
||||
&proc_info->wpts[i].address) < 0)
|
||||
perror_with_name ("Unexpected error setting watchpoint address");
|
||||
|
||||
if (arm_hwbp_control_is_initialized (proc_info->wpts[i].control))
|
||||
if (ptrace (PTRACE_SETHBPREGS, pid,
|
||||
(PTRACE_ARG3_TYPE) -((i << 1) + 2),
|
||||
(PTRACE_TYPE_ARG3) -((i << 1) + 2),
|
||||
&proc_info->wpts[i].control) < 0)
|
||||
perror_with_name ("Unexpected error setting watchpoint");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue