History Replacement of the Line

Leading spaces and tabs are removed from the assembled line.

For assembled lines that begin with an exclamation point (!), the following rules apply:

In the first two cases, any remaining characters after the digits are appended to the assembled line.

For lines that begin with a caret (^), these rules apply:

The assembled line is now appended to the history list.

Exclamation points and carets cannot be used in command lists built with braces ({}); for example, {print3; !!3} will not parse. They may be used in scripts.

History in a command list is not limited by braces, but goes all the way back. For example:

 

(idb) print 1

1

(idb) stop at 182 { print 2; history 3 }

[#1: stop at "src/x_list.cxx":182 { print 2; history 3 }]

(idb) run

2

11: print 1

12: stop at 182 {print 2; history 3}

13: run

[1] stopped at [int main(void):182 0x08052e8f]

    182     List<Node> nodeList;

Note:

Commands in breakpoint action lists are not entered into the history list.