linux-mips
[Top] [All Lists]

[PATCH] show register names in show_regs

To: Linux Mips Mailing List <linux-mips@linux-mips.org>
Subject: [PATCH] show register names in show_regs
From: Gerald Champagne <gerald.champagne@esstech.com>
Date: 27 Sep 2002 15:47:08 -0500
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The following trivial patch makes show_regs display register names
before each value.  I find this format much faster to read when
comparing register dumps to assembly code.  The results look like this:

 $0:             at=00000000 v0=90008400 v1=00000037
 $4: a0=8023a934 a1=00000001 a2=81275e64 a3=00000562
 $8: t0=00000562 t1=81275d38 t2=7a797877 t3=4a494847
$12: t4=80268356 t5=fffffffe t6=00000010 t7=4e4d4c4b
$16: s0=ffffffff s1=b8000800 s2=802647b0 s3=00000000
$20: s4=00000000 s5=00000000 s6=00000004 s7=000000ff
$24: t8=ffffffff t9=00000001 k0=........ k1=........
$28: gp=81274000 sp=81275e20 fp=00000000 ra=80211c6c

Is this acceptable, or do people prefer the existing method without the
register names?

Gerald


Attachment: show_regs.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>