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:
> <stdin:23:(error) colon: local variable not found
>
> -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
> >