func subcommand for dbx: Change the current function

Format

func [procedure]

Description

The func subcommand changes the current function to the procedure or function specified by the procedure argument. If the procedure argument is not specified, the default current function is displayed. Changing the current function implicitly changes the current source file to the file containing the new function; the current scope used for name resolution is also changed.

Usage notes

The func subcommand can be run only while the dbx debug program is running.

Examples

  1. To change the current function to the do_count procedure, enter:
    func do_count
  2. To display the name of the current function, enter:
    func