This is the mail archive of the frysk@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]