From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10364 invoked by alias); 8 Apr 2010 21:16:32 -0000 Received: (qmail 10355 invoked by uid 22791); 8 Apr 2010 21:16:31 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from eu1sys200aog109.obsmtp.com (HELO eu1sys200aog109.obsmtp.com) (207.126.144.127) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Apr 2010 21:16:26 +0000 Received: from source ([167.4.1.35]) (using TLSv1) by eu1sys200aob109.postini.com ([207.126.147.11]) with SMTP ID DSNKS75HpzsL7FcteejzJYcIoBd3sn9Zub08@postini.com; Thu, 08 Apr 2010 21:16:25 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.80.115]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 7B3EB3B for ; Thu, 8 Apr 2010 21:13:29 +0000 (GMT) Received: from mail2.crn.st.com (mail2.crn.st.com [167.4.2.66]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 84EE826D for ; Thu, 8 Apr 2010 21:16:20 +0000 (GMT) Received: from [167.4.249.181] (ottl131.ott.st.com [167.4.249.181]) by mail2.crn.st.com (MOS 3.8.7a) with ESMTP id AHY99031 (AUTH "michel metzger"); Thu, 8 Apr 2010 16:16:19 -0500 (CDT) Message-ID: <4BBE47A3.10906@st.com> Date: Thu, 08 Apr 2010 21:16:00 -0000 From: Michel METZGER User-Agent: Thunderbird 2.0.0.24 (X11/20100228) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Side effect of set print address on python API Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2010-04/txt/msg00028.txt.bz2 Hi all, the Frame.read_var() method does not behave as (I) excpected when print address is set to off (gdb) set print address on (gdb) python print len(str(gdb.selected_frame().read_var("argv"))) 10 (gdb) set print address off (gdb) python print len(str(gdb.selected_frame().read_var("argv"))) 0 It's not a blocking issue for me but I guess this is not the expected behavior ;) Regards, -- Michel Metzger