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
  • !4877

i#4866: Mark string loop expansion as emulation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i4866-rep-expand-emulation into master Apr 26, 2021
  • Overview 9
  • Commits 9
  • Pipelines 0
  • Changes 6

Adds drmgr emulation labels to the rep string loop expansion performed by drutil_expand_rep_string_ex().

Adds testing of the labels to the drutil test.

The end label for the rep string emulation is after the block-final branch. This breaks DR's block requirements. Since we need the label there, we go ahead and relax DR's must-end-block restrictions for various branches and syscalls to allow label instructions afterward.

Adds instrlist_last_nonlabel() and uses it for block checks and trace stitching to allow for block-final labels. Similarly, adds drmgr_is_last_nonlabel_instr() and drbbdup_is_last_nonlabel_instr() and uses them in places where a block-final real insruction is expected. Adds sanity tests of the new drmgr and drbbdup interfaces.

Fixes #4866 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i4866-rep-expand-emulation