[PATCH] Correct comment in mi_cmd_data_write_memory_bytes

Simon Marchi simon.marchi@ericsson.com
Mon Feb 10 18:09:00 GMT 2014


Hi,

This confused me for a moment, so I thought it would be worth
correcting.

If this path is taken, count bytes are going to be written, not len
bytes.

gdb/Changelog:

2014-02-10  Simon Marchi  <simon.marchi@ericsson.com>

	* mi/mi-main.c: Fix comment in mi_cmd_data_write_memory_bytes.
---
 gdb/mi/mi-main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 93574ca..161307a 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1766,7 +1766,7 @@ mi_cmd_data_write_memory_bytes (char *command, char **argv, int argc)
   else
     {
       /* Pattern is longer than or equal to count:
-         just copy len bytes.  */
+         just copy count bytes.  */
       data = databuf;
     }



More information about the Gdb-patches mailing list