From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21169 invoked by alias); 12 Aug 2002 15:48:59 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21156 invoked from network); 12 Aug 2002 15:48:57 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 12 Aug 2002 15:48:57 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g7CFZPl06226; Mon, 12 Aug 2002 11:35:25 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g7CFmqu00567; Mon, 12 Aug 2002 11:48:53 -0400 Received: from romulus.sfbay.redhat.com (remus.sfbay.redhat.com [172.16.27.252]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g7CFmpe11804; Mon, 12 Aug 2002 08:48:51 -0700 Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g7CFmnY31877; Mon, 12 Aug 2002 08:48:49 -0700 Date: Mon, 12 Aug 2002 08:48:00 -0000 From: Kevin Buettner Message-Id: <1020812154849.ZM31876@localhost.localdomain> In-Reply-To: Andrew Cagney "Re: gdb/633: fully qualified pathnames in solib_map_sections() and remote debugging" (Aug 12, 11:07am) References: <20020806100634.11483.qmail@sources.redhat.com> <20020806132047.GA16450@nevyn.them.org> <1020809231206.ZM11775@localhost.localdomain> <20020812032527.GA3838@nevyn.them.org> <3D57C611.4010403@ges.redhat.com> <20020812143803.GA25086@nevyn.them.org> <3D57CF1A.4070405@ges.redhat.com> To: Andrew Cagney , Daniel Jacobowitz Subject: Re: gdb/633: fully qualified pathnames in solib_map_sections() and remote debugging Cc: Kevin Buettner , jorma.laaksonen@hut.fi, gdb-gnats@sources.redhat.com, gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-08/txt/msg00098.txt.bz2 On Aug 12, 11:07am, Andrew Cagney wrote: > > This leaves only the question of "how". I don't want to change the > >> >behavior for a native debugger using the remote protocol; just for > >> >non-native debuggers. How should I check for this? Using configury to > >> >do it seems contrary to the direction gdbarch is going (i.e. a both > >> >native and cross debugger in one binary). > > > >> > >> This is a target environment thing? So why not ask the target: > >> > >> target_getenv() > >> -> qGetenv: > >> <- value > > > > > > No (although I will get back to qGetenv later... :). We're discussing > > the behavior of the function solib.c:solib_open. It should vary > > depending on whether the current target is native or not, and I don't > > know how to figure that out correctly. > > There are two approaches: have solib_open() test for a local/remote > target; or, add methods to the target vector that allow solib_open() to > be written independant of the target. At the moment, I like the first approach better because it's simpler. I'd prefer that we wait on the more complicated approach until a need is demonstrated for the additional complexity. > Adding a local/remote test is going to be easier. Do we already have such a test? Kevin