aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-10-07 17:15:15 +0000
committerPedro Alves <palves@redhat.com>2011-10-07 17:15:15 +0000
commit4c38200f7dda423c701d01639596df606b96433c (patch)
treee057fcf2b7f60fe320e546b5d8868de5eec50ec7 /gdb/s390-nat.c
parentb7ff339d9ed68980660d58409c226d6d9b83e70e (diff)
downloadgdb-4c38200f7dda423c701d01639596df606b96433c.zip
gdb-4c38200f7dda423c701d01639596df606b96433c.tar.gz
gdb-4c38200f7dda423c701d01639596df606b96433c.tar.bz2
2011-10-07 Pedro Alves <pedro@codesourcery.com>
* linux-nat.h (ALL_LWPS): Remove the ptid parameter. * amd64-linux-nat.c (amd64_linux_dr_set_control) (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust. * arm-linux-nat.c (arm_linux_insert_hw_breakpoint) (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint) (arm_linux_remove_watchpoint): Adjust. * i386-linux-nat.c (i386_linux_dr_set_control) (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust. * ia64-linux-nat.c (ia64_linux_insert_watchpoint) (ia64_linux_remove_watchpoint): Adjust. * mips-linux-nat.c (write_watchpoint_regs): Adjust. * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint) (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) (ppc_linux_insert_mask_watchpoint) (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint) (ppc_linux_remove_watchpoint): Adjust. * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Adjust.
Diffstat (limited to 'gdb/s390-nat.c')
-rw-r--r--gdb/s390-nat.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/s390-nat.c b/gdb/s390-nat.c
index b412fda..5bc88a9 100644
--- a/gdb/s390-nat.c
+++ b/gdb/s390-nat.c
@@ -339,7 +339,6 @@ s390_insert_watchpoint (CORE_ADDR addr, int len, int type,
struct expression *cond)
{
struct lwp_info *lp;
- ptid_t ptid;
struct watch_area *area = xmalloc (sizeof (struct watch_area));
if (!area)
@@ -351,8 +350,8 @@ s390_insert_watchpoint (CORE_ADDR addr, int len, int type,
area->next = watch_base;
watch_base = area;
- ALL_LWPS (lp, ptid)
- s390_fix_watch_points (ptid);
+ ALL_LWPS (lp)
+ s390_fix_watch_points (lp->ptid);
return 0;
}
@@ -361,7 +360,6 @@ s390_remove_watchpoint (CORE_ADDR addr, int len, int type,
struct expression *cond)
{
struct lwp_info *lp;
- ptid_t ptid;
struct watch_area *area, **parea;
for (parea = &watch_base; *parea; parea = &(*parea)->next)
@@ -380,8 +378,8 @@ s390_remove_watchpoint (CORE_ADDR addr, int len, int type,
*parea = area->next;
xfree (area);
- ALL_LWPS (lp, ptid)
- s390_fix_watch_points (ptid);
+ ALL_LWPS (lp)
+ s390_fix_watch_points (lp->ptid);
return 0;
}