Bug 4048

Summary: fhpd cannot see volatile variables
Product: frysk Reporter: Mark Wielaard <mark>
Component: generalAssignee: Stan Cox <scox>
Status: RESOLVED FIXED    
Severity: normal CC: cagney
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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. ***