godwarf: assert children are not ignored (#2388)
The godwarf package provides two ways to turn a dwarf.Entry into a godwarf.Tree: LoadTree and EntryToTree. The former doesn't handle children - it doesn't advance a Reader past them (in fact, it doesn't even know about a Reader). EntryToTree is only used for variables and formal param DIEs, which don't have children, and it would very likely be incorrect to use it for DIEs with children. This patch makes the function panic if the entry can have children.
Showing
想要评论请 注册 或 登录