=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/kdump/kdump.c,v retrieving revision 1.59 retrieving revision 1.60 diff -c -r1.59 -r1.60 *** src/usr.bin/kdump/kdump.c 2011/07/17 06:55:25 1.59 --- src/usr.bin/kdump/kdump.c 2011/07/17 07:49:34 1.60 *************** *** 1,4 **** ! /* $OpenBSD: kdump.c,v 1.59 2011/07/17 06:55:25 otto Exp $ */ /*- * Copyright (c) 1988, 1993 --- 1,4 ---- ! /* $OpenBSD: kdump.c,v 1.60 2011/07/17 07:49:34 otto Exp $ */ /*- * Copyright (c) 1988, 1993 *************** *** 108,113 **** --- 108,114 ---- }; static struct emulation *current; + static struct emulation *def_emul; struct pid_emul { struct emulation *e; *************** *** 151,162 **** int trpoints = ALL_POINTS; void *m; ! current = &emulations[0]; /* native */ while ((ch = getopt(argc, argv, "e:f:dlm:nrRp:Tt:xX")) != -1) switch (ch) { case 'e': setemul(optarg); break; case 'f': tracefile = optarg; --- 152,164 ---- int trpoints = ALL_POINTS; void *m; ! def_emul = current = &emulations[0]; /* native */ while ((ch = getopt(argc, argv, "e:f:dlm:nrRp:Tt:xX")) != -1) switch (ch) { case 'e': setemul(optarg); + def_emul = current; break; case 'f': tracefile = optarg; *************** *** 294,300 **** for (i = 0; i < pe_size; i++) if (pe_table[i].p == pid) return pe_table[i].e; ! return current; } static int --- 296,302 ---- for (i = 0; i < pe_size; i++) if (pe_table[i].p == pid) return pe_table[i].e; ! return def_emul; } static int