From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31272 invoked by alias); 28 Nov 2013 20:14:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 31259 invoked by uid 89); 28 Nov 2013 20:14:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from Unknown (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 28 Nov 2013 20:14:37 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MWZ00M00OZAJX00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Thu, 28 Nov 2013 22:14:28 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWZ00MBFPK4I550@a-mtaout20.012.net.il>; Thu, 28 Nov 2013 22:14:28 +0200 (IST) Date: Thu, 28 Nov 2013 21:16:00 -0000 From: Eli Zaretskii Subject: Re: [RFC] Python's gdb.FRAME_UNWIND_NULL_ID is no longer used. What to do with it? In-reply-to: <1385664356-29726-1-git-send-email-palves@redhat.com> To: Pedro Alves Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83li088esn.fsf@gnu.org> References: <1385664356-29726-1-git-send-email-palves@redhat.com> X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00892.txt.bz2 > From: Pedro Alves > Date: Thu, 28 Nov 2013 18:45:56 +0000 > > I'd assume scripts just check the result of Frame.unwind_stop_reason, > and compare it to gdb.FRAME_UNWIND_NO_REASON. That at most, they'll > pass the result of Frame.unwind_stop_reason to > gdb.frame_stop_reason_string. I'd prefer to just get rid of it, but > it may be best to keep this around for compatibility, in case a script > does refer to gdb.FRAME_UNWIND_NULL_ID directly. > > In general, what's the policy for exposed constants like this in > Python? > > gdb/ > 2013-11-28 Pedro Alves > > * unwind_stop_reasons.def (UNWIND_NULL_ID): Update comment. > > gdb/doc/ > 2013-11-28 Pedro Alves > > * gdb.texinfo (Frames In Python) : > Update comment. OK for the documentation part. Thanks.