aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/db
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-07 23:11:34 +0000
committerrsc <devnull@localhost>2005-01-07 23:11:34 +0000
commit266f8e128c2f6577087d3ad07061a64db5ec490c (patch)
tree0c582f3cc339845676e0686d020dd991c9f9690e /src/cmd/db
parent3088012119949110f760303b77b8c355567eba41 (diff)
downloadplan9port-266f8e128c2f6577087d3ad07061a64db5ec490c.tar.gz
plan9port-266f8e128c2f6577087d3ad07061a64db5ec490c.tar.bz2
plan9port-266f8e128c2f6577087d3ad07061a64db5ec490c.zip
oops
Diffstat (limited to 'src/cmd/db')
-rw-r--r--src/cmd/db/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/db/print.c b/src/cmd/db/print.c
index 134cbc8f..41eb98c6 100644
--- a/src/cmd/db/print.c
+++ b/src/cmd/db/print.c
@@ -380,7 +380,7 @@ printlocals(Symbol *fn, Regs *regs)
for (i = 0; indexlsym(fn, i, &s)>=0; i++) {
if (s.class != CAUTO)
continue;
- if(lget4(cormap, correg, s.loc, &v) >= 0)
+ if(lget4(cormap, regs, s.loc, &v) >= 0)
dprint("%8t%s.%s/%10t%#lux\n", fn->name, s.name, v);
else
dprint("%8t%s.%s/%10t?\n", fn->name, s.name);
@@ -400,7 +400,7 @@ printparams(Symbol *fn, Regs *regs)
continue;
if (first++)
dprint(", ");
- if(lget4(cormap, correg, s.loc, &v) >= 0)
+ if(lget4(cormap, regs, s.loc, &v) >= 0)
dprint("%s=%#lux", s.name, v);
else
dprint("%s=?", s.name);