Is there a way to generate a cross reference listing for a c/c++ program using gcc?

Carlo Corridore carlo@alenianola.finmeccanica.it
Mon May 16 08:27:00 GMT 2005


Or probably using sourcenav software from sourcenav.sourceforge.net

Daniel Berlin wrote:
> On Fri, 2005-05-13 at 14:49 -0500, Paul Albrecht wrote:
> 
>>Eric writes:
>>
>>
>>>-Wl,-Map=mapfile.map,--cref
>>>
>>
>>I'm not looking for a cross-reference from a symbol to its memory location
>>in linked file, rather a cross-reference from a symbol definition in a
>>program source file to its line number references in all the program source
>>files.
>>
> 
> 
> It's probably easiest to snarf that from the debug information produced
> in the executable with -g.
> 
> 
> 
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: carlo.vcf
Type: text/x-vcard
Size: 346 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20050516/6b18fc48/attachment-0001.vcf>


More information about the Gcc-help mailing list