diff options
author | Luis Machado <luisgpm@br.ibm.com> | 2007-11-09 17:15:17 +0000 |
---|---|---|
committer | Luis Machado <luisgpm@br.ibm.com> | 2007-11-09 17:15:17 +0000 |
commit | 1c86e440c3178f9b729a0e99c0d45e40c7b813e8 (patch) | |
tree | c42af8f549fa6e12e47087823b26f14dee115c84 /gdb/ppc-linux-nat.c | |
parent | 567e4e96bc3e2bb0118fdc61283d63a296be3fd0 (diff) | |
download | gdb-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/ppc-linux-nat.c')
-rw-r--r-- | gdb/ppc-linux-nat.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |