From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: Can Ebrowse or ECB give me a list of functions called? Or something else? Date: Fri, 06 Aug 2004 12:19:58 +0300 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1659-Fri06Aug2004121957+0300-eliz@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1091784217 16045 80.91.224.253 (6 Aug 2004 09:23:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Aug 2004 09:23:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 06 11:23:30 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bt0wj-0005BC-00 for ; Fri, 06 Aug 2004 11:23:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bt10K-0005Cv-KQ for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Aug 2004 05:27:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bt10C-0005Cn-CE for help-gnu-emacs@gnu.org; Fri, 06 Aug 2004 05:27:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bt10B-0005CO-Dh for help-gnu-emacs@gnu.org; Fri, 06 Aug 2004 05:27:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bt10B-0005CL-Bo for help-gnu-emacs@gnu.org; Fri, 06 Aug 2004 05:27:03 -0400 Original-Received: from [192.114.186.23] (helo=aragorn.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bt0vg-0001pA-6n for help-gnu-emacs@gnu.org; Fri, 06 Aug 2004 05:22:24 -0400 Original-Received: from zaretski (pns03-194-35.inter.net.il [80.230.194.35]) by aragorn.inter.net.il (MOS 3.4.6-GR) with ESMTP id EBY43813; Fri, 6 Aug 2004 12:22:21 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Alan Mackenzie on Thu, 5 Aug 2004 19:55:35 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20004 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20004 > From: Alan Mackenzie > 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.