From: sami wagiaalla <swagiaal@redhat.com>
To: archer@sourceware.org
Subject: Re: [inferior events] minor patch from trunk
Date: Wed, 15 Dec 2010 15:48:00 -0000 [thread overview]
Message-ID: <4D08E35C.3060805@redhat.com> (raw)
In-Reply-To: <m3mxo8ox1l.fsf@fleche.redhat.com>
On 12/14/2010 04:37 PM, Tom Tromey wrote:
> This fix comes from the trunk.
>
> Without this we will crash when calling gdb.selected_thread before any
> threads exist.
>
> Ok to push?
>
Yes.
> Tom
>
> @@ -206,6 +294,9 @@ find_thread_object (ptid_t ptid)
> PyObject *inf_obj;
>
> pid = PIDGET (ptid);
> + if (pid == 0)
> + return NULL;
> +
> inf_obj = find_inferior_object (pid);
>
> if (inf_obj)
prev parent reply other threads:[~2010-12-15 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-14 21:38 Tom Tromey
2010-12-15 15:48 ` sami wagiaalla [this message]
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=4D08E35C.3060805@redhat.com \
--to=swagiaal@redhat.com \
--cc=archer@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).