Re: gdb strangness Under 2.3.11-pre1

Tim Waugh (tim@cyberelk.demon.co.uk)
Sun, 18 Jul 1999 17:28:11 +0100 (GMT)


On Sun, 18 Jul 1999, Alexander Viro wrote:

> Ooops. Take out everything except fs/proc/* stuff - the rest is heavily
> wrong.

This is incremental to your patch. There are more cases like this too,
but now 'ps ax' is a little more believable.

Tim.
*/

--- linux/fs/proc/array.c~~ Sun Jul 18 17:22:23 1999
+++ linux/fs/proc/array.c Sun Jul 18 17:23:05 1999
@@ -471,7 +471,7 @@
read_lock(&tasklist_lock);
p = find_task_by_pid(pid);
read_unlock(&tasklist_lock); /* FIXME!! This should be done after the last use */
- if (!p || !p->mm)
+ if (!p || !p->mm || (p->flags & PF_LAZY_TLB))
return 0;
return get_array(p, p->mm->arg_start, p->mm->arg_end, buffer);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/