Changeset 3869 for neercs


Ignore:
Timestamp:
Nov 2, 2009, 3:13:36 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Do not set errno in mytrace_* functions, it is already (and correctly) set by remote_syscall
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/mytrace.c

    r3501 r3869  
    213213    memcpy_into_target(t, regs.RSP, backup_data, size);
    214214
    215     if(ret < 0)
    216     {
    217         errno = ret;
    218         return -1;
    219     }
    220 
    221215    return ret;
    222216#else
     
    261255    /* Restore the data */
    262256    memcpy_into_target(t, regs.RSP, backup_data, len);
    263 
    264     if(ret < 0)
    265     {
    266         errno = ret;
    267         return -1;
    268     }
    269257
    270258    return ret;
     
    410398
    411399    ret = remote_syscall(t, MYCALL_EXECVE, regs.RSP, argvaddr, envptraddr);
    412 
    413     if(ret < 0)
    414     {
    415         errno = ret;
    416         return -1;
    417     }
    418400
    419401    return ret;
Note: See TracChangeset for help on using the changeset viewer.