From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7292 invoked by alias); 4 Mar 2011 21:22:58 -0000 Received: (qmail 7284 invoked by uid 22791); 4 Mar 2011 21:22:58 -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 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Mar 2011 21:22:50 +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 p24LMnsP023864 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Mar 2011 16:22:49 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p24LMme6026223; Fri, 4 Mar 2011 16:22:49 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p24LMle8006819; Fri, 4 Mar 2011 16:22:47 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 37C9F37967C; Fri, 4 Mar 2011 14:22:47 -0700 (MST) From: Tom Tromey To: Michel METZGER Cc: "gdb\@sourceware.org" Subject: Re: Python API - gdb.GdbError in convenience functions References: <5B4CE209869C6A4797F5FAA0B348F0A0D9F167BA20@SAFEX1MAIL1.st.com> Date: Fri, 04 Mar 2011 21:22:00 -0000 In-Reply-To: <5B4CE209869C6A4797F5FAA0B348F0A0D9F167BA20@SAFEX1MAIL1.st.com> (Michel METZGER's message of "Fri, 4 Mar 2011 21:52:26 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 X-SW-Source: 2011-03/txt/msg00047.txt.bz2 >>>>> "Michel" == Michel METZGER writes: Michel> I need to signal an error in a convenience functions and tried Michel> to raise a GdbError exception. Unfortunately, contrary to the Michel> behavior whit a command, the stack trace is displayed. Is it Michel> the expected behavior ? Is there a way to abort the execution Michel> of a command that calls a convenience function without a stack Michel> trace ? I think what you want sounds good. The only blocker is somebody actually writing the patch. Tom