This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]