Hello,
Regrettably it is impossible, because Global cannot recognize range of
procedures. Cscope is excellent in this point.

Regards,
Shigio

2014-07-07 14:30 GMT+09:00 Jamie Bainbridge <[email protected]>:

> I usually swap between using cscope tags and GNU Global tags in Vim,
> but I really would just rather use Global.
>
> The thing I find useful from cscope is the "context" field. This is
> really useful to get some idea of where a tag is called from.
>
> Here I'm doing ":cs find s pcap_setdirection_linux" on libpcap.
>
> Results with cscope cross-reference:
>
>    #   line  filename / context / line
>    1    328  pcap-linux.c <<GLOBAL>>
>              static int pcap_setdirection_linux(pcap_t *,
> pcap_direction_t);
>    2   1225  pcap-linux.c <<pcap_activate_linux>>
>              handle->setdirection_op = pcap_setdirection_linux;
>    3   2495  pcap-linux.c <<pcap_setdirection_linux>>
>              pcap_setdirection_linux(pcap_t *handle, pcap_direction_t d)
>
> Results with GNU Global gtags:
>
>    #   line  filename / context / line
>    1   2495  pcap-linux.c <<pcap_setdirection_linux>>
>              pcap_setdirection_linux(pcap_t *handle, pcap_direction_t d)
>    2    328  pcap-linux.c <<pcap_setdirection_linux>>
>              static int pcap_setdirection_linux(pcap_t *,
> pcap_direction_t);
>    3   1225  pcap-linux.c <<pcap_setdirection_linux>>
>              handle->setdirection_op = pcap_setdirection_linux;
>
> Notice the <<context>> is the parent function or definition in cscope,
> however the <<context>> is just the search term in Global.
>
> Is it possible to get Global to fill in the cscope-vim context field?
>
> Cheers,
> Jamie
>
> _______________________________________________
> 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
_______________________________________________
Help-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-global

Reply via email to