Re: [patch] validate binary before use

Jan Kratochvil
2013-04-08T17:02:29Z

On Mon, 08 Apr 2013 16:57:02 +0200, Pedro Alves wrote:
> On 04/05/2013 12:47 PM, Jan Kratochvil wrote:
> > Sure one could make a Linux-specific local solib-*.c backend but the current
> > plan is to drop all (in reality just some) *-nat.c files in the favor of
> > always using gdbserver.
>
> Not for core files. We'll still fallback to solib-svr4.c for those.
> Are core files being considered in all this?

I admit I did not think much about core files but:

Core files will work with the current solib-svr4.c code.

Linux core files have now NT_FILE extension with /proc/PID/maps content which
is also recognized by Tom's patch in FSF GDB HEAD so it could fully work with
core files. Just one has to compare filenames instead of inode there, inode
is not present in NT_FILE.

Jan