Lines Matching refs:mode
23 "%s <options> [ <mode> ]\n"
150 get_crash_function(const char* mode)
152 if (strcmp(mode, "segv") == 0) {
154 } else if (strcmp(mode, "segv2") == 0) {
156 } else if (strcmp(mode, "div") == 0) {
158 } else if (strcmp(mode, "debugger") == 0) {
160 } else if (strcmp(mode, "assert") == 0) {
163 } else if (strcmp(mode, "int3") == 0) {
165 } else if (strcmp(mode, "protection") == 0) {
204 const char* mode = "segv";
230 mode = arg;
234 sOptions.function = get_crash_function(mode);
236 fprintf(stderr, "Invalid mode \"%s\"\n", mode);