This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] print a more useful error message for "gdb core"
On Thu, 21 Jan 2010 01:12:49 +0100, Doug Evans wrote:
> On Wed, Jan 20, 2010 at 3:56 PM, Doug Evans <dje@google.com> wrote:
> > If the user accidentally does "gdb core" gdb currently prints:
> >
> > "/foo/bar": not in executable format: File format not recognized
> >
> > This patch prints a more useful error message for this particular case:
> >
> > "/foo/bar" is a core file.
> > Please specify an executable to debug.
I would prefer to try automatically loading it as a core file ("gdb -c core")
and to print a warning instead of error. Fedora GDB is patched for build-id
(still not submitted for FSF) so that it can find the executable in such case.
But maybe such change should go in only with the build-id patch itself.
Regards,
Jan