From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21420 invoked by alias); 2 Jan 2003 20:59:03 -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 21405 invoked from network); 2 Jan 2003 20:58:59 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 209.249.29.67 with SMTP; 2 Jan 2003 20:58:59 -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 PAA11324; Thu, 2 Jan 2003 15:51:17 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id PAA06490; Thu, 2 Jan 2003 15:58:47 -0500 Message-ID: <017801c2b2a1$b7837640$0202040a@catdog> From: "Kris Warkentin" To: "Kris Warkentin" , References: <013201c2b297$566460e0$0202040a@catdog> Subject: Re: how to access show/set data Date: Thu, 02 Jan 2003 20:59: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.2800.1106 X-SW-Source: 2003-01/txt/msg00030.txt.bz2 Nevermind. I found lookup_cmd(). cheers, Kris ----- Original Message ----- From: "Kris Warkentin" To: Sent: Thursday, January 02, 2003 2:44 PM Subject: how to access show/set data > Say, for example, I wanted to programmatically modify solib_search_path, a > static char * which is declared in solib.c. > > I know a pointer to it has been stored via the add_set_cmd function and I'm > wondering if there is a "approved" way for me to dig out this pointer. I > have an OS dependent init file that needs to monkey with solib_search_path > and I didn't want to make the mods to solib.c or to make a "qnx_solib.c" for > such a small thing. > > cheers, > > Kris > >