Re: Is it possible to get calling function in output of references?

Ronak Gandhi <[email protected]> Wed, 22 Jun 2016 05:01:07 +0000
Newsgroups gmane.comp.gnu.global.general
Message-ID <CAFGWFOaoh5s_3AoNkOHgio9NAyiedJ30_cJwiiFgduj1pPxeDg@mail.gmail.com>
--===============1729654656249046395==
Content-Type: multipart/alternative; boundary=001a113529c8d774310535d6d324

--001a113529c8d774310535d6d324
Content-Type: text/plain; charset=UTF-8

Thanks for the clarification.

That's too bad. Cscope is pretty good at showing the calling function.

I switched to GLOBAL just because it can incrementally build the database
just for one file, and it's fast enough to trigger for each write from vim.

-Ronak

On Tue, Jun 21, 2016 at 7:15 PM Shigio YAMAGUCHI <[email protected]> wrote:

> Hi,
> > Is that possible?
> No, it isn't.
> Unfortunately, GLOBAL's tag files does not have the information now. :(
>
> Regards,
> Shigio
>
>
> 2016-06-22 5:34 GMT+09:00 Ronak Gandhi <[email protected]>:
>
>> 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
>>
>> _______________________________________________
>> Help-global mailing list
>> [email protected]
>> https://lists.gnu.org/mailman/listinfo/help-global
>>
>>
>
>
> --
> Shigio YAMAGUCHI <[email protected]>
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
>
-- 

-Ronak

--001a113529c8d774310535d6d324
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thanks for the clarification.</div><div><br></div>Tha=
t&#39;s too bad. Cscope is pretty good at showing the calling function.=C2=
=A0<div><br></div><div>I switched to GLOBAL just because it can incremental=
ly build the database just for one file, and it&#39;s fast enough to trigge=
r for each write from vim.</div><div><br></div><div>-Ronak</div></div><br><=
div class=3D"gmail_quote"><div dir=3D"ltr">On Tue, Jun 21, 2016 at 7:15 PM =
Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&g=
t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">







<div>Hi,</div><div>&gt; Is that possible?</div><div>No, it isn&#39;t.<br></=
div><div>Unfortunately, GLOBAL&#39;s tag files does not have the informatio=
n now. :(</div><div><br></div><div>Regards,</div><div>Shigio</div><div><br>=
</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote"></div=
></div><div class=3D"gmail_extra"><div class=3D"gmail_quote">2016-06-22 5:3=
4 GMT+09:00 Ronak Gandhi <span dir=3D"ltr">&lt;<a href=3D"mailto:contactron=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span>:<br><=
/div></div><div class=3D"gmail_extra"><div class=3D"gmail_quote"><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex"><div dir=3D"ltr">I&#39;m using global inside vim using=
 gtags-cscope.vim. The output from the global command for where a symbol is=
 called for doesn&#39;t have the function name which is making the call.=C2=
=A0<div><br></div><div>For example, in the following output, the first colu=
mn should be the function calling free_ctx().</div><div><br></div><div><div=
><font face=3D"monospace">$ global -xr free_ctx</font></div><div><font face=
=3D"monospace">free_ctx =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0490 product/waasn=
et/sil/flow_stats/flow_stats.c =C2=A0 =C2=A0 =C2=A0 free_ctx(req_ctx);</fon=
t></div><div><font face=3D"monospace">free_ctx =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0504 product/waasnet/sil/flow_stats/flow_stats.c =C2=A0 =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=A0524 product/waasnet/sil/flow_stats/flow_stat=
s.c =C2=A0 =C2=A0 =C2=A0 =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=A0570 pro=
duct/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 fre=
e_ctx(req_ctx);</font></div></div><div><font face=3D"monospace"><br></font>=
</div>Is that possible?<br><br><br>Thanks,<br>Ronak</div><span><font color=
=3D"#888888"><div dir=3D"ltr">-- <br></div><div data-smartmail=3D"gmail_sig=
nature"><div dir=3D"ltr"><p dir=3D"ltr">-Ronak</p>
</div></div>
</font></span><br></blockquote></div></div><div class=3D"gmail_extra"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">______________________=
_________________________<br>
Help-global mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
g</a><br>
<a href=3D"https://lists.gnu.org/mailman/listinfo/help-global" rel=3D"noref=
errer" target=3D"_blank">https://lists.gnu.org/mailman/listinfo/help-global=
</a><br>
<br></blockquote></div></div><div class=3D"gmail_extra"><br><br clear=3D"al=
l"><div><br></div>-- <br><div data-smartmail=3D"gmail_signature"><div dir=
=3D"ltr">Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]" target=3D"_=
blank">[email protected]</a>&gt;<div>PGP fingerprint: D1CB 0B89 B346 4AB6 5663=
 =C2=A0C4B6 3CA5 BBB3 57BE DDA3<br></div></div></div>
</div></blockquote></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>

--001a113529c8d774310535d6d324--


--===============1729654656249046395==
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

--===============1729654656249046395==--