From: Nick Owens <mischief@9.offblast.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acid analogues of gdb stepping commands
Date: Fri, 8 Nov 2013 15:46:29 -0800 [thread overview]
Message-ID: <20131108234629.GO11218@iota.offblast.org> (raw)
In-Reply-To: <CAJSxfm+k5KQ-F0SEPa_gRMGxBgYzxP=_CPde2nUzYuYVWmAA=Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
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 #2: Type: application/pgp-signature, Size: 851 bytes --]
next prev parent reply other threads:[~2013-11-08 23:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-08 2:46 Nick Owens
2013-11-08 7:40 ` Skip Tavakkolian
2013-11-08 10:03 ` Skip Tavakkolian
2013-11-08 23:46 ` Nick Owens [this message]
2013-11-08 23:51 ` erik quanstrom
2013-11-09 0:36 ` Nick Owens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131108234629.GO11218@iota.offblast.org \
--to=mischief@9.offblast.org \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).