ptrace(2) modifications:

- add T_GETRANGE/T_SETRANGE to get/set ranges of values
- change EIO error code to EFAULT
- move common-I&D text-to-data translation to umap_local
This commit is contained in:
David van Moolenbroek
2009-12-29 21:32:15 +00:00
parent 8da928d2df
commit e423c86009
5 changed files with 118 additions and 32 deletions
+2
View File
@@ -397,6 +397,8 @@ vir_bytes bytes; /* # of bytes to be copied */
if (seg != T)
seg = (vc < rp->p_memmap[D].mem_vir + rp->p_memmap[D].mem_len ? D : S);
else if (rp->p_memmap[T].mem_len == 0) /* common I&D? */
seg = D; /* ptrace needs this */
if ((vir_addr>>CLICK_SHIFT) >= rp->p_memmap[seg].mem_vir +
rp->p_memmap[seg].mem_len) return( (phys_bytes) 0 );