⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 .ccmalloc

📁 这是一个用来加解密的算法库
💻 CCMALLOC
📖 第 1 页 / 共 2 页
字号:
                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                %%%% generic configuration file for %%%%                %%%%  the ccmalloc memory profiler  %%%%                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%        %-----------------------------------------------------------------%    % COPY THIS FILE TO '.ccmalloc' in your project or home directory %    %-----------------------------------------------------------------%################################################################################ (C) 1997-2003 Armin Biere, 1998 Johannes Keukelaar## $Id: ccmalloc.cfg,v 1.6 2003/02/03 08:03:54 biere Exp $##############################################################################%%% '%' and '#' are comments !!!!!!!% This file must be called '.ccmalloc' and is searched for in the% current directory and in the home directory of the user. If it% does not exist then the default values mentioned below are used.% It is also the only available user manual yet ;-) So here is a reading% hint. First have a look at the short one line descriptions of each option% ...%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% with 'file' the executable is specified [a.out]% ----------------------------------------------------------------------% This should not be necessary for Linux and Solaris because the proc% file system can be used to find argv[0].%% (the rest of this comment only applies to other OS)%% For other OS you should use this option unless the executable is% in the current directory or its name is 'a.out'.%% If you do not specify this then ccmalloc tries to find an executable% in the current directory that matches the running program starting% with 'a.out'. For this process it must call 'nm' on each executable% file in the directory which may be time consuming. With this option% you can speed up this process.%% You can also specify absolute or relative path names. This is % necessary if you do not start your program from the current directory.% But you can also simply link or name your program to 'a.out'.%file FILE%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'log' specify the logfile [stderr]% ----------------------------------------------------------------------% The default is to use stderr. The argument to 'log' is the name of% the file you want to write to. It can also be 'stdout' or '-' which % sets stdout as logfile. If the logfile is stdout or stderr and is% connected to a terminal then the output is slightly different.%% For big programs the logfile can be really big. To reduce the size% you can use a small chain length (see 'chain-length' below). The other% possibility is to use compressed logfiles. This can be done by% specifying a logfile name with  a '.gz' (or a '.Z') suffix. This means% that gnuzip (resp. compress) is used to compress the output.%log FILE%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'logpid' specify the logfile% ----------------------------------------------------------------------% Can be used alternatively to the 'log' command if you want to use% ccmalloc for debugging parallel applications where several copies of% the program you are debugging must be run simoultaneously. In this% case you can not use 'log' because you do not want to write to the same% log file. Using 'logpid' uses a file name ending with the <pid> of% the process which means the name is unique even if several copies of% your program are run simoultaneously.%% If you use the compressing suffixes then the <pid> is inserted before% the suffix (e.g. 'logpid ccmalloc.log.gz' uses 'ccmalloc.log.<pid>.gz'% as the name for the log file).%logpid FILE%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'dont-log-chain' skip info about certain chains []% ----------------------------------------------------------------------% This command may be repeated any number of times. The argument to this% command is a comma-separated list of function-or-file-and-line% specifications. Garbage allocated from a callchain that contains this% subchain anywhere will _not_ be logged.%% The ';'-separated list should not contain any spaces. E.g. not:%%    main ; foo ; bar%% but:%%     main;foo;bar%% A function-or-file-and-line specification is a string followed by an% optional colon and number, for example: main or main:14 or main.c or% main.c:15. Note that the string is compared with both the function and the% file name, if available. If main.c happens to be a function name, that% will cause a match (for that string at least).  Not specifying a line% number will match any line number. If line number information is not% available, anything will match!  Not specifying a name (e.g. ;;;) will% match an unknown function name.  Not giving any parameters at all, will% match a chain containing at least one unknown function.%% Note that if you say 'dont-log-chain wrapper.c' nothing will be logged.%dont-log-chain%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'only-log-chain' skip info about other chains []% ----------------------------------------------------------------------% The obvious counterpart to dont-log-chain. In this case, only matching% chains will be reported. Non-matching chains will not be reported.% Can be repeated any number of times; if the chain matches any of the% instances, it will be reported.%only-log-chain#########################################################################                                                                      ## This is the 'flag' section                                           ##                                                                      ##    'set FLAG' is the same as 'set FLAG 1'                            ##                                                                      ## The default values are those set below.  If 'silent' is disabled     ## then you will find the banner in the log file (or it is listed on    ## stdout or stderr). The banner describes the current settings of all  ## these flags.                                                         ##                                                                      #########################################################################%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% with 'only-count' ccmalloc only counts garbage - no call chains [0]% ----------------------------------------------------------------------% If only-count is set to one then only one additional pointer for% each allocated data is used and no call chain is generated. This is% the fasted and most space efficient mode ccmalloc can operate% in. In this mode you get at least the size of garbage produced.%% Note that 'check-free-space' does not work at all with 'only-count'% set and over writes ('check-overwrites') are only checked when% calling free.%set only-count 0%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'load-dynlibs' load dynamic linked libraries into gdb [0]% ----------------------------------------------------------------------% If your program is linked with dynamic libraries, function and file% name information is not available for addresses in those libraries,% unless you set 'load-dynlibs' to 1.%set load-dynlibs 0%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'keep-deallocated-data' does not recycle deallocated data [0]% ----------------------------------------------------------------------% If you enable keep-deallocated-data then all data deallocated with% 'free' (or 'delete' in C++) is not given back to the free store% but stays associated with the call chain of its allocation. This is% very useful if your program does multiple deallocation of the% same data.%set keep-deallocated-data 0%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 'check-overwrites' detect overwrites [0]% ----------------------------------------------------------------------% If you want to detect 'off by n bytes' errors you should set% 'checking-overwrites' to n/4 (on 32-Bit machines).%% ccmalloc inserts a boundary above allocated data. This boundary% consists of 'check-overwrites' words. If your program writes to% this area then ccmalloc can detect this (see also check-start% and check-interval). 'ccmalloc' also does checking for overwrites% at non word boundaries (e.g. strcpy(malloc(strlen("hello")),"hello");)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -