From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22799 invoked by alias); 9 Nov 2010 02:38:16 -0000 Received: (qmail 22706 invoked by uid 22791); 9 Nov 2010 02:38:15 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MIME_CHARSET_FARAWAY,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yw0-f41.google.com (HELO mail-yw0-f41.google.com) (209.85.213.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Nov 2010 02:38:11 +0000 Received: by ywo32 with SMTP id 32so476814ywo.0 for ; Mon, 08 Nov 2010 18:38:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.221.7 with SMTP id ia7mr4352662icb.126.1289270289498; Mon, 08 Nov 2010 18:38:09 -0800 (PST) Received: by 10.231.146.82 with HTTP; Mon, 8 Nov 2010 18:38:09 -0800 (PST) In-Reply-To: <20101108143618.GA30630@host0.dyn.jankratochvil.net> References: <20101108143618.GA30630@host0.dyn.jankratochvil.net> Date: Tue, 09 Nov 2010 02:38:00 -0000 Message-ID: Subject: Re: [patch] solib-display.exp: displays for local variables automatically disabled From: Xingxing Pan To: gdb-patches@sourceware.org Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable 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 X-SW-Source: 2010-11/txt/msg00131.txt.bz2 Hi, Jan. I'm using GDB 7.2, GCC 4.4.2, on an ARM similar arch. I found that after the restart, d->exp !=3D NULL && d->exp->gdbarch !=3D get_current_arch() was asserted, which resulted in that d->exp was assigned NULL and parsed ag= ain. For the local variables, because of out of scope, the parse was failed, which resulted in d->enanble_p is assigned ZERO before the warning. For the globals, the parse would succeed. Is it normal to have d->exp->gdbarch !=3D get_current_arch() after restart? Thanks, Pan Xingxing 2010/11/8 Jan Kratochvil : - =D2=FE=B2=D8=D2=FD=D3=C3=CE=C4=D7=D6 - > On Mon, 08 Nov 2010 14:19:18 +0100, Xingxing Pan wrote: >> FAIL: gdb.base/solib-display.exp: NO: continue >> FAIL: gdb.base/solib-display.exp: IN: continue >> FAIL: gdb.base/solib-display.exp: SEP: continue > > But it PASSes for me on FSF GDB HEAD and x86_64-fedora14-linux-gnu. > > >> warning: Unable to display "a_static": No symbol "a_static" in current c= ontext. > > This means `d->exp =3D=3D NULL' in do_one_display. But the expression sh= ould be > valid, inferior has been just restarted, not reloaded. > > > Do you have info on your system to make the problem reproducible for me? > > > Thanks, > Jan >