From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pranav Peshwe Newsgroups: gmane.emacs.help Subject: Re: Call graph emacs tool Date: Sat, 21 Aug 2010 08:43:11 +0530 Message-ID: References: <87pqxdtg40.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0050450174aa9a000b048e4ccbaa X-Trace: dough.gmane.org 1282361036 24956 80.91.229.12 (21 Aug 2010 03:23:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Aug 2010 03:23:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: George Kadianakis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 21 05:23:54 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 1OmegT-0004yo-RT for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Aug 2010 05:23:54 +0200 Original-Received: from localhost ([127.0.0.1]:51923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmegT-0000lV-5n for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Aug 2010 23:23:53 -0400 Original-Received: from [140.186.70.92] (port=54250 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmefS-0000HI-DX for help-gnu-emacs@gnu.org; Fri, 20 Aug 2010 23:22:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmeW8-0006LC-VL for help-gnu-emacs@gnu.org; Fri, 20 Aug 2010 23:13:14 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:48327) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmeW8-0006L4-SJ for help-gnu-emacs@gnu.org; Fri, 20 Aug 2010 23:13:12 -0400 Original-Received: by iwn33 with SMTP id 33so1928870iwn.0 for ; Fri, 20 Aug 2010 20:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=L2QBFch6/0NqojqpzaXsOPwkU2fjx6X3FEXuO40pDGw=; b=fQRDMz1XYU2T4Y5bUU0K35Tmq6zDNWpdSzteZPFCRTpBaEZGHDkLI4h3jFr0DZ3fFo W6+w0APTJj1d4YmC+2/qXDb3kczgRuGz59GbS7BX/dnLSF4oaStAZaEQxUdqRXIUEVCW pSKNZ5TqvIlGDg08XQxuYdLm9/R2QqZbLDqTc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=wlEJnC53M6clz/CXCRGNd+fWETK8wqC4nvlMxcWlMyLUSmRlu/rBAvQEIrAUoWKWSm 5Y0ixdxoApRFCHaaWabCOdMPaEp/vO/IdGXg8hHcPjqy0Od/NcYCMtdb/D3KAJqMzL0c TIUJAnRhEZLzXKFYdejmsmkcrN86riFC1pw+0= Original-Received: by 10.231.184.156 with SMTP id ck28mr2463383ibb.168.1282360391368; Fri, 20 Aug 2010 20:13:11 -0700 (PDT) Original-Received: by 10.231.142.220 with HTTP; Fri, 20 Aug 2010 20:13:11 -0700 (PDT) In-Reply-To: <87pqxdtg40.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:74759 Archived-At: --0050450174aa9a000b048e4ccbaa Content-Type: text/plain; charset=ISO-8859-1 If I've understood you correctly, any tool that can build a (static) call graph should suffice. Just that, you'll have to manually reverse trace paths starting from function(). Do CMIIW... On Fri, Aug 20, 2010 at 9:45 PM, George Kadianakis wrote: > Greetings, > > I think I'm loosing faith in Emacs. It's the first time I'm looking > for a tool and I don't get countless .el scripts with a trivial Google > search. > > 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? > > Thank you :) > > --0050450174aa9a000b048e4ccbaa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If I've understood you correctly, any tool that can build a (static) ca= ll graph should suffice. Just that, you'll have to manually reverse tra= ce paths starting from function().

Do CMIIW...

On Fri, Aug 20, 2010 at 9:45 PM, George Kadianakis <desnacked@gmail.com> wro= te:
Greetings,

I think I'm loosing faith in Emacs. It's the first time I'm loo= king
for a tool and I don't get countless .el scripts with a trivial Google<= br> search.

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]
=A0 =A0 =A0 =A02) main() [main.c] -> function_5() [yay.c] -> functio= n_3() [oh.c] -> function_2() [oh.c] -> function() [yay.c]
=A0 =A0 =A0 =A03) 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?

Thank you :)


--0050450174aa9a000b048e4ccbaa--