bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request: Symbol lookup in GTAGSLIBPATH


From: Shigio YAMAGUCHI
Subject: Re: Feature Request: Symbol lookup in GTAGSLIBPATH
Date: Thu, 17 Apr 2014 18:22:29 +0900

Hi,
Do you expect the following usage?

$ export GTAGSLIBPATH=/usr/include
$ export GTAGSTHROUGH=
$ global -x strlen
$ global -xs strlen
strlen     92 /usr/include/string.h    size_t strlen(const char *);
$ _

However, it seems that it is not helpful, because "-xs strlen" may
show many tag records. Isn't the following command lines more realistic?

$ global -x strlen
$ man 3 strlen

Otherwise, you can rewrite the parser so that it might treat
function declarations as function definitions.


2014-04-17 12:13 GMT+09:00 Tu Do <address@hidden>:
  • What is your environment (OS)? 
    • Ubuntu 13.10
  • Which version of GLOBAL are you using? 
    • 6.2.12
  • What did you do? (command line) 
    • cp dhcpctl.h /usr/include/dhcpctl/dhcpctl.h
    • mkdir ~/.gtags
    • cd ~/.gtags
    • ln -s /usr/include include
    • gtags
    • global -s dhcpctl_new_object
    • global -s strlen
  • What did you expect from it? 
    • dhcpctl_new_object symbol lookup results got displayed correctly.
    • strlen symbol lookup results displayed correctly.
  • What was occurred? (as is)
    • Nothing is displayed currently because Global does not support symbol lookup. Since Global can only find definitions in GTAGSLIBPATH, when function definitions are not available but function declarations are available in the header files, the helpful information in the header files are ignored, just like the case with dhcpctl_new_object.  User should be able to use symbol lookup in cases like this, because Global won't ignore useful information only available in the header files. This is especially useful in environment where only header files are exposed, but not the source, like Windows environment.
Regards,

Tu.

_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global




--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]