Commit Graph

13 Commits

Author SHA1 Message Date
christos 58fc70c4d6 WARNS=3 2005-07-16 22:00:01 +00:00
mrg 2ccd4840f5 - add a new flags field to the emulation vector, with one user so far
EMUL_FLAG_NETBSD32.  set EMUL_FLAG_NETBSD32 in any 32 bit on 64 bit
kernel emulation layers.
- if EMUL_FLAG_NETBSD32 is set, calculate the proper argument count.
(XXX: this should use register32_t, but that's not visible to all
builders of kdump...)

now netbsd32_ioctl(2) actually reports sane values, and other arguments
are mostly correctly printed (there are still some signed extension
issues with 32 bit numbers being displayed as "0xffffffff8xxxxxxx".)
2004-01-12 13:39:56 +00:00
dsl 3433691e60 Stop core dump if an ioctl trace has fewer than expected 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.
2003-11-18 13:21:53 +00:00
manu a0399121cc kdump now displays Mach services names itself, including a table of
id/names in sys/compat/mach/mach_services_names.c

Remove ports and flags displays, the information is already in the message.
2003-11-15 23:10:31 +00:00
christos 87b62b5af0 KNF:
- ansify
- no breaks after returns
- statics where needed
- no exit after errx
2003-10-19 07:34:38 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
manu bcffe04b31 Now properly display Mach traps 2002-11-15 19:58:05 +00:00
christos f600368b8f Provide hooks for signal number to name translation, and use them for kill
and PSIG.

XXX[1]: This shows that signal emulation ktrace is slightly busted: posted
	signals should really be translated to the emulated ones instead of
	producing ktrace records with the signal numbers of the native
	emulation.
XXX[2]: There are other places where signal names can be displayed, but this
	is not done yet.
2002-03-31 22:44:03 +00:00
manu 1a6f014301 Cosmetic fix so that RET record after CALL execve get the appropriate syscall
even if the emulation changed
2001-02-16 23:28:44 +00:00
enami 1dcd879fa8 Make files here compile again. 2001-01-19 14:14:03 +00:00
itojun 08138ae451 avoid using "errno" as struct member name, to avoid conflict with errno.h.
ok by jdolecek
2000-12-20 22:11:16 +00:00
jdolecek 862d46845d adapt to *syscallnames[] change (it's now const char * const foo[]),
constify
2000-11-13 21:38:48 +00:00
jdolecek 470e7fc568 put setemul(), ectx_* & appropriate structures to separate file, to make it
more easily sharable with ktruss(1)
2000-04-10 09:13:45 +00:00