mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 17:23:15 +02:00
core: add documentation on command line debug options (in --help and man pages)
Command line debug options are now documented: * --no-dlclose: do not call the function dlclose after plugins are unloaded * --no-gnutls: do not call the init and deinit functions of GnuTLS library * --no-gcrypt: do not call the init and deinit functions of Gcrypt library These options must not be used in production, they're for debug only and can be used with tools like Valgrind or electric-fence.
This commit is contained in:
@@ -80,12 +80,12 @@ gnutls_certificate_credentials_t gnutls_xcred; /* GnuTLS client credentials */
|
||||
void
|
||||
network_init_gcrypt ()
|
||||
{
|
||||
if (!weechat_no_gcrypt)
|
||||
{
|
||||
gcry_check_version (GCRYPT_VERSION);
|
||||
gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
|
||||
gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||
}
|
||||
if (weechat_no_gcrypt)
|
||||
return;
|
||||
|
||||
gcry_check_version (GCRYPT_VERSION);
|
||||
gcry_control (GCRYCTL_DISABLE_SECMEM, 0);
|
||||
gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -189,6 +189,16 @@ weechat_display_usage ()
|
||||
"WeeChat is blocking and does not run in background)\n"));
|
||||
string_fprintf (stdout, "\n");
|
||||
}
|
||||
|
||||
/* debug options */
|
||||
string_fprintf (
|
||||
stdout,
|
||||
_("Debug options (for tools like valgrind, DO NOT USE IN PRODUCTION):\n"
|
||||
" --no-dlclose do not call function dlclose after "
|
||||
"plugins are unloaded\n"
|
||||
" --no-gnutls disable init/deinit of gnutls\n"
|
||||
" --no-gcrypt disable init/deinit of gcrypt\n"));
|
||||
string_fprintf (stdout, "\n");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user