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


Deepen Mantri wrote:
How to make x86/linux shell's environment variable (MUDFLAP_OPTIONS) accessible to test.out while executing
it through the sh-elf simulator?

I don't know about other targets, but the SH newlib/crt/simulator doesn't do anything with the environment.


You could spend ages modifying the simulator and C runtime library to have the environment copied to the target.

It's probably easier to place a putenv("MUDFLAP_OPTIONS=blah") in your code, or inject it from the debugger.

Andrew


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