From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30359 invoked by alias); 4 Jul 2005 10:17:42 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30247 invoked by uid 22791); 4 Jul 2005 10:17:36 -0000 Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 04 Jul 2005 10:17:36 +0000 Received: from farnswood.snap.net.nz (p174-tnt2.snap.net.nz [202.124.108.174]) by viper.snap.net.nz (Postfix) with ESMTP id A8A4A5CC156; Mon, 4 Jul 2005 22:17:33 +1200 (NZST) Received: by farnswood.snap.net.nz (Postfix, from userid 501) id 512B362A99; Mon, 4 Jul 2005 11:18:37 +0100 (BST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17097.3324.708365.449454@farnswood.snap.net.nz> Date: Mon, 04 Jul 2005 10:17:00 -0000 To: Daniel Jacobowitz Cc: Eli Zaretskii , Bob Rossi , gdb-patches@sources.redhat.com Subject: Re: [PATCH: gdb/mi + doco] -var-update In-Reply-To: <20050704050151.GA8321@nevyn.them.org> References: <20050401024942.GA2179@white> <17013.35649.62745.226730@farnswood.snap.net.nz> <20050502040526.GA10023@nevyn.them.org> <17013.54662.20554.239976@farnswood.snap.net.nz> <20050617034329.GH17013@nevyn.them.org> <20050617140410.GA24575@nevyn.them.org> <20050703195630.GM13811@nevyn.them.org> <20050704050151.GA8321@nevyn.them.org> X-SW-Source: 2005-07/txt/msg00044.txt.bz2 > type = varobj_get_type (*cc); > + if (mi_print_value_p (type, print_values)) > + ui_out_field_string (uiout, "value", varobj_get_value (*cc)); type here is char * (perhaps varobj_get_type should be renamed), but you're treating it as struct type * in mi_print_value_p. Using "--simple-values" can give a segmentation fault. Nick