On Fri, Nov 08, 2013 at 02:03:59AM -0800, Skip Tavakkolian wrote:
> something like this, but with better housekeeping to work with existing
> acid code, could work:
> 
> defn Next() {
> printto("/env/nextStmt", pcfile(*PC),":",pcline(*PC)+1);
> bpset(filepc(readfile("/env/nextStmt")));
> cont();
> }

this seems like it should work, but sometimes the computed PC for the
next line is way off, and cont() just runs the entire program. even more
confusing, doing pcline of the computed pc prints the next line
correctly, e.g.

x = filepc(pcfile(*PC)+":"+itoa(pcline(*PC)+1));
print(pcline(x));

will show the next line, but the new PC in x is totally wrong.

any clue why?

nick

Attachment: pgpe2SlNX6tTr.pgp
Description: PGP signature

Reply via email to