Sun Studio 12 Update 1: Debugging a Program With dbx

Syntax

funcs

List all functions in the current program.

funcs [-f file_name] [-g] [regular_expression]

If -f file_name is specified, list all functions in the file. If -g is specified, list all functions with debugging information. If file_name ends in .o, then all functions, including those created automatically by the compiler, are listed. Otherwise only functions appearing the source code are listed.

If regular_expression is specified, list all functions that match the regular expression.

where:

file_name is the name of the file for which you wish to list all the functions.

regular_expression is the regular expression for which you wish to list all the matching functions.

For example:


(dbx) funcs [vs]print
”libc.so.1”isprint
”libc.so.1”wsprintf
”libc.so.1”sprintf
”libc.so.1”vprintf
”libc.so.1”vsprintf