]> git.ipfire.org Git - thirdparty/libtool.git/commit
Enable runtime cwrapper debugging; add tests
authorCharles Wilson <libtool@cwilson.fastmail.fm>
Sun, 12 Jul 2009 18:30:44 +0000 (14:30 -0400)
committerCharles Wilson <libtool@cwilson.fastmail.fm>
Sun, 21 Feb 2010 05:32:17 +0000 (00:32 -0500)
commit2613ea3ab217696ef2799e887bfc9e9362e91e35
treea29d30a8d28b5fe323395156a14c772c1dcac3f7
parent7e8be90f4872b8140a718a0af0a1544d1f9371d9
Enable runtime cwrapper debugging; add tests

* libltdl/config/ltmain.m4sh (func_emit_cwrapperexe_src):
Update comments. Initialize program_name. Eliminate _LENGTH
variables for string constants. In debug mode, print a
banner with known content before any other output. Remove
LTWRAPPER_DEBUGPRINTF macro. Add constants and variables
to support new --lt-debug option.
(func_emit_cwrapperexe_src:ltwrapper_debugprintf): Renamed to...
(func_emit_cwrapperexe_src:lt_debugprintf): this. Only print
messages if lt_debug != 0. Ensure appearance of messages
conforms to GCS.
(func_emit_cwrapperexe_src:lt_fatal): Ditto.
(func_emit_cwrapperexe_src:lt_error_core): Ditto.
(func_emit_cwrapperexe_src): Update all callers to lt_fatal.
Update all users of LTWRAPPER_DEBUGPRINTF (()) to call
lt_debugprintf () directly.
(func_emit_cwrapperexe_src:main): Consolidate option parsing.
Ensure first use of lt_debugprintf occurs after option parsing.
Add stanza to parse for --lt-debug and set lt_debug variable.
Use strcmp rather than strncmp, where safe.
* tests/cwrapper.at: Add new tests for --lt-debug and
-DLT_DEBUGWRAPPER.
ChangeLog
libltdl/config/ltmain.m4sh
tests/cwrapper.at