Bug 4048 - fhpd cannot see volatile variables
Summary: fhpd cannot see volatile variables
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Stan Cox
URL:
Keywords:
: 4229 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-15 09:40 UTC by Mark Wielaard
Modified: 2007-04-16 15:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Wielaard 2007-02-15 09:40:34 UTC
When attaching to the following program you cannot print out i or j. Removing
the volatile attribute makes them visable.

#include <stdio.h>

static volatile int i;
static volatile int j;
int
main (int argc, char *argv)
{
  i = 0;
  printf("hello world\n");
  while(1)
    {
      i++;
      j = i;
      j -= 1;
    }
}
Comment 1 Stan Cox 2007-04-02 14:55:20 UTC
* cni/DwarfDie.cxx (get_base_type): Indirect for DW_TAG_volatile_type.
* TestFhd.java (testHpd): print enum; what array; what class; volatile
Comment 2 Stan Cox 2007-04-16 16:40:33 UTC
*** Bug 4229 has been marked as a duplicate of this bug. ***