* [Qemu-devel] [5023] Report unmapped addresses in memory_dump (Jan Kiszka)
@ 2008-08-18 14:00 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-08-18 14:00 UTC (permalink / raw)
To: qemu-devel
Revision: 5023
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5023
Author: aliguori
Date: 2008-08-18 14:00:20 +0000 (Mon, 18 Aug 2008)
Log Message:
-----------
Report unmapped addresses in memory_dump (Jan Kiszka)
Instead of dumping incorrect (ie. previously read) data, report the
invalid virtual address to the user.
Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
trunk/monitor.c
Modified: trunk/monitor.c
===================================================================
--- trunk/monitor.c 2008-08-17 20:26:25 UTC (rev 5022)
+++ trunk/monitor.c 2008-08-18 14:00:20 UTC (rev 5023)
@@ -596,7 +596,10 @@
env = mon_get_cpu();
if (!env)
break;
- cpu_memory_rw_debug(env, addr, buf, l, 0);
+ if (cpu_memory_rw_debug(env, addr, buf, l, 0) < 0) {
+ term_printf(" Cannot access memory\n");
+ break;
+ }
}
i = 0;
while (i < l) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-18 14:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-18 14:00 [Qemu-devel] [5023] Report unmapped addresses in memory_dump (Jan Kiszka) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).