From 266f8e128c2f6577087d3ad07061a64db5ec490c Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 7 Jan 2005 23:11:34 +0000 Subject: oops --- src/cmd/db/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/db') 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); -- cgit v1.2.3