Is it possible to get calling function in output of references?
Ronak Gandhi <[email protected]> Tue, 21 Jun 2016 20:34:25 +0000
| Newsgroups | gmane.comp.gnu.global.general |
|---|---|
| Message-ID | <CAFGWFOakA9N5BkKgiu-fDqCaXsTWxdL=iw4S_czv=BsjUCMm-Q@mail.gmail.com> |
--===============9052944294908002657== Content-Type: multipart/alternative; boundary=94eb2c084e8ac8c55b0535cfbfb3 --94eb2c084e8ac8c55b0535cfbfb3 Content-Type: text/plain; charset=UTF-8 I'm using global inside vim using gtags-cscope.vim. The output from the global command for where a symbol is called for doesn't have the function name which is making the call. For example, in the following output, the first column should be the function calling free_ctx(). $ global -xr free_ctx free_ctx 490 product/waasnet/sil/flow_stats/flow_stats.c free_ctx(req_ctx); free_ctx 504 product/waasnet/sil/flow_stats/flow_stats.c free_ctx(req_ctx); free_ctx 524 product/waasnet/sil/flow_stats/flow_stats.c free_ctx(req_ctx); free_ctx 570 product/waasnet/sil/flow_stats/flow_stats.c free_ctx(req_ctx); free_ctx 813 product/waasnet/sil/flow_stats/flow_stats.c free_ctx(req_ctx); Is that possible? Thanks, Ronak -- -Ronak --94eb2c084e8ac8c55b0535cfbfb3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">I'm using global inside vim using gtags-cscope.vim. Th= e output from the global command for where a symbol is called for doesn'= ;t have the function name which is making the call.=C2=A0<div><br></div><di= v>For example, in the following output, the first column should be the func= tion calling free_ctx().</div><div><br></div><div><div><font face=3D"monosp= ace">$ global -xr free_ctx</font></div><div><font face=3D"monospace">free_c= tx =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0490 product/waasnet/sil/flow_stats/flo= w_stats.c =C2=A0 =C2=A0 =C2=A0 free_ctx(req_ctx);</font></div><div><font fa= ce=3D"monospace">free_ctx =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0504 product/waa= snet/sil/flow_stats/flow_stats.c =C2=A0 =C2=A0 =C2=A0 free_ctx(req_ctx);</f= ont></div><div><font face=3D"monospace">free_ctx =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0524 product/waasnet/sil/flow_stats/flow_stats.c =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 free_ctx(req_ctx);</font></div><div><font face=3D"monospa= ce">free_ctx =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0570 product/waasnet/sil/flow= _stats/flow_stats.c =C2=A0 =C2=A0 free_ctx(req_ctx);</font></div><div><font= face=3D"monospace">free_ctx =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0813 product/= waasnet/sil/flow_stats/flow_stats.c =C2=A0 =C2=A0 free_ctx(req_ctx);</font>= </div></div><div><font face=3D"monospace"><br></font></div>Is that possible= ?<br><br><br>Thanks,<br>Ronak</div><div dir=3D"ltr">-- <br></div><div data-= smartmail=3D"gmail_signature"><div dir=3D"ltr"><p dir=3D"ltr">-Ronak</p> </div></div> --94eb2c084e8ac8c55b0535cfbfb3-- --===============9052944294908002657== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-global --===============9052944294908002657==--