Skip to content

Conversation

@commial
Copy link
Contributor

@commial commial commented Jul 2, 2018

This PR follows and should complete the ExprLoc patch (#751)

AsmSymbolPool is replaced by LocationDB, which is no more specifically linked to ASM. This is a kind of database, in which entries are location, each uniquely identified by a LocKey.

A location can be associated to zero, one or several names, and zero or one offset. As a result, there is no more need to always have a name for each location. In others words, the right way to specify in a unique manner a place in the code / data / generated (for instance, in IR blocks) is a LocKey. Offsets and names are just additionnal info, useful for example in asm or visualisation tasks.

Old APIs have been deprecated, and old code should be still working.

@commial
Copy link
Contributor Author

commial commented Jul 2, 2018

Note for reviewer: this is a 4 commits PR, to easier the review task. They can be squashed after, if this level of detail is too much

@commial commial force-pushed the feature/locationdb branch from ad7aabf to d314460 Compare July 3, 2018 12:29
@serpilliere serpilliere merged commit c0afde4 into cea-sec:master Jul 3, 2018
@commial commial deleted the feature/locationdb branch July 3, 2018 13:01
w4kfu pushed a commit to w4kfu/miasm that referenced this pull request Jun 16, 2020
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