Programming Tools Guide
Chapter 7, sdb: symbolic debugger

Other commands

Other commands

To exit sdb, use the q command.

The ! command (when used immediately after the * prompt) is identical to that in ed(C) and is used to have the shell execute a command. The ! can also be used to change the values of variables when the program is stopped at a breakpoint.

   *variable!value
This sets the variable to the given value. The value may be a number, character constant, register, or the name of another variable. If the variable is of type float or double, the value can also be a floating-point constant (specified according to the standard C language format).