GNU Binutils with patches for OS216
Révision | a42616899b4f89a1bc1177c8edb27e890af40a82 (tree) |
---|---|
l'heure | 2009-06-17 03:23:36 |
Auteur | Pedro Alves <palves@redh...> |
Commiter | Pedro Alves |
* mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
TARGET_OJECT_MEMORY reads to the topmost target, not the the
flattened current_target.
@@ -1,3 +1,9 @@ | ||
1 | +2009-06-16 Pedro Alves <pedro@codesourcery.com> | |
2 | + | |
3 | + * mi/mi-main.c (mi_cmd_data_read_memory): Dispatch | |
4 | + TARGET_OJECT_MEMORY reads to the topmost target, not to the | |
5 | + flattened current_target. | |
6 | + | |
1 | 7 | 2009-06-16 Tristan Gingold <gingold@adacore.com> |
2 | 8 | |
3 | 9 | * 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) | ||
915 | 915 | mbuf = xcalloc (total_bytes, 1); |
916 | 916 | make_cleanup (xfree, mbuf); |
917 | 917 | |
918 | - nr_bytes = target_read_until_error (¤t_target, TARGET_OBJECT_MEMORY, | |
919 | - NULL, mbuf, addr, total_bytes); | |
918 | + /* Dispatch memory reads to the topmost target, not the flattened | |
919 | + current_target. */ | |
920 | + nr_bytes = target_read_until_error (current_target.beneath, | |
921 | + TARGET_OBJECT_MEMORY, NULL, mbuf, | |
922 | + addr, total_bytes); | |
920 | 923 | if (nr_bytes <= 0) |
921 | 924 | error ("Unable to read memory."); |
922 | 925 |