toops - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 266f8e128c2f6577087d3ad07061a64db5ec490c
 (DIR) parent 3088012119949110f760303b77b8c355567eba41
 (HTM) Author: rsc <devnull@localhost>
       Date:   Fri,  7 Jan 2005 23:11:34 +0000
       
       oops
       
       Diffstat:
         M src/cmd/db/print.c                  |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/db/print.c b/src/cmd/db/print.c
       t@@ -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);
       t@@ -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);