#include "copyright.h"#include "utility.h"#include "sysdep.h"Go to the source code of this file.
Compounds | |
| class | Debug |
| Data structure for debugging routines. More... | |
Defines | |
| #define | DEBUG(flag, expr) |
| #define | ASSERT(condition) |
| #define | ASSERTNOTREACHED() |
Variables | |
| const char | dbgAll = |
| turn on all debug messages. More... | |
| const char | dbgThread = |
| threads. More... | |
| const char | dbgSynch = |
| locks, semaphores, condition vars. More... | |
| const char | dbgInt = |
| interrupt emulation. More... | |
| const char | dbgMach = |
| machine emulation (USER_PROGRAM). More... | |
| const char | dbgDisk = |
| disk emulation (FILESYS). More... | |
| const char | dbgFile = |
| file system (FILESYS). More... | |
| const char | dbgAddr = |
| address spaces (USER_PROGRAM). More... | |
| const char | dbgNet = |
| network emulation (NETWORK). More... | |
| Debug* | debug |
|
|
|
Value: { \
cerr << "Assertion failed: line " << __LINE__ << " file " << __FILE__ << "\n"; \
Abort(); \
}
NOTE: needs to be a define, to be able to print the location where the error occurred. Definition at line 81 of file debug.h. Referenced by ExceptionHandler(), AddrSpace::Execute(), List::SelfTest(), and HashTable::SelfTest().
|
|
|
Value: if (!debug->IsEnabled(flag)) {} else { \
cerr << expr << "\n"; \
}
Definition at line 51 of file debug.h. Referenced by Thread::Begin(), NetworkInput::CallBack(), Disk::ComputeLatency(), Copy(), FileSystem::Create(), Disk::Disk(), ExceptionHandler(), FileSystem::FileSystem(), Thread::Finish(), Thread::Fork(), MailBox::Get(), AddrSpace::InitRegisters(), AddrSpace::Load(), Machine::OneInstruction(), FileSystem::Open(), Machine::RaiseException(), OpenFile::ReadAt(), Machine::ReadMem(), Disk::ReadRequest(), Scheduler::ReadyToRun(), Thread::SelfTest(), NetworkOutput::Send(), Thread::Sleep(), Machine::Translate(), Disk::UpdateLast(), OpenFile::WriteAt(), Machine::WriteMem(), Disk::WriteRequest(), Thread::Yield(), main(), and Thread::~Thread().
|
|
|
address spaces (USER_PROGRAM).
|
|
|
turn on all debug messages.
|
|
|
disk emulation (FILESYS).
|
|
|
file system (FILESYS).
|
|
|
interrupt emulation.
|
|
|
machine emulation (USER_PROGRAM).
|
|
|
network emulation (NETWORK).
|
|
|
locks, semaphores, condition vars.
|
|
|
threads.
|
|
|
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001