Bug 5700 - classes with static storage members fail to display value and type
Summary: classes with static storage members fail to display value and type
Status: RESOLVED DUPLICATE of bug 5426
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-30 21:58 UTC by Stan Cox
Modified: 2008-02-18 22:09 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Cox 2008-01-30 21:58:34 UTC
class class_static
{
  static int int_var;
  static void set_int_var (int int_var) {};
} class_static_v;

yields:

(fhpd) print class_static_v
{
Error: frysk.value.CompositeType$StaticMember cannot be cast to
frysk.value.CompositeType$DynamicMember
(fhpd) print class_static_v -type
Internal Error: java.lang.ArrayStoreException
   at java.lang.System.arraycopy(libgcj.so.8rh)
   at java.util.ArrayList.toArray(libgcj.so.8rh)
   at frysk.value.CompositeType.members(fhpd)
   at frysk.value.GccStructOrClassType.isClassLike(fhpd)
   at frysk.value.GccStructOrClassType.getPrefix(fhpd)
   at frysk.value.CompositeType.toPrint(fhpd)
   ...
Comment 1 Stan Cox 2008-02-01 18:38:18 UTC
The problem is that CompositeType.java#toPrint needs to be taught about class
StaticMember.
Comment 2 Stan Cox 2008-02-18 22:09:02 UTC

*** This bug has been marked as a duplicate of 5426 ***