- update log actions after reading command line or bochsrc
This commit is contained in:
parent
4b68e7dcd8
commit
81ec874c5d
@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
// $Id: main.cc,v 1.82 2001-12-21 19:33:18 bdenney Exp $
|
// $Id: main.cc,v 1.83 2001-12-29 11:40:37 vruppert Exp $
|
||||||
/////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////
|
||||||
//
|
//
|
||||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||||
@ -914,9 +914,14 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (enable_control_panel) {
|
if (enable_control_panel) {
|
||||||
|
// update log actions before starting control panel
|
||||||
|
for (int level=0; level<N_LOGLEV; level++) {
|
||||||
|
int action = bx_options.log.actions[level];
|
||||||
|
io->set_log_action (level, action);
|
||||||
|
}
|
||||||
// Display the pre-simulation control panel.
|
// Display the pre-simulation control panel.
|
||||||
bx_control_panel (BX_CPANEL_START_MENU);
|
|
||||||
SIM->set_enabled (1);
|
SIM->set_enabled (1);
|
||||||
|
bx_control_panel (BX_CPANEL_START_MENU);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BX_DEBUGGER
|
#if BX_DEBUGGER
|
||||||
@ -973,6 +978,14 @@ bx_read_configuration (char *rcfile)
|
|||||||
BX_ERROR (("reading from %s failed", rcfile));
|
BX_ERROR (("reading from %s failed", rcfile));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
// update log actions if control panel is enabled
|
||||||
|
fprintf(stderr,"updating actions: %d\n",SIM->get_enabled ());
|
||||||
|
if (SIM->get_enabled ()) {
|
||||||
|
for (int level=0; level<N_LOGLEV; level++) {
|
||||||
|
int action = bx_options.log.actions[level];
|
||||||
|
io->set_log_action (level, action);
|
||||||
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user