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] Correct comment in mi_cmd_data_write_memory_bytes


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;
     }


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