Bug 4232 - array of TYPE - look through typedef?
Summary: array of TYPE - look through typedef?
Status: ASSIGNED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 2246
  Show dependency treegraph
 
Reported: 2007-03-21 13:58 UTC by Andrew Cagney
Modified: 2008-04-23 20:54 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 Andrew Cagney 2007-03-21 13:58:30 UTC
 
Comment 1 Andrew Cagney 2007-11-19 17:40:57 UTC
for instance:
   typedef struct foo { int i; } foo;
   foo arr[10];
print: arr

is the debug-info read correctly?
is this printed correctly?
Comment 2 Teresa Thomas 2007-11-19 18:16:06 UTC
Test code:
typedef struct foo { int i; } foo;
foo arr[3];
------------------------

(fhpd) print arr   
[0.0]
{{
  i=0,
},{
  i=0,
},{
  i=0,
}}
(fhpd) print arr --type
[0.0]
foo [3]
(fhpd) print arr[1] --type
[0.0]
foo