Subject: CVS commit: src/usr.bin/kdump
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 11/18/2003 13:21:54
Module Name:	src
Committed By:	dsl
Date:		Tue Nov 18 13:21:54 UTC 2003

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

Log Message:
- Stop core dump is an ioctl trace has fewer than expeceted arguments.
- Check names of system calls (for special treatment) because emulations
  might use different numbers.
- Report an error if arguments to -p or -m non-numeric.
- Just take last of -x and -Xvalue, stop -X0x80000000 being valid (core dumps).
- Keep 'last used' emulation_ctx at top of list, create on lookup (usually
  EMUL anyway), delete when exit called (doesn't return).
- Slightly improve hack to get correct system call name in execve return
  when emulation has changed.
- Rename global variables 'current'/'previous' to 'cur_emul'/'prev_emul'.
(TODO: save system call type (and maybe an argument) per pid so GIO trace
format can depend on the actual system call.)
Fixes part of PR sparc64/23473 - but system call arguments will still not be
displayed correctly.


To generate a diff of this commit:
cvs rdiff -r1.66 -r1.67 src/usr.bin/kdump/kdump.c
cvs rdiff -r1.17 -r1.18 src/usr.bin/kdump/setemul.c
cvs rdiff -r1.10 -r1.11 src/usr.bin/kdump/setemul.h

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