From ca4c7db06596c1257fb8ad97edc8d3b852842755 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 6 Nov 2002 14:27:29 +0000 Subject: [PATCH] added support for debugger under non-windows systems! no colors yet/ and afterwards your term is messed up :) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@485 --- ChangeLog | 6 ++++++ settings.h.cvs | 2 +- src/debug/debug.cpp | 5 ++++- src/debug/debug_gui.cpp | 4 ++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d91901cb..7b47ffb9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ + - added support for command /C + - fixed all fcb-write functions + - fixed fcb-parseline + - added debugger under linux/freebsd + + 0.56 - added support for a configclass/configfile - added support for writing out the configclass into a configfile diff --git a/settings.h.cvs b/settings.h.cvs index 81f3ec27..af5707b7 100644 --- a/settings.h.cvs +++ b/settings.h.cvs @@ -19,7 +19,7 @@ #ifndef _SETTINGS_H_ #define _SETTINSG_H_ -/* Enable the debugger, this only seems to work in win32 for now. */ +/* Enable the debugger, under linux/freebsd dosbox must be started in an xterm under X */ #define C_DEBUG 0 #define C_HEAVY_DEBUG 0 diff --git a/src/debug/debug.cpp b/src/debug/debug.cpp index a4c92d43..92f2e33a 100644 --- a/src/debug/debug.cpp +++ b/src/debug/debug.cpp @@ -34,7 +34,7 @@ #include "mixer.h" #include "debug_inc.h" #include "timer.h" -#include "..\shell\shell_inc.h" +#include "../shell/shell_inc.h" #ifdef WIN32 void WIN32_Console(); @@ -1048,6 +1048,9 @@ void DEBUG_SetupConsole(void) { #ifdef WIN32 WIN32_Console(); + #else + printf("\e[8;50;80t"); //resize terminal + fflush(NULL); #endif memset((void *)&dbg,0,sizeof(dbg)); debugging=false; diff --git a/src/debug/debug_gui.cpp b/src/debug/debug_gui.cpp index 43d8d305..64eb95fb 100644 --- a/src/debug/debug_gui.cpp +++ b/src/debug/debug_gui.cpp @@ -122,6 +122,10 @@ void DBGUI_StartUp(void) { noecho(); /* don't echo input */ nodelay(dbg.win_main,true); keypad(dbg.win_main,true); + #ifndef WIN32 + resizeterm(50,80); + touchwin(dbg.win_main); + #endif cycle_count=0; MakePairs(); MakeSubWindows();