Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.bin/kdump update from trunk, rev 1.4 (approved by t...



details:   https://anonhg.NetBSD.org/src/rev/80593f843d26
branches:  netbsd-1-5
changeset: 488605:80593f843d26
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Jul 20 22:23:09 2000 +0000

description:
update from trunk, rev 1.4 (approved by thorpej):
ectx_sanify(): ditch utterly broken 'optimization', which caused incorrect
  emulation structures to be used in every even case if default emulation
  and emulation of process differed.

Bug found by Bill Studenmund.

diffstat:

 usr.bin/kdump/setemul.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c3cc220323e4 -r 80593f843d26 usr.bin/kdump/setemul.c
--- a/usr.bin/kdump/setemul.c   Thu Jul 20 19:06:09 2000 +0000
+++ b/usr.bin/kdump/setemul.c   Thu Jul 20 22:23:09 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: setemul.c,v 1.3 2000/06/13 00:59:22 itohy Exp $        */
+/*     $NetBSD: setemul.c,v 1.3.2.1 2000/07/20 22:23:09 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: setemul.c,v 1.3 2000/06/13 00:59:22 itohy Exp $");
+__RCSID("$NetBSD: setemul.c,v 1.3.2.1 2000/07/20 22:23:09 jdolecek Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -254,7 +254,7 @@
 {
        struct emulation_ctx *ctx;
 
-       if ((ctx = ectx_find(pid)) != NULL && ctx->emulation != current)
+       if ((ctx = ectx_find(pid)) != NULL)
                current = ctx->emulation;
        else if (default_emul)
                current = default_emul;



Home | Main Index | Thread Index | Old Index