Subject: CVS commit: src/usr.bin/kdump
To: None <source-changes@NetBSD.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 01/15/2005 17:55:38
Module Name:	src
Committed By:	jdolecek
Date:		Sat Jan 15 17:55:38 UTC 2005

Modified Files:
	src/usr.bin/kdump: setemul.c

Log Message:
ectx_find() failed to lookup the emulation context unless it happened
to be the first entry, effectively resetting context of all processes to
default emulation on every EMUL trace record

rewrite ectx_find() to fix this, using <sys/queue.h> LIST for readability

this fix should once and for all remove need to ever use -e option,
and makes kdump work properly for traces with processes under different
emulations


To generate a diff of this commit:
cvs rdiff -r1.19 -r1.20 src/usr.bin/kdump/setemul.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.