Solved

gdb: list all functions

Posted on 2002-04-03
4
1,628 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 150 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

623 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