From 108cfe53d6ac09c18dc531230a38bdc1c25bd2cb Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 28 Nov 2005 18:33:48 -0500 Subject: Make the debugger a bit more useful with m5.opt by moving stuff from #ifdef DEBUG to #ifndef NDEBUG base/remote_gdb.cc: make the remote debugger gdb stuff work in m5.opt sim/system.cc: sim/system.hh: make the console panic break event happen in m5.opt --HG-- extra : convert_revision : 044a9b7cdacb058112388a31315e45c5d8cf70fd --- sim/system.cc | 2 +- sim/system.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sim') diff --git a/sim/system.cc b/sim/system.cc index c91d7f142..4bcc89c56 100644 --- a/sim/system.cc +++ b/sim/system.cc @@ -123,7 +123,7 @@ System::System(Params *p) DPRINTF(Loader, "Kernel loaded...\n"); Addr addr = 0; -#ifdef DEBUG +#ifndef NDEBUG consolePanicEvent = addConsoleFuncEvent("panic"); #endif diff --git a/sim/system.hh b/sim/system.hh index 8cfe790de..aa697c040 100644 --- a/sim/system.hh +++ b/sim/system.hh @@ -97,7 +97,7 @@ class System : public SimObject Kernel::Binning *kernelBinning; -#ifdef DEBUG +#ifndef NDEBUG /** Event to halt the simulator if the console calls panic() */ BreakPCEvent *consolePanicEvent; #endif -- cgit v1.2.3