From dd944ec72a26d0b380ba2af5f6c00310f2f1651e Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Jan 2005 22:33:04 +0000 Subject: Start working through proper handling of pthreads when debugging Linux core dumps. Pthreads for active processes is still not supported, nor are other systems. --- src/libmach/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libmach/map.c') diff --git a/src/libmach/map.c b/src/libmach/map.c index bfb5f722..b20bd873 100644 --- a/src/libmach/map.c +++ b/src/libmach/map.c @@ -31,7 +31,7 @@ addseg(Map *map, Seg seg) { Seg *ss; - if(map == 0){ + if(map == nil){ werrstr("invalid map"); return -1; } @@ -57,7 +57,7 @@ findseg(Map *map, char *name, char *file) { int i; - if(map == 0) + if(map == nil) return -1; for(i=0; inseg; i++){ if(name && (!map->seg[i].name || strcmp(map->seg[i].name, name) != 0)) -- cgit v1.2.3