diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-30 19:11:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-07-30 19:11:16 +0200 |
commit | 4f33c88a51587681b7be1ae57cfbc43b627c6bc4 (patch) | |
tree | 25560404dc80007e5dc268811242c9071f6a1017 /sys/src/libmach/map.c | |
parent | fcc5e75d07e5bc6cb3ddac6d9a437e7ec62d0d95 (diff) |
import updated compilers from sources
Diffstat (limited to 'sys/src/libmach/map.c')
-rw-r--r-- | sys/src/libmach/map.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/src/libmach/map.c b/sys/src/libmach/map.c index c668defd1..c745d82a6 100644 --- a/sys/src/libmach/map.c +++ b/sys/src/libmach/map.c @@ -89,13 +89,11 @@ attachproc(int pid, int kflag, int corefd, Fhdr *fp) map = newmap(0, 4); if (!map) return 0; - if(kflag) { + if(kflag) regs = "kregs"; - mode = OREAD; - } else { + else regs = "regs"; - mode = ORDWR; - } + mode = ORDWR; if (mach->regsize) { sprint(buf, "/proc/%d/%s", pid, regs); fd = open(buf, mode); |