summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/scripted_process
diff options
context:
space:
mode:
authorMichael Flanders <flanders.michaelk@gmail.com>2025-02-22 05:37:00 -0600
committerGitHub <noreply@github.com>2025-02-22 12:37:00 +0100
commitcbd3801acfa4ace50df8d0eba275fc3bd6d3f1ac (patch)
tree41d775aecea9b190fc7da3c5ea137da248c1f136 /lldb/test/API/functionalities/scripted_process
parentc0d140353ec9e99371df54ae61d2aa0f304e043d (diff)
[analyzer] Allow overriding Unknown memspaces using a ProgramState trait (#123003)
In general, if we see an allocation, we associate the immutable memory space with the constructed memory region. This works fine if we see the allocation. However, with symbolic regions it's not great because there we don't know anything about their memory spaces, thus put them into the Unknown space. The unfortunate consequence is that once we learn about some aliasing with this Symbolic Region, we can't change the memory space to the deduced one. In this patch, we open up the memory spaces as a trait, basically allowing associating a better memory space with a memregion that was created with the Unknown memory space. As a side effect, this means that now queriing the memory space of a region depends on the State, but many places in the analyzer, such as the Store, doesn't have (and cannot have) access to the State by design. This means that some uses must solely rely on the memspaces of the region, but any other users should use the getter taking a State. Co-authored-by: Balazs Benics <benicsbalazs@gmail.com>
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process')
0 files changed, 0 insertions, 0 deletions