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

Reply via email to