From 4f33c88a51587681b7be1ae57cfbc43b627c6bc4 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 30 Jul 2012 19:11:16 +0200 Subject: import updated compilers from sources --- sys/src/libmach/map.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/src/libmach/map.c') 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); -- cgit v1.2.3