This utility lists all variables in an indexed database. This includes global variables, local variables, and parameter variables. For example:
% mx-list-variables --db /tmp/curl.db
1152921504606847467 2305843009213693953 14019705642151837696 body::ptr def
1152921504606847467 2305843009213693953 14019705642151837697 body::a def
1152921504606847467 2305843009213693953 14019705642151837698 body::b def
1152921504606847467 2305843009213693953 14019705642151837699 body::c def
1152921504606847467 2305843009213693953 14019705642151837700 body::d def
1152921504606847467 2305843009213693953 14019705642151837701 body::saved_a def
1152921504606847467 2305843009213693953 14019705642151837702 body::saved_b def
1152921504606847467 2305843009213693953 14019705642151837703 body::saved_c def
1152921504606847467 2305843009213693953 14019705642151837704 body::saved_d def
1152921504606847598 2305843009213693954 14019705644299321344 Curl_vsetopt::argptr def
1152921504606847598 2305843009213693954 14019705644299321345 Curl_vsetopt::result def
1152921504606847598 2305843009213693954 14019705644299321346 Curl_vsetopt::arg def
1152921504606847598 2305843009213693954 14019705644299321347 Curl_vsetopt::uarg def
1152921504606847598 2305843009213693954 14019705644299321348 Curl_vsetopt::bigsize def
1152921504606847598 2305843009213693954 14019705644299321349 Curl_vsetopt::version def
1152921504606847598 2305843009213693954 14019705644299321350 Curl_vsetopt::version_max def
The output format is <file_id> <fragment_id> <declaration_id> <name> <decl|def>
.
The --show_locations
command line option can also be passed to print the source
locations of each variable.