qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5023] Report unmapped addresses in memory_dump (Jan Kiszka


From: Anthony Liguori
Subject: [Qemu-devel] [5023] Report unmapped addresses in memory_dump (Jan Kiszka)
Date: Mon, 18 Aug 2008 14:00:20 +0000

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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) {






reply via email to

[Prev in Thread] Current Thread [Next in Thread]