Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Typo in debug_to_remove_watchpoint
@ 2006-12-01 21:39 Adam Nemet
  2006-12-05 20:38 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Nemet @ 2006-12-01 21:39 UTC (permalink / raw)
  To: gdb-patches

It seems there is a cut-and-paste bug in debug_to_remove_watchpoint.
Please apply if OK.

Adam

2006-12-01  Adam Nemet  <anemet@caviumnetworks.com>

	* target.c (debug_to_remove_watchpoint): Call
	to_remove_watchpoint.  Print target_remove_watchpoint.

Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.129
diff -F^\([(a-zA-Z0-9_]\|#define\) -u -p -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.129 target.c
--- target.c	21 Nov 2006 16:50:16 -0000	1.129
+++ target.c	1 Dec 2006 21:28:33 -0000
@@ -2360,10 +2360,10 @@ debug_to_remove_watchpoint (CORE_ADDR ad
 {
   int retval;
 
-  retval = debug_target.to_insert_watchpoint (addr, len, type);
+  retval = debug_target.to_remove_watchpoint (addr, len, type);
 
   fprintf_unfiltered (gdb_stdlog,
-		      "target_insert_watchpoint (0x%lx, %d, %d) = %ld\n",
+		      "target_remove_watchpoint (0x%lx, %d, %d) = %ld\n",
 		      (unsigned long) addr, len, type, (unsigned long) retval);
   return retval;
 }


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-05 20:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-01 21:39 [PATCH] Typo in debug_to_remove_watchpoint Adam Nemet
2006-12-05 20:38 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox