From: Michael Snyder <msnyder@vmware.com>
To: Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Quit after debugging corefiles
Date: Tue, 22 Jun 2010 17:42:00 -0000 [thread overview]
Message-ID: <4C20F60C.5060409@vmware.com> (raw)
In-Reply-To: <1277212708-11125-1-git-send-email-emachado@linux.vnet.ibm.com>
Edjunior Barbosa Machado wrote:
> Hello,
>
> when quitting after a successful debug using a corefile, gdb returns the following internal error:
>
> ...
> (gdb) cont
> Continuing.
>
> Program exited normally.
> (gdb) quit
Hmm, I don't think you're supposed to "continue" when debugging a core
file...
> ../../git/gdb/inferior.c:362: internal-error: find_inferior_pid: Assertion `pid != 0' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Quit this debugging session? (y or n) n
> ../../git/gdb/inferior.c:362: internal-error: find_inferior_pid: Assertion `pid != 0' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Create a core file of GDB? (y or n) n
>
> Please consider the following patch containing a fix and a new test for the gcore.exp testcase. It also proposes a change in the function called by gdb_test_multiple that deals with internal error (proc gdb_internal_error_resync{}, in gdb.exp) in order to recognize that gdb is finished.
>
> Comments/suggestions are welcome.
>
> Thanks,
next prev parent reply other threads:[~2010-06-22 17:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 13:18 Edjunior Barbosa Machado
2010-06-22 13:22 ` Pedro Alves
2010-06-22 17:42 ` Michael Snyder [this message]
2010-06-22 20:03 ` Edjunior Barbosa Machado
2010-06-23 2:53 ` Hui Zhu
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=4C20F60C.5060409@vmware.com \
--to=msnyder@vmware.com \
--cc=emachado@linux.vnet.ibm.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