external debugger only: fixed ask() to be virtual to let a panic trap into external debugger

This commit is contained in:
Peter Tattam 2003-02-26 02:41:30 +00:00
parent 0c39404940
commit 70d752c8c2
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: bochs.h,v 1.119 2003-02-17 03:21:45 yakovlev Exp $
// $Id: bochs.h,v 1.120 2003-02-26 02:41:29 ptrumpet Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
@ -264,7 +264,11 @@ public:
void pass(const char *fmt, ...) BX_CPP_AttrPrintf(2, 3);
void ldebug(const char *fmt, ...) BX_CPP_AttrPrintf(2, 3);
void fatal (const char *prefix, const char *fmt, va_list ap, int exit_status);
#if BX_EXTERNAL_DEBUGGER
virtual void ask (int level, const char *prefix, const char *fmt, va_list ap);
#else
void ask (int level, const char *prefix, const char *fmt, va_list ap);
#endif
void put(char *);
void settype(int);
void setio(class iofunctions *);

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: cpu.h,v 1.129 2003-02-13 15:51:18 sshwarts Exp $
// $Id: cpu.h,v 1.130 2003-02-26 02:41:30 ptrumpet Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
@ -1561,7 +1561,7 @@ union {
#endif
#if BX_EXTERNAL_DEBUGGER
void ask (int level, const char *prefix, const char *fmt, va_list ap);
virtual void ask (int level, const char *prefix, const char *fmt, va_list ap);
#endif
#define ArithmeticalFlag(flag, lfMaskShift, eflagsBitShift) \