This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA]: Initialize solib search psth from environ variable



This patch would check the environment variables SOLIB_SEARCH_PATH
and SOLIB_ABSOLUTE_PREFIX once, at start-up, and use them to set the
corresponding gdb state variables.

2000-10-31  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * solib.c (initialize_solib): Initialize solib_absolute_prefix
        and solib_search_path from the environment variables
        SOLIB_ABSOLUTE_PREFIX and SOLIB_SEARCH_PATH, if they're defined.

Index: solib.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/solib.c,v
retrieving revision 1.155
diff -c -3 -p -r1.155 solib.c
*** solib.c	2000/10/31 22:04:12	1.155
--- solib.c	2000/10/31 22:08:17
*************** This takes precedence over the environme
*** 810,813 ****
--- 810,819 ----
  		  &setlist),
       &showlist);
  
+   /* check for solib path environment variables */
+   if ((tmp = getenv ("SOLIB_ABSOLUTE_PREFIX")) != NULL)
+     solib_absolute_prefix = strsave (tmp);
+ 
+   if ((tmp = getenv ("SOLIB_SEARCH_PATH")) != NULL)
+     solib_search_path = strsave (tmp);
  }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]