Easier and more stubborn MI memory read commands.
authorVladimir Prus <vladimir@codesourcery.com>
Fri, 13 Aug 2010 13:22:44 +0000 (13:22 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Fri, 13 Aug 2010 13:22:44 +0000 (13:22 +0000)
commit8dedea0203a9ff24396a5e78b4addfc33c9135a7
tree9a954f4d302bc540883f02f5bbd456aa77af7f0d
parentf608cd77e751a7c47cfb0f8fb91677cbb3e75232
Easier and more stubborn MI memory read commands.

* mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
and data-write-memory-bytes.
* mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
(mi_cmd_data_write_memory_bytes): New.
* mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
(mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
New.
(mi_cmd_list_features): Add "data-read-memory-bytes" feature.
* target.c (target_read_until_error): Remove.
(read_whatever_is_readable, free_memory_read_result_vector)
(read_memory_robust): New.
* target.h (target_read_until_error): Remove.
(struct memory_read_result, free_memory_read_result_vector)
(read_memory_robust): New.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c
gdb/target.c
gdb/target.h