From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24100 invoked by alias); 8 Aug 2007 18:01:05 -0000 Received: (qmail 24015 invoked by uid 22791); 8 Aug 2007 18:01:04 -0000 X-Spam-Check-By: sourceware.org Received: from mms3.broadcom.com (HELO MMS3.broadcom.com) (216.31.210.19) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Aug 2007 18:00:56 +0000 Received: from [10.10.64.154] by MMS3.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.1)); Wed, 08 Aug 2007 11:00:47 -0700 X-Server-Uuid: 20144BB6-FB76-4F11-80B6-E6B2900CA0D7 Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id BF3282AE; Wed, 8 Aug 2007 11:00:47 -0700 (PDT) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id A4FD92AE; Wed, 8 Aug 2007 11:00:47 -0700 (PDT) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id FNV53191; Wed, 8 Aug 2007 11:00:39 -0700 (PDT) Received: from NT-IRVA-0752.brcm.ad.broadcom.com ( nt-irva-0752.brcm.ad.broadcom.com [10.8.194.67]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id DF17369CB8; Wed, 8 Aug 2007 11:00:38 -0700 (PDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: (Another) Segfault in varobj.c Date: Wed, 08 Aug 2007 18:01:00 -0000 Message-ID: In-Reply-To: References: From: "Robert Norton" To: "Robert Norton" , "Vladimir Prus" , gdb@sources.redhat.com X-WSS-ID: 6AA4DB4539C3983308-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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: 2007-08/txt/msg00086.txt.bz2 > -----Original Message----- > From: gdb-owner@sourceware.org=20 > [mailto:gdb-owner@sourceware.org] On Behalf Of Robert Norton > Sent: 07 August 2007 17:11 > To: Vladimir Prus; gdb@sources.redhat.com > Subject: RE: (Another) Segfault in varobj.c > > I'll give it a try! For anyone who's interested I managed to back port the changes by copying varobj.c/h and mi/*. I had to edit mi-main.c to get it to compile (used current_regcache instead of get_current_regcache()) and also had to add a call to varobj_invalidate() in symfile.c. I also had a problem with one of the tests: mi-var-cmd.exp creates a varobj from a char* but due to gdb interpreting it is a null terminated string it appears to be modified even though it is actually the llong variable which is allocated after it in memory which has changed. What's needed is some way to tell gdb that lpcharacter really is just a char * (not a pointer to a null terminated string). Robert