Commit Graph

105 Commits

Author SHA1 Message Date
manu
cbfacd83b6 Make hexdump output fix in 80 char-wide terminal 2003-07-12 19:22:07 +00:00
manu
e9383d7e5d Use the same code to display hexdump of GIO and MMSG (Mach Messages).
While we are there, display offsets in the hexdump, it can be useful.
Remove size display in Mach Messages as user processes don't always
fill it correctly.
2003-07-12 10:07:08 +00:00
wiz
b712736290 Add -x to usage output. 2003-07-11 13:06:11 +00:00
wiz
79093334ef Bump date for -x addition. 2003-07-11 13:05:26 +00:00
dsl
6ea05bcbfe Add a '-x' option to display GIO data blocks in hex and ascii (instead of
vis(3) format).
Maybe there could be a heuristic to decide whether the data is printable...
2003-07-11 10:59:28 +00:00
fvdl
4fdb86c883 Back out previous. 2003-06-29 22:35:35 +00:00
martin
40ee31ef5e Since a caddr_t is (mis-)used as the lwp-id, cast it to intptr_t and use
apropriate format string.
2003-06-29 18:05:06 +00:00
darrenr
d0ad455673 add appropriate hack to display ktr_buf as the lwpid if -L is supplied on
the command line.
2003-06-28 17:15:07 +00:00
mjl
91085f010d Add sys/sockio.h to needed includes for SIOCGIFASYNCMAP. 2003-06-24 11:27:50 +00:00
dsl
d9380c052a Print rval[1] if non-zero and present in the trace entry.
To get both fd numbers for pipe().
2003-05-15 12:57:54 +00:00
christos
b8dae40722 Don't invoke the grep for cleandir and obj targets. Suggested by
Juergen Hannken-Illjes
2003-04-18 14:43:49 +00:00
christos
aa5b09ddbf PR/21117: Robert Elz: Makefile-ioctl.c mishandles dependencies 2003-04-13 05:04:00 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
atatat
9658e47b39 Make "-m0" print no data, so that we agree better with the man page. 2003-01-30 21:43:26 +00:00
manu
6492e2171f Added support for dumping mach messages in ktrace/kdump. While we are
there, KNFify a few functions.
2002-12-09 21:29:20 +00:00
wiz
287a8f7fb0 Sync usage with man page (and actual options). 2002-11-29 19:15:41 +00:00
wiz
75c991f87d Bump date for -N; sort options. 2002-11-29 19:14:00 +00:00
jdolecek
d51c5abbd9 signame(): if sig == 0, return name " 0", so that the result would be
printed as:
   CALL  kill(0x1e4, SIG 0)
rathern than previous
   CALL  kill(0x1e4, SIG*unknown 0*)
2002-11-28 16:18:49 +00:00
atatat
a19ac80340 Add -N which inhibits translation of system calls numbers into names. 2002-11-27 21:26:57 +00:00
manu
bcffe04b31 Now properly display Mach traps 2002-11-15 19:58:05 +00:00
manu
0d50171c61 Added support for COMPAT_MACH 2002-10-29 07:17:43 +00:00
wiz
17cf386a88 Bump date for .Op Ar file addition. 2002-09-28 12:40:41 +00:00
atatat
76df260979 Allow passing of the ktrace file as the last argument without a -f. 2002-09-27 20:31:44 +00:00
lukem
2c16ea6f7e use NETBSDSRCDIR as appropriate 2002-09-19 11:31:21 +00:00
lha
35e64a7b76 remove extra $ from previous commit 2002-09-18 20:50:22 +00:00
lukem
5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
lukem
ed401558f2 Implement MKDYNAMICROOT, which currently defaults to "no", but will
be changed in the future to "yes".

If MKDYNAMICROOT == "no", there is no change from existing behaviour
of a static /bin and /sbin (and a few programs in elsewhere).

If MKDYNAMICROOT == "yes", the following changes occur:
    in <bsd.own.mk>:
	SHLIBDIR?=     /lib
	SHLINKDIR?=	/lib
    in various Makefiles, the following entry is DISABLED.
	LDSTATIC?=-static
This results in all programs (except those "standalone" programs built
in sys/arch/*/stand) are linked dynamically, the shared linker is moved
from /usr/libexec to /lib (with a compat symlink), and the shared
libraries used by /bin and /sbin programs are moved from /usr/lib to
/lib (with compat symlinks).
2002-08-27 14:46:11 +00:00
jdolecek
d733dc2b03 Fix formatting of ktr_user entries so that values of individual bytes
of ktrace record are treated as unsigned char, and printed using "%02x".
Change suggested in bin/17832 by Paul Goyette.
2002-08-04 14:26:21 +00:00
atatat
40bd599a90 It's easy for ktrace can generate trace files that contain data from
multiple processes, so let's add a "-p pid" option to kdump so that it
can pull out the data for one process easily.
2002-06-20 22:02:32 +00:00
christos
44788ce33b Fix translation in the native emulation. Noted by veego. 2002-04-08 20:15:59 +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
christos
35734831f9 reverse the notion of fancy, use plain, and increment it so that we can
have multiple levels of plainness. I want to be able to display syscalls
numerically, for that use -nn. This is not documented as it is an wip.
2002-02-12 22:22:37 +00:00
manu
3219730476 reflect iric o32/n32 emulations 2002-01-07 23:45:10 +00:00
manu
bb34193550 Now use IRIX errno translation instead of SVR4 errno translation 2001-12-02 16:18:01 +00:00
wiz
aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
manu
9a1cd2898a Added support for IRIX emulation 2001-11-28 10:36:48 +00:00
mycroft
0505c42bda Quotes around ${CC}... 2001-09-25 14:26:56 +00:00
jdolecek
6f081befa2 set CC and DESTDIR for mkioctls accordingly
patch by Chris Jepeway via tech-userlevel.
2001-09-23 08:51:11 +00:00
eeh
7cb49c5859 Add svr4_32 info. 2001-03-11 21:28:59 +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
jdolecek
d15ae688ce use 'trstr' for parameter to -t; both 'cenis' (SYNOPSIS) and 'cnis' (DESCRIPTION)
were already out of date and we really don't want keep the info on two
places
2001-02-04 20:44:53 +00:00
mrg
05ebb290f5 teach kdump about compat/sunos32 2001-02-02 07:41:54 +00:00
enami
1dcd879fa8 Make files here compile again. 2001-01-19 14:14:03 +00:00
jdolecek
be3807a7c5 adapt to KTR_USER structure changes 2000-12-28 11:11:34 +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
33150dda73 add support for KTR_USER records 2000-12-17 16:09:40 +00:00
jdolecek
53b6556eda back out previous change - this needs to be discussed first at least 2000-11-14 00:10:16 +00:00
jdolecek
dfc9af3212 don't link these static; if shared libraries are hosed, these utilities would
surely not save the situation, not help to recover from it
2000-11-13 21:48:33 +00:00
jdolecek
b837b700fa map linux ptrace op (number) to it's appropriate name - this is kind of hack,
but turned out to be pretty usable for me
2000-11-13 21:43:12 +00:00
jdolecek
862d46845d adapt to *syscallnames[] change (it's now const char * const foo[]),
constify
2000-11-13 21:38:48 +00:00