From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Call graph emacs tool Date: Sat, 21 Aug 2010 03:50:07 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: <87pqxdtg40.fsf@gmail.com> <4C6F2E0F.3020607@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282355452 12863 80.91.229.12 (21 Aug 2010 01:50:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Aug 2010 01:50:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 21 03:50:51 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OmdEN-00070l-P0 for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Aug 2010 03:50:48 +0200 Original-Received: from localhost ([127.0.0.1]:49941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmdEN-0005z7-BR for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Aug 2010 21:50:47 -0400 Original-Received: from [140.186.70.92] (port=54762 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmdDz-0005xN-CD for help-gnu-emacs@gnu.org; Fri, 20 Aug 2010 21:50:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmdDy-0006KM-7c for help-gnu-emacs@gnu.org; Fri, 20 Aug 2010 21:50:23 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51905) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmdDy-0006K1-1a for help-gnu-emacs@gnu.org; Fri, 20 Aug 2010 21:50:22 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OmdDu-0006sS-C5 for help-gnu-emacs@gnu.org; Sat, 21 Aug 2010 03:50:18 +0200 Original-Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Aug 2010 03:50:18 +0200 Original-Received: from rileyrg by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Aug 2010 03:50:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 85.183.18.158 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74757 Archived-At: Suvayu Ali writes: > On Friday 20 August 2010 09:15 AM, George Kadianakis wrote: >> I'm looking for a tool (preferably an Emacs tool, but_seriously_ >> anything will do) that will give me all possible code paths to a given >> function of a C project. >> >> For example: >> Input: (magic-script function) >> Output: 1) main() [main.c] -> function_1() [main.c] -> function_2() [oh.c] -> function_3() [oh.c] -> function_4() [ohlol.c] -> function() [yay.c] >> 2) main() [main.c] -> function_5() [yay.c] -> function_3() [oh.c] -> function_2() [oh.c] -> function() [yay.c] >> 3) etcetera >> >> GNU cflow is actually doing that_but_ it doesn't support multiple >> source files and it's not Emacs integrable. >> >> Do you people know of any such tools? > > I am not sure what you mean by all possible code paths to a function, > but if you mean something like this, > What is that supposed to be? Is that a call stack?