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

Add new Symtab interface for accessing modules by offset #1545

Merged
merged 3 commits into from
Sep 29, 2023

Conversation

hainest
Copy link
Contributor

@hainest hainest commented Sep 28, 2023

  • Add findModuleByOffset(Offset)

  • Deprecate findModuleByOffset(Module *&, Offset)
    It is replaced by findModuleByOffset(Offset).

  • Remove findModuleByOffset(std::set<Module *>&, Offset)
    It was never documented and makes no sense as offsets are unique
    within a module (i.e., DWARF CU). Dyninst uses a separate
    Symtab instance for each object file in an archive, as well.

It is replaced by findModuleByOffset(Offset).
It was never documented and makes no sense as offsets are unique
within a module (i.e., DWARF CU). Further, Dyninst uses a separate
Symtab instance for each object file in an archive.
@hainest hainest added code cleanup Bring the code up to modern standards or remove deprecated features Symtab This issue is directly related to SymtabAPI API-BREAKER This change breaks the public API labels Sep 28, 2023
@hainest hainest requested a review from kupsch September 28, 2023 22:01
@hainest hainest self-assigned this Sep 28, 2023
@hainest hainest merged commit f41e644 into master Sep 29, 2023
@hainest hainest deleted the thaines/symtab_findModuleByOffset branch September 29, 2023 19:11
jmellorcrummey pushed a commit to HPCToolkit/hpctoolkit that referenced this pull request Oct 23, 2023
for finding the Module that contains a given address.

This was a hard switch in Dyninst (no overlap), so add a configure
test for which method exists in dyninst.

This MR supersedes !940 for adapting hpcstruct to the new Dyninst.

See also:
dyninst/dyninst#1545
dyninst/dyninst#1571
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API-BREAKER This change breaks the public API code cleanup Bring the code up to modern standards or remove deprecated features Symtab This issue is directly related to SymtabAPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants