Skip to content

export-dt-ini: name offset update#47

Merged
lethosor merged 1 commit intoDFHack:masterfrom
cvuchener:dt-names
Feb 16, 2018
Merged

export-dt-ini: name offset update#47
lethosor merged 1 commit intoDFHack:masterfrom
cvuchener:dt-names

Conversation

@cvuchener
Copy link
Copy Markdown
Contributor

Use name offsets from language_name instead of unit, since it is no longer at the
beginning of the structure (because unit became a class type).

Sorry, I forgot to send you that change. It is required from DT 39.2 and incompatible with older versions.

Use name offsets from language_name instead of unit, since it is no longer at the
beginning of the structure (because unit became a class type).

header('dwarf_offsets')
address('first_name',df.unit,'name','first_name')
address('nick_name',df.unit,'name','nickname')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't taking the vtable pointer into account? Weird.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DT was using these offsets in other case than unit.name (e.g. identity). It used to work because it was at the beginning so it was the same as language_name offsets. Because of the added vtable pointer, it is not any more, and it required breaking changes in DT.

@lethosor lethosor merged commit 9d8f209 into DFHack:master Feb 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants