This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Libmudflap for sh-elf toolchain cannot access environment variable MUDFLAP_OPTIONS


Frank Eigler wrote:

>You need to teach your simulator to pass environment variables on ...

Thanks for the reply.

To pass on the environment variables from simulator to a.out which 
is targeted for machine different than host would require simulator
to pass the data to a.out (other than command line arguments).
Can we do this?

>Since command line arguments are (sometimes) passed on, perhaps you
>could write a short routine that parses MUDFLAP_OPTIONS from there
>and calls __mf_set_options.

You mean to say that instead of setting environment variable, 
I should pass mudflap runtime controlling options (for eg: -print-leaks)
as command line arguments and add a routine to detect them.

Regards
Deepen Mantri
   
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Free download of GNU based tool-chains for Renesas' SH, H8,
R8C,M16C and M32C Series. The following site also offers free 
technical support to its users. 
Visit http://www.kpitgnutools.com for details.
Latest versions of KPIT GNU tools were released on Feb 6, 07
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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