qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6371] Fix user emulator breakage, based on patch by Riku Voipio
@ 2009-01-20 16:57 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-01-20 16:57 UTC (permalink / raw)
  To: qemu-devel

Revision: 6371
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6371
Author:   blueswir1
Date:     2009-01-20 16:57:34 +0000 (Tue, 20 Jan 2009)

Log Message:
-----------
Fix user emulator breakage, based on patch by Riku Voipio

Modified Paths:
--------------
    trunk/bsd-user/main.c
    trunk/linux-user/main.c

Modified: trunk/bsd-user/main.c
===================================================================
--- trunk/bsd-user/main.c	2009-01-20 04:15:47 UTC (rev 6370)
+++ trunk/bsd-user/main.c	2009-01-20 16:57:34 UTC (rev 6371)
@@ -533,19 +533,21 @@
 
     free(target_environ);
 
-    log_page_dump();
+    if (qemu_log_enabled()) {
+        log_page_dump();
 
-    qemu_log("start_brk   0x" TARGET_ABI_FMT_lx "\n", info->start_brk);
-    qemu_log("end_code    0x" TARGET_ABI_FMT_lx "\n", info->end_code);
-    qemu_log("start_code  0x" TARGET_ABI_FMT_lx "\n",
-            info->start_code);
-    qemu_log("start_data  0x" TARGET_ABI_FMT_lx "\n",
-            info->start_data);
-    qemu_log("end_data    0x" TARGET_ABI_FMT_lx "\n", info->end_data);
-    qemu_log("start_stack 0x" TARGET_ABI_FMT_lx "\n",
-            info->start_stack);
-    qemu_log("brk         0x" TARGET_ABI_FMT_lx "\n", info->brk);
-    qemu_log("entry       0x" TARGET_ABI_FMT_lx "\n", info->entry);
+        qemu_log("start_brk   0x" TARGET_ABI_FMT_lx "\n", info->start_brk);
+        qemu_log("end_code    0x" TARGET_ABI_FMT_lx "\n", info->end_code);
+        qemu_log("start_code  0x" TARGET_ABI_FMT_lx "\n",
+                 info->start_code);
+        qemu_log("start_data  0x" TARGET_ABI_FMT_lx "\n",
+                 info->start_data);
+        qemu_log("end_data    0x" TARGET_ABI_FMT_lx "\n", info->end_data);
+        qemu_log("start_stack 0x" TARGET_ABI_FMT_lx "\n",
+                 info->start_stack);
+        qemu_log("brk         0x" TARGET_ABI_FMT_lx "\n", info->brk);
+        qemu_log("entry       0x" TARGET_ABI_FMT_lx "\n", info->entry);
+    }
 
     target_set_brk(info->brk);
     syscall_init();

Modified: trunk/linux-user/main.c
===================================================================
--- trunk/linux-user/main.c	2009-01-20 04:15:47 UTC (rev 6370)
+++ trunk/linux-user/main.c	2009-01-20 16:57:34 UTC (rev 6371)
@@ -2394,19 +2394,21 @@
 
     free(target_environ);
 
-    log_page_dump();
+    if (qemu_log_enabled()) {
+        log_page_dump();
 
-    qemu_log("start_brk   0x" TARGET_ABI_FMT_lx "\n", info->start_brk);
-    qemu_log("end_code    0x" TARGET_ABI_FMT_lx "\n", info->end_code);
-    qemu_log("start_code  0x" TARGET_ABI_FMT_lx "\n",
-            info->start_code);
-    qemu_log("start_data  0x" TARGET_ABI_FMT_lx "\n",
-            info->start_data);
-    qemu_log("end_data    0x" TARGET_ABI_FMT_lx "\n", info->end_data);
-    qemu_log("start_stack 0x" TARGET_ABI_FMT_lx "\n",
-            info->start_stack);
-    qemu_log("brk         0x" TARGET_ABI_FMT_lx "\n", info->brk);
-    qemu_log("entry       0x" TARGET_ABI_FMT_lx "\n", info->entry);
+        qemu_log("start_brk   0x" TARGET_ABI_FMT_lx "\n", info->start_brk);
+        qemu_log("end_code    0x" TARGET_ABI_FMT_lx "\n", info->end_code);
+        qemu_log("start_code  0x" TARGET_ABI_FMT_lx "\n",
+                 info->start_code);
+        qemu_log("start_data  0x" TARGET_ABI_FMT_lx "\n",
+                 info->start_data);
+        qemu_log("end_data    0x" TARGET_ABI_FMT_lx "\n", info->end_data);
+        qemu_log("start_stack 0x" TARGET_ABI_FMT_lx "\n",
+                 info->start_stack);
+        qemu_log("brk         0x" TARGET_ABI_FMT_lx "\n", info->brk);
+        qemu_log("entry       0x" TARGET_ABI_FMT_lx "\n", info->entry);
+    }
 
     target_set_brk(info->brk);
     syscall_init();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-20 16:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20 16:57 [Qemu-devel] [6371] Fix user emulator breakage, based on patch by Riku Voipio Blue Swirl

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