X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=sim%2Fdebug.cc;h=3467d16695e37687e13f8f62d380339b043235f0;hb=f31a27a030d2e93fef2934aa8642609bb38974af;hp=6f3789c96c0264cb27aaf01e50a8467ee3b02e58;hpb=37a718e45e9bb1d841c6c5d1b428461819f18a74;p=gem5.git diff --git a/sim/debug.cc b/sim/debug.cc index 6f3789c96..3467d1669 100644 --- a/sim/debug.cc +++ b/sim/debug.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003 The Regents of The University of Michigan + * Copyright (c) 2003-2004 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -43,7 +43,11 @@ using namespace std; void debug_break() { +#ifndef NDEBUG kill(getpid(), SIGTRAP); +#else + cprintf("debug_break suppressed, compiled with NDEBUG\n"); +#endif } // @@ -64,10 +68,10 @@ class DebugBreakEvent : public Event // constructor: schedule at specified time // DebugBreakEvent::DebugBreakEvent(EventQueue *q, Tick _when) - : Event(q) + : Event(q, Debug_Break_Pri) { setFlags(AutoDelete); - schedule(_when, -20000); + schedule(_when); } //