public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* Creating a display via fphd
@ 2007-06-20 17:02 Adam Jocksch
  2007-06-20 18:38 ` Adam Jocksch
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Jocksch @ 2007-06-20 17:02 UTC (permalink / raw)
  To: frysk

The following is an example of what I have currently working with fhpd:

[ajocksch@localhost frysk-core]$ frysk/bindir/fhpd /home/ajocksch/build/frysk/frysk-core/frysk/pkglibdir/funit-rt-varchange
Attached to process 7922
(fhpd) break @funit-rt-varchange.c@49
breakpoint 0
(fhpd) break @funit-rt-varchange.c@51
breakpoint 1
(fhpd) go
(fhpd) Breakpoint 0 @funit-rt-varchange.c@49
list
39       
40       int x;
41       int y;
42       
43       void bar(int);
44       
45       int main()
46       {
47         x = 0;
48         bar(x);
49         x = 1;
50         bar(x);
51         y = 2;
52         bar(y);
53         x = 2;
54         bar(x);
55       
56         return 0;
57       }
58       
(fhpd) display x
x = 0
(fhpd) go
(fhpd) Breakpoint 1 @funit-rt-varchange.c@51
x = 1


On the todo list: how to display scoping information next to the variable displays (so you know which x was updated for example)


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

* Re: Creating a display via fphd
  2007-06-20 17:02 Creating a display via fphd Adam Jocksch
@ 2007-06-20 18:38 ` Adam Jocksch
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Jocksch @ 2007-06-20 18:38 UTC (permalink / raw)
  To: frysk

The formatting got a little screwed up on my previous attempt to post 
this, let's hope this fares better:

the link (in case it doesnt): http://www.pastebin.ca/raw/579352

[ajocksch@localhost frysk-core]$ frysk/bindir/fhpd /home/ajocksch/build/frysk/frysk-core/frysk/pkglibdir/funit-rt-varchange
Attached to process 7922
(fhpd) break @funit-rt-varchange.c@49
breakpoint 0
(fhpd) break @funit-rt-varchange.c@51
breakpoint 1
(fhpd) go
(fhpd) Breakpoint 0 @funit-rt-varchange.c@49
list
39       
40       int x;
41       int y;
42       
43       void bar(int);
44       
45       int main()
46       {
47         x = 0;
48         bar(x);
49         x = 1;
50         bar(x);
51         y = 2;
52         bar(y);
53         x = 2;
54         bar(x);
55       
56         return 0;
57       }
58       
(fhpd) display x
x = 0
(fhpd) go
(fhpd) Breakpoint 1 @funit-rt-varchange.c@51
x = 1

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

end of thread, other threads:[~2007-06-20 17:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-20 17:02 Creating a display via fphd Adam Jocksch
2007-06-20 18:38 ` Adam Jocksch

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 read-only IMAP folder(s) and NNTP newsgroup(s).