• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisiona42616899b4f89a1bc1177c8edb27e890af40a82 (tree)
l'heure2009-06-17 03:23:36
AuteurPedro Alves <palves@redh...>
CommiterPedro Alves

Message de Log

* mi/mi-main.c (mi_cmd_data_read_memory): Dispatch
TARGET_OJECT_MEMORY reads to the topmost target, not the the
flattened current_target.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
17 2009-06-16 Tristan Gingold <gingold@adacore.com>
28
39 * avr-tdep.c (struct gdbarch_tdep): Replace the unused field with
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -915,8 +915,11 @@ mi_cmd_data_read_memory (char *command, char **argv, int argc)
915915 mbuf = xcalloc (total_bytes, 1);
916916 make_cleanup (xfree, mbuf);
917917
918- nr_bytes = target_read_until_error (&current_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);
920923 if (nr_bytes <= 0)
921924 error ("Unable to read memory.");
922925