Debugging a Program With dbx

Breakpoint Event Specifications

The following are event specifications, syntax and descriptions for breakpoint events.

in func

The function has been entered and the first line is about to be executed. If the -instr modifier is used, it is the first instruction of the function about to be executed. (Do not confuse in func with the -in func modifier.) The func specification can take a formal parameter signature to help with overloaded function names, or template instance specification. For example, you can say:


 stop in mumble(int, float, struct Node *)

at lineno

The designated line is about to be executed. If filename is specified, then the designated line in the specified file is about to be executed. The file name can be the name of a source file or an object file. Although quote marks are not required, they may be necessary if the file name contains odd characters.


at filename:lineno

If the designated line is in template code, a breakpoint is placed on all instances of that template.

infunction func

Equivalent to in func for all overloaded functions named func, or all template instantiations thereof.

inmember funcinmethod func

Equivalent to in func for the member function named func for every class.

inclass classname

Equivalent to in func for all member functions that are members of classname.

inobject obj-expr

A member function called on the specific object at the address denoted by obj-expr has been called.