From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13083 invoked by alias); 2 Apr 2002 19:22:07 -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 13071 invoked from network); 2 Apr 2002 19:22:06 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 2 Apr 2002 19:22:06 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id OAA19500; Tue, 2 Apr 2002 14:21:46 -0500 Received: from catdog (dhcpa182 [10.12.1.182]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id OAA06540; Tue, 2 Apr 2002 14:21:16 -0500 Message-ID: <083201c1da7b$bf19b490$b6010c0a@catdog> From: "Kris Warkentin" To: "Daniel Jacobowitz" Cc: References: <082a01c1da77$5eda6920$b6010c0a@catdog> <20020402135525.A21141@nevyn.them.org> Subject: Re: command api question Date: Tue, 02 Apr 2002 11:22:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-04/txt/msg00004.txt.bz2 Is that an agreeable solution? Or would it be better to just provide get/set functions? We're hoping to get our changes rolled into the gdb head branch someday and we want to keep things as clean as possible. (ie. as few changes as possible to common files, most stuff implemented in separate qnx files). cheers, Kris ----- Original Message ----- From: "Daniel Jacobowitz" To: "Kris Warkentin" Cc: Sent: Tuesday, April 02, 2002 1:55 PM Subject: Re: command api question > 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. > > -- > Daniel Jacobowitz Carnegie Mellon University > MontaVista Software Debian GNU/Linux Developer >