From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22899 invoked by alias); 15 Dec 2010 15:48:52 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 22884 invoked by uid 22791); 15 Dec 2010 15:48:51 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4D08E35C.3060805@redhat.com> Date: Wed, 15 Dec 2010 15:48:00 -0000 From: sami wagiaalla User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Lightning/1.0b2pre Thunderbird/3.1.2 MIME-Version: 1.0 To: archer@sourceware.org Subject: Re: [inferior events] minor patch from trunk References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2010-q4/txt/msg00039.txt.bz2 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)