From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20897 invoked by alias); 3 Apr 2002 16:54:20 -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 20880 invoked from network); 3 Apr 2002 16:54:19 -0000 Received: from unknown (HELO localhost.redhat.com) (66.31.105.161) by sources.redhat.com with SMTP; 3 Apr 2002 16:54:19 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 0866A3E55; Wed, 3 Apr 2002 11:54:19 -0500 (EST) Message-ID: <3CAB33BA.4010603@cygnus.com> Date: Wed, 03 Apr 2002 08:54:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Jacobowitz , Kris Warkentin Cc: gdb@sources.redhat.com Subject: Re: command api question References: <082a01c1da77$5eda6920$b6010c0a@catdog> <20020402135525.A21141@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00019.txt.bz2 > On Tue, Apr 02, 2002 at 01:51:16PM -0500, Kris Warkentin wrote: > >> There is a static variable 'solib_search_path' in solib.c that I'd like to >> get access to outside of solib.c. I see that it has been added to the >> command list with an 'add_set_cmd()' call. What is the easiest way for me >> to get a reference to this variable so that I can modify it? (we have an >> initialization routine to set a default solib search path). I apologize if >> this is clearly documented somewhere - the functions in command.h are >> probably what I'm looking for but it wasn't immediately obvious which one I >> should use and how. > > > It's probably easier just to make it into a global, instead of munging > the command lists. Er ..... Kris, can you explain why you want to munge this variable? Andrew