From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Doug Evans <dje@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] print a more useful error message for "gdb core"
Date: Thu, 21 Jan 2010 13:58:00 -0000 [thread overview]
Message-ID: <20100121135838.GA5211@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <e394668d1001201612w3ddb2eebnc3ca4c36b9af7378@mail.gmail.com>
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
next prev parent reply other threads:[~2010-01-21 13:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-20 23:56 Doug Evans
2010-01-21 0:13 ` Doug Evans
2010-01-21 2:33 ` Hui Zhu
2010-01-21 13:58 ` Jan Kratochvil [this message]
2010-01-21 16:34 ` Tom Tromey
2010-01-21 17:17 ` Doug Evans
2010-01-25 4:22 ` Jan Kratochvil
2010-01-28 21:37 ` Jan Kratochvil
2010-01-28 21:39 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100121135838.GA5211@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox