From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <82c890d00609141355i24e38950qde06701c7c0a8303@mail.gmail.com> Date: Thu, 14 Sep 2006 22:55:56 +0200 From: "Gabriel Diaz" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] OT: Acid question? In-Reply-To: <200609142040.k8EKeSE15785@demeter.cs.utwente.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200609142040.k8EKeSE15785@demeter.cs.utwente.nl> Topicbox-Message-UUID: b3ce2cfe-ead1-11e9-9d60-3106f5b1d025 Hello I think Axel is right. without -N i can found a in AX b in CX, etc. with -N you can do what geoff suggested: *(main:a)\d the paper http://plan9.bell-labs.com/sys/doc/acidpaper.html says: "Acid provides library functions to step through source level statements and functions. Furthermore, addresses in Acid expressions can be specified by source file and line." is that sentence talking about the 'main:a' string? or is just like 'file.c:line' ? (i can't found the correct syntax if the second one is accepted). slds. gabi On 9/14/06, Axel Belinfante wrote: > you may want to try using the -N flag of 8c > (I guess you did not, and thus your variables were optimized away) > > of course I may be completely wrong - trying to learn something here too... > > Axel > > > acid: *(main:a\D) > > > > produces: > > > > > -ishwar > > > > > > On Thu, 14 Sep 2006, Skip Tavakkolian wrote: > > > > > *(main:a\D) > > > > > > /sys/doc/acid.ps > > > /sys/doc/acidpaper.ps > > > > > >> I am trying to learn how to use acid for source > > >> level debugging using the built-in functions. I waould like > > >> to know how to display/exmine the varibales used in the > > >> program. Sample code for context: > > >> void main() > > >> { > > >> int a, b, c; > > >> a = 12; > > >> b = 21; > > >> c = a + b; > > >> print("c: %d\n", c); > > >> exits(nil); > > >> } > > >> > > >> program is compiled and acid is called on the image: > > >> acid: new() > > >> .. > > >> acid: bpset(print) > > >> .. > > >> acid: next() > > >> .. > > >> at this point a = 12 has been executed. How to examine > > >> the value in acid? > > >> > > >> -ishwar > > > >