Summary: | list ignores frame (and thread?) changes | ||
---|---|---|---|
Product: | frysk | Reporter: | Andrew Cagney <cagney> |
Component: | general | Assignee: | Stan Cox <scox> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Bug Depends on: | |||
Bug Blocks: | 2246 |
Description
Andrew Cagney
2008-01-29 04:06:43 UTC
For the moment the "smart" where list tries to (it can't it doesn't have sufficient information) remember where it last was should be removed. We can think about how repeat should work in general later. How about this? List around the PC whenever the frame changes. * ListCommand.java (currentFrame): New. (interpret): Use it. (fhpd) where #0 0x00000000004006d8 in loop_(double d1,int i1,int i2,short int s,int i3,float f,double d2,int i4,int i5) /home/scox/accu/src/loop_.c#8 #1 0x000000000040062f in func_2(int x,int y) /home/scox/accu/src/loop.c#54 #2 0x0000000000400681 in func_1(int x,int y) /home/scox/accu/src/loop.c#68 #3 0x00000000004006ab in main(int argc,char ** argv) /home/scox/accu/src/loop.c#76 #4 0x000000375801dab4 in __libc_start_main () from /lib64/libc-2.6.so #5 0x0000000000400399 in _start () from /home/scox/accu/src/loop.x (fhpd) list [0.0] ... 7 { -> 8 return 2; 9 } ... (fhpd) down #1 0x000000000040062f in func_2(int x,int y) /home/scox/accu/src/loop.c#54 (fhpd) list [0.0] ... 53 -> 54 int_21 = loop_(class_p->class_double_1,*int_p, int_22, short_21, 55 int_21, float_21,double_21,x,y); ... (fhpd) list [0.0] 64 func_1 (int x, int y) 65 { 66 int int_21 = 21; 67 int int_11 = 12; 68 return func_2 (int_21, int_11); 69 } ... (fhpd) up #0 0x00000000004006d8 in loop_(double d1,int i1,int i2,short int s,int i3,float f,double d2,int i4,int i5) /home/scox/accu/src/loop_.c#8 (fhpd) list [0.0] ... 7 { -> 8 return 2; 9 } ... (fhpd) The test testListFrames now checks this. * TestListCommand.java (testListPC): Set breakpoint via line number. Tighten up expect checks. (testListFrames): Likewise. |