qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6371] Fix user emulator breakage, based on patch by Riku Voipio
Date: Tue, 20 Jan 2009 16:57:34 +0000	[thread overview]
Message-ID: <E1LPJuw-0005b7-S3@cvs.savannah.gnu.org> (raw)

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();

                 reply	other threads:[~2009-01-20 16:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1LPJuw-0005b7-S3@cvs.savannah.gnu.org \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).