X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fdebug%2Fdebugger.c;h=91bfc236c45b9db36cdf065999dc5f51550884c3;hb=bb5c6d5ce2e35c4074900017f8c8e1a4935054d0;hp=a6f883f20e8fd04ab7cadc5dcd0b2d44f610cccd;hpb=81a1291a7e91bb22b018d5daa2c749c0c184ac8d;p=libfirm diff --git a/ir/debug/debugger.c b/ir/debug/debugger.c index a6f883f20..91bfc236c 100644 --- a/ir/debug/debugger.c +++ b/ir/debug/debugger.c @@ -63,6 +63,7 @@ #include "irdump.h" #include "iredges_t.h" #include "debug.h" +#include "error.h" #ifdef _WIN32 /* Break into the debugger. The Win32 way. */ @@ -435,9 +436,9 @@ static const char *reason_str(bp_reasons_t reason) case BP_ON_REMIRG: return "removing IRG"; case BP_ON_NEW_ENT: return "entity creation"; case BP_ON_NEW_TYPE: return "type creation"; - default: assert(0); + case BP_MAX_REASON: break; } - return "unknown"; + panic("unsupported reason"); } /* reason_str */ /**