This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Correct comment in mi_cmd_data_write_memory_bytes
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Date: Mon, 10 Feb 2014 13:09:47 -0500
- Subject: [PATCH] Correct comment in mi_cmd_data_write_memory_bytes
- Authentication-results: sourceware.org; auth=none
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;
}