From mboxrd@z Thu Jan 1 00:00:00 1970 From: Syd Polk To: dave.banham@tde.alstom.com, sourcenav@sources.redhat.com Subject: Re: Source navigator roadmap, features list, etc.? Date: Fri, 29 Sep 2000 11:32:00 -0000 Message-id: <4.2.0.58.20000929112928.00c52c40@pop.cygnus.com> References: X-SW-Source: 2000-q3/msg00472.html At 08:18 AM 9/29/00 +0100, dave.banham@tde.alstom.com wrote: >Syd, >You misunderstand my request. All I would like SN to do is "flag >assignments of >function pointers" so that Xref will show the assignment as a reference to the >function symbol being xref'd. Currently it does not, so the only way of >finding >such references is with grep. I agree with you here. Others have asked for what I was talking about. >Regards, >Dave Banham > > > >On the subject of member functions not being xref'd, I have found that > (in C) > >function names used as function pointers (i.e. in call-back > >initialisation) are > >not xref'd. In fact the only way I can find them is to Grep the entire > project > >which takes a number of minutes. > >This is actually really hard to do. > >We could certainly flag assignments of function pointers, but there is no >good static determination of when a function is actually called >dereferencing a function pointer. This requires runtime analysis. And it >could be wrong; the runtime analysis would have to have a reverse table of >addresses to functions. A debugger could do this while the exe is running. > >So the only thing we can do is flag assignments of function pointers and >put it in the database. > > >Dave Banham > > > >Syd Polk spolk@redhat.com >Engineering Manager +1 415 777 9810 x 241 >Red Hat, Inc. > Syd Polk spolk@redhat.com Engineering Manager +1 415 777 9810 x 241 Red Hat, Inc.