Sun Studio 12: Debugging a Program With dbx

Native Mode Syntax

next

Step one line (step over calls). With multithreaded programs when a function call is stepped over, all LWPs (lightweight processes) are implicitly resumed for the duration of that function call in order to avoid deadlock. Non-active threads cannot be stepped.

next n

Step n lines (step over calls).

next ... -sig signal

Deliver the given signal while stepping.

next ... thread_id

Step the given thread.

next ... lwp_id

Step the given LWP. Will not implicitly resume all LWPs when stepping over a function.

where:

n is the number of lines to step.

signal is the name of a signal.

thread_id is a thread ID.

lwp_id is an LWP ID.

When an explicit thread_id or lwp_id is given, the deadlock avoidance measure of the generic next command is defeated.

See also nexti Command for machine-level stepping over calls.


Note –

For information on lightweight processes (LWPs), see the Solaris Multithreaded Programming Guide.