Ask GDB to list all functions in a program

106,045

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

Share:
106,045

Related videos on Youtube

pythonic
Author by

pythonic

Updated on July 08, 2022

Comments

  • pythonic
    pythonic almost 2 years

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

  • osgx
    osgx about 10 years
    And info functions regexp will list only functions with names matching the regexp. Documented in the same page.
  • Sridhar Sarnobat
    Sridhar Sarnobat over 4 years
    Thank goodness for the regex, I'm trying to debug the Linux kernel :D
  • user3207874
    user3207874 over 2 years
    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