This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
Creating a display via fphd
- From: Adam Jocksch <ajocksch at redhat dot com>
- To: frysk <frysk at sources dot redhat dot com>
- Date: Wed, 20 Jun 2007 10:58:42 -0600
- Subject: Creating a display via fphd
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)