This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] validate binary before use
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Aleksandar Ristovski <aristovski at qnx dot com>, gdb-patches at sourceware dot org
- Date: Mon, 8 Apr 2013 19:02:19 +0200
- Subject: Re: [patch] validate binary before use
- References: <20130328183727 dot GA14798 at host2 dot jankratochvil dot net> <515B0632 dot 1040502 at qnx dot com> <20130402165306 dot GA9479 at host2 dot jankratochvil dot net> <515B12D1 dot 7050505 at qnx dot com> <20130403180917 dot GA6102 at host2 dot jankratochvil dot net> <515CDF7F dot 5020403 at qnx dot com> <20130404081302 dot GA4099 at host2 dot jankratochvil dot net> <515D7A09 dot 5010305 at qnx dot com> <20130405114732 dot GA11684 at host2 dot jankratochvil dot net> <5162DABE dot 1040309 at redhat dot com>
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