From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15477 invoked by alias); 17 Oct 2014 17:35:14 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 15467 invoked by uid 89); 17 Oct 2014 17:35:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 17 Oct 2014 17:35:13 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9HHZ88X003253 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 17 Oct 2014 13:35:09 -0400 Received: from localhost.localdomain (ovpn-112-31.ams2.redhat.com [10.36.112.31]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s9HHZ7Nj021508; Fri, 17 Oct 2014 13:35:07 -0400 Message-ID: <5441534A.60009@redhat.com> Date: Fri, 17 Oct 2014 17:35:00 -0000 From: Phil Muldoon MIME-Version: 1.0 To: Doug Evans , =?UTF-8?B?w5ZtZXIgU2luYW4gQcSfYWNhbg==?= CC: paul_koning , gdb Subject: Re: recursion limit exceeded in Python API, but there's only one function in traceback References: <543FBDFF.3050709@redhat.com> <104DEFBD-D686-4290-8E3C-725A51C165E6@dell.com> <7BB30632-15BE-4EF8-B84F-D35A27772F18@dell.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00079.txt.bz2 On 17/10/14 17:40, Doug Evans wrote: > Also note that resuming the inferior in a breakpoint handler is > supported, but further commands after the continue are not. This isn't > enforced in the python API, so I'm not sure what might happen. Some > things may work, others may > not. > https://sourceware.org/gdb/current/onlinedocs/gdb/Break-Commands.html#Break-Commands Yeah we can't police it only document it right now. Until Python has discrete control of the inferior (instead of issuing commands through gdb.execute) we would have to parse the code looking for "forbidden" operations. That's a deep dark hole to go into. ;) Hopefully one day when Guile and/or Python have rich and discrete inferior control we could better police what the user should or should not do at various states. Cheers Phil