1
0
Fork 0

seperate debugger console setup

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@420
This commit is contained in:
Ulf Wohlers 2002-10-25 16:02:55 +00:00
parent 14577b3324
commit b4dd2c93ca
3 changed files with 13 additions and 2 deletions

View file

@ -16,6 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
void DEBUG_SetupConsole(void);
void DEBUG_DrawScreen(void);
bool DEBUG_Breakpoint(void);
bool DEBUG_IntBreakpoint(Bit8u intNum);

View file

@ -946,16 +946,21 @@ static void DEBUG_ProgramStart(Program * * make) {
// INIT
void DEBUG_Init(Section* sec) {
void DEBUG_SetupConsole(void)
{
#ifdef WIN32
WIN32_Console();
#endif
#endif
memset((void *)&dbg,0,sizeof(dbg));
debugging=false;
dbg.active_win=3;
input_count=0;
/* Start the Debug Gui */
DBGUI_StartUp();
};
void DEBUG_Init(Section* sec) {
DEBUG_DrawScreen();
/* Add some keyhandlers */
KEYBOARD_AddEvent(KBD_kpminus,0,DEBUG_Enable);

View file

@ -518,6 +518,11 @@ void GFX_ShowMsg(char * msg) {
};
int main(int argc, char* argv[]) {
#if C_DEBUG
DEBUG_SetupConsole();
#endif
try {
CommandLine com_line(argc,argv);
Config myconf(&com_line);