Ignore:
Timestamp:
Nov 18, 2009, 4:31:49 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Drop withespaces
File:
1 edited

Legend:

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

    r3891 r3942  
    419419    size_t size = sizeof(struct termios);
    420420    int ret, err;
    421    
     421
    422422    if(ptrace(PTRACE_GETREGS, t->pid, NULL, &regs) < 0)
    423423    {
     
    425425        return -1;
    426426    }
    427    
     427
    428428    /* Backup the data that we will use */
    429429    if(memcpy_from_target(t, backup_data, regs.RSP, size) < 0)
    430430        return -1;
    431    
     431
    432432    ret = remote_syscall(t, MYCALL_IOCTL, fd,TCGETS, regs.RSP);
    433433    err = errno;
    434434
    435435    memcpy_from_target(t, (char *)tos, regs.RSP, size);
    436    
     436
    437437    /* Restore the data */
    438438    memcpy_into_target(t, regs.RSP, backup_data, size);
    439    
     439
    440440    errno = err;
    441441    return ret;
     
    453453    size_t size = sizeof(struct termios);
    454454    int ret, err;
    455    
     455
    456456    if(ptrace(PTRACE_GETREGS, t->pid, NULL, &regs) < 0)
    457457    {
     
    463463    if(memcpy_from_target(t, backup_data, regs.RSP, size) < 0)
    464464        return -1;
    465    
     465
    466466    memcpy_into_target(t, regs.RSP, (char *)tos, size);
    467    
     467
    468468    ret = remote_syscall(t, MYCALL_IOCTL, fd, TCSETS, regs.RSP);
    469469    err = errno;
    470    
     470
    471471    /* Restore the data */
    472472    memcpy_into_target(t, regs.RSP, backup_data, size);
    473    
     473
    474474    errno = err;
    475475    return ret;
Note: See TracChangeset for help on using the changeset viewer.