Bug 2968

Summary: Frysk Source Window - variable selection is off by one line in source viewer
Product: frysk Reporter: Len DiMaggio <ldimaggi>
Component: generalAssignee: Mike Cvet <mcvet>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1633    
Attachments: Screenshot

Description Len DiMaggio 2006-07-27 18:43:42 UTC
Frysk Source Window - variable selection is off by one line in source viewer

(Frysk as built from CVS on 20060726)

If multiple variables are defined in a program to be debugged, selecting the
variable on line NNN (to display value or add trace) actually acts on the
variable on line NNN+1.

The screenshot attachment shows an example with this program:
#include <stdio.h>
int main (int argc, char *argv)
 {
   int junk1 = 1;
   char junkChar1 = 'a';
   char junkChar2 = 'z';
   char junkString1[] = "abc";
   char junkString2[] = "xyz";

   printf("hello world\n");
   while(1) ;
 }

If you attempt to access junkChar1, the actions (display value or add trace)
that you perform act on junkChar2. See the screenshot for an example.
Comment 1 Len DiMaggio 2006-07-27 18:46:41 UTC
Created attachment 1187 [details]
Screenshot
Comment 2 Mike Cvet 2006-12-07 15:00:22 UTC
Len, can you still reproduce this? I think this problem has been fixed since 
this was originally filed.
Comment 3 Mike Cvet 2007-01-11 15:40:53 UTC
Apparently fixed.