Bug 2968 - Frysk Source Window - variable selection is off by one line in source viewer
Summary: Frysk Source Window - variable selection is off by one line in source viewer
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Mike Cvet
URL:
Keywords:
Depends on:
Blocks: 1633
  Show dependency treegraph
 
Reported: 2006-07-27 18:43 UTC by Len DiMaggio
Modified: 2007-01-11 15:40 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
Screenshot (392.73 KB, image/jpeg)
2006-07-27 18:46 UTC, Len DiMaggio
Details

Note You need to log in before you can comment on or make changes to this bug.
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.