Bug 10978 - Getting the size of a data type
Summary: Getting the size of a data type
Status: RESOLVED FIXED
Alias: None
Product: systemtap
Classification: Unclassified
Component: translator (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-18 14:07 UTC by Mark Wielaard
Modified: 2010-05-21 18:29 UTC (History)
0 users

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 2009-11-18 14:07:19 UTC
It would be convenient to have some way to get the size of a data type as a
constant. Maybe something like @sizeof("Type") [it could be like @cast with an
optional argument that provides the header file that the Type is defined in]. It
would represent the DW_AT_byte_size of the type die.
Comment 1 Frank Ch. Eigler 2010-05-21 18:29:57 UTC
& @cast(0, "type" ... )[1]   gives this value.