Don't ask for source file in auto mode.

This commit is contained in:
Alexandre Julliard 2002-06-13 21:37:07 +00:00
parent 449bb92bc0
commit a3edecaa6f
3 changed files with 24 additions and 20 deletions

View File

@ -530,6 +530,7 @@ extern void DEBUG_Run(const char* args);
extern DBG_PROCESS* DEBUG_GetProcess(DWORD pid); extern DBG_PROCESS* DEBUG_GetProcess(DWORD pid);
extern DBG_THREAD* DEBUG_GetThread(DBG_PROCESS* p, DWORD tid); extern DBG_THREAD* DEBUG_GetThread(DBG_PROCESS* p, DWORD tid);
extern int curr_frame; extern int curr_frame;
extern int automatic_mode;
/* Choose your allocator! */ /* Choose your allocator! */
#if 1 #if 1

View File

@ -195,6 +195,8 @@ DEBUG_DisplaySource(char * sourcefile, int start, int end)
} }
if( sl == NULL ) if( sl == NULL )
{
if (!automatic_mode)
{ {
char zbuf[256]; char zbuf[256];
/* /*
@ -218,6 +220,7 @@ DEBUG_DisplaySource(char * sourcefile, int start, int end)
strcat(tmppath, basename); strcat(tmppath, basename);
status = stat(tmppath, &statbuf); status = stat(tmppath, &statbuf);
}
if( status == -1 ) if( status == -1 )
{ {
/* /*

View File

@ -42,10 +42,10 @@ CONTEXT DEBUG_context;
BOOL DEBUG_interactiveP = FALSE; BOOL DEBUG_interactiveP = FALSE;
enum exit_mode DEBUG_ExitMode = EXIT_CONTINUE; enum exit_mode DEBUG_ExitMode = EXIT_CONTINUE;
int curr_frame = 0; int curr_frame = 0;
int automatic_mode = 0;
static char* DEBUG_LastCmdLine = NULL; static char* DEBUG_LastCmdLine = NULL;
static DBG_PROCESS* DEBUG_ProcessList = NULL; static DBG_PROCESS* DEBUG_ProcessList = NULL;
static int automatic_mode;
DBG_INTVAR DEBUG_IntVars[DBG_IV_LAST]; DBG_INTVAR DEBUG_IntVars[DBG_IV_LAST];
void DEBUG_OutputA(int chn, const char* buffer, int len) void DEBUG_OutputA(int chn, const char* buffer, int len)