This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: how to access show/set data
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: "Kris Warkentin" <kewarken at qnx dot com>, <gdb at sources dot redhat dot com>
- Date: Thu, 2 Jan 2003 15:58:35 -0500
- Subject: Re: how to access show/set data
- References: <013201c2b297$566460e0$0202040a@catdog>
Nevermind. I found lookup_cmd().
cheers,
Kris
----- Original Message -----
From: "Kris Warkentin" <kewarken@qnx.com>
To: <gdb@sources.redhat.com>
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
>
>