This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix regression on watchpoints for PPC


Hi,

Daniel approved this patch in a discussion we had, so i've checked it
in.

Regards,
Luis
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.

Index: gdb/ppc-linux-nat.c
===================================================================
--- gdb.orig/ppc-linux-nat.c	2007-11-09 08:36:34.000000000 -0800
+++ gdb/ppc-linux-nat.c	2007-11-09 08:45:43.000000000 -0800
@@ -831,10 +831,12 @@
       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;
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]