Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !4822

i#3092 genapi: Export annotations, inject, config directly

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i3092-refactor-genapi into master Mar 30, 2021
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 9

Adds a new header export mechanism, DR_export_header(). This is a copy with variable expansion but no other changes. The idea of this refactoring is to have simple copied entire headers without the patchwork export selection from the middle of regular headers that we have today with genapi.pl.

Uses the new mechanism for dr_api.h and dr_app.h, which were already copied.

Cleans up dr_inject.h and dr_config.h and exports them directly.

Refactors core/annotations.h to separate out annotations_api.h, which is directly copied to include/dr_annotation.h and is excluded from passing through genapi.pl. It has the target name in its include guard, and it has DR_API decoration which is defined as a nop in dr_defines.h.

This is an incremental step toward refactoring all our header exports and eliminating genapi.pl.

Issue: #3092 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i3092-refactor-genapi