Sun Studio 12: Debugging a Program With dbx

Setting Multiple Breakpoints in Nonmember Functions

To set multiple breakpoints in nonmember functions with overloaded names (same name, different type or number of arguments), use the stop infunction command.

For example, if a C++ program has defined two versions of a function named sort()(one that passes an int type argument and the other a float) then, to place a breakpoint in both functions, type:

(dbx) stop infunction sort [command;]

For more information on specifying an infunction event, see infunction function.