call-graph

Make GDB print control flow of functions as they are called

喜你入骨 提交于 2019-11-27 12:22:11
问题 How do I make gdb print functions of interest as they are called, indented according to how deep in the stack they are? I want to be able to say something like (made up): (gdb) trace Foo* Bar* printf And have gdb print all functions which begin with Foo or Bar, as they are called. Kind of like gnu cflow, except using the debugging symbols and only printing functions which actually get called, not all possible call flows. Tools which won't help include cachegrind, callgrind and oprofile, which

PHP call graph utility? [closed]

三世轮回 提交于 2019-11-27 05:15:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm looking for a utility similar to gprof that will generate a call graph for PHP code. I'd prefer something that can produce graphical output, or at least text output that can be interpreted by GraphViz or similar, but I'll settle for plain text output. Does anyone know of any tool that can do this? 回答1: I

How to print the next N executed lines automatically in GDB?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 03:25:55
I have been trying to find a way for some time to automate the progress in GDB of tracing the control flow of a program. Even just a simple way of automating the n command so you can see in what order routines are called. I realise that you can issues n x where x is the number of times GDB steps through, but the trouble with that is that it shows the command but not the address of the routine! But if you press n manually in GDB (then press return to issue the previous command) it shows the address. I have tried the following in GDB: (after setting a breakpoint at say 0x0123456) b *0x0123456

How to generate call-graphs for given javascript? [closed]

人走茶凉 提交于 2019-11-26 19:35:32
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . I have seen "https://stackoverflow.com/questions/1385335/how-to-generate-function-call-graphs-for-javascript", and tried it. It works well, if you want to get an abstract syntax tree. Unfortunately Closure Compiler only seems to offer --print_tree , --print_ast and --print_pass

C# Call Graph Generation Tool

*爱你&永不变心* 提交于 2019-11-26 19:29:21
问题 I just got a heaping pile of (mostly undocumented) C# code and I'd like to visualize it's structure before I dive in and start refactoring. I've done this in the past (in other languages) with tools that generate call graphs. Can you recommend a good tool for facilitating the discovery of structure in C#? UPDATE In addition to the tools mentioned here I've seen (through the tubes) people say that .NET Reflector and CLR Profiler have this functionality. Any experience with these? 回答1: NDepend

How to Generate a calling graph for C++ code

左心房为你撑大大i 提交于 2019-11-26 19:17:50
I'm trying to generate calling graph with which to find out all the possible execution paths that are hitting a particular function (so that I don't have to figure out all the paths manually, as there are many paths that lead to this function). For instance: path 1: A -> B -> C -> D path 2: A -> B -> X -> Y -> D path 3: A -> G -> M -> N -> O -> P -> S -> D ... path n: ... I have tried Codeviz and Doxygen, somehow both results show nothing but callees of target function, D. In my case, D is a member function of a class whose object will be wrapped within a smart pointer. Clients will always

Static analysis of Java call graph

China☆狼群 提交于 2019-11-26 13:07:05
问题 What I\'d like to do is scan a set of Java classes, and trace all method calls from a specific method of an Abstract Class, and within that context, build a list of all code which performs some operation (in this case, instantiates an instance of a certain class). I want to know, the line number, and the arguments supplied. I\'ve begun looking at BCEL, but it doesn\'t seem to have call graph tracing built in? I\'m hesitant to write my own because getting the overloading, type signatures and

How to print the next N executed lines automatically in GDB?

不羁的心 提交于 2019-11-26 12:39:18
问题 I have been trying to find a way for some time to automate the progress in GDB of tracing the control flow of a program. Even just a simple way of automating the n command so you can see in what order routines are called. I realise that you can issues n x where x is the number of times GDB steps through, but the trouble with that is that it shows the command but not the address of the routine! But if you press n manually in GDB (then press return to issue the previous command) it shows the

Tools to get a pictorial function call graph of code [closed]

故事扮演 提交于 2019-11-26 12:36:21
I have a large work space which has many source files of C code. Although I can see the functions called from a function in MS VS2005 using the Object browser, and in MSVC 6.0 also, this only shows functions called from a particular function in a non-graphical kind of display. Additionally, it does not show the function called starting from say main() , and then the functions called from it, and so on, deeper inside to the leaf level function. I need a tool which will give me a function call graph pictorially with functions callee and caller connected by arrows or something like that, starting

How to Generate a calling graph for C++ code

和自甴很熟 提交于 2019-11-26 06:10:34
问题 I\'m trying to generate calling graph with which to find out all the possible execution paths that are hitting a particular function (so that I don\'t have to figure out all the paths manually, as there are many paths that lead to this function). For instance: path 1: A -> B -> C -> D path 2: A -> B -> X -> Y -> D path 3: A -> G -> M -> N -> O -> P -> S -> D ... path n: ... I have tried Codeviz and Doxygen, somehow both results show nothing but callees of target function, D. In my case, D is