From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 8 Nov 2013 15:46:29 -0800 From: Nick Owens To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20131108234629.GO11218@iota.offblast.org> References: <20131108024600.GN11218@iota.offblast.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NT59pYSnj1ZLVgEN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [9fans] acid analogues of gdb stepping commands Topicbox-Message-UUID: 8a308714-ead8-11e9-9d60-3106f5b1d025 --NT59pYSnj1ZLVgEN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > 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 =3D 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 --NT59pYSnj1ZLVgEN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (OpenBSD) iQIcBAEBAgAGBQJSfXfVAAoJEAlFY6k1Rs314dUP/2BUynNvTLr7mDv2Uc+XVDcV 10N6FvMOOxilyhBVlItUz+33X8x4QUbZsxsmFozhvbR4n/YvfxFeBY7SJdARi8q+ wv/9MosPy9X7DJWQ0YcdPPc4gXMuO3Lfohn76ndFFuKyKLm0g9TxTQbXQJcG1jJO CbaKJnFjuAZUBdRexP+zPlsFxzTiO76yJBpB36ikJdlW3PSsfBcMAWra951LewcU iPT4TPr+AoZ4d+1QTMBBmLwG2aqN/VMJ4Xq0n8OJNQAKPNW0eqzDGvt86SumfmEq F0s0GtwxBcqg+5C1TQm59UmSIDpNAMsADOx/ynmnPItpmR05GxF8gMx0fKInR/4y V+FJMTadyCUYxiUqm9ihggN/yihTFF5O/9xMrrIZS5toEc77rUZ/NPe+0ZXEXzIa HJAK5FwovOB8CxUkCXYijrCOvComRMBWo/8/rOI8V+JazgFJFHi0ML3mYqKSAa4r Bu5Xg0gFqdTDwzfAtNJTX8DJAUHKzMCCc2oSA9Lkhn+GPRNVTGQd2nbsiTLpa/l9 IayIeW1gNGNe7GodgtlnQJ8xHB6M5xBhNu0JqG7WNlY5GFbu3x1BtJyJ1x+NhaDZ VTljl5bgVj+d8XO/aFXSSSsO1Fgv3mPwtnQRKxCqg6+L7ACSIu60QE5C9AmKTp4t PNQeBsV2kYfM4MI5iF6N =5Cr8 -----END PGP SIGNATURE----- --NT59pYSnj1ZLVgEN--