9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] OT: Acid question?
@ 2006-09-14 14:41 ISHWAR RATTAN
  2006-09-14 16:33 ` Skip Tavakkolian
  2006-09-14 23:56 ` Russ Cox
  0 siblings, 2 replies; 11+ messages in thread
From: ISHWAR RATTAN @ 2006-09-14 14:41 UTC (permalink / raw)
  To: 9fans


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



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-15  1:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-14 14:41 [9fans] OT: Acid question? ISHWAR RATTAN
2006-09-14 16:33 ` Skip Tavakkolian
2006-09-14 17:59   ` Tharaneedharan Vilwanathan
2006-09-14 19:13     ` ISHWAR RATTAN
2006-09-14 21:49       ` Tharaneedharan Vilwanathan
2006-09-14 20:24   ` ISHWAR RATTAN
2006-09-14 20:40     ` Axel Belinfante
2006-09-14 20:55       ` Gabriel Diaz
2006-09-14 21:06       ` ISHWAR RATTAN
2006-09-14 23:56 ` Russ Cox
2006-09-15  1:08   ` Benn Newman

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).