Skip to content
Snippets Groups Projects
Commit a4261689 authored by Pedro Alves's avatar Pedro Alves
Browse files

* mi/mi-main.c (mi_cmd_data_read_memory): Dispatch

	TARGET_OJECT_MEMORY reads to the topmost target, not the the
	flattened current_target.
parent d2149d72
No related branches found
No related tags found
No related merge requests found
2009-06-16 Pedro Alves <pedro@codesourcery.com>
* mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
TARGET_OJECT_MEMORY reads to the topmost target, not to the
flattened current_target.
2009-06-16 Tristan Gingold <gingold@adacore.com>
* avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
......
......@@ -915,8 +915,11 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
mbuf = xcalloc (total_bytes, 1);
make_cleanup (xfree, mbuf);
nr_bytes = target_read_until_error (&current_target, TARGET_OBJECT_MEMORY,
NULL, mbuf, addr, total_bytes);
/* Dispatch memory reads to the topmost target, not the flattened
current_target. */
nr_bytes = target_read_until_error (current_target.beneath,
TARGET_OBJECT_MEMORY, NULL, mbuf,
addr, total_bytes);
if (nr_bytes <= 0)
error ("Unable to read memory.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment