diff options
author | rsc <devnull@localhost> | 2004-04-19 18:52:34 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-19 18:52:34 +0000 |
commit | 7284df18a883c64721720276dac4f4540440e74c (patch) | |
tree | 24753607004ead79a235da7242e7fba95f721941 /acid/port | |
parent | d9c2aa3a3366b60d5054c575801692579162a47f (diff) | |
download | plan9port-7284df18a883c64721720276dac4f4540440e74c.tar.gz plan9port-7284df18a883c64721720276dac4f4540440e74c.tar.bz2 plan9port-7284df18a883c64721720276dac4f4540440e74c.zip |
bring them up-to-speed for current system.
Diffstat (limited to 'acid/port')
-rw-r--r-- | acid/port | 31 |
1 files changed, 25 insertions, 6 deletions
@@ -33,10 +33,10 @@ notelstk(addr) _stk({"PC", pc, "SP", sp, linkreg(addr)}, 1); } -defn labstk(l) // trace from a label -{ - _stk({"PC", *(l+4), "SP", *l, linkreg(0)}, 0); -} +// defn labstk(l) // trace from a label +// { +// _stk({"PC", *(l+4), "SP", *l, linkreg(0)}, 0); +// } defn params(param) { @@ -64,8 +64,11 @@ defn locals(l) } } -defn _stkign(file) +defn _stkign(frame) { + local file; + + file = pcfile(frame[0]); s = stkignore; while s do { if regexp(head s, file) then @@ -85,7 +88,7 @@ defn _stk(regs, dolocals) stk = strace(regs); if stkignore then { - while stk && tail stk && _stkign((head tail stk)[1]) do + while stk && tail stk && _stkign(head tail stk) do stk = tail stk; } @@ -595,5 +598,21 @@ defn spsrch(len) } } +defn acidtypes() +{ + local syms; + local l; + + l = textfile(); + if l != {} then { + syms = "acidtypes"; + while l != {} do { + syms = syms + " " + ((head l)[0]); + l = tail l; + } + includepipe(syms); + } +} + progargs=""; print(acidfile); |