* Copyright (c) 1980 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)printdata.c 5.3 (Berkeley) %G%";
* print contents of data addresses in octal
* There are two entries: one is given a range of addresses,
* the other is given a count and a starting address.
#include "process/process.rep"
#include "process/pxinfo.h"
* print words from lowaddr to highaddr
printdata(lowaddr
, highaddr
)
if (lowaddr
> highaddr
) {
error("first address larger than second");
for (addr
= lowaddr
; addr
<= highaddr
; addr
+= sizeof(int)) {
dread(&val
, addr
, sizeof(val
));
if (++count
>= WORDSPERLINE
) {