Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

gdb: list all functions

Posted on 2002-04-03
4
Medium Priority
?
1,639 Views
Last Modified: 2009-12-19
Within GDB, how do I list all functions that are found in a .c file?  Running "info line main.c:200" will tell me which function is found at that specific line, but how do I get it to list all the functions in main.c?
0
Comment
Question by:interiot
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 600 total points
ID: 6917502
(gdb) shell ctags main.c; grep main.c tags
0
 
LVL 3

Author Comment

by:interiot
ID: 6921728
Actually, since I'm wrapping GDB in a script anyway, I just ran "info line" on every line, which may be less efficient than your suggestion, but removes one dependancy on an external program.  Still, good 'nuf.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6921733
well, my suggestion wasn't a true gdb solution, but a very UNIXish ;-)
Thanks for A anyway.
0
 
LVL 8

Expert Comment

by:nagki
ID: 26088853
(gdb) info functions
It prints the names and data types of all defined functions
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question