This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Libmudflap for sh-elf toolchain cannot access environment variable MUDFLAP_OPTIONS
- From: "Deepen Mantri" <Deepen dot Mantri at kpitcummins dot com>
- To: "Andrew STUBBS" <andrew dot stubbs at st dot com>
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>, <gcc at gcc dot gnu dot org>
- Date: Fri, 15 Jun 2007 20:47:38 +0530
- Subject: RE: Libmudflap for sh-elf toolchain cannot access environment variable MUDFLAP_OPTIONS
Andrew STUBBS wrote:
>It's probably easier to place a putenv("MUDFLAP_OPTIONS=blah")
>in your code, or inject it from the debugger.
Thanks for the reply.
MUDFLAP_OPTIONS environment variable is used to control the
run time behaviour of instrumented code generated with the
help of libmudflap library.
There are about 30 options which user can set against this
environment variable and thus control the run-time behavior
of the instrumented program. For details please refer the
following link:
http://gcc.gnu.org/wiki/Mudflap_Pointer_Debugging
We cannot place putenv("MUDFLAP_OPTIONS=<..>") in
libmudflap's __mf_init() function existing in mf-runtime.c.
Placing putenv(..) will limit the instrumented code's
runtime behaviour only to option being set in the code by me.
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~