X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fdebug%2Fdebugger.c;h=91bfc236c45b9db36cdf065999dc5f51550884c3;hb=0cc8bfc863da28d3799e9eca1d1765d564b6e573;hp=67a53845a1f64ca8976c09bf9ed0af4dab73a151;hpb=fffd40dc823ed4492255ab0fa50c56f0c04b0a7a;p=libfirm diff --git a/ir/debug/debugger.c b/ir/debug/debugger.c index 67a53845a..91bfc236c 100644 --- a/ir/debug/debugger.c +++ b/ir/debug/debugger.c @@ -36,7 +36,6 @@ #define WIN32_LEAN_AND_MEAN #include -#define strncasecmp strnicmp #endif #ifdef HAVE_STDLIB_H @@ -64,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. */ @@ -436,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 */ /**