aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-09-28 00:39:18 +0000
committerYao Qi <yao@codesourcery.com>2012-09-28 00:39:18 +0000
commit4c2786ba1e67cbfddf0175d7831321ddae2d73a9 (patch)
tree785c4a3b26950fb1aeeb8daffad4671dae140d60 /gdb/mi
parent1ae0c35e7e2f707cb45c2101e560cca964a8716e (diff)
downloadgdb-4c2786ba1e67cbfddf0175d7831321ddae2d73a9.zip
gdb-4c2786ba1e67cbfddf0175d7831321ddae2d73a9.tar.gz
gdb-4c2786ba1e67cbfddf0175d7831321ddae2d73a9.tar.bz2
gdb/
* mi/mi-main.c (mi_cmd_data_write_memory): Call write_memory_with_notification instead of write_memory. (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification instead of target_write_memory. gdb/testsuite/ * gdb.mi/pr11022.exp: New. * gdb.mi/pr11022.c: New. Copied from gdb.base/.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index f73d4f8..9fa1eaa 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1648,7 +1648,7 @@ mi_cmd_data_write_memory (char *command, char **argv, int argc)
old_chain = make_cleanup (xfree, buffer);
store_signed_integer (buffer, word_size, byte_order, value);
/* Write it down to memory. */
- write_memory (addr, buffer, word_size);
+ write_memory_with_notification (addr, buffer, word_size);
/* Free the buffer. */
do_cleanups (old_chain);
}
@@ -1688,9 +1688,7 @@ mi_cmd_data_write_memory_bytes (char *command, char **argv, int argc)
data[i] = (gdb_byte) x;
}
- r = target_write_memory (addr, data, len);
- if (r != 0)
- error (_("Could not write memory"));
+ write_memory_with_notification (addr, data, len);
do_cleanups (back_to);
}