16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Description<br />

The file subcommand changes the current source file to the file specified by the file<br />

argument; it does not write to that file. If the file argument is not specified, the file<br />

subcommand displays the name of the current source file.<br />

Usage Note<br />

The file subcommand can be run only while the dbx debug program is running.<br />

Examples<br />

1. To change the current source file to the main.c file, enter:<br />

file main.c<br />

2. To display the name of the current source file, enter:<br />

file<br />

func subcommand for dbx: Change the current function<br />

Format<br />

func [procedure]<br />

Description<br />

The func subcommand changes the current function to the procedure or function<br />

specified by the procedure argument. If the procedure argument is not specified, the<br />

default current function is displayed. Changing the current function implicitly<br />

changes the current source file to the file containing the new function; the current<br />

scope used for name resolution is also changed.<br />

Usage notes<br />

The func subcommand can be run only while the dbx debug program is running.<br />

Examples<br />

1. To change the current function to the do_count procedure, enter:<br />

func do_count<br />

2. To display the name of the current function, enter:<br />

func<br />

goto subcommand for dbx: Run a specified source line<br />

Format<br />

goto sourceline<br />

Description<br />

The goto subcommand causes the specified source line to be run next. Normally,<br />

the source line must be in the same function as the current source line. To override<br />

this restriction, use the set subcommand with the $unsafegoto variable.<br />

Usage Note<br />

The goto subcommand can be run only while the dbx debug program is running.<br />

Example<br />

To change the next line to be executed to line 6, enter:<br />

goto 6<br />

Related Information<br />

The cont, gotoi, and set subcommands.<br />

dbx: file<br />

Chapter 2. Shell command descriptions 199

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!