Bug 6645 - lib.dwfl.DwarfScopeDies replacing DwarfDie[]
Summary: lib.dwfl.DwarfScopeDies replacing DwarfDie[]
Status: NEW
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-06-15 21:48 UTC by Andrew Cagney
Modified: 2008-06-15 21:48 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 2008-06-15 21:48:45 UTC
At present a get-scopes call returns a concrete array of dies, corresponding to
the long[] array returned by the underlying dwfl.

Instead encapsulate the long[] array in a DwarfScopeDies object and then only
create individual dies as needed - this should better match the underlying
interface where the dies array are just passed back to later functions - treated
like a handle.

It may even be possible to avoid the allocation of the long[] array, and just
encapsulate the malloc-ed pointer