commit 266f8e128c2f6577087d3ad07061a64db5ec490c from: rsc date: Fri Jan 07 23:11:34 2005 UTC oops commit - 3088012119949110f760303b77b8c355567eba41 commit + 266f8e128c2f6577087d3ad07061a64db5ec490c blob - 134cbc8f3e3ced8e56a6ba0b85e1dbdc952fd07d blob + 41eb98c684d76adc1a2d3ef5309626100605f42d --- src/cmd/db/print.c +++ 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);