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
  • Issues
  • #4194
Closed
Open
Issue created Mar 18, 2020 by John F.X. Galea@johnfxgaleaContributor

Add API function to restore flags outline.

Both drreg and drbbdup require restoring flag registers outline, as shown below:

   reg_t val
   uint sahf;
   reg_t newval = mcontext->xflags;
   val = (reg_t)drbbdup_get_tls_raw_slot_val(DRBBDUP_FLAG_REG_SLOT);
   sahf = (val & 0xff00) >> 8;
   newval &= ~(EFLAGS_ARITH);
   newval |= sahf;
   if (TEST(1, val)) /* seto */
       newval |= EFLAGS_OF; 
   mcontext->xflags = newval;

This is a feature request to create an API function to conveniently perform this restoration.

Assignee
Assign to
Time tracking