Subject: Re: unexpected halt of system while trying to print
To: Chris G. Demetriou <cgd@pa.dec.com>
From: Dave Cherkus <cherkus@homerun.unimaster.com>
List: port-alpha
Date: 03/09/1998 19:31:58
Chris G. Demetriou writes:
|> 
|> 	examine -gpr r0
|> 
|> to get the contents of r0, etc.  repeat for r0 -> r30.  8-)

Based on my experience with dunix, the following will print all the
registers:

>> examine r0
>> examine -gpr -n 32

The following may be useful as well:

>> examine pc
>> examine ra
>> examine sp

If you want to look at other cpus in an SMP box:

>> halt 1
>> set host 1
(on some consoles, use 'set cpu 1' instead of 'set host 1')
>> examine pc
>> examine ra
>> examine sp
>> examine r0
>> examine -gpr -n 32

>> halt 2
>> set host 2
>> examine pc
>> examine ra
>> examine sp
>> examine r0
>> examine -gpr -n 32

... etc, for all cpus

Then:

>> set host 0
>> crash 

if you want a crash dump (not sure what netbsd does when you do this)

-- 
Dave Cherkus ------- UniMaster, Inc. ------ Contract Software Development
Specialties: UNIX Internals/Kernel TCP/IP Alpha Clusters Performance ISDN
Email: cherkus@UniMaster.COM  When the music's over, turn out the lights!