[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bochs-cvs
Subject:    [Bochs-cvs] CVS: bochs/gui siminterface.cc,1.112,1.113 siminterface.h,1.150,1.151
From:       Volker Ruppert <vruppert () users ! sourceforge ! net>
Date:       2006-01-31 19:37:58
Message-ID: E1F41KA-0003Bp-UZ () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/bochs/bochs/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12085/gui

Modified Files:
	siminterface.cc siminterface.h 
Log Message:
- siminterface now uses the new value BX_LOG_NOTIFY_FAILED in case of failure
  (no notify handler registered). The ask() function doesn't set the variable
  bx_user_quit to 1 in that case. This prevents win32 from closing the console
  window immediately in case of a bochsrc error.


Index: siminterface.cc
===================================================================
RCS file: /cvsroot/bochs/bochs/gui/siminterface.cc,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -d -r1.112 -r1.113
--- siminterface.cc	20 Nov 2005 17:22:43 -0000	1.112
+++ siminterface.cc	31 Jan 2006 19:37:56 -0000	1.113
@@ -510,8 +510,8 @@
   be.u.logmsg.level = level;
   be.u.logmsg.msg = msg;
   // default return value in case something goes wrong.
-  be.retcode = BX_LOG_ASK_CHOICE_DIE;
-  //fprintf (stderr, "calling notify.\n");
+  be.retcode = BX_LOG_NOTIFY_FAILED;
+  // calling notify
   sim_to_ci_event (&be);
   return be.retcode;
 }

Index: siminterface.h
===================================================================
RCS file: /cvsroot/bochs/bochs/gui/siminterface.h,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -d -r1.150 -r1.151
--- siminterface.h	18 Jan 2006 18:35:37 -0000	1.150
+++ siminterface.h	31 Jan 2006 19:37:56 -0000	1.151
@@ -798,7 +798,8 @@
   BX_LOG_ASK_CHOICE_DIE,
   BX_LOG_ASK_CHOICE_DUMP_CORE,
   BX_LOG_ASK_CHOICE_ENTER_DEBUG,
-  BX_LOG_ASK_N_CHOICES
+  BX_LOG_ASK_N_CHOICES,
+  BX_LOG_NOTIFY_FAILED
 };
 
 // Event type: BX_SYNC_EVT_GET_DBG_COMMAND



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic