Commit Graph

13 Commits

Author SHA1 Message Date
atatat 3535ff5eb9 Print the string as if it's a string. Don't print the pointer. It's
useless for the non-omniscient (who, by definition, would have no need
for this program anyway).
2003-01-16 15:34:18 +00:00
atatat 80f8e56ac7 More properly handle the setgid privileges that we have, casting them
out if using them might be unsafe.
2003-01-09 13:05:12 +00:00
atatat a26b7f4d29 Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it
would fail in spectacular ways on LOCKDEBUG kernels) by compiling the
groveler code twice (the second time with LOCKDEBUG defined so that
the appropriate structures get larger in the right way).  We currently
decide if we are operating on a kernel with LOCKDEBUG enabled if the
kernel's vm_map has referential integrity between a few pointers
and/or values.

Also, if you use more than one -v, you get a * on a line by itself in
between gaps in entries.  It makes finding gaps much easier visually.
2003-01-08 20:25:12 +00:00
thorpej e0e584cdfa Avoid a trigraph, and fix printf formats. 2002-12-06 03:05:04 +00:00
thorpej 35d6519b2d Don't truncate the vm_map_entry offset to 32-bits when printing. 2002-10-29 14:50:53 +00:00
atatat 2bc4364804 Provides better error messages from the symbol lookups (printing
merely "  == 1" is just *not* helpful).

Note which symbols were missing (better for bug reports, if anyone
files one :).

Make the kernel submap symbols optional (sparc, sparc64, most powerpc,
and the sh3 ports seem not to have a phys_map -- problem noted by
myself yesterday).

Oh, and a little misc lint cleanup while I'm here.
2002-10-17 17:18:34 +00:00
atatat 9bc250be61 Print the contents of the aref (it's small and MI -- MD code here
would be horrific).

Handle the new VM_MAP_DYING flag (and adjust the VM_MAP_TOPDOWN bit).

Check to see if 0, 1, and 2 are properly "open" and try to "adjust" if
they're not.  Emit no warnings or errors here.
2002-10-12 03:08:27 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
atatat 7266746efe Provide names for the map and submaps when doing recursive verbose
ddb-style output.
2002-09-19 02:43:51 +00:00
atatat 4d2c9bf2c0 Make error messages a little more informative. Add -R option to
recurse into submaps (a kernel thing) as suggested by Chuck Cranor,
with the output from these entries indented.  Clean up and rework code
slightly, to make the recursion task much easier.  Also, add a note to
the BUGS section in the man page thats mentions that stuff "just won't
work right" unless pmap is reading from the proper kernel.
2002-09-17 19:54:28 +00:00
atatat ba9dd2c172 Add verbose support to the -l output, tweak verbose support for -d
output, and tweak the man page (running pmap(1) vs. the kernel_map can
have a *very* visible effect).
2002-09-13 15:32:49 +00:00
atatat 0fb6b57457 Unterminated comment. Grr... 2002-09-01 20:37:28 +00:00
atatat 692fefdd0e Move pmap(1) to /usr/bin (from /usr/sbin) where it belongs. 2002-09-01 20:32:43 +00:00