From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <20131108024600.GN11218@iota.offblast.org> Date: Fri, 8 Nov 2013 02:03:59 -0800 Message-ID: From: Skip Tavakkolian To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b5d98e942a75804eaa780d9 Subject: Re: [9fans] acid analogues of gdb stepping commands Topicbox-Message-UUID: 8a07d47c-ead8-11e9-9d60-3106f5b1d025 --047d7b5d98e942a75804eaa780d9 Content-Type: text/plain; charset=ISO-8859-1 ok, read this again and i see that you want to avoid all the intermediate prints from next(). i looked at /sys/lib/acid/port but can't see where the print is happening; maybe it's deeper in builtins. 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(); } On Thu, Nov 7, 2013 at 11:40 PM, Skip Tavakkolian < skip.tavakkolian@gmail.com> wrote: > Isn't step what you're looking for? > > > On Nov 7, 2013, at 6:46 PM, Nick Owens wrote: > > > > 9fans, > > > > i find myself needing to use acid a lot lately, and maybe i am going > > about it wrong. i very much dislike that when i next() in acid, acid > > will step through every subcall. what i would like is that it would > > instead behave more like gdb's next. is this crazy or am i going about > > using acid wrong? > > > > maybe someone has acid analogues of gdb's next, finish, until as > > described here. > > > > https://sourceware.org/gdb/onlinedocs/gdb/Continuing-and-Stepping.html > > > > nick > > > --047d7b5d98e942a75804eaa780d9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
ok, read this again and i see that you want to avoid all t= he intermediate prints from next(). i looked at /sys/lib/acid/port but can&= #39;t see where the print is happening; maybe it's deeper in builtins.= =A0

something like this, but with better housekeeping to work with exi= sting acid code, could work:

defn Next() {=
printto("= ;/env/nextStmt", pcfile(*PC),":",pcline(*PC)+1);
bpset(filepc(readfi= le("/env/nextStmt")));
cont();
}
<= div class=3D"gmail_extra">

On Thu, Nov 7, 2013 at 11:40 PM, Skip Ta= vakkolian <skip.tavakkolian@gmail.com> wrote:
Isn't step what you're looking for?

> On Nov 7, 2013, at 6:46 PM, Nick Owens <mischief@9.offblast.org> wrote:
>
> 9fans,
>
> i find myself needing to use acid a lot lately, and maybe i am going > about it wrong. i very much dislike that when i next() in acid, acid > will step through every subcall. what i would like is that it would > instead behave more like gdb's next. is this crazy or am i going a= bout
> using acid wrong?
>
> maybe someone has acid analogues of gdb's next, finish, until as > described here.
>
> https://sourceware.org/gdb/onlinedocs/gdb/Co= ntinuing-and-Stepping.html
>
> nick
>

--047d7b5d98e942a75804eaa780d9--