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
This commit is contained in:
parent
9a3ccda025
commit
ca4c7db065
4 changed files with 15 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue