gimli icon indicating copy to clipboard operation
gimli copied to clipboard

Add operations for mutate write::DebuggingInformationEntry

Open yurydelendik opened this issue 6 years ago • 1 comments

Are there operations for remove the child DIE or attributes? It will be useful to have such operations to mutate in-memory UnitTable forest.

yurydelendik avatar Feb 01 '19 15:02 yurydelendik

Not yet, but we definitely want them.

For DIEs, removing them just needs to update the children field of the parent, without actually deleting the child from the entries Vec. Attributes can simply be deleted.

One catch with that will be if a deleted attribute referenced something in another table (strings or range lists), then we'll still write those values out (deleting them from the other tables isn't easy). I don't have a solution for that yet.

philipc avatar Feb 02 '19 07:02 philipc