From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11014 invoked by alias); 14 Dec 2010 21:39:20 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 10886 invoked by uid 22791); 14 Dec 2010 21:39:18 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org From: Tom Tromey To: Project Archer Subject: [inferior events] another fix from trunk Date: Tue, 14 Dec 2010 21:39:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2010-q4/txt/msg00036.txt.bz2 Here's another fix from trunk. gdb.selected_thread is defined to return None when there is no current thread. On the branch it errors. Ok to push? Tom diff --git a/gdb/python/py-infthread.c b/gdb/python/py-infthread.c index 64f0a21..3e76519 100644 --- a/gdb/python/py-infthread.c +++ b/gdb/python/py-infthread.c @@ -173,13 +173,6 @@ gdbpy_selected_thread (PyObject *self, PyObject *args) { PyObject *thread_obj; - if (inferior_ptid.pid == 0) - { - PyErr_SetString (PyExc_RuntimeError, - _("No thread is currently selected.")); - return NULL; - } - thread_obj = (PyObject *) find_thread_object (inferior_ptid); if (thread_obj) {