Changeset 3871


Ignore:
Timestamp:
Nov 2, 2009, 3:36:19 PM (10 years ago)
Author:
Pascal Terjan
Message:
  • Testing errno is only valid for PEEK, return value must be tested for POKE
File:
1 edited

Legend:

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

    r3870 r3871  
    467467
    468468        memcpy((char *)&data + (dest & align), src, todo);
    469         ptrace(PTRACE_POKETEXT, t->pid, dest - (dest & align), data);
    470         if(errno)
     469        if(ptrace(PTRACE_POKETEXT, t->pid, dest - (dest & align), data) < 0)
    471470        {
    472471            perror("ptrace_poketext (memcpy_into_target)");
Note: See TracChangeset for help on using the changeset viewer.