Avoid sending a signal to ourselves if we're not debugging

--HG--
extra : convert_revision : d6ba1ce30bad4a44d716238a8107c3bff0ce89c4
This commit is contained in:
Nathan Binkert 2004-05-13 06:59:05 -04:00
parent a4d7bb113a
commit ce697a592e
2 changed files with 6 additions and 0 deletions

View file

@ -40,11 +40,13 @@
using namespace std;
#ifdef DEBUG
void
debug_break()
{
kill(getpid(), SIGTRAP);
}
#endif
//
// Debug event: place a breakpoint on the process function and

View file

@ -29,6 +29,10 @@
#ifndef __DEBUG_HH__
#define __DEBUG_HH__
#ifdef DEBUG
void debug_break();
#else
inline void debug_break() { }
#endif
#endif // __DEBUG_HH__