Linux 要求 GDB 列出程序中的所有函数

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10680670/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 06:24:18  来源:igfitidea点击:

Ask GDB to list all functions in a program

clinuxgccgdbx86-64

提问by pythonic

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

如何使用 GDB 列出程序中的所有函数?

采纳答案by ks1322

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

info functions打印所有定义函数的名称和数据类型。请参阅16 检查符号表