Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds an address space id field to BSim objects #6897

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

je0xffrey
Copy link

@je0xffrey je0xffrey commented Sep 8, 2024

See #6896 for the bug that this PR is addressing.

These changes intend to make BSim more friendly for querying binaries that have multiple overlay address spaces. It accomplishes this by adding the spaceid field to a number of objects that are used by BSim, such as the FunctionDescription and CallRecord . This spaceid field represents the Address Space ID and it is used to retrieve the original Address Space of the function. By combining the Address Space with the long offset (the address that is currently being stored) we now have all the information we need to reliably retrieve functions for comparison.

Backwards Compatibility

I want to note that this solution creates an issue of backwards compatibility with existing BSim servers. This is because I added a new column to the desctable to store the address space id with the functions offset. Querying a database that has not been created by the updated version of the client would cause errors as that column would be missing. I'm unsure of the best step forward to resolve this concern, but I would be interested in speaking about potential options like using the DatabaseInformation object to check for compatibility.

…te all related functions for BSIM

add missing fix for abstract bsim apply task
@je0xffrey je0xffrey changed the title Adds address space id to BSim #6896 Adds address space id field to BSim objects #6896 Sep 8, 2024
@je0xffrey je0xffrey changed the title Adds address space id field to BSim objects #6896 Adds an address space id field to BSim objects #6896 Sep 8, 2024
@je0xffrey je0xffrey changed the title Adds an address space id field to BSim objects #6896 Adds an address space id field to BSim objects Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: BSim Status: Triage Information is being gathered
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BSim fails when attempting to compare with a matching function that originates from an overlay address space
3 participants