command api question

Kris Warkentin kewarken@qnx.com
Tue Apr 2 10:50:00 GMT 2002


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.

cheers,

Kris



More information about the Gdb mailing list