mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
gdb/
* mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error when the length of content is not an even number.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-09-28 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
|
* mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
|
||||||
|
when the length of content is not an even number.
|
||||||
|
|
||||||
2012-09-27 Tom Tromey <tromey@redhat.com>
|
2012-09-27 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
|
Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
|
||||||
|
@ -1672,6 +1672,10 @@ mi_cmd_data_write_memory_bytes (char *command, char **argv, int argc)
|
|||||||
|
|
||||||
addr = parse_and_eval_address (argv[0]);
|
addr = parse_and_eval_address (argv[0]);
|
||||||
cdata = argv[1];
|
cdata = argv[1];
|
||||||
|
if (strlen (cdata) % 2)
|
||||||
|
error (_("Hex-encoded '%s' must have an even number of characters."),
|
||||||
|
cdata);
|
||||||
|
|
||||||
len = strlen (cdata)/2;
|
len = strlen (cdata)/2;
|
||||||
|
|
||||||
data = xmalloc (len);
|
data = xmalloc (len);
|
||||||
|
Reference in New Issue
Block a user