From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Call graph emacs tool
Date: Fri, 20 Aug 2010 20:04:56 -0700 [thread overview]
Message-ID: <4C6F4258.8080108@gmail.com> (raw)
In-Reply-To: <i4nbch$bp2$1@dough.gmane.org>
On Friday 20 August 2010 06:50 PM, Richard Riley wrote:
> Suvayu Ali<fatkasuvayu+linux@gmail.com> 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,
>> <http://i288.photobucket.com/albums/ll164/jalladandtux/screenies/emacs-symbol-reference-w-cedet.png>
>
> What is that supposed to be? Is that a call stack?
>
>
Maybe I have misunderstood the OP's question.
Its the result of the command `semantic-symref-symbol'. It looks up your
symbol in all your project include paths and presents all references to
the symbol as links. You can jump to it with `RET' or you can view with
`<space>'. In this case the symbol was a handy method I had written.
There is a similar function for tags with a small difference, instead of
presenting it in a buffer, it cycles through all the matches in a
"completion like" buffer. All of this is of course with the CVS version
of CEDET.
Is that what the OP was looking for?
--
Suvayu
Open source is the future. It sets us free.
next prev parent reply other threads:[~2010-08-21 3:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-20 16:15 Call graph emacs tool George Kadianakis
2010-08-21 1:38 ` Suvayu Ali
2010-08-21 1:50 ` Richard Riley
2010-08-21 3:04 ` Suvayu Ali [this message]
2010-08-21 3:13 ` Pranav Peshwe
2010-08-21 12:36 ` George Kadianakis
2010-08-21 16:18 ` Gary
2010-08-21 18:07 ` Suvayu Ali
[not found] ` <mailman.5.1282414155.26890.help-gnu-emacs@gnu.org>
2010-08-24 15:52 ` rustom
[not found] ` <mailman.0.1282394304.15763.help-gnu-emacs@gnu.org>
2010-08-21 15:35 ` rustom
-- strict thread matches above, loose matches on Subject: below --
2010-08-25 17:02 George Kadianakis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C6F4258.8080108@gmail.com \
--to=fatkasuvayu+linux@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.