122

How can you list all functions in a program with GDB?

1 Answer 1

177

info functions prints the names and data types of all defined functions. See 16 Examining the Symbol Table.

Sign up to request clarification or add additional context in comments.

3 Comments

And info functions regexp will list only functions with names matching the regexp. Documented in the same page.
Thank goodness for the regex, I'm trying to debug the Linux kernel :D
Just to be clear, the command is info functions some_regex_here, not info functions regexp some_regex_here. I was a bit confused for a moment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.