* Can Ebrowse or ECB give me a list of functions called? Or something else?
@ 2004-08-05 19:55 Alan Mackenzie
2004-08-06 9:19 ` Eli Zaretskii
[not found] ` <mailman.107.1091784426.2011.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Alan Mackenzie @ 2004-08-05 19:55 UTC (permalink / raw)
We have a source tree of mixed C and C++. Management is considering
"just" switching to a different unix-like OS. I have been tasked with
discovering exactly which functions (from the OS and standard libraries)
are called.
Before embarking on the writing of a script to parse our source files, I
was wondering if I could somehow extract the information from an Ebrowse
or ECB database file. Clearly a TAGS file doesn't contain the requisite
info.
All I really need (I think), is some text file with an obvious structure,
from which I can extract the function names I'm looking for.
Or would I be better using something like GNU nm ("List symbols from
object files")?
Suggestions and tips would be appreciate.
Thanks in advance!
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can Ebrowse or ECB give me a list of functions called? Or something else?
2004-08-05 19:55 Can Ebrowse or ECB give me a list of functions called? Or something else? Alan Mackenzie
@ 2004-08-06 9:19 ` Eli Zaretskii
[not found] ` <mailman.107.1091784426.2011.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2004-08-06 9:19 UTC (permalink / raw)
> From: Alan Mackenzie <acm@muc.de>
> Newsgroups: gnu.emacs.help
> Date: Thu, 5 Aug 2004 19:55:35 +0000
>
> We have a source tree of mixed C and C++. Management is considering
> "just" switching to a different unix-like OS. I have been tasked with
> discovering exactly which functions (from the OS and standard libraries)
> are called.
>
> Before embarking on the writing of a script to parse our source files, I
> was wondering if I could somehow extract the information from an Ebrowse
> or ECB database file. Clearly a TAGS file doesn't contain the requisite
> info.
I'd begin with GNU ID-Utils. They generate a database of all the
symbols in a source tree, and let you run queries on that adatabase.
There's a nice grep-like Emacs inteface to the most frequently-used
query (find all the lines where a certain symbol or a symbol-name
pattern is mentioned), but even if you use the less frequent queries
outside Emacs, you could then add some simple scripts on top of that.
Look at the GNU FTP site for the latest version of ID-Utils. I find
it a must when browsing a large source tree.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can Ebrowse or ECB give me a list of functions called? Or something else?
[not found] ` <mailman.107.1091784426.2011.help-gnu-emacs@gnu.org>
@ 2004-08-15 13:53 ` Alan Mackenzie
2004-08-16 19:26 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Alan Mackenzie @ 2004-08-15 13:53 UTC (permalink / raw)
Eli Zaretskii <eliz@gnu.org> wrote on Fri, 06 Aug 2004 12:19:58 +0300:
>> From: Alan Mackenzie <acm@muc.de>
>> Newsgroups: gnu.emacs.help
>> Date: Thu, 5 Aug 2004 19:55:35 +0000
>> We have a source tree of mixed C and C++. Management is considering
>> "just" switching to a different unix-like OS. I have been tasked with
>> discovering exactly which functions (from the OS and standard
>> libraries) are called.
>> Before embarking on the writing of a script to parse our source files,
>> I was wondering if I could somehow extract the information from an
>> Ebrowse or ECB database file. Clearly a TAGS file doesn't contain the
>> requisite info.
> I'd begin with GNU ID-Utils. They generate a database of all the
> symbols in a source tree, and let you run queries on that adatabase.
> There's a nice grep-like Emacs inteface to the most frequently-used
> query (find all the lines where a certain symbol or a symbol-name
> pattern is mentioned), but even if you use the less frequent queries
> outside Emacs, you could then add some simple scripts on top of that.
> Look at the GNU FTP site for the latest version of ID-Utils. I find
> it a must when browsing a large source tree.
Thanks for this tip, Eli. I had quite a bit of fun with ID-Utils. Then
Management's priorities suddenly changed, and the task is now non-urgent.
Such is life. ;-(
But it was interesting to see how ID-Utils identified _all_ "ID"s - even
numbers and keywords (like "while"). It's not quite what I needed, but I
might be able (_should_ be able) to extract what I need from it.
I'll look more closely at ID-Utils.
Thanks again, E.
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can Ebrowse or ECB give me a list of functions called? Or something else?
2004-08-15 13:53 ` Alan Mackenzie
@ 2004-08-16 19:26 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2004-08-16 19:26 UTC (permalink / raw)
> From: Alan Mackenzie <acm@muc.de>
> Newsgroups: gnu.emacs.help
> Date: Sun, 15 Aug 2004 13:53:55 +0000
>
> But it was interesting to see how ID-Utils identified _all_ "ID"s - even
> numbers and keywords (like "while").
It tags all the language tokens, including strings, for example. This
is by design.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-16 19:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05 19:55 Can Ebrowse or ECB give me a list of functions called? Or something else? Alan Mackenzie
2004-08-06 9:19 ` Eli Zaretskii
[not found] ` <mailman.107.1091784426.2011.help-gnu-emacs@gnu.org>
2004-08-15 13:53 ` Alan Mackenzie
2004-08-16 19:26 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.