From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101278 invoked by alias); 3 May 2016 23:19:17 -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 101244 invoked by uid 89); 3 May 2016 23:19:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=akin X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 03 May 2016 23:19:14 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3FE1F51B; Tue, 3 May 2016 23:19:13 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u43NJBIL014376; Tue, 3 May 2016 19:19:12 -0400 Subject: Re: [PATCH 4/4] Fix solib-display.exp remote check To: Simon Marchi References: <1459912543-15328-1-git-send-email-simon.marchi@polymtl.ca> <1459912543-15328-4-git-send-email-simon.marchi@polymtl.ca> <570BECA8.3050801@redhat.com> <581c3da12dacfd50cfbbe4dbd31a981a@simark.ca> <829b12556396e75ab3c0eb657632e370@simark.ca> Cc: gdb-patches@sourceware.org From: Pedro Alves Message-ID: <2c89f58e-989b-de6e-25e9-776c25848361@redhat.com> Date: Tue, 03 May 2016 23:19:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <829b12556396e75ab3c0eb657632e370@simark.ca> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-05/txt/msg00051.txt.bz2 On 05/02/2016 08:52 PM, Simon Marchi wrote: > On 2016-05-02 14:28, Pedro Alves wrote: >> Thanks for the investigation. I think it'd be nice to >> add this info as a comment in the test file. >> >> Thanks, >> Pedro Alves > > What about: > > # This test is currently not supported for stub targets, because it uses > the > # start command (through gdb_start_cmd). In theory, it could be changed to > # use something else (kill + gdb_run_cmd with a manual breakpoint at main). > # However, when we try that with the native-gdbserver board, we see that > the > # test fails and gdb outputs this upon connection: > # > # warning: Unable to display "a_global": No symbol "a_global" in > current context. > # warning: Unable to display "b_global": No symbol "b_global" in > current context. > # warning: Unable to display "c_global": No symbol "c_global" in > current context. > # > # This is because the initial stop is done before the shared libraries are > # loaded. If there were some stub targets for which this use case would be > # supported, then the test could probably be modified to avoid using start. LGTM, though I'd drop the last sentence. One could argue that this _should_ work, and that gdb could re-enable the displays when the shared libraries are loaded, akin to shared library breakpoints. Thanks, Pedro Alves