aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorLuis Machado <luisgpm@br.ibm.com>2007-11-09 17:15:17 +0000
committerLuis Machado <luisgpm@br.ibm.com>2007-11-09 17:15:17 +0000
commit1c86e440c3178f9b729a0e99c0d45e40c7b813e8 (patch)
treec42af8f549fa6e12e47087823b26f14dee115c84 /gdb
parent567e4e96bc3e2bb0118fdc61283d63a296be3fd0 (diff)
downloadgdb-1c86e440c3178f9b729a0e99c0d45e40c7b813e8.zip
gdb-1c86e440c3178f9b729a0e99c0d45e40c7b813e8.tar.gz
gdb-1c86e440c3178f9b729a0e99c0d45e40c7b813e8.tar.bz2
* ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
saved_dabr_value assignment to the correct position.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ppc-linux-nat.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5a19031..17433cc 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2007-11-09 Luis Machado <luisgpm@br.ibm.com>
+
+ * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
+ saved_dabr_value assignment to the correct position.
+
2007-11-09 Markus Deuling <deuling@de.ibm.com>
* arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 1e43640..7735fc0 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -831,10 +831,12 @@ ppc_linux_insert_watchpoint (CORE_ADDR addr, int len, int rw)
break;
}
+ saved_dabr_value = dabr_value;
+
ALL_LWPS (lp, ptid)
if (ptrace (PTRACE_SET_DEBUGREG, TIDGET (ptid), 0, saved_dabr_value) < 0)
return -1;
- saved_dabr_value = dabr_value;
+
return 0;
}