From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22479 invoked by alias); 8 Jan 2003 23:16:17 -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 22471 invoked from network); 8 Jan 2003 23:16:12 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by 209.249.29.67 with SMTP; 8 Jan 2003 23:16:12 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h08MlSB15898 for ; Wed, 8 Jan 2003 17:47:28 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h08NFCa08246; Wed, 8 Jan 2003 18:15:12 -0500 Received: from localhost.localdomain (vpn50-6.rdu.redhat.com [172.16.50.6]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h08NFAe18362; Wed, 8 Jan 2003 18:15:11 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h08NF1j00638; Wed, 8 Jan 2003 16:15:01 -0700 Date: Wed, 08 Jan 2003 23:16:00 -0000 From: Kevin Buettner Message-Id: <1030108231501.ZM637@localhost.localdomain> In-Reply-To: "Kris Warkentin" "how to access show/set data" (Jan 2, 2:44pm) References: <013201c2b297$566460e0$0202040a@catdog> To: "Kris Warkentin" , Subject: Re: how to access show/set data MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-01/txt/msg00099.txt.bz2 On Jan 2, 2:44pm, Kris Warkentin wrote: > 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. Why not just put set solib-search-path in your .gdbinit file? (I don't know of any "approved" way of digging out the pointer.) Kevin