Re: [PATCH] this makes /proc/kcore an ELF core dump

Alexander Viro (viro@math.psu.edu)
Tue, 2 Mar 1999 05:22:09 -0500 (EST)


On Tue, 2 Mar 1999, David Howells wrote:

> I found that gdb had problems finding variable values in the traditional core
> dump style of /proc/kcore file, so I borrowed code from the binfmt_elf.c to
> turn /proc/kcore into a very simple ELF core dump file.
>
> Admittedly, I did build it against 2.2.1, but I don't see much in the
> "fs/proc/array.c" file as having changed.
>
> It does take up more space than the traditional-style file, but I think it is
> worth it for gdb to be able to actually read things.

And what happens with the stuff actually relying on /proc/kcore being what
it is now? lsof, for one.

-
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/